Debian Codegraph @

packages/babel-parser/test/fixtures/es2016/exponentiation-operator/12/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":1,"end":8,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":8,"index":8}},
19 "left": {
20 "type": "UnaryExpression",
21 "start":1,"end":3,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":3,"index":3}},
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 },
31 "value": 5
32 }
33 },
34 "operator": "**",
35 "right": {
36 "type": "NumericLiteral",
37 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8}},
38 "extra": {
39 "rawValue": 6,
40 "raw": "6"
41 },
42 "value": 6
43 },
44 "extra": {
45 "parenthesized": true,
46 "parenStart": 0
47 }
48 }
49 }
50 ],
51 "directives": []
52 }
53 }