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

Function transformSourceFile

test/fixtures/snapshot/typescript.js:91626–91635  ·  view source on GitHub ↗

* Transform TypeScript-specific syntax in a SourceFile. * * @param node A SourceFile node.

(node)

Source from the content-addressed store, hash-verified

91624 * @param node A SourceFile node.
91625 */
91626 function transformSourceFile(node) {
91627 if (node.isDeclarationFile) {
91628 return node;
91629 }
91630 currentSourceFile = node;
91631 var visited = saveStateAndInvoke(node, visitSourceFile);
91632 ts.addEmitHelpers(visited, context.readEmitHelpers());
91633 currentSourceFile = undefined;
91634 return visited;
91635 }
91636 /**
91637 * Visits a node, saving and restoring state variables on the stack.
91638 *

Callers 1

Calls 15

saveStateAndInvokeFunction · 0.85
setContextFlagFunction · 0.85
visitSourceFileFunction · 0.85
transformModuleFunction · 0.85
collectDependencyGroupsFunction · 0.85
createSystemModuleBodyFunction · 0.85
updateExternalModuleFunction · 0.85
someMethod · 0.80
assertMethod · 0.80
sliceMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…