Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/duplicate-proto/with-assignment-expression/output.json

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