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

Method constructor

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

Source from the content-addressed store, hash-verified

235
236class OR extends Node {
237 constructor(... args:Node[]) {
238 super();
239 if (args.length <= 1) {
240 throw new Error("OR node must have at least 2 children");
241 }
242 this.processChildList(args);
243 this.type = "OR";
244 }
245
246 processChildList(childList: Node[]) {
247 for (let i = 0; i < childList.length; i++) {

Callers

nothing calls this directly

Calls 1

processChildListMethod · 0.95

Tested by

no test coverage detected