MethodScope
Overload 1
Section titled “Overload 1”import { MethodScope } from "@alloy-js/csharp";
<MethodScope value={OutputScope} />
import { MethodScope } from "@alloy-js/csharp/stc";
MethodScope({ 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 { MethodScope } from "@alloy-js/csharp";
<MethodScope metadata={Record<string, unknown>} name="string" ownerSymbol={OutputSymbol} />
import { MethodScope } from "@alloy-js/csharp/stc";
MethodScope({ 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. |