File tree Expand file tree Collapse file tree 6 files changed +7
-2
lines changed
crates/language-v2/definition/src/compiler/analysis Expand file tree Collapse file tree 6 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11mod p1_definitions;
22mod p2_version_specifiers;
33mod p3_references;
4- mod p4_unreachabe_items ;
4+ mod p4_unreachable_items ;
55mod p5_unused_versions;
66
77use std:: rc:: Rc ;
@@ -41,10 +41,15 @@ impl Analysis {
4141 } ;
4242
4343 for pass in & [
44+ // This pass creates `ItemMetadata` definitions for all language `Item` entries, and verifies they are correct/unique.
4445 p1_definitions:: run,
46+ // This pass checks all version ranges in the grammar for correctness.
4547 p2_version_specifiers:: run,
48+ // This pass collects all references between items, making sure they conform to their enabled version ranges.
4649 p3_references:: run,
47- p4_unreachabe_items:: run,
50+ // This pass makes sure all items are reachable from the grammar root.
51+ p4_unreachable_items:: run,
52+ // This pass makes sure that all items are used in all the versions they are enabled in.
4853 p5_unused_versions:: run,
4954 ] {
5055 // Early return if there are already errors, to prevent producing noise from later analysis:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments