(dotted: SyntaxNode)
| 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, { |
nothing calls this directly
no test coverage detected