(node: ts.Node)
| 101 | : nearestBoundingCallExpressionTs5(node, position) |
| 102 | |
| 103 | const describeType = (node: ts.Node): { name: string; id: string } => { |
| 104 | if (isTs7) { |
| 105 | const { type, string } = stringifyTypeAtLocation(node as never) |
| 106 | return { name: string, id: `${type.id}` } |
| 107 | } |
| 108 | const type = getStringifiableType(node) |
| 109 | const name = type.toString() |
| 110 | return { |
| 111 | name, |
| 112 | id: `${(type as { id?: number }).id ?? name.substring(0, 20)}` |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | interface AnalysisContext { |
| 117 | traceDir: string |
no test coverage detected