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

Dotty enum parsing #7

Open
wants to merge 6 commits into
base: dotty-enum
Choose a base branch
from

Conversation

samuelchassot
Copy link

This add new structure to the AST to support Dotty Enum and add methods to the Parser to parse them.

@allanrenucci
Copy link
Collaborator

The PR should target the dotty-enum branch

@samuelchassot samuelchassot changed the base branch from master to dotty-enum November 13, 2018 18:16
@samuelchassot
Copy link
Author

Oops I changed that

Copy link
Collaborator

@allanrenucci allanrenucci left a comment

Choose a reason for hiding this comment

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

Formatting need some love. Things that I have seen in this PR:

  • x : Int no space after x
  • identifier{ missing space before {
  • }else missing space before else
  • weird indentation
  • redundant new lines before closing }. E.g:
    def foo = {
      ...
      bar
    
    }

Copy link
Collaborator

@allanrenucci allanrenucci left a comment

Choose a reason for hiding this comment

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

Oups! Forgot to submit a comment from my previous review

Copy link
Collaborator

@allanrenucci allanrenucci left a comment

Choose a reason for hiding this comment

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

LGTM. @olafurpg Do you want to have a look?

build.sbt Outdated Show resolved Hide resolved
This commit add new AST structures to represent Enum, and Enum.Case. It adds methods in ScalametaParser.scala to parse Enum too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants