-
Notifications
You must be signed in to change notification settings - Fork 72
Use let or const instead of var #109
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
Conversation
8ab7670
to
ba287d4
Compare
ba287d4
to
7b9e542
Compare
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.
amazing work ! I owe you one dude ;)
* @extends {Expression} | ||
* @property {Array|Expression} what | ||
* @see https://wiki.php.net/rfc/argument_unpacking | ||
*/ | ||
var Variadic = Expr.extends(function Variadic(what, location) { | ||
const variadic = Expr.extends(function variadic(what, location) { |
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.
First letter of the class name should be in upper case in order to avoid confusion with functions
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.
of course, this was a search/replace mistake 😉
@@ -204,28 +204,28 @@ module.exports = { | |||
case this.tok.T_NEW: | |||
return this.next().read_new_expr(); | |||
|
|||
case this.tok.T_ISSET: | |||
case this.tok.T_ISSET: { |
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.
why surrounding with {
... }
? It it a linter directive or is it better ?
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.
Yeah, eslint complains when you put let
/const
inside case
. see https://eslint.org/docs/rules/no-case-declarations
😄 Thanks for the invite! |
You are very welcome my friend, I'm glad for your help 👍 |
No description provided.