fbbfd5e804321199a88fb420e8bcfc912fef10116f72bc053af9b1a0e632a89596c08e644f7a6f246700e862ee885a49ea1e657375b27b3cb941211b6dd279 6.4 KB

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