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

Function tryReuseAmbientDeclaration

test/fixtures/snapshot/typescript.js:36368–36375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36366 }
36367 }
36368 function tryReuseAmbientDeclaration() {
36369 return doInsideOfContext(16777216 /* NodeFlags.Ambient */, function () {
36370 var node = currentNode(parsingContext);
36371 if (node) {
36372 return consumeNode(node);
36373 }
36374 });
36375 }
36376 function parseDeclarationWorker(pos, hasJSDoc, decorators, modifiers) {
36377 switch (token()) {
36378 case 113 /* SyntaxKind.VarKeyword */:

Callers 1

parseDeclarationFunction · 0.85

Calls 3

doInsideOfContextFunction · 0.85
currentNodeFunction · 0.85
consumeNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…