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

Method resolve

www/js/_hyperscript.esm.js:4181–4191  ·  view source on GitHub ↗
(context, { root: rootVal })

Source from the content-addressed store, hash-verified

4179 return parser.parseElement("indirectExpression", root);
4180 }
4181 resolve(context, { root: rootVal }) {
4182 if (this._isAttribute) {
4183 return context.meta.runtime.resolveAttribute(rootVal, this._prop);
4184 } else if (this._isComputed) {
4185 return context.meta.runtime.resolveComputedStyle(rootVal, this._prop);
4186 } else if (this._isStyle) {
4187 return context.meta.runtime.resolveStyle(rootVal, this._prop);
4188 } else {
4189 return context.meta.runtime.resolveProperty(rootVal, this._prop);
4190 }
4191 }
4192 get lhs() {
4193 return { root: this.root };
4194 }

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