MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / getSymbolRangeNode

Function getSymbolRangeNode

src/utils/tree-sitter.ts:272–278  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

270}
271
272function getSymbolRangeNode(node: Node): Node {
273 const parent = node.parent;
274 if (parent?.type === 'export_statement') {
275 return parent;
276 }
277 return node;
278}
279
280function buildSymbol(node: Node, content: string): TreeSitterSymbol {
281 const rangeNode = getSymbolRangeNode(node);

Callers 1

buildSymbolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected