Skip to content

Diagnostic

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

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:319


optional fileName?: string

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

The path of the source file where this diagnostic occurred.


level: DiagnosticLevel

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

The level for this diagnostic.


lineNumber: number

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

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


message: string

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

Message for this diagnostic.


© 2026 SixtyFPS GmbH