(diag: ts.Diagnostic)
| 865 | }); |
| 866 | |
| 867 | function getTextOfDiagnostic(diag: ts.Diagnostic): string { |
| 868 | expect(diag.file).not.toBeUndefined(); |
| 869 | expect(diag.start).not.toBeUndefined(); |
| 870 | expect(diag.length).not.toBeUndefined(); |
| 871 | return diag.file!.text.substring(diag.start!, diag.start! + diag.length!); |
| 872 | } |