finos/morphir-execution/diagnostics does not have a README file

    DiagnosticError

    pub(all) suberror DiagnosticError {
    InvalidDiagnostic(String)
    } derive(
    Debug
    )

    Location

    pub(all) struct Location {
    owner : String
    original : String
    allocated : String
    source : Span?
    } derive(Eq,
    Debug
    )

    Authored spelling and final allocation stay separate in each related location.

    Location::equal

    fn Location::equal(Location, Location) -> Bool

    Location::not_equal

    fn Location::not_equal(x : Location, y : Location) -> Bool

    Location::to_repr

    Span

    pub(all) struct Span {
    start_line : Int
    start_column : Int
    end_line : Int
    end_column : Int
    } derive(Eq,
    Debug
    )

    Parser coordinates, interpreted according to the warning's producer.

    Span::equal

    fn Span::equal(Span, Span) -> Bool

    Span::not_equal

    fn Span::not_equal(x : Span, y : Span) -> Bool

    Span::to_repr

    Warning

    pub(all) struct Warning {
    code : String
    stage : String
    message : String
    locations : Array[Location]
    fix : String
    } derive(Eq,
    Debug
    )

    A recoverable diagnostic independent of optional observation sinks.

    Warning::display

    fn Warning::display(self : Warning) -> String

    Warning::equal

    fn Warning::equal(Warning, Warning) -> Bool

    Warning::key

    fn Warning::key(self : Warning) -> String

    Length prefixes prevent separator-bearing owner strings from aliasing keys.

    Warning::not_equal

    fn Warning::not_equal(x : Warning, y : Warning) -> Bool

    Warning::to_ion

    Warning::to_repr

    warning_from_ion

    fn warning_from_ion(value :
    Ion
    ) -> Warning? raise DiagnosticError

    Unknown provenance is preserved by the caller and is not a warning.

    Source Files