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

Method pushRef

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

Source from the content-addressed store, hash-verified

5041 if (!clause) return; // side-effect import (`import './x'`) — no bindings
5042
5043 const pushRef = (nameNode: SyntaxNode | null | undefined): void => {
5044 if (!nameNode) return;
5045 const name = getNodeText(nameNode, this.source);
5046 if (!name) return;
5047 this.unresolvedReferences.push({
5048 fromNodeId,
5049 referenceName: name,
5050 referenceKind: 'imports',
5051 line: nameNode.startPosition.row + 1,
5052 column: nameNode.startPosition.column,
5053 });
5054 };
5055
5056 for (const child of clause.namedChildren) {
5057 if (child.type === 'identifier') {

Callers

nothing calls this directly

Calls 2

getNodeTextFunction · 0.90
pushMethod · 0.80

Tested by

no test coverage detected