-
Notifications
You must be signed in to change notification settings - Fork 139
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
Parsing for attachments and related operations #1931
Conversation
Codecov Report
@@ Coverage Diff @@
## feature/attachments #1931 +/- ##
=======================================================
- Coverage 77.94% 77.92% -0.02%
=======================================================
Files 307 308 +1
Lines 64026 64362 +336
=======================================================
+ Hits 49902 50156 +254
- Misses 12331 12401 +70
- Partials 1793 1805 +12
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. |
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:feature/attachments commit f839871 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.
LGTM
Co-authored-by: Naomi Liu <57917002+dreamsmasher@users.noreply.github.com>
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!
Just one question regarding the new precedence level
Could you please target a feature branch instead of |
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, just some minor suggestions
…sainati/extension-parsing
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!
Co-authored-by: Bastian Müller <bastian@axiomzen.co>
Part of #357
Closes #2060
Description
As described in https://github.com/onflow/flips/blob/main/cadence/2022-09-21-attachments.md, this adds parsing for three new syntax forms:
AttachmentDeclaration
s declare a new attachment and can have a name, a base type, a list of conformances, and a list of membersAttachExpression
s attach an attachment to a type and are denoted with theattach ... to ...
syntax, and can have a left-hand side expression and a right-hand side expressionRemoveStatement
s remove an attachment from a value.master
branchFiles changed
in the Github PR explorer