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

Function getTextOfDiagnostic

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

Source from the content-addressed store, hash-verified

865});
866
867function 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}

Callers 1

diagnostic_spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected