Commit 8b93af5
committed
Refactor diagnostic errors to use
This commit refactors the lexer/ast/resolution errors to be based on `miette`
and removes the custom error formatting implementation.
The relevant error types also no longer have a lifetime parameter and own the
data.
Test baselines have been updated to the new error format.
The `Span` type has been replaced with `SourceSpan` from `miette`.miette.1 parent 787bdd4 commit 8b93af5
137 files changed
Lines changed: 2822 additions & 2727 deletions
File tree
- crates/wac-parser
- src
- ast
- resolution
- tests
- parser
- fail
- resolution/fail
- support
- src
- commands
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
0 commit comments