MemberScope
Declare a member scope, which is a scope that holds instance and static members. This scope is then used for nested instance or static member declarations and resolution of instance members.
import { MemberScope } from "@alloy-js/core";
<MemberScope name="string" owner={OutputSymbol}> {children}</MemberScope>
import { MemberScope } from "@alloy-js/core/stc";
MemberScope({ name: string, owner: OutputSymbol }).children(children)
Props
children | optionalChildren |
name | optionalstring The name of the member scope. |
owner | Declaration context interface The symbol that owns these members. This symbol must have either [unresolved link] or [unresolved link]. |
Remarks
The member scope contains scopes for both instance and static members. However, it does not affect the resolution of static members.