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

Method pushModuleRef

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

Source from the content-addressed store, hash-verified

4912 // Go) so the resolver maps the dotted path to its file. Stdlib/external
4913 // modules naturally don't resolve (no `os.py` file node in the repo).
4914 const pushModuleRef = (dotted: SyntaxNode): void => {
4915 if (!importParentId) return;
4916 this.unresolvedReferences.push({
4917 fromNodeId: importParentId,
4918 referenceName: getNodeText(dotted, this.source),
4919 referenceKind: 'imports',
4920 line: dotted.startPosition.row + 1,
4921 column: dotted.startPosition.column,
4922 });
4923 };
4924 for (let i = 0; i < node.namedChildCount; i++) {
4925 const child = node.namedChild(i);
4926 if (child?.type === 'dotted_name') {

Callers

nothing calls this directly

Calls 2

getNodeTextFunction · 0.90
pushMethod · 0.80

Tested by

no test coverage detected