Scope context
const ScopeContext: ComponentContext<OutputScope>
Accessor
import { useScope } from "@alloy-js/core";
const myContext = useScope();
Context interface
binder | Binder context interface The binder that created this scope. | |
children | Set<Scope context interface> The scopes nested within this scope. | |
flags | OutputScopeFlags The flags that describe this scope. | |
getSymbolNames | () => Set<string> | Get the names of all symbols in this scope. |
kind | optionalstring The kind of scope. Subtypes will likely provide a set of known scope kinds. The kind is not used by the binder itself. | |
name | string The name of the scope. | |
owner | optionalMemberDeclaration context interface The symbol that owns this scope. This is only defined for scopes that have the [unresolved link] flag. | |
parent | Scope context interface | undefined The container of this scope. | |
symbols | Set<MemberDeclaration context interface> The symbols defined within this scope. | |
symbolsByRefkey | Map<Refkey, MemberDeclaration context interface> The symbols defined within this scope, indexed by refkey. |