(diag: ts.Diagnostic)
| 780 | }); |
| 781 | |
| 782 | function getTextOfDiagnostic(diag: ts.Diagnostic): string { |
| 783 | expect(diag.file).not.toBeUndefined(); |
| 784 | expect(diag.start).not.toBeUndefined(); |
| 785 | expect(diag.length).not.toBeUndefined(); |
| 786 | return diag.file!.text.substring(diag.start!, diag.start! + diag.length!); |
| 787 | } |