Debian Codegraph @

packages/babel-parser/test/fixtures/es2016/exponentiation-operator/11/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
4 "errors": [
5 "SyntaxError: Illegal expression. Wrap left hand side or entire exponentiation in parentheses. (1:2)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
16 "expression": {
17 "type": "BinaryExpression",
18 "start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
19 "left": {
20 "type": "UnaryExpression",
21 "start":0,"end":4,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":4,"index":4}},
22 "operator": "-",
23 "prefix": true,
24 "argument": {
25 "type": "NumericLiteral",
26 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3}},
27 "extra": {
28 "rawValue": 5,
29 "raw": "5",
30 "parenthesized": true,
31 "parenStart": 1
32 },
33 "value": 5
34 }
35 },
36 "operator": "**",
37 "right": {
38 "type": "NumericLiteral",
39 "start":8,"end":9,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":9,"index":9}},
40 "extra": {
41 "rawValue": 6,
42 "raw": "6"
43 },
44 "value": 6
45 }
46 }
47 }
48 ],
49 "directives": []
50 }
51 }