MCPcopy
hub / github.com/witheve/Eve / constructor

Method constructor

src/runtime/join.ts:543–558  ·  view source on GitHub ↗
(id: string, strata: BlockStratum[], outputs: any[], exclusive?: boolean)

Source from the content-addressed store, hash-verified

541 exclusive: boolean;
542 constantReturn: boolean;
543 constructor(id: string, strata: BlockStratum[], outputs: any[], exclusive?: boolean) {
544 this.id = id;
545 this.strata = strata;
546 this.outputs = outputs;
547 this.exclusive = exclusive;
548 this.variables = [];
549 this.constantReturn = true;
550 scansToVars(strata, this.variables);
551 for(let output of outputs) {
552 if(isVariable(output)) {
553 this.constantReturn = false;
554 this.variables[output.id] = output;
555 }
556 }
557 this.prefix = [];
558 }
559 resolve(prefix) {
560 return resolve(this.variables, prefix, this.prefix);
561 }

Callers

nothing calls this directly

Calls 2

scansToVarsFunction · 0.90
isVariableFunction · 0.85

Tested by

no test coverage detected