Sign in

    alicedhaha/moonrcinspect/src/diagnostic does not have a README file

    Diagnostic

    pub(all) struct Diagnostic {
    code : String
    severity : Severity
    message : String
    suggestion : String?
    span : SourceSpan?
    net : String?
    } derive(Eq,
    Debug
    )

    Stable, machine-readable diagnostic emitted by parsing or auditing.

    Diagnostic::error

    fn Diagnostic::error(code : String, message : String, span? : SourceSpan, suggestion? : String, net? : String) -> Diagnostic

    Diagnostic::info

    fn Diagnostic::info(code : String, message : String, span? : SourceSpan, suggestion? : String, net? : String) -> Diagnostic

    Diagnostic::warning

    fn Diagnostic::warning(code : String, message : String, span? : SourceSpan, suggestion? : String, net? : String) -> Diagnostic

    Severity

    pub(all) enum Severity {
    Info
    Warning
    Error
    } derive(Eq,
    Debug
    )

    Severity::label

    fn Severity::label(self : Severity) -> String

    SourcePos

    pub(all) struct SourcePos {
    offset : Int
    line : Int
    column : Int
    } derive(Eq,
    Debug
    )

    Source position using one-based line and column numbers.

    SourceSpan

    pub(all) struct SourceSpan {
    file : String
    start : SourcePos
    end : SourcePos
    } derive(Eq,
    Debug
    )

    Half-open source range [start, end).

    SourceSpan::synthetic

    fn SourceSpan::synthetic(file : String) -> SourceSpan

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io