共用方式為


Diagnostic class

診斷類別

建構函式

Diagnostic(Range, string, DiagnosticSeverity, string, string)

建立 Diagnostic 類別的新實例。

屬性

code
message
range
severity
source

方法

toString()

傳回字串,表示目前 Diagnostic 物件。

建構函式詳細資料

Diagnostic(Range, string, DiagnosticSeverity, string, string)

建立 Diagnostic 類別的新實例。

new Diagnostic(range: Range, message: string, severity: DiagnosticSeverity, source?: string, code?: string)

參數

range
Range

發生錯誤或警告的範圍。

message

string

錯誤或警告的錯誤訊息。

severity
DiagnosticSeverity

錯誤或警告的嚴重性。

source

string

發生錯誤或警告的來源。

code

string

錯誤或警告的程式代碼或識別碼。

屬性詳細資料

code

code: string

屬性值

string

message

message: string

屬性值

string

range

range: Range

屬性值

severity

severity: DiagnosticSeverity

屬性值

source

source: string

屬性值

string

方法詳細資料

toString()

傳回字串,表示目前 Diagnostic 物件。

function toString(): string

傳回

string

字串,表示目前 診斷