Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ts_morph/mod.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@17.0.0/mod.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.