-
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.
Cleanup the CodeOracle by removing CodeTypeDispatch entirely (#1588)
This fixes a source of significant confusion in the code-oracle support. * Every `CodeType` method takes a `CodeOracle` param - which is odd because the `CodeType` came from the oracle - it doesn't need the oracle to work. * There's a blanket implementation of `CodeType` made available for `Type` - so not only do we now have a `CodeType` that didn't come from an Oracle, so clearly can't know the language semantics the Oracle abstracts away, there's now *two* implementations of `CodeType` for each type, with each behaving differently. This cleans all that up: * CodeType is only supplied by Oracles - there's no blanket implementation for Type. * Therefore `CodeType` no longer takes Oracle's as args. * `CodeTypeDispatch` has been replaced by an `AsType` trait, which is implemented by Type itself and all the structs used by the codegen.
- Loading branch information
Showing
59 changed files
with
468 additions
and
514 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
Oops, something went wrong.