Debian Codegraph @

packages/babel-parser/test/fixtures/es2016/exponentiation-operator/16/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": "ParenthesizedExpression",
18 "start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
19 "expression": {
20 "type": "BinaryExpression",
21 "start":1,"end":8,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":8,"index":8}},
22 "left": {
23 "type": "UnaryExpression",
24 "start":1,"end":3,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":3,"index":3}},
25 "operator": "-",
26 "prefix": true,
27 "argument": {
28 "type": "NumericLiteral",
29 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3}},
30 "extra": {
31 "rawValue": 5,
32 "raw": "5"
33 },
34 "value": 5
35 }
36 },
37 "operator": "**",
38 "right": {
39 "type": "NumericLiteral",
40 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8}},
41 "extra": {
42 "rawValue": 6,
43 "raw": "6"
44 },
45 "value": 6
46 }
47 }
48 }
49 }
50 ],
51 "directives": []
52 }
53 }