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

Function isFunctionVariableDeclarator

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

Source from the content-addressed store, hash-verified

238}
239
240function isFunctionVariableDeclarator(node: Node): boolean {
241 if (node.type !== 'variable_declarator') {
242 return false;
243 }
244
245 const valueNode = node.childForFieldName('value');
246 if (!valueNode) {
247 return false;
248 }
249
250 return valueNode.type === 'arrow_function' || valueNode.type === 'function_expression';
251}
252
253function shouldSkipNode(language: string, node: Node): boolean {
254 if (node.type === 'variable_declarator') {

Callers 1

shouldSkipNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected