Debian Codegraph @

packages/babel-parser/test/fixtures/flow/declare-statements/15/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":70,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":34,"index":70}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":70,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":34,"index":70}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareInterface",
12 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}},
13 "id": {
14 "type": "Identifier",
15 "start":18,"end":19,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":19,"index":19},"identifierName":"I"},
16 "name": "I"
17 },
18 "typeParameters": null,
19 "extends": [],
20 "implements": [],
21 "mixins": [],
22 "body": {
23 "type": "ObjectTypeAnnotation",
24 "start":20,"end":35,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":35,"index":35}},
25 "callProperties": [],
26 "properties": [
27 {
28 "type": "ObjectTypeProperty",
29 "start":22,"end":33,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":33,"index":33}},
30 "key": {
31 "type": "Identifier",
32 "start":22,"end":25,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":25,"index":25},"identifierName":"foo"},
33 "name": "foo"
34 },
35 "static": false,
36 "proto": false,
37 "kind": "init",
38 "method": false,
39 "value": {
40 "type": "StringTypeAnnotation",
41 "start":27,"end":33,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":33,"index":33}}
42 },
43 "variance": null,
44 "optional": false
45 }
46 ],
47 "indexers": [],
48 "internalSlots": [],
49 "exact": false
50 }
51 },
52 {
53 "type": "DeclareInterface",
54 "start":36,"end":70,"loc":{"start":{"line":2,"column":0,"index":36},"end":{"line":2,"column":34,"index":70}},
55 "id": {
56 "type": "Identifier",
57 "start":54,"end":56,"loc":{"start":{"line":2,"column":18,"index":54},"end":{"line":2,"column":20,"index":56},"identifierName":"I2"},
58 "name": "I2"
59 },
60 "typeParameters": {
61 "type": "TypeParameterDeclaration",
62 "start":56,"end":59,"loc":{"start":{"line":2,"column":20,"index":56},"end":{"line":2,"column":23,"index":59}},
63 "params": [
64 {
65 "type": "TypeParameter",
66 "start":57,"end":58,"loc":{"start":{"line":2,"column":21,"index":57},"end":{"line":2,"column":22,"index":58}},
67 "name": "T",
68 "variance": null
69 }
70 ]
71 },
72 "extends": [],
73 "implements": [],
74 "mixins": [],
75 "body": {
76 "type": "ObjectTypeAnnotation",
77 "start":60,"end":70,"loc":{"start":{"line":2,"column":24,"index":60},"end":{"line":2,"column":34,"index":70}},
78 "callProperties": [],
79 "properties": [
80 {
81 "type": "ObjectTypeProperty",
82 "start":62,"end":68,"loc":{"start":{"line":2,"column":26,"index":62},"end":{"line":2,"column":32,"index":68}},
83 "key": {
84 "type": "Identifier",
85 "start":62,"end":65,"loc":{"start":{"line":2,"column":26,"index":62},"end":{"line":2,"column":29,"index":65},"identifierName":"foo"},
86 "name": "foo"
87 },
88 "static": false,
89 "proto": false,
90 "kind": "init",
91 "method": false,
92 "value": {
93 "type": "GenericTypeAnnotation",
94 "start":67,"end":68,"loc":{"start":{"line":2,"column":31,"index":67},"end":{"line":2,"column":32,"index":68}},
95 "typeParameters": null,
96 "id": {
97 "type": "Identifier",
98 "start":67,"end":68,"loc":{"start":{"line":2,"column":31,"index":67},"end":{"line":2,"column":32,"index":68},"identifierName":"T"},
99 "name": "T"
100 }
101 },
102 "variance": null,
103 "optional": false
104 }
105 ],
106 "indexers": [],
107 "internalSlots": [],
108 "exact": false
109 }
110 }
111 ],
112 "directives": []
113 }
114 }