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

Method _evalClause

src/interpreter/index.ts:408–410  ·  view source on GitHub ↗
(node: Ast.Statement | Ast.Expression, scope: Scope, callStack: readonly CallInfo[])

Source from the content-addressed store, hash-verified

406
407 @autobind
408 private _evalClause(node: Ast.Statement | Ast.Expression, scope: Scope, callStack: readonly CallInfo[]): Promise<Value | Control> {
409 return this._eval(node, Ast.isStatement(node) ? scope.createChildScope() : scope, callStack);
410 }
411
412 @autobind
413 private _evalClauseSync(node: Ast.Statement | Ast.Expression, scope: Scope, callStack: readonly CallInfo[]): Value | Control {

Callers 1

__evalMethod · 0.95

Calls 2

_evalMethod · 0.95
createChildScopeMethod · 0.80

Tested by

no test coverage detected