Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-super-property/invalid_super_not_inside_function/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
4 "errors": [
5 "SyntaxError: `super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (1:8)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":4,"end":15,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":15,"index":15}},
20 "id": {
21 "type": "Identifier",
22 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"x"},
23 "name": "x"
24 },
25 "init": {
26 "type": "CallExpression",
27 "start":8,"end":15,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":15,"index":15}},
28 "callee": {
29 "type": "Super",
30 "start":8,"end":13,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":13,"index":13}}
31 },
32 "arguments": []
33 }
34 }
35 ],
36 "kind": "var"
37 }
38 ],
39 "directives": []
40 }
41 }