Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-array-pattern/output.json

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