MCPcopy Create free account
hub / github.com/aurelia/binding / evaluate

Method evaluate

src/ast.js:399–408  ·  view source on GitHub ↗
(scope, lookupFunctions, mustEvaluate)

Source from the content-addressed store, hash-verified

397 }
398
399 evaluate(scope, lookupFunctions, mustEvaluate) {
400 let func = this.func.evaluate(scope, lookupFunctions);
401 if (typeof func === 'function') {
402 return func.apply(null, evalList(scope, this.args, lookupFunctions));
403 }
404 if (!mustEvaluate && (func === null || func === undefined)) {
405 return undefined;
406 }
407 throw new Error(`${this.func} is not a function`);
408 }
409
410 accept(visitor) {
411 return visitor.visitCallFunction(this);

Callers

nothing calls this directly

Calls 2

evalListFunction · 0.70
evaluateMethod · 0.45

Tested by

no test coverage detected