Skip to content

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

binderBinder context interface

The binder instance that created this symbol.

flagsOutputSymbolFlags

The symbol’s flags.

instanceMemberScopeoptionalScope context interface

The instance members available on this symbol.

metadataRecord<string, unknown>

Additional custom metadata about this symbol.

namestring

The name of the symbol.

originalNamestring

The original name of the symbol, before any conflicts were resolved.

refkeysRefkey[]

The unique values that reference this symbol.

scopeScope context interface

The scope in which the symbol is defined.

staticMemberScopeoptionalScope context interface

The static members available on this symbol.

See also