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

Method resolve

tools/common/_hyperscript.iife.js:4100–4119  ·  view source on GitHub ↗
(context, { target, argVals })

Source from the content-addressed store, hash-verified

4098 return parser.parseElement("indirectExpression", functionCall);
4099 }
4100 resolve(context, { target, argVals }) {
4101 if (this._isMethodCall) {
4102 context.meta.runtime.nullCheck(target, this._parseRoot.root);
4103 var methodName = this._parseRoot.prop.value;
4104 var func = target[methodName];
4105 context.meta.runtime.nullCheck(func, this._parseRoot);
4106 if (func.hyperfunc) {
4107 argVals.push(context);
4108 }
4109 var result = func.apply(target, argVals);
4110 context.meta.runtime.maybeNotify(target, methodName);
4111 return result;
4112 } else {
4113 context.meta.runtime.nullCheck(target, this._parseRoot);
4114 if (target.hyperfunc) {
4115 argVals.push(context);
4116 }
4117 return target(...argVals);
4118 }
4119 }
4120 };
4121 var AttributeRefAccess = class _AttributeRefAccess extends Expression {
4122 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