Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-arrow-parameter-default/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}},
4 "errors": [
5 "SyntaxError: Unexpected reserved word 'yield'. (1:19)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":14,"end":31,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":31,"index":31}},
16 "expression": {
17 "type": "ArrowFunctionExpression",
18 "start":14,"end":31,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":31,"index":31}},
19 "id": null,
20 "generator": false,
21 "async": false,
22 "params": [
23 {
24 "type": "AssignmentPattern",
25 "start":15,"end":24,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":24,"index":24}},
26 "left": {
27 "type": "Identifier",
28 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"x"},
29 "name": "x"
30 },
31 "right": {
32 "type": "Identifier",
33 "start":19,"end":24,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":24,"index":24},"identifierName":"yield"},
34 "name": "yield"
35 }
36 }
37 ],
38 "body": {
39 "type": "BlockStatement",
40 "start":29,"end":31,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":31,"index":31}},
41 "body": [],
42 "directives": []
43 }
44 }
45 }
46 ],
47 "directives": [
48 {
49 "type": "Directive",
50 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
51 "value": {
52 "type": "DirectiveLiteral",
53 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
54 "extra": {
55 "rawValue": "use strict",
56 "raw": "\"use strict\"",
57 "expressionValue": "use strict"
58 },
59 "value": "use strict"
60 }
61 }
62 ]
63 }
64 }