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

Method processChildList

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

Source from the content-addressed store, hash-verified

207 }
208
209 processChildList(childList: Node[]) {
210 for (let i = 0; i < childList.length; i++) {
211 if (childList[i].type === "UNDEFINED") {
212 continue;
213 }
214 else if (childList[i].type === "AND") {
215 this.processAndNode(childList[i]);
216 } else {
217 this.childList.push(childList[i]);
218 }
219 }
220 }
221
222 processAndNode(node: Node) {
223 for (let i = 0; i < node.childList.length; i++) {

Callers 2

constructorMethod · 0.95
processAndNodeMethod · 0.95

Calls 1

processAndNodeMethod · 0.95

Tested by

no test coverage detected