1 | "use strict";
|
2 |
|
3 | var _index = require("./index");
|
4 |
|
5 | var _index2 = _interopRequireDefault(_index);
|
6 |
|
7 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
8 |
|
9 | (0, _index2.default)("AnyTypeAnnotation", {
|
10 | aliases: ["Flow", "FlowBaseAnnotation"],
|
11 | fields: {}
|
12 | });
|
13 |
|
14 | (0, _index2.default)("ArrayTypeAnnotation", {
|
15 | visitor: ["elementType"],
|
16 | aliases: ["Flow"],
|
17 | fields: {}
|
18 | });
|
19 |
|
20 | (0, _index2.default)("BooleanTypeAnnotation", {
|
21 | aliases: ["Flow", "FlowBaseAnnotation"],
|
22 | fields: {}
|
23 | });
|
24 |
|
25 | (0, _index2.default)("BooleanLiteralTypeAnnotation", {
|
26 | aliases: ["Flow"],
|
27 | fields: {}
|
28 | });
|
29 |
|
30 | (0, _index2.default)("NullLiteralTypeAnnotation", {
|
31 | aliases: ["Flow", "FlowBaseAnnotation"],
|
32 | fields: {}
|
33 | });
|
34 |
|
35 | (0, _index2.default)("ClassImplements", {
|
36 | visitor: ["id", "typeParameters"],
|
37 | aliases: ["Flow"],
|
38 | fields: {}
|
39 | });
|
40 |
|
41 | (0, _index2.default)("ClassProperty", {
|
42 | visitor: ["key", "value", "typeAnnotation", "decorators"],
|
43 | builder: ["key", "value", "typeAnnotation", "decorators", "computed"],
|
44 | aliases: ["Property"],
|
45 | fields: {
|
46 | computed: {
|
47 | validate: (0, _index.assertValueType)("boolean"),
|
48 | default: false
|
49 | }
|
50 | }
|
51 | });
|
52 |
|
53 | (0, _index2.default)("DeclareClass", {
|
54 | visitor: ["id", "typeParameters", "extends", "body"],
|
55 | aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
|
56 | fields: {}
|
57 | });
|
58 |
|
59 | (0, _index2.default)("DeclareFunction", {
|
60 | visitor: ["id"],
|
61 | aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
|
62 | fields: {}
|
63 | });
|
64 |
|
65 | (0, _index2.default)("DeclareInterface", {
|
66 | visitor: ["id", "typeParameters", "extends", "body"],
|
67 | aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
|
68 | fields: {}
|
69 | });
|
70 |
|
71 | (0, _index2.default)("DeclareModule", {
|
72 | visitor: ["id", "body"],
|
73 | aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
|
74 | fields: {}
|
75 | });
|
76 |
|
77 | (0, _index2.default)("DeclareModuleExports", {
|
78 | visitor: ["typeAnnotation"],
|
79 | aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
|
80 | fields: {}
|
81 | });
|
82 |
|
83 | (0, _index2.default)("DeclareTypeAlias", {
|
84 | visitor: ["id", "typeParameters", "right"],
|
85 | aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
|
86 | fields: {}
|
87 | });
|
88 |
|
89 | (0, _index2.default)("DeclareVariable", {
|
90 | visitor: ["id"],
|
91 | aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
|
92 | fields: {}
|
93 | });
|
94 |
|
95 | (0, _index2.default)("ExistentialTypeParam", {
|
96 | aliases: ["Flow"]
|
97 | });
|
98 |
|
99 | (0, _index2.default)("FunctionTypeAnnotation", {
|
100 | visitor: ["typeParameters", "params", "rest", "returnType"],
|
101 | aliases: ["Flow"],
|
102 | fields: {}
|
103 | });
|
104 |
|
105 | (0, _index2.default)("FunctionTypeParam", {
|
106 | visitor: ["name", "typeAnnotation"],
|
107 | aliases: ["Flow"],
|
108 | fields: {}
|
109 | });
|
110 |
|
111 | (0, _index2.default)("GenericTypeAnnotation", {
|
112 | visitor: ["id", "typeParameters"],
|
113 | aliases: ["Flow"],
|
114 | fields: {}
|
115 | });
|
116 |
|
117 | (0, _index2.default)("InterfaceExtends", {
|
118 | visitor: ["id", "typeParameters"],
|
119 | aliases: ["Flow"],
|
120 | fields: {}
|
121 | });
|
122 |
|
123 | (0, _index2.default)("InterfaceDeclaration", {
|
124 | visitor: ["id", "typeParameters", "extends", "body"],
|
125 | aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
|
126 | fields: {}
|
127 | });
|
128 |
|
129 | (0, _index2.default)("IntersectionTypeAnnotation", {
|
130 | visitor: ["types"],
|
131 | aliases: ["Flow"],
|
132 | fields: {}
|
133 | });
|
134 |
|
135 | (0, _index2.default)("MixedTypeAnnotation", {
|
136 | aliases: ["Flow", "FlowBaseAnnotation"]
|
137 | });
|
138 |
|
139 | (0, _index2.default)("EmptyTypeAnnotation", {
|
140 | aliases: ["Flow", "FlowBaseAnnotation"]
|
141 | });
|
142 |
|
143 | (0, _index2.default)("NullableTypeAnnotation", {
|
144 | visitor: ["typeAnnotation"],
|
145 | aliases: ["Flow"],
|
146 | fields: {}
|
147 | });
|
148 |
|
149 | (0, _index2.default)("NumericLiteralTypeAnnotation", {
|
150 | aliases: ["Flow"],
|
151 | fields: {}
|
152 | });
|
153 |
|
154 | (0, _index2.default)("NumberTypeAnnotation", {
|
155 | aliases: ["Flow", "FlowBaseAnnotation"],
|
156 | fields: {}
|
157 | });
|
158 |
|
159 | (0, _index2.default)("StringLiteralTypeAnnotation", {
|
160 | aliases: ["Flow"],
|
161 | fields: {}
|
162 | });
|
163 |
|
164 | (0, _index2.default)("StringTypeAnnotation", {
|
165 | aliases: ["Flow", "FlowBaseAnnotation"],
|
166 | fields: {}
|
167 | });
|
168 |
|
169 | (0, _index2.default)("ThisTypeAnnotation", {
|
170 | aliases: ["Flow", "FlowBaseAnnotation"],
|
171 | fields: {}
|
172 | });
|
173 |
|
174 | (0, _index2.default)("TupleTypeAnnotation", {
|
175 | visitor: ["types"],
|
176 | aliases: ["Flow"],
|
177 | fields: {}
|
178 | });
|
179 |
|
180 | (0, _index2.default)("TypeofTypeAnnotation", {
|
181 | visitor: ["argument"],
|
182 | aliases: ["Flow"],
|
183 | fields: {}
|
184 | });
|
185 |
|
186 | (0, _index2.default)("TypeAlias", {
|
187 | visitor: ["id", "typeParameters", "right"],
|
188 | aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
|
189 | fields: {}
|
190 | });
|
191 |
|
192 | (0, _index2.default)("TypeAnnotation", {
|
193 | visitor: ["typeAnnotation"],
|
194 | aliases: ["Flow"],
|
195 | fields: {}
|
196 | });
|
197 |
|
198 | (0, _index2.default)("TypeCastExpression", {
|
199 | visitor: ["expression", "typeAnnotation"],
|
200 | aliases: ["Flow", "ExpressionWrapper", "Expression"],
|
201 | fields: {}
|
202 | });
|
203 |
|
204 | (0, _index2.default)("TypeParameter", {
|
205 | visitor: ["bound"],
|
206 | aliases: ["Flow"],
|
207 | fields: {}
|
208 | });
|
209 |
|
210 | (0, _index2.default)("TypeParameterDeclaration", {
|
211 | visitor: ["params"],
|
212 | aliases: ["Flow"],
|
213 | fields: {}
|
214 | });
|
215 |
|
216 | (0, _index2.default)("TypeParameterInstantiation", {
|
217 | visitor: ["params"],
|
218 | aliases: ["Flow"],
|
219 | fields: {}
|
220 | });
|
221 |
|
222 | (0, _index2.default)("ObjectTypeAnnotation", {
|
223 | visitor: ["properties", "indexers", "callProperties"],
|
224 | aliases: ["Flow"],
|
225 | fields: {}
|
226 | });
|
227 |
|
228 | (0, _index2.default)("ObjectTypeCallProperty", {
|
229 | visitor: ["value"],
|
230 | aliases: ["Flow", "UserWhitespacable"],
|
231 | fields: {}
|
232 | });
|
233 |
|
234 | (0, _index2.default)("ObjectTypeIndexer", {
|
235 | visitor: ["id", "key", "value"],
|
236 | aliases: ["Flow", "UserWhitespacable"],
|
237 | fields: {}
|
238 | });
|
239 |
|
240 | (0, _index2.default)("ObjectTypeProperty", {
|
241 | visitor: ["key", "value"],
|
242 | aliases: ["Flow", "UserWhitespacable"],
|
243 | fields: {}
|
244 | });
|
245 |
|
246 | (0, _index2.default)("QualifiedTypeIdentifier", {
|
247 | visitor: ["id", "qualification"],
|
248 | aliases: ["Flow"],
|
249 | fields: {}
|
250 | });
|
251 |
|
252 | (0, _index2.default)("UnionTypeAnnotation", {
|
253 | visitor: ["types"],
|
254 | aliases: ["Flow"],
|
255 | fields: {}
|
256 | });
|
257 |
|
258 | (0, _index2.default)("VoidTypeAnnotation", {
|
259 | aliases: ["Flow", "FlowBaseAnnotation"],
|
260 | fields: {}
|
261 | }); |
\ | No newline at end of file |