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

Function fixupParentReferences

test/fixtures/snapshot/typescript.js:31816–31822  ·  view source on GitHub ↗
(rootNode)

Source from the content-addressed store, hash-verified

31814 }
31815 }
31816 function fixupParentReferences(rootNode) {
31817 // normally parent references are set during binding. However, for clients that only need
31818 // a syntax tree, and no semantic features, then the binding process is an unnecessary
31819 // overhead. This functions allows us to set all the parents, without all the expense of
31820 // binding.
31821 ts.setParentRecursive(rootNode, /*incremental*/ true);
31822 }
31823 Parser.fixupParentReferences = fixupParentReferences;
31824 function createSourceFile(fileName, languageVersion, scriptKind, isDeclarationFile, statements, endOfFileToken, flags, setExternalModuleIndicator) {
31825 // code from createNode is inlined here so createNode won't have to deal with special case of creating source files

Callers 4

parseJsonTextFunction · 0.85
parseSourceFileWorkerFunction · 0.85
parseJSDocTypeExpressionFunction · 0.85
parseJSDocNameReferenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…