-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split DSL model types into multiple modules (#680)
Started working on migrating DSL v0 to v2, and wanted to add common helpers/utilities to the model. But faced the limitation is that the existing `codegen_language_internal_macros` requires defining all model types in a single module, to allow generating a parallel `Spanned<>` type tree. We no longer need to do that, since we are not parsing the DSL using `serde`. This PR refactors `codegen_language_internal_macros` to allow splitting the model types, at the expense of maintaining an allow-list of type names in `internal_macros/src/derive/spanned.rs`. I doubt we will be editing this list frequently, so it I think it should be fine.
- Loading branch information
1 parent
925548b
commit b7a0320
Showing
51 changed files
with
1,040 additions
and
987 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.