-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try to fix semicolon can't become one of the two semicolons in the he…
…ader of a for statement
- Loading branch information
Showing
10 changed files
with
258 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const BaseNode = require('./Base'); | ||
|
||
function FunctionDeclarationNode(id, params, body, ...args) { | ||
BaseNode.call(this, Object.assign({}, { type: 'FunctionDeclaration' }, ...args)); | ||
this.id = id; | ||
this.params = params; | ||
this.body = body; | ||
} | ||
|
||
exports.FunctionDeclarationNode = FunctionDeclarationNode; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const BaseNode = require('./Base'); | ||
|
||
function ReturnStatementNode(params, ...args) { | ||
BaseNode.call(this, Object.assign({}, { type: 'ReturnStatement' }, ...args)); | ||
this.params = params; | ||
} | ||
|
||
module.exports = ReturnStatementNode; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
conditions: [''], | ||
name: 'LeftParenthesis', | ||
rules: [ | ||
'(', | ||
], | ||
handlers: [ | ||
'$$ = yy.lexer.yylloc', | ||
], | ||
subRules: [ | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
conditions: [''], | ||
name: 'RightParenthesis', | ||
rules: [ | ||
')', | ||
], | ||
handlers: [ | ||
'$$ = yy.lexer.yylloc', | ||
], | ||
subRules: [ | ||
], | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.