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

Method resolve

www/js/_hyperscript-max.js:4408–4427  ·  view source on GitHub ↗
(context, { target, argVals })

Source from the content-addressed store, hash-verified

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