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

Method setParent

www/js/_hyperscript-max.js:1295–1304  ·  view source on GitHub ↗
(elt, parent)

Source from the content-addressed store, hash-verified

1293 return this.#kernel.featureStart(token);
1294 }
1295 setParent(elt, parent) {
1296 if (typeof elt === "object") {
1297 elt.parent = parent;
1298 if (typeof parent === "object") {
1299 parent.children = parent.children || /* @__PURE__ */ new Set();
1300 parent.children.add(elt);
1301 }
1302 this.setParent(elt.next, parent);
1303 }
1304 }
1305 parseURLOrExpression() {
1306 var cur = this.currentToken();
1307 if (cur.value === "/" && cur.type === "DIVIDE") {

Callers 10

parseMethod · 0.45
parseRepeatExpressionMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected