DiagnosticResults

class DiagnosticResults

The collection of all diagnostics for a single document.

Members defined in DiagnosticResults (6 members)

empty

R

Returns True if all diagnostic categories are empty

parser

R

Diagnostics emitted during parsing of the source files

sema

R

Diagnostics emitted during semantic resolution

validation

R

Diagnostics emitted during validation

__bool__

Returns True if there are no Error diagnostics

passed

Whether this result can be treated as passing

Attributes

property empty: bool

Returns True if 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 True if there are no Error diagnostics

passed(warnings_as_errors: bool = False) bool

Whether this result can be treated as passing

Using warnings_as_errors treats any warnings as fatal, in addition to errors.

Used in