MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / unwrapVariableExpression

Function unwrapVariableExpression

src/extraction/languages/nix.ts:5–8  ·  view source on GitHub ↗
(node: SyntaxNode)

Source from the content-addressed store, hash-verified

3import type { ExtractorContext, LanguageExtractor } from '../tree-sitter-types';
4
5function unwrapVariableExpression(node: SyntaxNode): SyntaxNode {
6 if (node.type !== 'variable_expression') return node;
7 return node.namedChild(0) ?? node;
8}
9
10function getCalleeName(node: SyntaxNode, source: string): string | null {
11 let current = node;

Callers 2

getCalleeNameFunction · 0.85
getDirectCalleeNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected