MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / resolve

Method resolve

src/parsetree/commands/execution.js:96–108  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

94 }
95
96 resolve(context) {
97 var args = this.inputs.map(input => context.meta.runtime.resolveSymbol(input, context, 'local'));
98 var result = this.function.apply(context.meta.runtime.globalScope, args);
99 if (result && typeof result.then === "function") {
100 return result.then((actualResult) => {
101 context.result = actualResult;
102 return this.findNext(context);
103 });
104 } else {
105 context.result = result;
106 return this.findNext(context);
107 }
108 }
109}
110
111/**

Callers

nothing calls this directly

Calls 3

resolveSymbolMethod · 0.45
applyMethod · 0.45
findNextMethod · 0.45

Tested by

no test coverage detected