Debian Codegraph @

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

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