forked from vyperlang/vyper
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor:
ExprVisitor
type validation (vyperlang#3739)
this commit simplifies the `ExprVisitor` implementation by moving calls to `validate_expected_type` into the generic `visit()` function, instead of having ad-hoc calls to validate_expected_type in the specialized visitor functions. in doing so, some inconsistencies in the generic implementation were found and fixed: - fix validate_expected_type for tuples - introduce a void type for dealing with function calls/statements which don't return anything. --------- Co-authored-by: Charles Cooper <[email protected]>
- Loading branch information
1 parent
01ec9a1
commit e20885e
Showing
5 changed files
with
74 additions
and
71 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