-
-
Notifications
You must be signed in to change notification settings - Fork 806
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit merges two phases of analysis: typechecking (`vyper/semantics/analysis/local.py`) and annotation of ast nodes with types (`vyper/semantics/analysis/annotation.py`). This is both for consistency with how it is done for `analysis/module.py`, and also because it increases internal consistency, as some typechecking was being done in `annotation.py`. It is also easier to maintain this way, since bugfixes or modifications to typechecking need to only be done in one place, rather than two passes. Lastly, it also probably improves performance, because it collapses two passes into one (and calls `get_*_type_from_node` less often). This commit also fixes a bug with accessing the iterator when the iterator is an empty list literal.
- Loading branch information
Showing
8 changed files
with
420 additions
and
518 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 was deleted.
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
Oops, something went wrong.