Debian Codegraph @

packages/babel-parser/test/fixtures/es2016/exponentiation-operator/nested-unary-before-exponential/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":11,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":11,"index":11}},
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":11,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":11,"index":11}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":11,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":11,"index":11}},
16 "expression": {
17 "type": "BinaryExpression",
18 "start":1,"end":9,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":9,"index":9}},
19 "left": {
20 "type": "UnaryExpression",
21 "start":1,"end":4,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":4,"index":4}},
22 "operator": "-",
23 "prefix": true,
24 "argument": {
25 "type": "UnaryExpression",
26 "start":2,"end":4,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":4,"index":4}},
27 "operator": "+",
28 "prefix": true,
29 "argument": {
30 "type": "NumericLiteral",
31 "start":3,"end":4,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":4,"index":4}},
32 "extra": {
33 "rawValue": 5,
34 "raw": "5"
35 },
36 "value": 5
37 }
38 }
39 },
40 "operator": "**",
41 "right": {
42 "type": "NumericLiteral",
43 "start":8,"end":9,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":9,"index":9}},
44 "extra": {
45 "rawValue": 6,
46 "raw": "6"
47 },
48 "value": 6
49 },
50 "extra": {
51 "parenthesized": true,
52 "parenStart": 0
53 }
54 }
55 }
56 ],
57 "directives": []
58 }
59 }