(id: string, name: string, kind: Node['kind'], filePath: string, startLine: number)
| 25 | import { Node, UnresolvedReference } from '../src/types'; |
| 26 | |
| 27 | function makeNode(id: string, name: string, kind: Node['kind'], filePath: string, startLine: number): Node { |
| 28 | return { |
| 29 | id, |
| 30 | kind, |
| 31 | name, |
| 32 | qualifiedName: name, |
| 33 | filePath, |
| 34 | language: 'typescript', |
| 35 | startLine, |
| 36 | endLine: startLine + 2, |
| 37 | startColumn: 0, |
| 38 | endColumn: 0, |
| 39 | updatedAt: Date.now(), |
| 40 | }; |
| 41 | } |
| 42 | |
| 43 | function makeRef(fromNodeId: string, name: string, line: number): UnresolvedReference { |
| 44 | return { |
no outgoing calls
no test coverage detected