(node: ts.Node)
| 149 | } |
| 150 | |
| 151 | export function nodeDebugInfo(node: ts.Node): string { |
| 152 | const sf = getSourceFile(node); |
| 153 | const {line, character} = ts.getLineAndCharacterOfPosition(sf, node.pos); |
| 154 | return `[${sf.fileName}: ${ts.SyntaxKind[node.kind]} @ ${line}:${character}]`; |
| 155 | } |
| 156 | |
| 157 | /** |
| 158 | * Resolve the specified `moduleName` using the given `compilerOptions` and `compilerHost`. |
no test coverage detected