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

Function transformVariableStatement

test/fixtures/snapshot/typescript.js:109257–109264  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

109255 }
109256 }
109257 function transformVariableStatement(input) {
109258 if (!ts.forEach(input.declarationList.declarations, getBindingNameVisible))
109259 return;
109260 var nodes = ts.visitNodes(input.declarationList.declarations, visitDeclarationSubtree);
109261 if (!ts.length(nodes))
109262 return;
109263 return factory.updateVariableStatement(input, factory.createNodeArray(ensureModifiers(input)), factory.updateVariableDeclarationList(input.declarationList, nodes));
109264 }
109265 function recreateBindingPattern(d) {
109266 return ts.flatten(ts.mapDefined(d.elements, function (e) { return recreateBindingElement(e); }));
109267 }

Callers 1

Calls 3

ensureModifiersFunction · 0.85
forEachMethod · 0.65
lengthMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…