Skip to main content
Module

x/ts_morph/ts_morph.d.ts>Diagnostic

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class Diagnostic
import { Diagnostic } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";

Diagnostic.

Constructors

new
protected
Diagnostic()

Type Parameters

optional
TCompilerObject extends ts.Diagnostic = ts.Diagnostic

Properties

readonly
compilerObject: TCompilerObject

Gets the underlying compiler diagnostic.

Methods

Gets the diagnostic category.

getCode(): number

Gets the code of the diagnostic.

getLength(): number | undefined

Gets the length.

getLineNumber(): number | undefined

Gets the line number.

Gets the message text.

getSource(): string | undefined

Gets the source.

getSourceFile(): SourceFile | undefined

Gets the source file.

getStart(): number | undefined

Gets the start.