Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0274/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":43,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":43,"index":43}},
4 "errors": [
5 "SyntaxError: Duplicate constructor in the same class. (1:25)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":43,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":43,"index":43}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":43,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":43,"index":43}},
16 "id": {
17 "type": "Identifier",
18 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"},
19 "name": "A"
20 },
21 "superClass": null,
22 "body": {
23 "type": "ClassBody",
24 "start":8,"end":43,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":43,"index":43}},
25 "body": [
26 {
27 "type": "ClassMethod",
28 "start":9,"end":24,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":24,"index":24}},
29 "static": false,
30 "key": {
31 "type": "Identifier",
32 "start":9,"end":20,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":20,"index":20},"identifierName":"constructor"},
33 "name": "constructor"
34 },
35 "computed": false,
36 "kind": "constructor",
37 "id": null,
38 "generator": false,
39 "async": false,
40 "params": [],
41 "body": {
42 "type": "BlockStatement",
43 "start":22,"end":24,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":24,"index":24}},
44 "body": [],
45 "directives": []
46 }
47 },
48 {
49 "type": "ClassMethod",
50 "start":25,"end":42,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":42,"index":42}},
51 "static": false,
52 "key": {
53 "type": "StringLiteral",
54 "start":25,"end":38,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":38,"index":38}},
55 "extra": {
56 "rawValue": "constructor",
57 "raw": "\"constructor\""
58 },
59 "value": "constructor"
60 },
61 "computed": false,
62 "kind": "constructor",
63 "id": null,
64 "generator": false,
65 "async": false,
66 "params": [],
67 "body": {
68 "type": "BlockStatement",
69 "start":40,"end":42,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":42,"index":42}},
70 "body": [],
71 "directives": []
72 }
73 }
74 ]
75 }
76 }
77 ],
78 "directives": []
79 }
80 }