MCPcopy Create free account
hub / github.com/aiscript-dev/aiscript / createChildScope

Method createChildScope

src/interpreter/scope.ts:43–46  ·  view source on GitHub ↗
(states: Map<string, Variable> = new Map(), name?: Scope['name'])

Source from the content-addressed store, hash-verified

41
42 @autobind
43 public createChildScope(states: Map<string, Variable> = new Map(), name?: Scope['name']): Scope {
44 const layer = [states, ...this.layerdStates];
45 return new Scope(layer, this, name);
46 }
47
48 @autobind
49 public createChildNamespaceScope(nsName: string, states: Map<string, Variable> = new Map(), name?: Scope['name']): Scope {

Callers 6

_fnMethod · 0.80
_fnSyncMethod · 0.80
_evalClauseMethod · 0.80
_evalClauseSyncMethod · 0.80
__evalMethod · 0.80
__evalSyncMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected