Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":15,"index":31}},
4 "errors": [
5 "SyntaxError: Identifier 'I' has already been declared. (2:10)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":15,"index":31}},
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":"I"},
19 "name": "I"
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": "EmptyStatement",
37 "start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15}}
38 },
39 {
40 "type": "InterfaceDeclaration",
41 "start":16,"end":30,"loc":{"start":{"line":2,"column":0,"index":16},"end":{"line":2,"column":14,"index":30}},
42 "id": {
43 "type": "Identifier",
44 "start":26,"end":27,"loc":{"start":{"line":2,"column":10,"index":26},"end":{"line":2,"column":11,"index":27},"identifierName":"I"},
45 "name": "I"
46 },
47 "typeParameters": null,
48 "extends": [],
49 "implements": [],
50 "mixins": [],
51 "body": {
52 "type": "ObjectTypeAnnotation",
53 "start":28,"end":30,"loc":{"start":{"line":2,"column":12,"index":28},"end":{"line":2,"column":14,"index":30}},
54 "callProperties": [],
55 "properties": [],
56 "indexers": [],
57 "internalSlots": [],
58 "exact": false
59 }
60 },
61 {
62 "type": "EmptyStatement",
63 "start":30,"end":31,"loc":{"start":{"line":2,"column":14,"index":30},"end":{"line":2,"column":15,"index":31}}
64 }
65 ],
66 "directives": []
67 }
68 }