MCPcopy Create free account
hub / github.com/angular/angular / getTextOfDiagnostic

Function getTextOfDiagnostic

packages/language-service/test/diagnostic_spec.ts:806–811  ·  view source on GitHub ↗
(diag: ts.Diagnostic)

Source from the content-addressed store, hash-verified

804});
805
806function 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}

Callers 1

diagnostic_spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected