Debian Codegraph @

packages/babel-parser/test/fixtures/flow/scope/dupl-decl-declare-interface-declare-class/output.json

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