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

Function sourceElementVisitorWorker

test/fixtures/snapshot/typescript.js:91728–91738  ·  view source on GitHub ↗

* Specialized visitor that visits the immediate children of a SourceFile. * * @param node The node to visit.

(node)

Source from the content-addressed store, hash-verified

91726 * @param node The node to visit.
91727 */
91728 function sourceElementVisitorWorker(node) {
91729 switch (node.kind) {
91730 case 266 /* SyntaxKind.ImportDeclaration */:
91731 case 265 /* SyntaxKind.ImportEqualsDeclaration */:
91732 case 271 /* SyntaxKind.ExportAssignment */:
91733 case 272 /* SyntaxKind.ExportDeclaration */:
91734 return visitElidableStatement(node);
91735 default:
91736 return visitorWorker(node);
91737 }
91738 }
91739 function visitElidableStatement(node) {
91740 var parsed = ts.getParseTreeNode(node);
91741 if (parsed !== node) {

Callers

nothing calls this directly

Calls 2

visitElidableStatementFunction · 0.85
visitorWorkerFunction · 0.85

Tested by

no test coverage detected