MCPcopy Create free account
hub / github.com/Project-DARC/DARC / processChildList

Method processChildList

darc-js/src/SDK/Node.ts:246–257  ·  view source on GitHub ↗
(childList: Node[])

Source from the content-addressed store, hash-verified

244 }
245
246 processChildList(childList: Node[]) {
247 for (let i = 0; i < childList.length; i++) {
248 if (childList[i].type === "UNDEFINED") {
249 continue;
250 }
251 else if (childList[i].type === "OR") {
252 this.processOrNode(childList[i]);
253 } else {
254 this.childList.push(childList[i]);
255 }
256 }
257 }
258
259 processOrNode(node: Node) {
260 for (let i = 0; i < node.childList.length; i++) {

Callers 2

constructorMethod · 0.95
processOrNodeMethod · 0.95

Calls 1

processOrNodeMethod · 0.95

Tested by

no test coverage detected