Skip to content

Diagnostic

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

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


optional fileName?: string

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

The path of the source file where this diagnostic occurred.


level: DiagnosticLevel

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

The level for this diagnostic.


lineNumber: number

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

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


message: string

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

Message for this diagnostic.


© 2026 SixtyFPS GmbH