Diagnostics
- class Diagnostics
Description
All model diagnostics.
Members defined in
Diagnostics(12 members)RIterate over all diagnostics.
RIterate over all diagnostics with error severity.
RIterate over all diagnostics with hint severity.
RIterate over all diagnostics with information severity.
RIterate over all parser diagnostics.
RWPer-source diagnostics
RIterate over all semantic stage diagnostics.
RIterate over all validation stage diagnostics.
RIterate over all diagnostics with warning severity.
Iterate over all diagnostics with the given severity.
Checks whether any of the diagnostics are errors.
Format diagnostics contained here to string.
Attributes
- property all: Generator[syside.SourceDiagnostic, None, None]
Iterate over all diagnostics.
- property errors: Generator[syside.SourceDiagnostic, None, None]
Iterate over all diagnostics with error severity.
- property hints: Generator[syside.SourceDiagnostic, None, None]
Iterate over all diagnostics with hint severity.
- property infos: Generator[syside.SourceDiagnostic, None, None]
Iterate over all diagnostics with information severity.
- property parser: Generator[syside.SourceDiagnostic, None, None]
Iterate over all parser diagnostics.
- results: list[syside.DiagnosticResults] = None
Per-source diagnostics
- property sema: Generator[syside.SourceDiagnostic, None, None]
Iterate over all semantic stage diagnostics.
- property validation: Generator[syside.SourceDiagnostic, None, None]
Iterate over all validation stage diagnostics.
- property warnings: Generator[syside.SourceDiagnostic, None, None]
Iterate over all diagnostics with warning severity.
Methods
- all_with_severity(severity: syside.DiagnosticSeverity, include_higher_severity: bool = False) Generator[syside.SourceDiagnostic, None, None]
Iterate over all diagnostics with the given severity.
- Parameters:
severity – The severity of diagnostics to iterate over.
include_higher_severity – Whether to include diagnostics that are of higher severity than the given one.
- contains_errors(warnings_as_errors: bool = False) bool
Checks whether any of the diagnostics are errors.
- Parameters:
warnings_as_errors – Treat warnings as errors.
- format(predicate: Callable[[syside.Url, syside.Diagnostic], bool] | None = None) str
Format diagnostics contained here to string.
Optional
predicateallows filtering diagnostics included in the output.