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

Function getSpans

test/fixtures/snapshot/typescript.js:141481–141490  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

141479 }
141480 }
141481 function getSpans(n) {
141482 var spans = [getNodeSpan(n.node)];
141483 if (n.additionalNodes) {
141484 for (var _i = 0, _a = n.additionalNodes; _i < _a.length; _i++) {
141485 var node = _a[_i];
141486 spans.push(getNodeSpan(node));
141487 }
141488 }
141489 return spans;
141490 }
141491 function getModuleName(moduleDeclaration) {
141492 // We want to maintain quotation marks.
141493 if (ts.isAmbientModule(moduleDeclaration)) {

Callers 3

convertToTreeFunction · 0.85

Calls 2

getNodeSpanFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected