1 | import { DynamicScope, Dict, PartialScope, ScopeSlot, ScopeBlock, Option, Scope, Owner } from '@glimmer/interfaces';
|
2 | import { Reference } from '@glimmer/reference';
|
3 | export declare class DynamicScopeImpl implements DynamicScope {
|
4 | private bucket;
|
5 | constructor(bucket?: Dict<Reference>);
|
6 | get(key: string): Reference;
|
7 | set(key: string, reference: Reference): Reference;
|
8 | child(): DynamicScopeImpl;
|
9 | }
|
10 | export declare function isScopeReference(s: ScopeSlot): s is Reference;
|
11 | export declare class PartialScopeImpl implements PartialScope {
|
12 | readonly slots: Array<ScopeSlot>;
|
13 | readonly owner: Owner;
|
14 | private callerScope;
|
15 | private evalScope;
|
16 | private partialMap;
|
17 | static root(self: Reference<unknown>, size: number | undefined, owner: Owner): PartialScope;
|
18 | static sized(size: number | undefined, owner: Owner): Scope;
|
19 | constructor(slots: Array<ScopeSlot>, owner: Owner, callerScope: Scope | null, evalScope: Dict<ScopeSlot> | null, partialMap: Dict<Reference<unknown>> | null);
|
20 | init({ self }: {
|
21 | self: Reference<unknown>;
|
22 | }): this;
|
23 | getSelf(): Reference<unknown>;
|
24 | getSymbol(symbol: number): Reference<unknown>;
|
25 | getBlock(symbol: number): Option<ScopeBlock>;
|
26 | getEvalScope(): Option<Dict<ScopeSlot>>;
|
27 | getPartialMap(): Option<Dict<Reference<unknown>>>;
|
28 | bind(symbol: number, value: ScopeSlot): void;
|
29 | bindSelf(self: Reference<unknown>): void;
|
30 | bindSymbol(symbol: number, value: Reference<unknown>): void;
|
31 | bindBlock(symbol: number, value: Option<ScopeBlock>): void;
|
32 | bindEvalScope(map: Option<Dict<ScopeSlot>>): void;
|
33 | bindPartialMap(map: Dict<Reference<unknown>>): void;
|
34 | bindCallerScope(scope: Option<Scope>): void;
|
35 | getCallerScope(): Option<Scope>;
|
36 | child(): Scope;
|
37 | private get;
|
38 | private set;
|
39 | }
|
40 | //# sourceMappingURL=scope.d.ts.map |
\ | No newline at end of file |