Skip to content
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

New Parser: Composite declarations #133

Merged
merged 11 commits into from
May 26, 2020

Conversation

turbolent
Copy link
Member

@turbolent turbolent commented May 23, 2020

Work towards dapperlabs/flow-go#3764

Also:

  • Fix the new parser:
    • Fix casting expression: set the parent variable declaration
  • Fix the old parser:
    • Fix function type parameter list end position
    • Don't allocated slice for conformances

The changes in parser_test.go are all just indentation changes, plus the end position fixes mentioned above, the diff looks quite weird, maybe best viewed by disabling whitespace in the GitHub diff

@turbolent turbolent requested a review from benjaminkvm May 23, 2020 22:59
@turbolent turbolent self-assigned this May 23, 2020
@turbolent turbolent force-pushed the bastian/new-parser-composite-declaration branch from 92e9ba9 to 60d27e2 Compare May 24, 2020 00:54
@turbolent turbolent force-pushed the bastian/new-parser-composite-declaration branch from 86c7037 to 61064ed Compare May 25, 2020 14:28
p.skipSpaceAndComments(true)
// parseNominalTypes parses zero or more nominal types separated by comma.
//
func parseNominalTypes(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be able to use this for type arguments 👍

@turbolent turbolent merged commit ce2ac76 into master May 26, 2020
@turbolent turbolent deleted the bastian/new-parser-composite-declaration branch May 26, 2020 16:38
SupunS added a commit that referenced this pull request Jul 11, 2023
[v0.39] Prevent recursive transfers (internal #133)
SupunS added a commit that referenced this pull request Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants