Skip to content

Diagnostic

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

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


optional fileName?: string

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

The path of the source file where this diagnostic occurred.


level: DiagnosticLevel

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

The level for this diagnostic.


lineNumber: number

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

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


message: string

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

Message for this diagnostic.


© 2026 SixtyFPS GmbH