MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / resolve

Method resolve

tools/common/_hyperscript.iife.js:3892–3902  ·  view source on GitHub ↗
(context, { root: rootVal })

Source from the content-addressed store, hash-verified

3890 return parser.parseElement("indirectExpression", root);
3891 }
3892 resolve(context, { root: rootVal }) {
3893 if (this._isAttribute) {
3894 return context.meta.runtime.resolveAttribute(rootVal, this._prop);
3895 } else if (this._isComputed) {
3896 return context.meta.runtime.resolveComputedStyle(rootVal, this._prop);
3897 } else if (this._isStyle) {
3898 return context.meta.runtime.resolveStyle(rootVal, this._prop);
3899 } else {
3900 return context.meta.runtime.resolveProperty(rootVal, this._prop);
3901 }
3902 }
3903 get lhs() {
3904 return { root: this.root };
3905 }

Callers

nothing calls this directly

Calls 4

resolveAttributeMethod · 0.45
resolveComputedStyleMethod · 0.45
resolveStyleMethod · 0.45
resolvePropertyMethod · 0.45

Tested by

no test coverage detected