-
Notifications
You must be signed in to change notification settings - Fork 142
Separate type equality checker from contract update validator #1787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 3fd0b3e Collapsed results for better readability
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the code was literally just moved to the new file? Or where there any additional changes needed?
Yes, just moved (and changed the receiver). No changes in the logic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Description
This PR separates the AST type equality checking logic from the contract update validator, so that type equality checking can be re-used. No change is done to the checker's logic.
This is needed for moving the duplicate switch-case checking to the linter repo. Because the switch-case checking currently depends on the type-checker to do the type equality check. But once it is moved out from the type-checker, it no longer can rely on the checker. Instead, the same 'type equality check' can be performed using the AST only, similar to how it is done in the contract update validator.
master
branchFiles changed
in the Github PR explorer