oxeon-diagnostics
Source spans and diagnostics, shared by every stage of the Oxeon compiler.
A Diagnostic has a severity, a message, labeled spans, notes, and optional fixes (text edits that editors offer as quick fixes). Diagnostic::render prints it with the source lines it points at, in the style of rustc:
error: mismatched types: expected `u32`, found `{float}`
--> mod.ox:3:18
|
3 | let x: u32 = 1.5;
| ^^^
Diagnostic::render_plain gives a one-line summary instead.
This is an internal crate of the Oxeon compiler, and its API changes between releases without notice. Games should depend on oxeon instead.
Part of Oxeon, a Rust-like language for modding Bevy games. Licensed under MIT or Apache-2.0, at your option.