-
Notifications
You must be signed in to change notification settings - Fork 140
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
Add equal method for cadence external types #2203
Conversation
// constructors | ||
|
||
if t.IsConstructor != otherFunction.IsConstructor { | ||
return false | ||
} | ||
|
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.
A code cleanup; This check is already done above
0bd76f9
to
ea8303f
Compare
Codecov Report
@@ Coverage Diff @@
## master #2203 +/- ##
==========================================
+ Coverage 77.58% 77.68% +0.09%
==========================================
Files 309 309
Lines 65409 65663 +254
==========================================
+ Hits 50750 51011 +261
+ Misses 12880 12874 -6
+ Partials 1779 1778 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
ab90cd0
to
6feb7b9
Compare
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit ed1c493 Collapsed results for better readability
|
6feb7b9
to
3a9ece4
Compare
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.
Looks good so far 👍
Oh, this should be ready to review. Work here is done, kept it as a draft until the CI passes, and then forgot to change the state. |
Closes #2199
Description
Adds
Type.Equal(Type) bool
method for cadence external types, sinceType.ID()
cannot be used to compare some types (e.g: restricted types). This newly addedEqual()
method compares go structs recursively and hence doesn't do allocations (except for the restricted types).master
branchFiles changed
in the Github PR explorer