* Add @babel/eslint-plugin-internal * Add dry-error-messages rule * Address feedback * Enable new rule * fix author field * Fix errors * Add readme * Add example configuration * Handle directories * run make bootstrap * More updates! * Fix errors * Update tests * Fix CI race condition
92 lines
3.6 KiB
JSON
92 lines
3.6 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
|
|
"errors": [
|
|
"SyntaxError: Can not use 'yield' as identifier inside a generator (2:17)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":10,"end":12,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":12},"identifierName":"fn"},
|
|
"name": "fn"
|
|
},
|
|
"generator": true,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":15,"end":49,"loc":{"start":{"line":1,"column":15},"end":{"line":3,"column":1}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":19,"end":47,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":30}},
|
|
"expression": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start":19,"end":46,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":29}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":20,"end":21,"loc":{"start":{"line":2,"column":3},"end":{"line":2,"column":4},"identifierName":"a"},
|
|
"name": "a"
|
|
},
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start":23,"end":28,"loc":{"start":{"line":2,"column":6},"end":{"line":2,"column":11}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":23,"end":24,"loc":{"start":{"line":2,"column":6},"end":{"line":2,"column":7},"identifierName":"b"},
|
|
"name": "b"
|
|
},
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start":27,"end":28,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":11}},
|
|
"extra": {
|
|
"rawValue": 3,
|
|
"raw": "3"
|
|
},
|
|
"value": 3
|
|
}
|
|
},
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start":30,"end":39,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":22}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":30,"end":31,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":14},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"right": {
|
|
"type": "YieldExpression",
|
|
"start":34,"end":39,"loc":{"start":{"line":2,"column":17},"end":{"line":2,"column":22}},
|
|
"delegate": false,
|
|
"argument": null
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":44,"end":46,"loc":{"start":{"line":2,"column":27},"end":{"line":2,"column":29}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |