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

Method resolve

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

Source from the content-addressed store, hash-verified

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

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