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

Function getNodeSpan

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

Source from the content-addressed store, hash-verified

141515 return !member.name || member.name.kind === 162 /* SyntaxKind.ComputedPropertyName */;
141516 }
141517 function getNodeSpan(node) {
141518 return node.kind === 305 /* SyntaxKind.SourceFile */ ? ts.createTextSpanFromRange(node) : ts.createTextSpanFromNode(node, curSourceFile);
141519 }
141520 function getModifiers(node) {
141521 if (node.parent && node.parent.kind === 254 /* SyntaxKind.VariableDeclaration */) {
141522 node = node.parent;

Callers 2

convertToTreeFunction · 0.85
getSpansFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…