Debian Codegraph @

packages/babel-parser/test/fixtures/flow/multiple-declarations/class/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":11,"index":31}},
4 "errors": [
5 "SyntaxError: Identifier 'C1' has already been declared. (2:6)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":11,"index":31}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "DeclareClass",
15 "start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
16 "id": {
17 "type": "Identifier",
18 "start":14,"end":16,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":16,"index":16},"identifierName":"C1"},
19 "name": "C1"
20 },
21 "typeParameters": null,
22 "extends": [],
23 "implements": [],
24 "mixins": [],
25 "body": {
26 "type": "ObjectTypeAnnotation",
27 "start":17,"end":19,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":19,"index":19}},
28 "callProperties": [],
29 "properties": [],
30 "indexers": [],
31 "internalSlots": [],
32 "exact": false
33 }
34 },
35 {
36 "type": "ClassDeclaration",
37 "start":20,"end":31,"loc":{"start":{"line":2,"column":0,"index":20},"end":{"line":2,"column":11,"index":31}},
38 "id": {
39 "type": "Identifier",
40 "start":26,"end":28,"loc":{"start":{"line":2,"column":6,"index":26},"end":{"line":2,"column":8,"index":28},"identifierName":"C1"},
41 "name": "C1"
42 },
43 "superClass": null,
44 "body": {
45 "type": "ClassBody",
46 "start":29,"end":31,"loc":{"start":{"line":2,"column":9,"index":29},"end":{"line":2,"column":11,"index":31}},
47 "body": []
48 }
49 }
50 ],
51 "directives": []
52 }
53 }