MCPcopy Create free account
hub / github.com/nodejs/node / popNameGenerationScope

Function popNameGenerationScope

test/fixtures/snapshot/typescript.js:114349–114355  ·  view source on GitHub ↗

* Pop the current name generation scope.

(node)

Source from the content-addressed store, hash-verified

114347 * Pop the current name generation scope.
114348 */
114349 function popNameGenerationScope(node) {
114350 if (node && ts.getEmitFlags(node) & 524288 /* EmitFlags.ReuseTempVariableScope */) {
114351 return;
114352 }
114353 tempFlags = tempFlagsStack.pop();
114354 reservedNames = reservedNamesStack.pop();
114355 }
114356 function reserveNameInNestedScopes(name) {
114357 if (!reservedNames || reservedNames === ts.lastOrUndefined(reservedNamesStack)) {
114358 reservedNames = new ts.Set();

Callers 8

emitMethodSignatureFunction · 0.85
emitCallSignatureFunction · 0.85
emitConstructSignatureFunction · 0.85
emitFunctionTypeFunction · 0.85
emitConstructorTypeFunction · 0.85
emitSignatureAndBodyFunction · 0.85
emitModuleBlockFunction · 0.85
emitSourceFileWorkerFunction · 0.85

Calls 1

popMethod · 0.80

Tested by

no test coverage detected