MCPcopy Index your code
hub / github.com/nodejs/node / declareLocal

Function declareLocal

test/fixtures/snapshot/typescript.js:103386–103392  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

103384 return temp;
103385 }
103386 function declareLocal(name) {
103387 var temp = name
103388 ? factory.createUniqueName(name)
103389 : factory.createTempVariable(/*recordTempVariable*/ undefined);
103390 hoistVariableDeclaration(temp);
103391 return temp;
103392 }
103393 /**
103394 * Defines a label, uses as the target of a Break operation.
103395 */

Callers 7

visitElementsFunction · 0.85
reduceElementFunction · 0.85
beginCatchBlockFunction · 0.85

Calls 1

hoistVariableDeclarationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…