MemberDeclaration context
Provides the symbol for the member currently being declared.
const MemberDeclarationContext: ComponentContext<OutputSymbol>
Accessor
import { useMemberDeclaration } from "@alloy-js/core";
const myContext = useMemberDeclaration();
Context interface
binder | Binder context interface The binder instance that created this symbol. |
flags | OutputSymbolFlags The symbol’s flags. |
instanceMemberScope | optionalScope context interface The instance members available on this symbol. |
metadata | Record<string, unknown> Additional custom metadata about this symbol. |
name | string The name of the symbol. |
originalName | string The original name of the symbol, before any conflicts were resolved. |
refkeys | Refkey[] The unique values that reference this symbol. |
scope | Scope context interface The scope in which the symbol is defined. |
staticMemberScope | optionalScope context interface The static members available on this symbol. |
See also
- Declaration context for getting the symbol for the current non-member declaration.