(diag: ts.Diagnostic)
| 804 | }); |
| 805 | |
| 806 | function getTextOfDiagnostic(diag: ts.Diagnostic): string { |
| 807 | expect(diag.file).not.toBeUndefined(); |
| 808 | expect(diag.start).not.toBeUndefined(); |
| 809 | expect(diag.length).not.toBeUndefined(); |
| 810 | return diag.file!.text.substring(diag.start!, diag.start! + diag.length!); |
| 811 | } |