-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
class private methods and properties: should not allow spaces between # and identifier #8756
Conversation
6d8a60b
to
fd5d958
Compare
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9179/ |
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.
This is not going to work well with the pipeline proposal, since it uses a #
which can be followed by a space.
Maybe we can move the whitespace check to the parser method which parser private names?
fd5d958
to
f4d5109
Compare
@nicolo-ribaudo I made a rebase with a new commit fixing the problem that you said. Thank you. Since the spaces are skipped at tokenizer, then the identifier doesn't have the spaces, I need to use others informations at node to check it. |
f4d5109
to
b523d07
Compare
@nicolo-ribaudo Do you have a link for that? |
… # and identifier
b523d07
to
c2d1d63
Compare
@loganfsmyth @nicolo-ribaudo Thank you. I made a new rebase following your suggestion, using |
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!
Thanks! |
awesome work @macabeus! |
Following babel/proposals#12 (comment), we should not allow spaces between
#
and identifier.But, since we currently allow it, this fix is a breaking change.