Commit 84ee6e9
authored
[v2] refactor language analysis into separate passes (#1457)
This PR splits the language v2 definition analysis into independent
passes, rather than the monolith that existed in v1.
It also fixes a bug in the v2 test runner, where it was picking up the
v1 old tests, rather than running its own.
> NOTE: this is a set of PRs to add the lexer v2, to make reviewing
smaller chunks easier:
>
> 1. #1457
> 2. #1458
> 3. #1459
> 4. #1460
> 5. #1461
> 6. #14621 parent 0bcf8f0 commit 84ee6e9
File tree
53 files changed
+434
-177
lines changed- crates
- language-v2
- definition/src/compiler
- analysis
- emitter
- utils
- tests
- src/fail
- p0_parsing
- duplicate_map_key
- duplicate_set_entry
- empty_string
- missing_field
- unrecognized_field
- unrecognized_variant
- p1_definitions
- duplicate_expression_name
- duplicate_item_name
- duplicate_variant_name
- operator_mismatch
- p2_version_specifiers
- unordered_version_pair
- version_not_found
- p3_references
- disabled_too_late
- enabled_too_early
- invalid_filter
- invalid_version
- unknown_reference
- p4_unreachabe_items/unreachable
- p5_unused_versions/unused_version
- language/tests/src/fail
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
53 files changed
+434
-177
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 19 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 12 | + | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| |||
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
45 | | - | |
46 | | - | |
47 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
48 | 56 | | |
49 | 57 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 58 | | |
67 | 59 | | |
68 | 60 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
0 commit comments