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

Method resolve

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

Source from the content-addressed store, hash-verified

4256 }
4257 }
4258 resolve(context, { root: rootVal }) {
4259 var value;
4260 if (this.attribute) {
4261 if (this.attribute.type === "computedStyleRef") {
4262 value = context.meta.runtime.resolveComputedStyle(rootVal, this.attribute["name"]);
4263 } else if (this.attribute.type === "styleRef") {
4264 value = context.meta.runtime.resolveStyle(rootVal, this.attribute["name"]);
4265 } else {
4266 value = context.meta.runtime.resolveAttribute(rootVal, this.attribute.name);
4267 }
4268 } else {
4269 value = context.meta.runtime.resolveProperty(rootVal, this.prop.value);
4270 }
4271 return value;
4272 }
4273 get lhs() {
4274 return { root: this.root };
4275 }

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected