LexicalScope
Overload 1
Section titled “Overload 1”import { LexicalScope } from "@alloy-js/python";
<LexicalScope value={OutputScope} />
import { LexicalScope } from "@alloy-js/python/stc";
LexicalScope({ value: OutputScope }).children(children)
children | optionalChildren |
value | Scope context interface The scope to use. If not provided, a new scope will be created. |
Overload 2
Section titled “Overload 2”import { LexicalScope } from "@alloy-js/python";
<LexicalScope metadata={Record<string, unknown>} name="string" ownerSymbol={OutputSymbol} />
import { LexicalScope } from "@alloy-js/python/stc";
LexicalScope({ metadata: Record<string, unknown>, name: string, ownerSymbol: OutputSymbol,}).children(children)
children | optionalChildren |
metadata | optionalRecord<string, unknown> Additional metadata for the scope. |
name | optionalstring The name of this scope. |
ownerSymbol | optionalMemberDeclaration context interface Create a member scope with the owner symbol providing the in-scope symbols. |