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

Method constructor

darc-js/src/SDK/Node.ts:200–207  ·  view source on GitHub ↗
(... args:Node[])

Source from the content-addressed store, hash-verified

198
199class AND extends Node {
200 constructor(... args:Node[]) {
201 super();
202 if (args.length <= 1) {
203 throw new Error("AND node must have at least 2 children");
204 }
205 this.processChildList(args);
206 this.type = "AND";
207 }
208
209 processChildList(childList: Node[]) {
210 for (let i = 0; i < childList.length; i++) {

Callers

nothing calls this directly

Calls 1

processChildListMethod · 0.95

Tested by

no test coverage detected