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

Method pushModuleRef

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

getNodeTextFunction · 0.90
pushMethod · 0.80

Tested by

no test coverage detected