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

Function cacheExpression

test/fixtures/snapshot/typescript.js:103378–103385  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

103376 return node;
103377 }
103378 function cacheExpression(node) {
103379 if (ts.isGeneratedIdentifier(node) || ts.getEmitFlags(node) & 4096 /* EmitFlags.HelperName */) {
103380 return node;
103381 }
103382 var temp = factory.createTempVariable(hoistVariableDeclaration);
103383 emitAssignment(temp, node, /*location*/ node);
103384 return temp;
103385 }
103386 function declareLocal(name) {
103387 var temp = name
103388 ? factory.createUniqueName(name)

Calls 1

emitAssignmentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…