(file, from, name, kind = 'calls', written = name.replace(/^\{[^}]*\}\./, ''))
| 57 | return resolver; |
| 58 | }; |
| 59 | const ref: Project['ref'] = (file, from, name, kind = 'calls', written = name.replace(/^\{[^}]*\}\./, '')) => { |
| 60 | const lines = files[file]!.split('\n'); |
| 61 | const line = lines.findIndex((text) => text.includes(written)); |
| 62 | const node = cg.getNodesInFile(file).find((n) => n.qualifiedName === from || n.name === from)!; |
| 63 | return { fromNodeId: node.id, referenceName: name, referenceKind: kind, line: line + 1, column: lines[line]!.indexOf(written), filePath: file, language }; |
| 64 | }; |
| 65 | return { |
| 66 | root, |
| 67 | cg, |
nothing calls this directly
no test coverage detected