-
Notifications
You must be signed in to change notification settings - Fork 137
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 v0.42 parser package under old_parser #3039
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 5ce1f36 Collapsed results for better readability
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3039 +/- ##
==========================================
+ Coverage 80.41% 80.55% +0.13%
==========================================
Files 363 379 +16
Lines 85368 90999 +5631
==========================================
+ Hits 68651 73306 +4655
- Misses 14273 15062 +789
- Partials 2444 2631 +187
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Were there any changes you had to do for the old parser to make it work?
I guess it only needed the AST changes that you commented above? (thanks for annotating them, makes it a lot easier to review!)
Only a few minor things (changing locations where we created a |
Related to Supun's question above: Could you please post a diff between the code of the old parser in the v0.42 branch and the code that is being added here? That would help with being able ti review the changes that were made to it |
Yep, https://gist.github.com/dsainati1/a076fc307ffdca3202aa951878a5133d has the diff between the fixed code and the original. |
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.
LGTM
Work towards #2947
In order to have an update checker for v0.42 -> v1.0 contract upgrades, we need to be able to parse both versions of Cadence with the same binary. This ports the parser from v0.42 to v1.0 temporarily.
Manual changes to the parser to make the code compile are here: https://gist.github.com/dsainati1/a076fc307ffdca3202aa951878a5133d
master
branchFiles changed
in the Github PR explorer