-
-
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
change var name for coherence #9579
change var name for coherence #9579
Conversation
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/10298/ |
It's either possible to rename this variable or use Just let me know what suits you ! |
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[node.type]
is a method which prints the node.
Yes it is, but it is used as a boolean. Let me know then, if what I do next makes more sense then. |
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.
Yes 👍
It doesn't work because, since it is a method, it needs to be called with the correct this
context.
Co-Authored-By: tanohzana <tanohzana@gmail.com>
I was reding the code to understand how it worked, but I enciuntered this variable name called
printMethod
and I thought it was going to be used afterwards, but it turned out it as only to test that the function existed, so I think it makes more sense to name it as a boolean.