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

Function getTextOfDiagnostic

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

Source from the content-addressed store, hash-verified

780});
781
782function 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}

Callers 1

diagnostic_spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected