Skip to content

LexicalScope

import { LexicalScope } from "@alloy-js/python";
<LexicalScope value={OutputScope} />
childrenoptionalChildren
valueScope context interface

The scope to use. If not provided, a new scope will be created.

import { LexicalScope } from "@alloy-js/python";
<LexicalScope
metadata={Record<string, unknown>}
name="string"
ownerSymbol={OutputSymbol}
/>
childrenoptionalChildren
metadataoptionalRecord<string, unknown>

Additional metadata for the scope.

nameoptionalstring

The name of this scope.

ownerSymboloptionalMemberDeclaration context interface

Create a member scope with the owner symbol providing the in-scope symbols.