MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / resolve

Method resolve

www/js/_hyperscript.js:4409–4428  ·  view source on GitHub ↗
(context, { target, argVals })

Source from the content-addressed store, hash-verified

4407 return parser.parseElement("indirectExpression", functionCall);
4408 }
4409 resolve(context, { target, argVals }) {
4410 if (this._isMethodCall) {
4411 context.meta.runtime.nullCheck(target, this._parseRoot.root);
4412 var methodName = this._parseRoot.prop.value;
4413 var func = target[methodName];
4414 context.meta.runtime.nullCheck(func, this._parseRoot);
4415 if (func.hyperfunc) {
4416 argVals.push(context);
4417 }
4418 var result = func.apply(target, argVals);
4419 context.meta.runtime.maybeNotify(target, methodName);
4420 return result;
4421 } else {
4422 context.meta.runtime.nullCheck(target, this._parseRoot);
4423 if (target.hyperfunc) {
4424 argVals.push(context);
4425 }
4426 return target(...argVals);
4427 }
4428 }
4429 };
4430 var AttributeRefAccess = class _AttributeRefAccess extends Expression {
4431 static grammarName = "attributeRefAccess";

Callers

nothing calls this directly

Calls 3

nullCheckMethod · 0.45
applyMethod · 0.45
maybeNotifyMethod · 0.45

Tested by

no test coverage detected