DiagnosticResults
- class DiagnosticResults
The collection of all diagnostics for a single document.
Members defined in
DiagnosticResults(6 members)
RReturns
Trueif all diagnostic categories are empty
RDiagnostics emitted during parsing of the source files
RDiagnostics emitted during semantic resolution
RDiagnostics emitted during validation
Returns
Trueif there are noErrordiagnostics
Whether this result can be treated as passing
Attributes
- property empty: bool
Returns
Trueif all diagnostic categories are empty
- property parser: syside.ContainerView[syside.Diagnostic]
Diagnostics emitted during parsing of the source files
- property sema: syside.ContainerView[syside.Diagnostic]
Diagnostics emitted during semantic resolution
- property validation: syside.ContainerView[syside.Diagnostic]
Diagnostics emitted during validation
Methods
- __bool__() bool
Returns
Trueif there are noErrordiagnostics
- passed(warnings_as_errors: bool = False) bool
Whether this result can be treated as passing
Using
warnings_as_errorstreats any warnings as fatal, in addition to errors.