forked from FuelLabs/sway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the global
DeclarationEngine
(FuelLabs#3411)
This PR removes the global `DeclarationEngine` in favor of keeping a local copy in the `TypeCheckContext`. This PR is pretty big... there aren't any additional things added other than what I """ had to add """ in order to complete this task. At a high level: - This PR introduces the `Engines` struct, which has two fields `type_engine: &TypeEngine` and `declaration_engine: &DeclarationEngine`. - For most/many of the traits introduced in FuelLabs#3353, this PR changes these traits to take a `Engines` instead of a `&TypeEngine` Closes FuelLabs#2063 Co-authored-by: emilyaherbert <[email protected]>
- Loading branch information
1 parent
cdfc56c
commit 978de4d
Showing
111 changed files
with
4,018 additions
and
3,343 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
Oops, something went wrong.