Struct Diagnostic๏ƒ

Struct Documentation๏ƒ

struct slint::interpreter::Diagnostic๏ƒ

Diagnostic describes the aspects of either a warning or an error, along with its location and a description. Diagnostics are typically returned by slint::interpreter::ComponentCompiler::diagnostics() in a vector.

Public Members

SharedString message๏ƒ

The message describing the warning or error.

SharedString source_file๏ƒ

The path to the source file where the warning or error is located.

uintptr_t line๏ƒ

The line within the source file. Line numbers start at 1.

uintptr_t column๏ƒ

The column within the source file. Column numbers start at 1.

DiagnosticLevel level๏ƒ

The level of the diagnostic, such as a warning or an error.