createFunctionScope
import { createFunctionScope } from "@alloy-js/go";
function createFunctionScope(options?: OutputScopeOptions): GoFunctionScope;Parameters
Section titled “Parameters”| options | optional
|
Options
Section titled “Options”| binder | optionalBinder context interfaceThe binder instance this scope belongs to. If not provided, it will attempt to find the current binder from context. |
| metadata | optionalRecord<string, unknown>Arbitrary metadata that is associated with this scope. |
| ownerSymbol | optionalMemberDeclaration context interfaceThe 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. |
Returns
Section titled “Returns”[unresolved link]