Skip to content

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>

Props

childrenoptionalChildren
nameoptionalstring

The name of the member scope.

ownerDeclaration 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.

See also