Skip to content

Diagnostic

Defined in: api/node/rust-module.d.cts:311

This structure represent a diagnostic emitted while compiling .slint code.

It is basically a message, a level (warning or error), attached to a position in the code.

columnNumber: number

Defined in: api/node/rust-module.d.cts:318


optional fileName?: string

Defined in: api/node/rust-module.d.cts:320

The path of the source file where this diagnostic occurred.


level: DiagnosticLevel

Defined in: api/node/rust-module.d.cts:313

The level for this diagnostic.


lineNumber: number

Defined in: api/node/rust-module.d.cts:317

The line number in the .slint source file. The line number starts with 1.


message: string

Defined in: api/node/rust-module.d.cts:315

Message for this diagnostic.


© 2026 SixtyFPS GmbH