Foundry.Diagnostic¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Foundry.Diagnostic(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents a single diagnostic.
- compare(right)¶
- Parameters:
right (
Foundry.Diagnostic) –- Return type:
- dup_markup()¶
- Return type:
Get the markup for the diagnostic, if any.
- dup_message()¶
-
Gets the message for the diagnostic, if any.
- dup_path()¶
-
Gets the path for the diagnostic, if any.
- dup_rule_id()¶
-
Gets the [property`Foundry`.Diagnostic:rule-id] property.
New in version 1.1.
- equal(right)¶
- Parameters:
right (
Foundry.Diagnostic) –- Return type:
- get_line()¶
- Returns:
A line number starting from 1, or 0 to indicate unset.
- Return type:
Gets the line number of the diagnostic.
A value of 0 indicates that the line is unset.
- get_line_offset()¶
- Returns:
A character offset within the line starting from 1, or 0 to indicate unset.
- Return type:
Gets the offset within the line of the diagnostic.
A value of 0 indicates that the line offset is unset.
- get_severity()¶
- Return type:
- list_fixes()¶
- Returns:
a [iface`Gio`.ListModel] of [class`Foundry`.DiagnosticFix]
- Return type:
Gets the available [class`Foundry`.DiagnosticFix] for the diagnostic.
New in version 1.1.
- list_ranges()¶
- Returns:
a
Gio.ListModelorNoneif there are no ranges associated with this diagnostic.- Return type:
Gets the available ranges as a
Gio.ListModelofFoundry.DiagnosticRange.
Property Details¶
- Foundry.Diagnostic.props.markup¶
- Name:
markup- Type:
- Default Value:
- Flags:
- Foundry.Diagnostic.props.ranges¶
- Name:
ranges- Type:
- Default Value:
- Flags:
- Foundry.Diagnostic.props.rule_id¶
-
The “rule-id” property is an identifier to the type of rule for the diagnostic.
Not all diagnostics may have this, but it is generally useful to provide from diagnostic providers where a known rule is applied. For example, many compilers have a rule identifier which may be silenced by matching the value of this property.
New in version 1.1.
- Foundry.Diagnostic.props.severity¶
- Name:
severity- Type:
- Default Value:
- Flags: