Debian Codegraph @

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

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