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

Function toValue

src/runtime/join.ts:83–88  ·  view source on GitHub ↗
(register, prefix)

Source from the content-addressed store, hash-verified

81// Turn a "register" (either an arg or return) into a value based
82// on a prefix of variables
83export function toValue(register, prefix) {
84 if(isVariable(register)) {
85 return prefix[register.id];
86 }
87 return register;
88}
89
90// Resolve an array of registers based on a prefix of variables
91export function resolve(toResolve, prefix, resolved = []) {

Callers 9

resolveFunction · 0.90
resolveAggregateFunction · 0.90
aggregateMethod · 0.90
resolveFunction · 0.85
fullyResolvedFunction · 0.85
resolveMethod · 0.85
proposeFunction · 0.85
getProposalMethod · 0.85
proposeMethod · 0.85

Calls 1

isVariableFunction · 0.85

Tested by

no test coverage detected