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

Method resolve

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

Source from the content-addressed store, hash-verified

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