Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":82,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":82}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":82,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":82}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareClass",
12 "start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
13 "id": {
14 "type": "Identifier",
15 "start":14,"end":16,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":16,"index":16},"identifierName":"C1"},
16 "name": "C1"
17 },
18 "typeParameters": null,
19 "extends": [],
20 "implements": [],
21 "mixins": [],
22 "body": {
23 "type": "ObjectTypeAnnotation",
24 "start":16,"end":18,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":18,"index":18}},
25 "callProperties": [],
26 "properties": [],
27 "indexers": [],
28 "internalSlots": [],
29 "exact": false
30 }
31 },
32 {
33 "type": "DeclareClass",
34 "start":19,"end":37,"loc":{"start":{"line":2,"column":0,"index":19},"end":{"line":2,"column":18,"index":37}},
35 "id": {
36 "type": "Identifier",
37 "start":33,"end":35,"loc":{"start":{"line":2,"column":14,"index":33},"end":{"line":2,"column":16,"index":35},"identifierName":"C1"},
38 "name": "C1"
39 },
40 "typeParameters": null,
41 "extends": [],
42 "implements": [],
43 "mixins": [],
44 "body": {
45 "type": "ObjectTypeAnnotation",
46 "start":35,"end":37,"loc":{"start":{"line":2,"column":16,"index":35},"end":{"line":2,"column":18,"index":37}},
47 "callProperties": [],
48 "properties": [],
49 "indexers": [],
50 "internalSlots": [],
51 "exact": false
52 }
53 },
54 {
55 "type": "DeclareModule",
56 "start":39,"end":82,"loc":{"start":{"line":4,"column":0,"index":39},"end":{"line":6,"column":1,"index":82}},
57 "id": {
58 "type": "Identifier",
59 "start":54,"end":56,"loc":{"start":{"line":4,"column":15,"index":54},"end":{"line":4,"column":17,"index":56},"identifierName":"M1"},
60 "name": "M1"
61 },
62 "body": {
63 "type": "BlockStatement",
64 "start":57,"end":82,"loc":{"start":{"line":4,"column":18,"index":57},"end":{"line":6,"column":1,"index":82}},
65 "body": [
66 {
67 "type": "DeclareClass",
68 "start":61,"end":80,"loc":{"start":{"line":5,"column":2,"index":61},"end":{"line":5,"column":21,"index":80}},
69 "id": {
70 "type": "Identifier",
71 "start":75,"end":77,"loc":{"start":{"line":5,"column":16,"index":75},"end":{"line":5,"column":18,"index":77},"identifierName":"C1"},
72 "name": "C1"
73 },
74 "typeParameters": null,
75 "extends": [],
76 "implements": [],
77 "mixins": [],
78 "body": {
79 "type": "ObjectTypeAnnotation",
80 "start":78,"end":80,"loc":{"start":{"line":5,"column":19,"index":78},"end":{"line":5,"column":21,"index":80}},
81 "callProperties": [],
82 "properties": [],
83 "indexers": [],
84 "internalSlots": [],
85 "exact": false
86 }
87 }
88 ]
89 },
90 "kind": "CommonJS"
91 }
92 ],
93 "directives": []
94 }
95 }