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

Method resolve

www/js/_hyperscript-max.js:4182–4192  ·  view source on GitHub ↗
(context, { root: rootVal })

Source from the content-addressed store, hash-verified

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

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