DiagnosticResults

class DiagnosticResults

Description

The collection of all diagnostics for a single document.

Inheritance:

Members defined in DiagnosticResults (8 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

source

RW

Source of all diagnostics contained by this.

validation

R

Diagnostics emitted during validation

__bool__

Returns True if there are no Error diagnostics

__init__

passed

Whether this result can be treated as passing

Attributes

property empty: bool

Returns True if all diagnostic categories are empty

property parser: syside.MutableBuffer[syside.Diagnostic]

Diagnostics emitted during parsing of the source files

property sema: syside.MutableBuffer[syside.Diagnostic]

Diagnostics emitted during semantic resolution

property source: syside.Url

Source of all diagnostics contained by this.

property validation: syside.MutableBuffer[syside.Diagnostic]

Diagnostics emitted during validation

Methods

__bool__() → bool

Returns True if there are no Error diagnostics

__init__() → None
__init__(arg: syside.Url, /) → None
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 by