-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require root packages when defining nested packages in wit (#1700)
* first bit * round trip mixed * multi file packages * multi file deps * package group root isnt optional * select_world takes single package id * update embed behavior * handle out-dir * clearer names and tidy * test modifications * tests * Convert tests to `Resolve::push_str` * Handle some review feedback * Remove `&mut` argument, make it owned * Remove new `visit_group` * Refactor `sort_unresolved_groups` and use it in `push_dir` * Fix signature of `push_dir` * Better error when a package is defined twice * Refactor parsing nested files * Use a normal AST node for nested packages * Remove some complexity around nested/inlined/etc * Remove some resolver complexity * Disallow nested-in-nested * Go back to asserting new packages Merging doesn't work in this location so don't try to handle it. * Fix parsing revealed in merging with main * Update interface to printing to explicitly have a main package * Fix fuzzer build * Update fuzzing to use nested package statements Test this new feature in the roundtrip fuzzer. --------- Co-authored-by: Alex Crichton <[email protected]>
- Loading branch information
1 parent
36edf4a
commit e9c71d9
Showing
96 changed files
with
1,564 additions
and
924 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.