class Diagnosticimport { Diagnostic } from "https://dotland.deno.dev/x/ts_morph@20.0.0/mod.ts"; Diagnostic. ConstructorsnewprotectedDiagnostic()Type ParametersoptionalTCompilerObject extends ts.Diagnostic = ts.DiagnosticPropertiesreadonlycompilerObject: TCompilerObjectGets the underlying compiler diagnostic. MethodsgetCategory(): DiagnosticCategoryGets the diagnostic category. getCode(): numberGets the code of the diagnostic. getLength(): number | undefinedGets the length. getLineNumber(): number | undefinedGets the line number. getMessageText(): string | DiagnosticMessageChainGets the message text. getSource(): string | undefinedGets the source. getSourceFile(): SourceFile | undefinedGets the source file. getStart(): number | undefinedGets the start.