MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / set

Method set

tools/common/_hyperscript.iife.js:4142–4147  ·  view source on GitHub ↗
(ctx, lhs, value)

Source from the content-addressed store, hash-verified

4140 return { root: this.root };
4141 }
4142 set(ctx, lhs, value) {
4143 ctx.meta.runtime.nullCheck(lhs.root, this.root);
4144 ctx.meta.runtime.implicitLoop(lhs.root, (elt) => {
4145 value == null ? elt.removeAttribute(this.attribute.name) : elt.setAttribute(this.attribute.name, value);
4146 });
4147 }
4148 };
4149 var ArrayIndex = class _ArrayIndex extends Expression {
4150 static grammarName = "arrayIndex";

Callers

nothing calls this directly

Calls 2

nullCheckMethod · 0.45
implicitLoopMethod · 0.45

Tested by

no test coverage detected