Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/destructuring/binding-eval/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
4 "errors": [
5 "SyntaxError: Assigning to 'eval' in strict mode. (1:16)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":14,"end":39,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":39,"index":39}},
16 "expression": {
17 "type": "AssignmentExpression",
18 "start":15,"end":38,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":38,"index":38}},
19 "operator": "=",
20 "left": {
21 "type": "ObjectPattern",
22 "start":15,"end":32,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":32,"index":32}},
23 "properties": [
24 {
25 "type": "ObjectProperty",
26 "start":16,"end":31,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":31,"index":31}},
27 "method": false,
28 "key": {
29 "type": "Identifier",
30 "start":16,"end":20,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":20,"index":20},"identifierName":"eval"},
31 "name": "eval"
32 },
33 "computed": false,
34 "shorthand": true,
35 "value": {
36 "type": "AssignmentPattern",
37 "start":16,"end":31,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":31,"index":31}},
38 "left": {
39 "type": "Identifier",
40 "start":16,"end":20,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":20,"index":20},"identifierName":"eval"},
41 "name": "eval"
42 },
43 "right": {
44 "type": "Identifier",
45 "start":23,"end":31,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":31,"index":31},"identifierName":"defValue"},
46 "name": "defValue"
47 }
48 },
49 "extra": {
50 "shorthand": true
51 }
52 }
53 ]
54 },
55 "right": {
56 "type": "Identifier",
57 "start":35,"end":38,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":38,"index":38},"identifierName":"obj"},
58 "name": "obj"
59 },
60 "extra": {
61 "parenthesized": true,
62 "parenStart": 14
63 }
64 }
65 }
66 ],
67 "directives": [
68 {
69 "type": "Directive",
70 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
71 "value": {
72 "type": "DirectiveLiteral",
73 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
74 "extra": {
75 "rawValue": "use strict",
76 "raw": "'use strict'",
77 "expressionValue": "use strict"
78 },
79 "value": "use strict"
80 }
81 }
82 ]
83 }
84 }