* remove unused codes * refactor: remove unused parseAccessModifier * refactor: remove redundant async function checks * refactor: remove redundant class check in checkExport * add more parser test cases * Update packages/babel-parser/src/parser/statement.js Co-authored-by: Brian Ng <bng412@gmail.com> * chore: add sourceType: unambiguous test Co-authored-by: Brian Ng <bng412@gmail.com>
33 lines
926 B
JSON
33 lines
926 B
JSON
{
|
|
"type": "AwaitExpression",
|
|
"start":19,"end":28,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":9}},
|
|
"argument": {
|
|
"type": "UnaryExpression",
|
|
"start":25,"end":28,"loc":{"start":{"line":2,"column":6},"end":{"line":2,"column":9}},
|
|
"operator": "+",
|
|
"prefix": true,
|
|
"argument": {
|
|
"type": "NumericLiteral",
|
|
"start":26,"end":28,"loc":{"start":{"line":2,"column":7},"end":{"line":2,"column":9}},
|
|
"extra": {
|
|
"rawValue": 42,
|
|
"raw": "42"
|
|
},
|
|
"value": 42
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " prettier-ignore",
|
|
"start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}
|
|
}
|
|
],
|
|
"comments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " prettier-ignore",
|
|
"start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}
|
|
}
|
|
]
|
|
} |