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

Method pushRef

src/extraction/tree-sitter.ts:5216–5227  ·  view source on GitHub ↗
(nameNode: SyntaxNode | null | undefined)

Source from the content-addressed store, hash-verified

5214 if (!clause) return; // side-effect import (`import './x'`) — no bindings
5215
5216 const pushRef = (nameNode: SyntaxNode | null | undefined): void => {
5217 if (!nameNode) return;
5218 const name = getNodeText(nameNode, this.source);
5219 if (!name) return;
5220 this.unresolvedReferences.push({
5221 fromNodeId,
5222 referenceName: name,
5223 referenceKind: 'imports',
5224 line: nameNode.startPosition.row + 1,
5225 column: nameNode.startPosition.column,
5226 });
5227 };
5228
5229 for (const child of clause.namedChildren) {
5230 if (child.type === 'identifier') {

Callers

nothing calls this directly

Calls 2

getNodeTextFunction · 0.90
pushMethod · 0.80

Tested by

no test coverage detected