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

Function createTempVariable

test/fixtures/snapshot/typescript.js:22983–22992  ·  view source on GitHub ↗
(recordTempVariable, reservedInNestedScopes)

Source from the content-addressed store, hash-verified

22981 }
22982 // @api
22983 function createTempVariable(recordTempVariable, reservedInNestedScopes) {
22984 var flags = 1 /* GeneratedIdentifierFlags.Auto */;
22985 if (reservedInNestedScopes)
22986 flags |= 8 /* GeneratedIdentifierFlags.ReservedInNestedScopes */;
22987 var name = createBaseGeneratedIdentifier("", flags);
22988 if (recordTempVariable) {
22989 recordTempVariable(name);
22990 }
22991 return name;
22992 }
22993 /** Create a unique temporary variable for use in a loop. */
22994 // @api
22995 function createLoopVariable(reservedInNestedScopes) {

Callers 1

createCallBindingFunction · 0.85

Calls 1

Tested by

no test coverage detected