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

Function constructor

src/runtime/join.ts:363–383  ·  view source on GitHub ↗
(id: string, args: any[], returns: any[])

Source from the content-addressed store, hash-verified

361 vars: Variable[];
362
363 constructor(id: string, args: any[], returns: any[]) {
364 this.id = id;
365 this.args = args;
366 this.returns = returns;
367 this.proposalObject = {providing: null, cardinality: 0}
368 this.resolvedArgs = [];
369 this.resolvedReturns = [];
370 this.resolved = {args: null, returns: null};
371 this.vars = [];
372 // capture our variables
373 for(let register of this.args) {
374 if(isVariable(register)) {
375 this.vars[register.id] = register;
376 }
377 }
378 for(let register of this.returns) {
379 if(isVariable(register)) {
380 this.vars[register.id] = register;
381 }
382 }
383 }
384
385 resolve(prefix) {
386 let resolved = this.resolved;

Callers

nothing calls this directly

Calls 1

isVariableFunction · 0.85

Tested by

no test coverage detected