Skip to main content

Crate draxl_validate

Crate draxl_validate 

Source
Expand description

Structural validation for Draxl source files.

Validation runs after parsing and checks the stronger invariants that make canonical printing, lowering, and patch application predictable:

  • ids must be unique
  • ranked slots must provide ranks
  • anchors must refer to valid targets
  • detached comments and docs must resolve deterministically

Structs§

ValidationError
Validation error for Draxl bootstrap files.

Functions§

validate_file
Runs structural validation for a parsed Draxl file.