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

Function visitVariableStatement

test/fixtures/snapshot/typescript.js:93335–93347  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

93333 return updated;
93334 }
93335 function visitVariableStatement(node) {
93336 if (isExportOfNamespace(node)) {
93337 var variables = ts.getInitializedVariables(node.declarationList);
93338 if (variables.length === 0) {
93339 // elide statement if there are no initialized variables.
93340 return undefined;
93341 }
93342 return ts.setTextRange(factory.createExpressionStatement(factory.inlineExpressions(ts.map(variables, transformInitializedVariable))), node);
93343 }
93344 else {
93345 return ts.visitEachChild(node, visitor, context);
93346 }
93347 }
93348 function transformInitializedVariable(node) {
93349 var name = node.name;
93350 if (ts.isBindingPattern(name)) {

Callers 5

visitTypeScriptFunction · 0.85
visitorWorkerFunction · 0.85
topLevelVisitorFunction · 0.85
topLevelNestedVisitorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…