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

Method pushModuleRef

src/extraction/tree-sitter.ts:5087–5096  ·  view source on GitHub ↗
(dotted: SyntaxNode)

Source from the content-addressed store, hash-verified

5085 // Go) so the resolver maps the dotted path to its file. Stdlib/external
5086 // modules naturally don't resolve (no `os.py` file node in the repo).
5087 const pushModuleRef = (dotted: SyntaxNode): void => {
5088 if (!importParentId) return;
5089 this.unresolvedReferences.push({
5090 fromNodeId: importParentId,
5091 referenceName: getNodeText(dotted, this.source),
5092 referenceKind: 'imports',
5093 line: dotted.startPosition.row + 1,
5094 column: dotted.startPosition.column,
5095 });
5096 };
5097 for (let i = 0; i < node.namedChildCount; i++) {
5098 const child = node.namedChild(i);
5099 if (child?.type === 'dotted_name') {

Callers

nothing calls this directly

Calls 2

getNodeTextFunction · 0.90
pushMethod · 0.80

Tested by

no test coverage detected