MCPcopy Index your code
hub / github.com/witheve/Eve / toVariable

Method toVariable

src/runtime/parser.ts:270–277  ·  view source on GitHub ↗
(name, generated = false)

Source from the content-addressed store, hash-verified

268 }
269
270 toVariable(name, generated = false) {
271 let variable = this.variableLookup[name];
272 if(!variable) {
273 this.variableLookup[name] = this.makeNode("variable", {name, from: [], generated});
274 }
275 variable = this.variables[name] = this.variableLookup[name];
276 return {id: variable.id, type: "variable", name, from: [], generated};
277 }
278
279 addUsage(variable, usage) {
280 let global = this.variableLookup[variable.name];

Callers 1

constructorMethod · 0.80

Calls 1

makeNodeMethod · 0.95

Tested by

no test coverage detected