Skip to content

createMethodScope

import { createMethodScope } from "@alloy-js/csharp";
function createMethodScope(options?: OutputScopeOptions): CSharpMethodScope;
optionsoptional OutputScopeOptions
binderoptional BinderThe binder instance this scope belongs to. If not provided, it will attempt to find the current binder from context.
metadataoptional Record<string, unknown>Arbitrary metadata that is associated with this scope.
ownerSymboloptional OutputSymbolThe owner symbol of this scope. When provided, this scope becomes a member scope, which exposes the symbols on its owner symbol instead of having its own declaration spaces.
CSharpMethodScope