Skip to main content

Crate dmc_diagnostic

Crate dmc_diagnostic 

Source
Expand description

User-facing walkthrough: ../../dmc-docs/dmc-diagnostic/ Run cargo doc --open -p dmc-diagnostic for the inline rustdoc. Unified diagnostic codes for the dmc pipeline.

Every layer (lexer, parser, transform, codegen) emits into one shared DiagnosticEngine<Code>. Per-layer variants are gated behind cargo features so a crate that only needs lexer codes can opt out of the rest.

§Feature flags

  • lexer - E*** lexer-emitted variants
  • parser - P*** / PW*** parser-emitted variants
  • transform - T*** / TW*** transform-emitted variants
  • codegen - G*** / GW*** codegen-emitted variants

A normal full build (e.g. via dmc-core) enables all features.

Modules§

metadata

Enums§

Code
Stable, machine-readable diagnostic identifiers spanning the whole pipeline. Codes use disjoint string namespaces per layer:

Type Aliases§

DiagResult
Canonical fallible-return type across the dmc pipeline.