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

Function shouldSkipNode

src/utils/tree-sitter.ts:253–270  ·  view source on GitHub ↗
(language: string, node: Node)

Source from the content-addressed store, hash-verified

251}
252
253function shouldSkipNode(language: string, node: Node): boolean {
254 if (node.type === 'variable_declarator') {
255 return (
256 !['javascript', 'javascriptreact', 'typescript', 'typescriptreact'].includes(language) ||
257 !isFunctionVariableDeclarator(node)
258 );
259 }
260
261 if (node.type === 'lexical_declaration') {
262 return true;
263 }
264
265 if (node.type === 'type_declaration') {
266 return true;
267 }
268
269 return false;
270}
271
272function getSymbolRangeNode(node: Node): Node {
273 const parent = node.parent;

Callers 1

extractTreeSitterSymbolsFunction · 0.85

Calls 1

Tested by

no test coverage detected