Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/uncategorised/123/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":51,"index":51}},
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:40)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":51,"index":51}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":14,"end":51,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":51,"index":51}},
16 "expression": {
17 "type": "ClassExpression",
18 "start":15,"end":50,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":50,"index":50}},
19 "id": {
20 "type": "Identifier",
21 "start":21,"end":22,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":22,"index":22},"identifierName":"A"},
22 "name": "A"
23 },
24 "superClass": null,
25 "body": {
26 "type": "ClassBody",
27 "start":23,"end":50,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":50,"index":50}},
28 "body": [
29 {
30 "type": "ClassMethod",
31 "start":24,"end":49,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":49,"index":49}},
32 "static": false,
33 "key": {
34 "type": "Identifier",
35 "start":24,"end":35,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":35,"index":35},"identifierName":"constructor"},
36 "name": "constructor"
37 },
38 "computed": false,
39 "kind": "constructor",
40 "id": null,
41 "generator": false,
42 "async": false,
43 "params": [],
44 "body": {
45 "type": "BlockStatement",
46 "start":38,"end":49,"loc":{"start":{"line":1,"column":38,"index":38},"end":{"line":1,"column":49,"index":49}},
47 "body": [
48 {
49 "type": "ExpressionStatement",
50 "start":40,"end":47,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":47,"index":47}},
51 "expression": {
52 "type": "CallExpression",
53 "start":40,"end":47,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":47,"index":47}},
54 "callee": {
55 "type": "Super",
56 "start":40,"end":45,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":45,"index":45}}
57 },
58 "arguments": []
59 }
60 }
61 ],
62 "directives": []
63 }
64 }
65 ]
66 },
67 "extra": {
68 "parenthesized": true,
69 "parenStart": 14
70 }
71 }
72 }
73 ],
74 "directives": [
75 {
76 "type": "Directive",
77 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
78 "value": {
79 "type": "DirectiveLiteral",
80 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
81 "extra": {
82 "rawValue": "use strict",
83 "raw": "\"use strict\"",
84 "expressionValue": "use strict"
85 },
86 "value": "use strict"
87 }
88 }
89 ]
90 }
91 }