shopify_api 9.5.1 → 10.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (766) hide show
  1. checksums.yaml +4 -4
  2. data/.github/CODEOWNERS +1 -1
  3. data/.github/ISSUE_TEMPLATE.md +1 -2
  4. data/.github/dependabot.yml +20 -0
  5. data/.github/probots.yml +1 -1
  6. data/.github/pull_request_template.md +20 -0
  7. data/.github/workflows/build.yml +18 -19
  8. data/.rubocop.yml +49 -18
  9. data/CHANGELOG.md +3 -1
  10. data/CONTRIBUTING.md +4 -3
  11. data/Gemfile +6 -4
  12. data/Gemfile.lock +104 -117
  13. data/LICENSE +2 -2
  14. data/README.md +92 -494
  15. data/RELEASING +1 -1
  16. data/Rakefile +14 -46
  17. data/SECURITY.md +2 -2
  18. data/bin/tapioca +29 -0
  19. data/dev.yml +22 -1
  20. data/docs/README.md +13 -0
  21. data/docs/getting_started.md +53 -0
  22. data/docs/issues.md +39 -0
  23. data/docs/usage/graphql.md +115 -0
  24. data/docs/usage/graphql_storefront.md +42 -0
  25. data/docs/usage/oauth.md +105 -0
  26. data/docs/usage/rest.md +137 -0
  27. data/docs/usage/session_storage.md +46 -0
  28. data/docs/usage/webhooks.md +98 -0
  29. data/lib/shopify_api/admin_versions.rb +15 -0
  30. data/lib/shopify_api/auth/associated_user.rb +36 -0
  31. data/lib/shopify_api/auth/auth_scopes.rb +75 -0
  32. data/lib/shopify_api/auth/file_session_storage.rb +70 -0
  33. data/lib/shopify_api/auth/jwt_payload.rb +69 -0
  34. data/lib/shopify_api/auth/oauth/auth_query.rb +47 -0
  35. data/lib/shopify_api/auth/oauth/session_cookie.rb +28 -0
  36. data/lib/shopify_api/auth/oauth.rb +129 -0
  37. data/lib/shopify_api/auth/session.rb +119 -0
  38. data/lib/shopify_api/auth/session_storage.rb +30 -0
  39. data/lib/shopify_api/clients/graphql/admin.rb +15 -0
  40. data/lib/shopify_api/clients/graphql/client.rb +40 -0
  41. data/lib/shopify_api/clients/graphql/storefront.rb +35 -0
  42. data/lib/shopify_api/clients/http_client.rb +100 -0
  43. data/lib/shopify_api/clients/http_request.rb +35 -0
  44. data/lib/shopify_api/clients/http_response.rb +66 -0
  45. data/lib/shopify_api/clients/rest/admin.rb +118 -0
  46. data/lib/shopify_api/context.rb +151 -0
  47. data/lib/shopify_api/errors/context_not_setup_error.rb +9 -0
  48. data/lib/shopify_api/errors/cookie_not_found_error.rb +9 -0
  49. data/lib/shopify_api/errors/http_response_error.rb +19 -0
  50. data/lib/shopify_api/errors/invalid_graphql_request_error.rb +9 -0
  51. data/lib/shopify_api/errors/invalid_http_request_error.rb +9 -0
  52. data/lib/shopify_api/errors/invalid_jwt_token_error.rb +9 -0
  53. data/lib/shopify_api/errors/invalid_oauth_error.rb +9 -0
  54. data/lib/shopify_api/errors/invalid_webhook_error.rb +9 -0
  55. data/lib/shopify_api/errors/invalid_webhook_registration_error.rb +9 -0
  56. data/lib/shopify_api/errors/max_http_retries_exceeded_error.rb +9 -0
  57. data/lib/shopify_api/errors/missing_jwt_token_error.rb +9 -0
  58. data/lib/shopify_api/errors/no_active_session_error.rb +9 -0
  59. data/lib/shopify_api/errors/no_session_cookie_error.rb +9 -0
  60. data/lib/shopify_api/errors/no_webhook_handler.rb +9 -0
  61. data/lib/shopify_api/errors/private_app_error.rb +9 -0
  62. data/lib/shopify_api/errors/request_access_token_error.rb +9 -0
  63. data/lib/shopify_api/errors/session_not_found_error.rb +9 -0
  64. data/lib/shopify_api/errors/session_storage_error.rb +9 -0
  65. data/lib/shopify_api/errors/unsupported_oauth_error.rb +9 -0
  66. data/lib/shopify_api/errors/unsupported_version_error.rb +9 -0
  67. data/lib/shopify_api/errors/webhook_registration_error.rb +9 -0
  68. data/lib/shopify_api/inflector.rb +17 -0
  69. data/lib/shopify_api/rest/base.rb +318 -0
  70. data/lib/shopify_api/rest/base_errors.rb +32 -0
  71. data/lib/shopify_api/rest/resources/2021_07/abandoned_checkout.rb +186 -0
  72. data/lib/shopify_api/rest/resources/2021_07/access_scope.rb +54 -0
  73. data/lib/shopify_api/rest/resources/2021_07/android_pay_key.rb +73 -0
  74. data/lib/shopify_api/rest/resources/2021_07/apple_pay_certificate.rb +101 -0
  75. data/lib/shopify_api/rest/resources/2021_07/application_charge.rb +100 -0
  76. data/lib/shopify_api/rest/resources/2021_07/application_credit.rb +83 -0
  77. data/lib/shopify_api/rest/resources/2021_07/article.rb +254 -0
  78. data/lib/shopify_api/rest/resources/2021_07/asset.rb +114 -0
  79. data/lib/shopify_api/rest/resources/2021_07/assigned_fulfillment_order.rb +75 -0
  80. data/lib/shopify_api/rest/resources/2021_07/balance.rb +46 -0
  81. data/lib/shopify_api/rest/resources/2021_07/blog.rb +158 -0
  82. data/lib/shopify_api/rest/resources/2021_07/cancellation_request.rb +79 -0
  83. data/lib/shopify_api/rest/resources/2021_07/carrier_service.rb +112 -0
  84. data/lib/shopify_api/rest/resources/2021_07/checkout.rb +205 -0
  85. data/lib/shopify_api/rest/resources/2021_07/collect.rb +138 -0
  86. data/lib/shopify_api/rest/resources/2021_07/collection.rb +106 -0
  87. data/lib/shopify_api/rest/resources/2021_07/collection_listing.rb +151 -0
  88. data/lib/shopify_api/rest/resources/2021_07/comment.rb +279 -0
  89. data/lib/shopify_api/rest/resources/2021_07/country.rb +133 -0
  90. data/lib/shopify_api/rest/resources/2021_07/currency.rb +53 -0
  91. data/lib/shopify_api/rest/resources/2021_07/custom_collection.rb +183 -0
  92. data/lib/shopify_api/rest/resources/2021_07/customer.rb +285 -0
  93. data/lib/shopify_api/rest/resources/2021_07/customer_address.rb +197 -0
  94. data/lib/shopify_api/rest/resources/2021_07/customer_saved_search.rb +165 -0
  95. data/lib/shopify_api/rest/resources/2021_07/deprecated_api_call.rb +53 -0
  96. data/lib/shopify_api/rest/resources/2021_07/discount_code.rb +215 -0
  97. data/lib/shopify_api/rest/resources/2021_07/dispute.rb +107 -0
  98. data/lib/shopify_api/rest/resources/2021_07/draft_order.rb +266 -0
  99. data/lib/shopify_api/rest/resources/2021_07/event.rb +144 -0
  100. data/lib/shopify_api/rest/resources/2021_07/fulfillment.rb +191 -0
  101. data/lib/shopify_api/rest/resources/2021_07/fulfillment_event.rb +162 -0
  102. data/lib/shopify_api/rest/resources/2021_07/fulfillment_order.rb +224 -0
  103. data/lib/shopify_api/rest/resources/2021_07/fulfillment_request.rb +79 -0
  104. data/lib/shopify_api/rest/resources/2021_07/fulfillment_service.rb +126 -0
  105. data/lib/shopify_api/rest/resources/2021_07/gift_card.rb +203 -0
  106. data/lib/shopify_api/rest/resources/2021_07/gift_card_adjustment.rb +114 -0
  107. data/lib/shopify_api/rest/resources/2021_07/image.rb +153 -0
  108. data/lib/shopify_api/rest/resources/2021_07/inventory_item.rb +104 -0
  109. data/lib/shopify_api/rest/resources/2021_07/inventory_level.rb +175 -0
  110. data/lib/shopify_api/rest/resources/2021_07/location.rb +163 -0
  111. data/lib/shopify_api/rest/resources/2021_07/locations_for_move.rb +52 -0
  112. data/lib/shopify_api/rest/resources/2021_07/marketing_event.rb +205 -0
  113. data/lib/shopify_api/rest/resources/2021_07/metafield.rb +338 -0
  114. data/lib/shopify_api/rest/resources/2021_07/mobile_platform_application.rb +106 -0
  115. data/lib/shopify_api/rest/resources/2021_07/order.rb +466 -0
  116. data/lib/shopify_api/rest/resources/2021_07/order_risk.rb +131 -0
  117. data/lib/shopify_api/rest/resources/2021_07/page.rb +190 -0
  118. data/lib/shopify_api/rest/resources/2021_07/payment.rb +136 -0
  119. data/lib/shopify_api/rest/resources/2021_07/payment_gateway.rb +139 -0
  120. data/lib/shopify_api/rest/resources/2021_07/payment_transaction.rb +103 -0
  121. data/lib/shopify_api/rest/resources/2021_07/payout.rb +93 -0
  122. data/lib/shopify_api/rest/resources/2021_07/policy.rb +65 -0
  123. data/lib/shopify_api/rest/resources/2021_07/price_rule.rb +219 -0
  124. data/lib/shopify_api/rest/resources/2021_07/product.rb +219 -0
  125. data/lib/shopify_api/rest/resources/2021_07/product_listing.rb +192 -0
  126. data/lib/shopify_api/rest/resources/2021_07/product_resource_feedback.rb +84 -0
  127. data/lib/shopify_api/rest/resources/2021_07/province.rb +128 -0
  128. data/lib/shopify_api/rest/resources/2021_07/recurring_application_charge.rb +163 -0
  129. data/lib/shopify_api/rest/resources/2021_07/redirect.rb +135 -0
  130. data/lib/shopify_api/rest/resources/2021_07/refund.rb +147 -0
  131. data/lib/shopify_api/rest/resources/2021_07/report.rb +117 -0
  132. data/lib/shopify_api/rest/resources/2021_07/resource_feedback.rb +69 -0
  133. data/lib/shopify_api/rest/resources/2021_07/script_tag.rb +151 -0
  134. data/lib/shopify_api/rest/resources/2021_07/shipping_zone.rb +79 -0
  135. data/lib/shopify_api/rest/resources/2021_07/shop.rb +214 -0
  136. data/lib/shopify_api/rest/resources/2021_07/smart_collection.rb +212 -0
  137. data/lib/shopify_api/rest/resources/2021_07/storefront_access_token.rb +83 -0
  138. data/lib/shopify_api/rest/resources/2021_07/tender_transaction.rb +89 -0
  139. data/lib/shopify_api/rest/resources/2021_07/theme.rb +116 -0
  140. data/lib/shopify_api/rest/resources/2021_07/transaction.rb +174 -0
  141. data/lib/shopify_api/rest/resources/2021_07/usage_charge.rb +93 -0
  142. data/lib/shopify_api/rest/resources/2021_07/user.rb +134 -0
  143. data/lib/shopify_api/rest/resources/2021_07/variant.rb +204 -0
  144. data/lib/shopify_api/rest/resources/2021_07/webhook.rb +164 -0
  145. data/lib/shopify_api/rest/resources/2021_10/abandoned_checkout.rb +186 -0
  146. data/lib/shopify_api/rest/resources/2021_10/access_scope.rb +54 -0
  147. data/lib/shopify_api/rest/resources/2021_10/android_pay_key.rb +73 -0
  148. data/lib/shopify_api/rest/resources/2021_10/apple_pay_certificate.rb +101 -0
  149. data/lib/shopify_api/rest/resources/2021_10/application_charge.rb +100 -0
  150. data/lib/shopify_api/rest/resources/2021_10/application_credit.rb +83 -0
  151. data/lib/shopify_api/rest/resources/2021_10/article.rb +254 -0
  152. data/lib/shopify_api/rest/resources/2021_10/asset.rb +114 -0
  153. data/lib/shopify_api/rest/resources/2021_10/assigned_fulfillment_order.rb +75 -0
  154. data/lib/shopify_api/rest/resources/2021_10/balance.rb +46 -0
  155. data/lib/shopify_api/rest/resources/2021_10/blog.rb +158 -0
  156. data/lib/shopify_api/rest/resources/2021_10/cancellation_request.rb +79 -0
  157. data/lib/shopify_api/rest/resources/2021_10/carrier_service.rb +112 -0
  158. data/lib/shopify_api/rest/resources/2021_10/checkout.rb +205 -0
  159. data/lib/shopify_api/rest/resources/2021_10/collect.rb +138 -0
  160. data/lib/shopify_api/rest/resources/2021_10/collection.rb +106 -0
  161. data/lib/shopify_api/rest/resources/2021_10/collection_listing.rb +151 -0
  162. data/lib/shopify_api/rest/resources/2021_10/comment.rb +279 -0
  163. data/lib/shopify_api/rest/resources/2021_10/country.rb +133 -0
  164. data/lib/shopify_api/rest/resources/2021_10/currency.rb +53 -0
  165. data/lib/shopify_api/rest/resources/2021_10/custom_collection.rb +183 -0
  166. data/lib/shopify_api/rest/resources/2021_10/customer.rb +288 -0
  167. data/lib/shopify_api/rest/resources/2021_10/customer_address.rb +197 -0
  168. data/lib/shopify_api/rest/resources/2021_10/customer_saved_search.rb +165 -0
  169. data/lib/shopify_api/rest/resources/2021_10/deprecated_api_call.rb +53 -0
  170. data/lib/shopify_api/rest/resources/2021_10/discount_code.rb +215 -0
  171. data/lib/shopify_api/rest/resources/2021_10/dispute.rb +107 -0
  172. data/lib/shopify_api/rest/resources/2021_10/draft_order.rb +269 -0
  173. data/lib/shopify_api/rest/resources/2021_10/event.rb +144 -0
  174. data/lib/shopify_api/rest/resources/2021_10/fulfillment.rb +194 -0
  175. data/lib/shopify_api/rest/resources/2021_10/fulfillment_event.rb +162 -0
  176. data/lib/shopify_api/rest/resources/2021_10/fulfillment_order.rb +277 -0
  177. data/lib/shopify_api/rest/resources/2021_10/fulfillment_request.rb +79 -0
  178. data/lib/shopify_api/rest/resources/2021_10/fulfillment_service.rb +126 -0
  179. data/lib/shopify_api/rest/resources/2021_10/gift_card.rb +203 -0
  180. data/lib/shopify_api/rest/resources/2021_10/gift_card_adjustment.rb +114 -0
  181. data/lib/shopify_api/rest/resources/2021_10/image.rb +153 -0
  182. data/lib/shopify_api/rest/resources/2021_10/inventory_item.rb +104 -0
  183. data/lib/shopify_api/rest/resources/2021_10/inventory_level.rb +175 -0
  184. data/lib/shopify_api/rest/resources/2021_10/location.rb +163 -0
  185. data/lib/shopify_api/rest/resources/2021_10/locations_for_move.rb +52 -0
  186. data/lib/shopify_api/rest/resources/2021_10/marketing_event.rb +205 -0
  187. data/lib/shopify_api/rest/resources/2021_10/metafield.rb +338 -0
  188. data/lib/shopify_api/rest/resources/2021_10/mobile_platform_application.rb +106 -0
  189. data/lib/shopify_api/rest/resources/2021_10/order.rb +469 -0
  190. data/lib/shopify_api/rest/resources/2021_10/order_risk.rb +131 -0
  191. data/lib/shopify_api/rest/resources/2021_10/page.rb +190 -0
  192. data/lib/shopify_api/rest/resources/2021_10/payment.rb +136 -0
  193. data/lib/shopify_api/rest/resources/2021_10/payment_gateway.rb +139 -0
  194. data/lib/shopify_api/rest/resources/2021_10/payment_transaction.rb +103 -0
  195. data/lib/shopify_api/rest/resources/2021_10/payout.rb +93 -0
  196. data/lib/shopify_api/rest/resources/2021_10/policy.rb +65 -0
  197. data/lib/shopify_api/rest/resources/2021_10/price_rule.rb +219 -0
  198. data/lib/shopify_api/rest/resources/2021_10/product.rb +219 -0
  199. data/lib/shopify_api/rest/resources/2021_10/product_listing.rb +192 -0
  200. data/lib/shopify_api/rest/resources/2021_10/product_resource_feedback.rb +84 -0
  201. data/lib/shopify_api/rest/resources/2021_10/province.rb +128 -0
  202. data/lib/shopify_api/rest/resources/2021_10/recurring_application_charge.rb +163 -0
  203. data/lib/shopify_api/rest/resources/2021_10/redirect.rb +135 -0
  204. data/lib/shopify_api/rest/resources/2021_10/refund.rb +147 -0
  205. data/lib/shopify_api/rest/resources/2021_10/report.rb +117 -0
  206. data/lib/shopify_api/rest/resources/2021_10/resource_feedback.rb +69 -0
  207. data/lib/shopify_api/rest/resources/2021_10/script_tag.rb +151 -0
  208. data/lib/shopify_api/rest/resources/2021_10/shipping_zone.rb +79 -0
  209. data/lib/shopify_api/rest/resources/2021_10/shop.rb +214 -0
  210. data/lib/shopify_api/rest/resources/2021_10/smart_collection.rb +212 -0
  211. data/lib/shopify_api/rest/resources/2021_10/storefront_access_token.rb +83 -0
  212. data/lib/shopify_api/rest/resources/2021_10/tender_transaction.rb +89 -0
  213. data/lib/shopify_api/rest/resources/2021_10/theme.rb +116 -0
  214. data/lib/shopify_api/rest/resources/2021_10/transaction.rb +177 -0
  215. data/lib/shopify_api/rest/resources/2021_10/usage_charge.rb +93 -0
  216. data/lib/shopify_api/rest/resources/2021_10/user.rb +134 -0
  217. data/lib/shopify_api/rest/resources/2021_10/variant.rb +204 -0
  218. data/lib/shopify_api/rest/resources/2021_10/webhook.rb +164 -0
  219. data/lib/shopify_api/rest/resources/2022_01/abandoned_checkout.rb +186 -0
  220. data/lib/shopify_api/rest/resources/2022_01/access_scope.rb +54 -0
  221. data/lib/shopify_api/rest/resources/2022_01/android_pay_key.rb +73 -0
  222. data/lib/shopify_api/rest/resources/2022_01/apple_pay_certificate.rb +101 -0
  223. data/lib/shopify_api/rest/resources/2022_01/application_charge.rb +100 -0
  224. data/lib/shopify_api/rest/resources/2022_01/application_credit.rb +83 -0
  225. data/lib/shopify_api/rest/resources/2022_01/article.rb +254 -0
  226. data/lib/shopify_api/rest/resources/2022_01/asset.rb +114 -0
  227. data/lib/shopify_api/rest/resources/2022_01/assigned_fulfillment_order.rb +75 -0
  228. data/lib/shopify_api/rest/resources/2022_01/balance.rb +46 -0
  229. data/lib/shopify_api/rest/resources/2022_01/blog.rb +158 -0
  230. data/lib/shopify_api/rest/resources/2022_01/cancellation_request.rb +79 -0
  231. data/lib/shopify_api/rest/resources/2022_01/carrier_service.rb +112 -0
  232. data/lib/shopify_api/rest/resources/2022_01/checkout.rb +205 -0
  233. data/lib/shopify_api/rest/resources/2022_01/collect.rb +138 -0
  234. data/lib/shopify_api/rest/resources/2022_01/collection.rb +106 -0
  235. data/lib/shopify_api/rest/resources/2022_01/collection_listing.rb +151 -0
  236. data/lib/shopify_api/rest/resources/2022_01/comment.rb +279 -0
  237. data/lib/shopify_api/rest/resources/2022_01/country.rb +133 -0
  238. data/lib/shopify_api/rest/resources/2022_01/currency.rb +53 -0
  239. data/lib/shopify_api/rest/resources/2022_01/custom_collection.rb +183 -0
  240. data/lib/shopify_api/rest/resources/2022_01/customer.rb +288 -0
  241. data/lib/shopify_api/rest/resources/2022_01/customer_address.rb +197 -0
  242. data/lib/shopify_api/rest/resources/2022_01/customer_saved_search.rb +165 -0
  243. data/lib/shopify_api/rest/resources/2022_01/deprecated_api_call.rb +53 -0
  244. data/lib/shopify_api/rest/resources/2022_01/discount_code.rb +215 -0
  245. data/lib/shopify_api/rest/resources/2022_01/dispute.rb +107 -0
  246. data/lib/shopify_api/rest/resources/2022_01/draft_order.rb +269 -0
  247. data/lib/shopify_api/rest/resources/2022_01/event.rb +144 -0
  248. data/lib/shopify_api/rest/resources/2022_01/fulfillment.rb +194 -0
  249. data/lib/shopify_api/rest/resources/2022_01/fulfillment_event.rb +162 -0
  250. data/lib/shopify_api/rest/resources/2022_01/fulfillment_order.rb +277 -0
  251. data/lib/shopify_api/rest/resources/2022_01/fulfillment_request.rb +79 -0
  252. data/lib/shopify_api/rest/resources/2022_01/fulfillment_service.rb +126 -0
  253. data/lib/shopify_api/rest/resources/2022_01/gift_card.rb +203 -0
  254. data/lib/shopify_api/rest/resources/2022_01/gift_card_adjustment.rb +114 -0
  255. data/lib/shopify_api/rest/resources/2022_01/image.rb +153 -0
  256. data/lib/shopify_api/rest/resources/2022_01/inventory_item.rb +104 -0
  257. data/lib/shopify_api/rest/resources/2022_01/inventory_level.rb +175 -0
  258. data/lib/shopify_api/rest/resources/2022_01/location.rb +163 -0
  259. data/lib/shopify_api/rest/resources/2022_01/locations_for_move.rb +52 -0
  260. data/lib/shopify_api/rest/resources/2022_01/marketing_event.rb +205 -0
  261. data/lib/shopify_api/rest/resources/2022_01/metafield.rb +338 -0
  262. data/lib/shopify_api/rest/resources/2022_01/mobile_platform_application.rb +106 -0
  263. data/lib/shopify_api/rest/resources/2022_01/order.rb +469 -0
  264. data/lib/shopify_api/rest/resources/2022_01/order_risk.rb +131 -0
  265. data/lib/shopify_api/rest/resources/2022_01/page.rb +190 -0
  266. data/lib/shopify_api/rest/resources/2022_01/payment.rb +136 -0
  267. data/lib/shopify_api/rest/resources/2022_01/payment_gateway.rb +139 -0
  268. data/lib/shopify_api/rest/resources/2022_01/payment_transaction.rb +103 -0
  269. data/lib/shopify_api/rest/resources/2022_01/payout.rb +93 -0
  270. data/lib/shopify_api/rest/resources/2022_01/policy.rb +65 -0
  271. data/lib/shopify_api/rest/resources/2022_01/price_rule.rb +219 -0
  272. data/lib/shopify_api/rest/resources/2022_01/product.rb +219 -0
  273. data/lib/shopify_api/rest/resources/2022_01/product_listing.rb +192 -0
  274. data/lib/shopify_api/rest/resources/2022_01/product_resource_feedback.rb +84 -0
  275. data/lib/shopify_api/rest/resources/2022_01/province.rb +128 -0
  276. data/lib/shopify_api/rest/resources/2022_01/recurring_application_charge.rb +163 -0
  277. data/lib/shopify_api/rest/resources/2022_01/redirect.rb +135 -0
  278. data/lib/shopify_api/rest/resources/2022_01/refund.rb +147 -0
  279. data/lib/shopify_api/rest/resources/2022_01/report.rb +117 -0
  280. data/lib/shopify_api/rest/resources/2022_01/resource_feedback.rb +69 -0
  281. data/lib/shopify_api/rest/resources/2022_01/script_tag.rb +151 -0
  282. data/lib/shopify_api/rest/resources/2022_01/shipping_zone.rb +79 -0
  283. data/lib/shopify_api/rest/resources/2022_01/shop.rb +214 -0
  284. data/lib/shopify_api/rest/resources/2022_01/smart_collection.rb +212 -0
  285. data/lib/shopify_api/rest/resources/2022_01/storefront_access_token.rb +83 -0
  286. data/lib/shopify_api/rest/resources/2022_01/tender_transaction.rb +89 -0
  287. data/lib/shopify_api/rest/resources/2022_01/theme.rb +116 -0
  288. data/lib/shopify_api/rest/resources/2022_01/transaction.rb +177 -0
  289. data/lib/shopify_api/rest/resources/2022_01/usage_charge.rb +93 -0
  290. data/lib/shopify_api/rest/resources/2022_01/user.rb +134 -0
  291. data/lib/shopify_api/rest/resources/2022_01/variant.rb +204 -0
  292. data/lib/shopify_api/rest/resources/2022_01/webhook.rb +164 -0
  293. data/lib/shopify_api/rest/resources/2022_04/abandoned_checkout.rb +186 -0
  294. data/lib/shopify_api/rest/resources/2022_04/access_scope.rb +54 -0
  295. data/lib/shopify_api/rest/resources/2022_04/android_pay_key.rb +73 -0
  296. data/lib/shopify_api/rest/resources/2022_04/apple_pay_certificate.rb +101 -0
  297. data/lib/shopify_api/rest/resources/2022_04/application_charge.rb +100 -0
  298. data/lib/shopify_api/rest/resources/2022_04/application_credit.rb +83 -0
  299. data/lib/shopify_api/rest/resources/2022_04/article.rb +254 -0
  300. data/lib/shopify_api/rest/resources/2022_04/asset.rb +114 -0
  301. data/lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb +75 -0
  302. data/lib/shopify_api/rest/resources/2022_04/balance.rb +46 -0
  303. data/lib/shopify_api/rest/resources/2022_04/blog.rb +158 -0
  304. data/lib/shopify_api/rest/resources/2022_04/cancellation_request.rb +79 -0
  305. data/lib/shopify_api/rest/resources/2022_04/carrier_service.rb +112 -0
  306. data/lib/shopify_api/rest/resources/2022_04/checkout.rb +205 -0
  307. data/lib/shopify_api/rest/resources/2022_04/collect.rb +138 -0
  308. data/lib/shopify_api/rest/resources/2022_04/collection.rb +106 -0
  309. data/lib/shopify_api/rest/resources/2022_04/collection_listing.rb +151 -0
  310. data/lib/shopify_api/rest/resources/2022_04/comment.rb +279 -0
  311. data/lib/shopify_api/rest/resources/2022_04/country.rb +133 -0
  312. data/lib/shopify_api/rest/resources/2022_04/currency.rb +53 -0
  313. data/lib/shopify_api/rest/resources/2022_04/custom_collection.rb +183 -0
  314. data/lib/shopify_api/rest/resources/2022_04/customer.rb +291 -0
  315. data/lib/shopify_api/rest/resources/2022_04/customer_address.rb +197 -0
  316. data/lib/shopify_api/rest/resources/2022_04/customer_saved_search.rb +165 -0
  317. data/lib/shopify_api/rest/resources/2022_04/deprecated_api_call.rb +53 -0
  318. data/lib/shopify_api/rest/resources/2022_04/discount_code.rb +215 -0
  319. data/lib/shopify_api/rest/resources/2022_04/dispute.rb +107 -0
  320. data/lib/shopify_api/rest/resources/2022_04/draft_order.rb +269 -0
  321. data/lib/shopify_api/rest/resources/2022_04/event.rb +144 -0
  322. data/lib/shopify_api/rest/resources/2022_04/fulfillment.rb +194 -0
  323. data/lib/shopify_api/rest/resources/2022_04/fulfillment_event.rb +162 -0
  324. data/lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb +277 -0
  325. data/lib/shopify_api/rest/resources/2022_04/fulfillment_request.rb +79 -0
  326. data/lib/shopify_api/rest/resources/2022_04/fulfillment_service.rb +126 -0
  327. data/lib/shopify_api/rest/resources/2022_04/gift_card.rb +203 -0
  328. data/lib/shopify_api/rest/resources/2022_04/gift_card_adjustment.rb +114 -0
  329. data/lib/shopify_api/rest/resources/2022_04/image.rb +153 -0
  330. data/lib/shopify_api/rest/resources/2022_04/inventory_item.rb +104 -0
  331. data/lib/shopify_api/rest/resources/2022_04/inventory_level.rb +175 -0
  332. data/lib/shopify_api/rest/resources/2022_04/location.rb +163 -0
  333. data/lib/shopify_api/rest/resources/2022_04/locations_for_move.rb +52 -0
  334. data/lib/shopify_api/rest/resources/2022_04/marketing_event.rb +205 -0
  335. data/lib/shopify_api/rest/resources/2022_04/metafield.rb +338 -0
  336. data/lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb +106 -0
  337. data/lib/shopify_api/rest/resources/2022_04/order.rb +469 -0
  338. data/lib/shopify_api/rest/resources/2022_04/order_risk.rb +131 -0
  339. data/lib/shopify_api/rest/resources/2022_04/page.rb +190 -0
  340. data/lib/shopify_api/rest/resources/2022_04/payment.rb +136 -0
  341. data/lib/shopify_api/rest/resources/2022_04/payment_gateway.rb +139 -0
  342. data/lib/shopify_api/rest/resources/2022_04/payment_transaction.rb +103 -0
  343. data/lib/shopify_api/rest/resources/2022_04/payout.rb +93 -0
  344. data/lib/shopify_api/rest/resources/2022_04/policy.rb +65 -0
  345. data/lib/shopify_api/rest/resources/2022_04/price_rule.rb +219 -0
  346. data/lib/shopify_api/rest/resources/2022_04/product.rb +219 -0
  347. data/lib/shopify_api/rest/resources/2022_04/product_listing.rb +192 -0
  348. data/lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb +84 -0
  349. data/lib/shopify_api/rest/resources/2022_04/province.rb +128 -0
  350. data/lib/shopify_api/rest/resources/2022_04/recurring_application_charge.rb +163 -0
  351. data/lib/shopify_api/rest/resources/2022_04/redirect.rb +135 -0
  352. data/lib/shopify_api/rest/resources/2022_04/refund.rb +147 -0
  353. data/lib/shopify_api/rest/resources/2022_04/report.rb +117 -0
  354. data/lib/shopify_api/rest/resources/2022_04/resource_feedback.rb +69 -0
  355. data/lib/shopify_api/rest/resources/2022_04/script_tag.rb +151 -0
  356. data/lib/shopify_api/rest/resources/2022_04/shipping_zone.rb +79 -0
  357. data/lib/shopify_api/rest/resources/2022_04/shop.rb +214 -0
  358. data/lib/shopify_api/rest/resources/2022_04/smart_collection.rb +212 -0
  359. data/lib/shopify_api/rest/resources/2022_04/storefront_access_token.rb +83 -0
  360. data/lib/shopify_api/rest/resources/2022_04/tender_transaction.rb +89 -0
  361. data/lib/shopify_api/rest/resources/2022_04/theme.rb +116 -0
  362. data/lib/shopify_api/rest/resources/2022_04/transaction.rb +177 -0
  363. data/lib/shopify_api/rest/resources/2022_04/usage_charge.rb +93 -0
  364. data/lib/shopify_api/rest/resources/2022_04/user.rb +134 -0
  365. data/lib/shopify_api/rest/resources/2022_04/variant.rb +204 -0
  366. data/lib/shopify_api/rest/resources/2022_04/webhook.rb +164 -0
  367. data/lib/shopify_api/utils/graphql_proxy.rb +52 -0
  368. data/lib/shopify_api/utils/hmac_validator.rb +34 -0
  369. data/lib/shopify_api/utils/http_utils.rb +17 -0
  370. data/lib/shopify_api/utils/session_utils.rb +135 -0
  371. data/lib/shopify_api/utils/verifiable_query.rb +18 -0
  372. data/lib/shopify_api/version.rb +3 -1
  373. data/lib/shopify_api/webhooks/handler.rb +15 -0
  374. data/lib/shopify_api/webhooks/register_result.rb +14 -0
  375. data/lib/shopify_api/webhooks/registration.rb +73 -0
  376. data/lib/shopify_api/webhooks/registrations/event_bridge.rb +61 -0
  377. data/lib/shopify_api/webhooks/registrations/http.rb +66 -0
  378. data/lib/shopify_api/webhooks/registrations/pub_sub.rb +65 -0
  379. data/lib/shopify_api/webhooks/registry.rb +216 -0
  380. data/lib/shopify_api/webhooks/request.rb +56 -0
  381. data/lib/shopify_api.rb +18 -40
  382. data/service.yml +0 -3
  383. data/shipit.rubygems.yml +1 -1
  384. data/shopify_api.gemspec +28 -23
  385. data/sorbet/config +3 -0
  386. data/sorbet/rbi/gems/activesupport@7.0.1.rbi +654 -0
  387. data/sorbet/rbi/gems/addressable@2.8.0.rbi +290 -0
  388. data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
  389. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  390. data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +2401 -0
  391. data/sorbet/rbi/gems/crack@0.4.5.rbi +57 -0
  392. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +185 -0
  393. data/sorbet/rbi/gems/fakefs@1.4.1.rbi +571 -0
  394. data/sorbet/rbi/gems/hash_diff@1.0.0.rbi +47 -0
  395. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +82 -0
  396. data/sorbet/rbi/gems/httparty@0.20.0.rbi +573 -0
  397. data/sorbet/rbi/gems/i18n@1.8.11.rbi +25 -0
  398. data/sorbet/rbi/gems/jwt@2.3.0.rbi +437 -0
  399. data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
  400. data/sorbet/rbi/gems/mime-types-data@3.2022.0105.rbi +73 -0
  401. data/sorbet/rbi/gems/mime-types@3.4.1.rbi +295 -0
  402. data/sorbet/rbi/gems/minitest@5.15.0.rbi +541 -0
  403. data/sorbet/rbi/gems/mocha@1.13.0.rbi +986 -0
  404. data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +36 -0
  405. data/sorbet/rbi/gems/oj@3.13.11.rbi +274 -0
  406. data/sorbet/rbi/gems/openssl@3.0.0.rbi +581 -0
  407. data/sorbet/rbi/gems/parallel@1.21.0.rbi +113 -0
  408. data/sorbet/rbi/gems/parser@3.1.0.0.rbi +1741 -0
  409. data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
  410. data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +145 -0
  411. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +157 -0
  412. data/sorbet/rbi/gems/rake@13.0.6.rbi +814 -0
  413. data/sorbet/rbi/gems/rbi@0.0.11.rbi +1646 -0
  414. data/sorbet/rbi/gems/regexp_parser@2.2.0.rbi +1130 -0
  415. data/sorbet/rbi/gems/rexml@3.2.5.rbi +709 -0
  416. data/sorbet/rbi/gems/rubocop-ast@1.15.1.rbi +1921 -0
  417. data/sorbet/rbi/gems/rubocop-shopify@2.4.0.rbi +8 -0
  418. data/sorbet/rbi/gems/rubocop-sorbet@0.6.5.rbi +295 -0
  419. data/sorbet/rbi/gems/rubocop@1.25.1.rbi +13507 -0
  420. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
  421. data/sorbet/rbi/gems/securerandom@0.1.1.rbi +10 -0
  422. data/sorbet/rbi/gems/spoom@1.1.8.rbi +1252 -0
  423. data/sorbet/rbi/gems/tapioca@0.6.3.rbi +1238 -0
  424. data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
  425. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +858 -0
  426. data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +26 -0
  427. data/sorbet/rbi/gems/unparser@0.6.3.rbi +1816 -0
  428. data/sorbet/rbi/gems/webmock@3.14.0.rbi +683 -0
  429. data/sorbet/rbi/gems/webrick@1.7.0.rbi +601 -0
  430. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +199 -0
  431. data/sorbet/rbi/gems/yard@0.9.27.rbi +4145 -0
  432. data/sorbet/rbi/gems/zeitwerk@2.5.4.rbi +200 -0
  433. data/sorbet/rbi/shims/fakefs.rbi +1 -0
  434. data/sorbet/rbi/shims/openssl.rb +3 -0
  435. data/sorbet/rbi/todo.rbi +9 -0
  436. data/sorbet/tapioca/config.yml +4 -0
  437. data/sorbet/tapioca/require.rb +20 -0
  438. metadata +511 -356
  439. data/.document +0 -5
  440. data/.gitignore +0 -14
  441. data/.rubocop_todo.yml +0 -75
  442. data/CONTRIBUTORS +0 -3
  443. data/Gemfile_ar41 +0 -5
  444. data/Gemfile_ar50 +0 -5
  445. data/Gemfile_ar51 +0 -5
  446. data/Gemfile_ar60 +0 -5
  447. data/Gemfile_ar_main +0 -5
  448. data/docker-compose.yml +0 -13
  449. data/docs/_config.yml +0 -1
  450. data/docs/_includes/footer.html +0 -28
  451. data/docs/_includes/head.html +0 -28
  452. data/docs/_layouts/index.html +0 -57
  453. data/docs/graphql.md +0 -241
  454. data/docs/index.md +0 -639
  455. data/lib/active_resource/connection_ext.rb +0 -11
  456. data/lib/active_resource/detailed_log_subscriber.rb +0 -55
  457. data/lib/active_resource/json_errors.rb +0 -37
  458. data/lib/shopify_api/api_access.rb +0 -57
  459. data/lib/shopify_api/api_version.rb +0 -206
  460. data/lib/shopify_api/connection.rb +0 -36
  461. data/lib/shopify_api/countable.rb +0 -15
  462. data/lib/shopify_api/disable_prefix_check.rb +0 -31
  463. data/lib/shopify_api/events.rb +0 -8
  464. data/lib/shopify_api/graphql/http_client.rb +0 -22
  465. data/lib/shopify_api/graphql/railtie.rb +0 -17
  466. data/lib/shopify_api/graphql/task.rake +0 -100
  467. data/lib/shopify_api/graphql.rb +0 -103
  468. data/lib/shopify_api/hmac_params.rb +0 -33
  469. data/lib/shopify_api/limits.rb +0 -77
  470. data/lib/shopify_api/message_enricher.rb +0 -25
  471. data/lib/shopify_api/meta.rb +0 -14
  472. data/lib/shopify_api/metafields.rb +0 -21
  473. data/lib/shopify_api/paginated_collection.rb +0 -69
  474. data/lib/shopify_api/pagination_link_headers.rb +0 -34
  475. data/lib/shopify_api/resources/abandoned_checkout.rb +0 -7
  476. data/lib/shopify_api/resources/access_scope.rb +0 -10
  477. data/lib/shopify_api/resources/access_token.rb +0 -9
  478. data/lib/shopify_api/resources/address.rb +0 -5
  479. data/lib/shopify_api/resources/announcement.rb +0 -5
  480. data/lib/shopify_api/resources/api_permission.rb +0 -9
  481. data/lib/shopify_api/resources/application_charge.rb +0 -16
  482. data/lib/shopify_api/resources/application_credit.rb +0 -5
  483. data/lib/shopify_api/resources/array_base.rb +0 -13
  484. data/lib/shopify_api/resources/article.rb +0 -22
  485. data/lib/shopify_api/resources/asset.rb +0 -101
  486. data/lib/shopify_api/resources/assigned_fulfillment_order.rb +0 -16
  487. data/lib/shopify_api/resources/base.rb +0 -166
  488. data/lib/shopify_api/resources/billing_address.rb +0 -5
  489. data/lib/shopify_api/resources/blog.rb +0 -11
  490. data/lib/shopify_api/resources/carrier_service.rb +0 -5
  491. data/lib/shopify_api/resources/cart.rb +0 -5
  492. data/lib/shopify_api/resources/checkout.rb +0 -30
  493. data/lib/shopify_api/resources/collect.rb +0 -7
  494. data/lib/shopify_api/resources/collection.rb +0 -14
  495. data/lib/shopify_api/resources/collection_listing.rb +0 -19
  496. data/lib/shopify_api/resources/collection_publication.rb +0 -10
  497. data/lib/shopify_api/resources/comment.rb +0 -24
  498. data/lib/shopify_api/resources/country.rb +0 -5
  499. data/lib/shopify_api/resources/currency.rb +0 -6
  500. data/lib/shopify_api/resources/custom_collection.rb +0 -20
  501. data/lib/shopify_api/resources/customer.rb +0 -30
  502. data/lib/shopify_api/resources/customer_group.rb +0 -6
  503. data/lib/shopify_api/resources/customer_invite.rb +0 -5
  504. data/lib/shopify_api/resources/customer_saved_search.rb +0 -12
  505. data/lib/shopify_api/resources/discount_code.rb +0 -10
  506. data/lib/shopify_api/resources/discount_code_batch.rb +0 -34
  507. data/lib/shopify_api/resources/draft_order.rb +0 -15
  508. data/lib/shopify_api/resources/draft_order_invoice.rb +0 -5
  509. data/lib/shopify_api/resources/event.rb +0 -9
  510. data/lib/shopify_api/resources/fulfillment.rb +0 -56
  511. data/lib/shopify_api/resources/fulfillment_event.rb +0 -16
  512. data/lib/shopify_api/resources/fulfillment_order.rb +0 -151
  513. data/lib/shopify_api/resources/fulfillment_order_locations_for_move.rb +0 -5
  514. data/lib/shopify_api/resources/fulfillment_request.rb +0 -16
  515. data/lib/shopify_api/resources/fulfillment_service.rb +0 -5
  516. data/lib/shopify_api/resources/fulfillment_v2.rb +0 -21
  517. data/lib/shopify_api/resources/gift_card.rb +0 -8
  518. data/lib/shopify_api/resources/image.rb +0 -17
  519. data/lib/shopify_api/resources/inventory_item.rb +0 -6
  520. data/lib/shopify_api/resources/inventory_level.rb +0 -54
  521. data/lib/shopify_api/resources/line_item.rb +0 -15
  522. data/lib/shopify_api/resources/location.rb +0 -8
  523. data/lib/shopify_api/resources/marketing_event.rb +0 -11
  524. data/lib/shopify_api/resources/metafield.rb +0 -14
  525. data/lib/shopify_api/resources/note_attribute.rb +0 -5
  526. data/lib/shopify_api/resources/option.rb +0 -5
  527. data/lib/shopify_api/resources/order.rb +0 -44
  528. data/lib/shopify_api/resources/order_risk.rb +0 -9
  529. data/lib/shopify_api/resources/page.rb +0 -7
  530. data/lib/shopify_api/resources/payment.rb +0 -7
  531. data/lib/shopify_api/resources/payment_details.rb +0 -5
  532. data/lib/shopify_api/resources/ping.rb +0 -3
  533. data/lib/shopify_api/resources/policy.rb +0 -8
  534. data/lib/shopify_api/resources/price_rule.rb +0 -8
  535. data/lib/shopify_api/resources/product.rb +0 -59
  536. data/lib/shopify_api/resources/product_listing.rb +0 -17
  537. data/lib/shopify_api/resources/product_publication.rb +0 -10
  538. data/lib/shopify_api/resources/province.rb +0 -6
  539. data/lib/shopify_api/resources/publication.rb +0 -5
  540. data/lib/shopify_api/resources/receipt.rb +0 -5
  541. data/lib/shopify_api/resources/recurring_application_charge.rb +0 -34
  542. data/lib/shopify_api/resources/redirect.rb +0 -5
  543. data/lib/shopify_api/resources/refund.rb +0 -15
  544. data/lib/shopify_api/resources/report.rb +0 -5
  545. data/lib/shopify_api/resources/resource_feedback.rb +0 -19
  546. data/lib/shopify_api/resources/rule.rb +0 -5
  547. data/lib/shopify_api/resources/script_tag.rb +0 -5
  548. data/lib/shopify_api/resources/shipping_address.rb +0 -5
  549. data/lib/shopify_api/resources/shipping_line.rb +0 -5
  550. data/lib/shopify_api/resources/shipping_rate.rb +0 -7
  551. data/lib/shopify_api/resources/shipping_zone.rb +0 -5
  552. data/lib/shopify_api/resources/shop.rb +0 -26
  553. data/lib/shopify_api/resources/smart_collection.rb +0 -15
  554. data/lib/shopify_api/resources/storefront_access_token.rb +0 -5
  555. data/lib/shopify_api/resources/tax_line.rb +0 -5
  556. data/lib/shopify_api/resources/tax_service.rb +0 -5
  557. data/lib/shopify_api/resources/tender_transaction.rb +0 -6
  558. data/lib/shopify_api/resources/theme.rb +0 -5
  559. data/lib/shopify_api/resources/transaction.rb +0 -6
  560. data/lib/shopify_api/resources/usage_charge.rb +0 -6
  561. data/lib/shopify_api/resources/user.rb +0 -5
  562. data/lib/shopify_api/resources/variant.rb +0 -43
  563. data/lib/shopify_api/resources/webhook.rb +0 -5
  564. data/lib/shopify_api/resources.rb +0 -4
  565. data/lib/shopify_api/session.rb +0 -203
  566. data/lib/verify_docs.rb +0 -8
  567. data/test/abandoned_checkouts_test.rb +0 -29
  568. data/test/access_scope_test.rb +0 -23
  569. data/test/access_token_test.rb +0 -20
  570. data/test/active_resource/json_errors_test.rb +0 -19
  571. data/test/api_access_test.rb +0 -153
  572. data/test/api_permission_test.rb +0 -9
  573. data/test/api_version_test.rb +0 -157
  574. data/test/application_charge_test.rb +0 -82
  575. data/test/application_credit_test.rb +0 -36
  576. data/test/article_test.rb +0 -72
  577. data/test/asset_test.rb +0 -26
  578. data/test/assigned_fulfillment_order_test.rb +0 -78
  579. data/test/base_test.rb +0 -213
  580. data/test/blog_test.rb +0 -9
  581. data/test/carrier_service_test.rb +0 -18
  582. data/test/cart_test.rb +0 -14
  583. data/test/checkouts_test.rb +0 -77
  584. data/test/collect_test.rb +0 -10
  585. data/test/collection_listing_test.rb +0 -84
  586. data/test/collection_publication_test.rb +0 -40
  587. data/test/collection_test.rb +0 -50
  588. data/test/countable_test.rb +0 -14
  589. data/test/currency_test.rb +0 -21
  590. data/test/custom_collection_test.rb +0 -10
  591. data/test/customer_saved_search_test.rb +0 -37
  592. data/test/customer_test.rb +0 -58
  593. data/test/detailed_log_subscriber_test.rb +0 -143
  594. data/test/discount_code_batch_test.rb +0 -41
  595. data/test/discount_code_test.rb +0 -59
  596. data/test/draft_order_test.rb +0 -167
  597. data/test/fixtures/abandoned_checkout.json +0 -184
  598. data/test/fixtures/abandoned_checkouts.json +0 -186
  599. data/test/fixtures/access_scopes.json +0 -10
  600. data/test/fixtures/access_token_delegate.json +0 -4
  601. data/test/fixtures/api_versions.json +0 -38
  602. data/test/fixtures/apis.json +0 -42
  603. data/test/fixtures/application_charge.json +0 -16
  604. data/test/fixtures/application_charges.json +0 -57
  605. data/test/fixtures/application_credit.json +0 -12
  606. data/test/fixtures/application_credits.json +0 -24
  607. data/test/fixtures/article.json +0 -15
  608. data/test/fixtures/articles.json +0 -39
  609. data/test/fixtures/asset.json +0 -9
  610. data/test/fixtures/assets.json +0 -136
  611. data/test/fixtures/assigned_fulfillment_orders.json +0 -80
  612. data/test/fixtures/authors.json +0 -1
  613. data/test/fixtures/blog.json +0 -13
  614. data/test/fixtures/blogs.json +0 -13
  615. data/test/fixtures/carrier_service.json +0 -9
  616. data/test/fixtures/carts.json +0 -43
  617. data/test/fixtures/checkout.json +0 -160
  618. data/test/fixtures/checkouts.json +0 -162
  619. data/test/fixtures/collect.json +0 -12
  620. data/test/fixtures/collection.json +0 -17
  621. data/test/fixtures/collection_listing.json +0 -11
  622. data/test/fixtures/collection_listing_product_ids.json +0 -1
  623. data/test/fixtures/collection_listing_product_ids2.json +0 -1
  624. data/test/fixtures/collection_listings.json +0 -13
  625. data/test/fixtures/collection_products.json +0 -47
  626. data/test/fixtures/collection_publication.json +0 -11
  627. data/test/fixtures/collection_publications.json +0 -13
  628. data/test/fixtures/currencies.json +0 -25
  629. data/test/fixtures/custom_collection.json +0 -17
  630. data/test/fixtures/customer_invite.json +0 -9
  631. data/test/fixtures/customer_saved_search.json +0 -9
  632. data/test/fixtures/customer_saved_search_customers.json +0 -60
  633. data/test/fixtures/customers.json +0 -59
  634. data/test/fixtures/customers_account_activation_url.json +0 -3
  635. data/test/fixtures/customers_search.json +0 -60
  636. data/test/fixtures/discount_code.json +0 -10
  637. data/test/fixtures/discount_code_batch.json +0 -14
  638. data/test/fixtures/discount_code_batch_discount_codes.json +0 -21
  639. data/test/fixtures/discount_codes.json +0 -12
  640. data/test/fixtures/draft_order.json +0 -159
  641. data/test/fixtures/draft_order_completed.json +0 -159
  642. data/test/fixtures/draft_order_invoice.json +0 -9
  643. data/test/fixtures/draft_orders.json +0 -161
  644. data/test/fixtures/engagement.json +0 -15
  645. data/test/fixtures/events.json +0 -31
  646. data/test/fixtures/fulfillment.json +0 -49
  647. data/test/fixtures/fulfillment_event.json +0 -12
  648. data/test/fixtures/fulfillment_order.json +0 -39
  649. data/test/fixtures/fulfillment_order_locations_for_move.json +0 -18
  650. data/test/fixtures/fulfillment_orders.json +0 -80
  651. data/test/fixtures/fulfillment_request.json +0 -28
  652. data/test/fixtures/fulfillment_service.json +0 -10
  653. data/test/fixtures/fulfillments.json +0 -53
  654. data/test/fixtures/gift_card.json +0 -20
  655. data/test/fixtures/gift_card_disabled.json +0 -20
  656. data/test/fixtures/graphql/2019-10.json +0 -1083
  657. data/test/fixtures/graphql/dummy_schema.rb +0 -16
  658. data/test/fixtures/graphql/unstable.json +0 -1083
  659. data/test/fixtures/image.json +0 -10
  660. data/test/fixtures/images.json +0 -20
  661. data/test/fixtures/inventory_level.json +0 -7
  662. data/test/fixtures/inventory_levels.json +0 -24
  663. data/test/fixtures/marketing_event.json +0 -28
  664. data/test/fixtures/marketing_events.json +0 -54
  665. data/test/fixtures/metafield.json +0 -12
  666. data/test/fixtures/metafields.json +0 -34
  667. data/test/fixtures/order.json +0 -297
  668. data/test/fixtures/order_risk.json +0 -14
  669. data/test/fixtures/order_risks.json +0 -28
  670. data/test/fixtures/order_with_properties.json +0 -373
  671. data/test/fixtures/orders.json +0 -299
  672. data/test/fixtures/payment.json +0 -7
  673. data/test/fixtures/payments.json +0 -9
  674. data/test/fixtures/ping/conversation.json +0 -1
  675. data/test/fixtures/ping/failed_delivery_confirmation.json +0 -1
  676. data/test/fixtures/ping/message.json +0 -1
  677. data/test/fixtures/ping/successful_delivery_confirmation.json +0 -1
  678. data/test/fixtures/policies.json +0 -8
  679. data/test/fixtures/price_rule.json +0 -27
  680. data/test/fixtures/price_rules.json +0 -28
  681. data/test/fixtures/product.json +0 -116
  682. data/test/fixtures/product_listing.json +0 -86
  683. data/test/fixtures/product_listing_product_ids.json +0 -1
  684. data/test/fixtures/product_listing_product_ids2.json +0 -1
  685. data/test/fixtures/product_listings.json +0 -174
  686. data/test/fixtures/product_publication.json +0 -11
  687. data/test/fixtures/product_publications.json +0 -13
  688. data/test/fixtures/publications.json +0 -9
  689. data/test/fixtures/recurring_application_charge.json +0 -22
  690. data/test/fixtures/recurring_application_charge_adjustment.json +0 -5
  691. data/test/fixtures/recurring_application_charges.json +0 -106
  692. data/test/fixtures/redirect.json +0 -7
  693. data/test/fixtures/refund.json +0 -112
  694. data/test/fixtures/report.json +0 -9
  695. data/test/fixtures/reports.json +0 -11
  696. data/test/fixtures/script_tag.json +0 -10
  697. data/test/fixtures/script_tags.json +0 -18
  698. data/test/fixtures/shipping_rates.json +0 -12
  699. data/test/fixtures/shipping_zones.json +0 -315
  700. data/test/fixtures/shop.json +0 -26
  701. data/test/fixtures/smart_collection.json +0 -21
  702. data/test/fixtures/smart_collection_products.json +0 -155
  703. data/test/fixtures/storefront_access_token.json +0 -9
  704. data/test/fixtures/storefront_access_tokens.json +0 -18
  705. data/test/fixtures/tags.json +0 -1
  706. data/test/fixtures/tax_service.json +0 -9
  707. data/test/fixtures/tender_transactions.json +0 -52
  708. data/test/fixtures/transaction.json +0 -29
  709. data/test/fixtures/usage_charge.json +0 -11
  710. data/test/fixtures/usage_charges.json +0 -23
  711. data/test/fixtures/user.json +0 -21
  712. data/test/fixtures/users.json +0 -42
  713. data/test/fixtures/variant.json +0 -23
  714. data/test/fixtures/variants.json +0 -88
  715. data/test/fixtures/webhook.json +0 -10
  716. data/test/fixtures/webhooks.json +0 -18
  717. data/test/fulfillment_event_test.rb +0 -74
  718. data/test/fulfillment_order_test.rb +0 -530
  719. data/test/fulfillment_order_test_helper.rb +0 -8
  720. data/test/fulfillment_request_test.rb +0 -35
  721. data/test/fulfillment_service_test.rb +0 -18
  722. data/test/fulfillment_test.rb +0 -239
  723. data/test/fulfillment_v2_test.rb +0 -66
  724. data/test/gift_card_test.rb +0 -24
  725. data/test/graphql/http_client_test.rb +0 -26
  726. data/test/graphql_test.rb +0 -190
  727. data/test/hmac_params_test.rb +0 -25
  728. data/test/image_test.rb +0 -41
  729. data/test/inventory_level_test.rb +0 -68
  730. data/test/lib/webmock_extensions/last_request.rb +0 -16
  731. data/test/limits_test.rb +0 -39
  732. data/test/location_test.rb +0 -15
  733. data/test/marketing_event_test.rb +0 -68
  734. data/test/message_enricher_test.rb +0 -45
  735. data/test/meta_test.rb +0 -47
  736. data/test/metafield_test.rb +0 -56
  737. data/test/order_risk_test.rb +0 -47
  738. data/test/order_test.rb +0 -140
  739. data/test/pagination_test.rb +0 -290
  740. data/test/payment_test.rb +0 -19
  741. data/test/policy_test.rb +0 -20
  742. data/test/price_rule_test.rb +0 -70
  743. data/test/product_listing_test.rb +0 -97
  744. data/test/product_publication_test.rb +0 -40
  745. data/test/product_test.rb +0 -111
  746. data/test/publication_test.rb +0 -12
  747. data/test/recurring_application_charge_test.rb +0 -204
  748. data/test/redirect_test.rb +0 -10
  749. data/test/refund_test.rb +0 -37
  750. data/test/report_test.rb +0 -37
  751. data/test/resource_feedback_test.rb +0 -43
  752. data/test/script_tag_test.rb +0 -31
  753. data/test/session_test.rb +0 -640
  754. data/test/shipping_rate_test.rb +0 -17
  755. data/test/shipping_zone_test.rb +0 -11
  756. data/test/shop_test.rb +0 -82
  757. data/test/smart_collection_test.rb +0 -11
  758. data/test/storefront_access_token_test.rb +0 -30
  759. data/test/tax_service_test.rb +0 -12
  760. data/test/tender_transaction_test.rb +0 -18
  761. data/test/test_helper.rb +0 -126
  762. data/test/transaction_test.rb +0 -18
  763. data/test/usage_charge_test.rb +0 -25
  764. data/test/user_test.rb +0 -18
  765. data/test/variant_test.rb +0 -73
  766. data/test/webhook_test.rb +0 -24
@@ -0,0 +1,1741 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `parser` gem.
5
+ # Please instead update this file by running `bin/tapioca gem parser`.
6
+
7
+ module Parser
8
+ class << self
9
+ private
10
+
11
+ def warn_syntax_deviation(feature, version); end
12
+ end
13
+ end
14
+
15
+ module Parser::AST; end
16
+
17
+ class Parser::AST::Node < ::AST::Node
18
+ def assign_properties(properties); end
19
+ def loc; end
20
+ def location; end
21
+ end
22
+
23
+ class Parser::AST::Processor < ::AST::Processor
24
+ def on_alias(node); end
25
+ def on_and(node); end
26
+ def on_and_asgn(node); end
27
+ def on_arg(node); end
28
+ def on_arg_expr(node); end
29
+ def on_args(node); end
30
+ def on_argument(node); end
31
+ def on_array(node); end
32
+ def on_array_pattern(node); end
33
+ def on_array_pattern_with_tail(node); end
34
+ def on_back_ref(node); end
35
+ def on_begin(node); end
36
+ def on_block(node); end
37
+ def on_block_pass(node); end
38
+ def on_blockarg(node); end
39
+ def on_blockarg_expr(node); end
40
+ def on_break(node); end
41
+ def on_case(node); end
42
+ def on_case_match(node); end
43
+ def on_casgn(node); end
44
+ def on_class(node); end
45
+ def on_const(node); end
46
+ def on_const_pattern(node); end
47
+ def on_csend(node); end
48
+ def on_cvar(node); end
49
+ def on_cvasgn(node); end
50
+ def on_def(node); end
51
+ def on_defined?(node); end
52
+ def on_defs(node); end
53
+ def on_dstr(node); end
54
+ def on_dsym(node); end
55
+ def on_eflipflop(node); end
56
+ def on_empty_else(node); end
57
+ def on_ensure(node); end
58
+ def on_erange(node); end
59
+ def on_find_pattern(node); end
60
+ def on_for(node); end
61
+ def on_forward_arg(node); end
62
+ def on_gvar(node); end
63
+ def on_gvasgn(node); end
64
+ def on_hash(node); end
65
+ def on_hash_pattern(node); end
66
+ def on_if(node); end
67
+ def on_if_guard(node); end
68
+ def on_iflipflop(node); end
69
+ def on_in_match(node); end
70
+ def on_in_pattern(node); end
71
+ def on_index(node); end
72
+ def on_indexasgn(node); end
73
+ def on_irange(node); end
74
+ def on_ivar(node); end
75
+ def on_ivasgn(node); end
76
+ def on_kwarg(node); end
77
+ def on_kwargs(node); end
78
+ def on_kwbegin(node); end
79
+ def on_kwoptarg(node); end
80
+ def on_kwrestarg(node); end
81
+ def on_kwsplat(node); end
82
+ def on_lambda(node); end
83
+ def on_lvar(node); end
84
+ def on_lvasgn(node); end
85
+ def on_masgn(node); end
86
+ def on_match_alt(node); end
87
+ def on_match_as(node); end
88
+ def on_match_current_line(node); end
89
+ def on_match_pattern(node); end
90
+ def on_match_pattern_p(node); end
91
+ def on_match_rest(node); end
92
+ def on_match_var(node); end
93
+ def on_match_with_lvasgn(node); end
94
+ def on_mlhs(node); end
95
+ def on_module(node); end
96
+ def on_next(node); end
97
+ def on_not(node); end
98
+ def on_nth_ref(node); end
99
+ def on_numblock(node); end
100
+ def on_op_asgn(node); end
101
+ def on_optarg(node); end
102
+ def on_or(node); end
103
+ def on_or_asgn(node); end
104
+ def on_pair(node); end
105
+ def on_pin(node); end
106
+ def on_postexe(node); end
107
+ def on_preexe(node); end
108
+ def on_procarg0(node); end
109
+ def on_redo(node); end
110
+ def on_regexp(node); end
111
+ def on_resbody(node); end
112
+ def on_rescue(node); end
113
+ def on_restarg(node); end
114
+ def on_restarg_expr(node); end
115
+ def on_retry(node); end
116
+ def on_return(node); end
117
+ def on_sclass(node); end
118
+ def on_send(node); end
119
+ def on_shadowarg(node); end
120
+ def on_splat(node); end
121
+ def on_super(node); end
122
+ def on_undef(node); end
123
+ def on_unless_guard(node); end
124
+ def on_until(node); end
125
+ def on_until_post(node); end
126
+ def on_var(node); end
127
+ def on_vasgn(node); end
128
+ def on_when(node); end
129
+ def on_while(node); end
130
+ def on_while_post(node); end
131
+ def on_xstr(node); end
132
+ def on_yield(node); end
133
+ def process_argument_node(node); end
134
+ def process_regular_node(node); end
135
+ def process_var_asgn_node(node); end
136
+ def process_variable_node(node); end
137
+ end
138
+
139
+ class Parser::Base < ::Racc::Parser
140
+ def initialize(builder = T.unsafe(nil)); end
141
+
142
+ def builder; end
143
+ def context; end
144
+ def current_arg_stack; end
145
+ def diagnostics; end
146
+ def lexer; end
147
+ def max_numparam_stack; end
148
+ def parse(source_buffer); end
149
+ def parse_with_comments(source_buffer); end
150
+ def pattern_hash_keys; end
151
+ def pattern_variables; end
152
+ def reset; end
153
+ def source_buffer; end
154
+ def static_env; end
155
+ def tokenize(source_buffer, recover = T.unsafe(nil)); end
156
+
157
+ private
158
+
159
+ def check_kwarg_name(name_t); end
160
+ def diagnostic(level, reason, arguments, location_t, highlights_ts = T.unsafe(nil)); end
161
+ def next_token; end
162
+ def on_error(error_token_id, error_value, value_stack); end
163
+
164
+ class << self
165
+ def default_parser; end
166
+ def parse(string, file = T.unsafe(nil), line = T.unsafe(nil)); end
167
+ def parse_file(filename); end
168
+ def parse_file_with_comments(filename); end
169
+ def parse_with_comments(string, file = T.unsafe(nil), line = T.unsafe(nil)); end
170
+
171
+ private
172
+
173
+ def setup_source_buffer(file, line, string, encoding); end
174
+ end
175
+ end
176
+
177
+ module Parser::Builders; end
178
+
179
+ class Parser::Builders::Default
180
+ def initialize; end
181
+
182
+ def __ENCODING__(__ENCODING__t); end
183
+ def __FILE__(__FILE__t); end
184
+ def __LINE__(__LINE__t); end
185
+ def accessible(node); end
186
+ def alias(alias_t, to, from); end
187
+ def arg(name_t); end
188
+ def arg_expr(expr); end
189
+ def args(begin_t, args, end_t, check_args = T.unsafe(nil)); end
190
+ def array(begin_t, elements, end_t); end
191
+ def array_pattern(lbrack_t, elements, rbrack_t); end
192
+ def assign(lhs, eql_t, rhs); end
193
+ def assignable(node); end
194
+ def associate(begin_t, pairs, end_t); end
195
+ def attr_asgn(receiver, dot_t, selector_t); end
196
+ def back_ref(token); end
197
+ def begin(begin_t, body, end_t); end
198
+ def begin_body(compound_stmt, rescue_bodies = T.unsafe(nil), else_t = T.unsafe(nil), else_ = T.unsafe(nil), ensure_t = T.unsafe(nil), ensure_ = T.unsafe(nil)); end
199
+ def begin_keyword(begin_t, body, end_t); end
200
+ def binary_op(receiver, operator_t, arg); end
201
+ def block(method_call, begin_t, args, body, end_t); end
202
+ def block_pass(amper_t, arg); end
203
+ def blockarg(amper_t, name_t); end
204
+ def blockarg_expr(amper_t, expr); end
205
+ def call_lambda(lambda_t); end
206
+ def call_method(receiver, dot_t, selector_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end
207
+ def call_type_for_dot(dot_t); end
208
+ def case(case_t, expr, when_bodies, else_t, else_body, end_t); end
209
+ def case_match(case_t, expr, in_bodies, else_t, else_body, end_t); end
210
+ def character(char_t); end
211
+ def complex(complex_t); end
212
+ def compstmt(statements); end
213
+ def condition(cond_t, cond, then_t, if_true, else_t, if_false, end_t); end
214
+ def condition_mod(if_true, if_false, cond_t, cond); end
215
+ def const(name_t); end
216
+ def const_fetch(scope, t_colon2, name_t); end
217
+ def const_global(t_colon3, name_t); end
218
+ def const_op_assignable(node); end
219
+ def const_pattern(const, ldelim_t, pattern, rdelim_t); end
220
+ def cvar(token); end
221
+ def dedent_string(node, dedent_level); end
222
+ def def_class(class_t, name, lt_t, superclass, body, end_t); end
223
+ def def_endless_method(def_t, name_t, args, assignment_t, body); end
224
+ def def_endless_singleton(def_t, definee, dot_t, name_t, args, assignment_t, body); end
225
+ def def_method(def_t, name_t, args, body, end_t); end
226
+ def def_module(module_t, name, body, end_t); end
227
+ def def_sclass(class_t, lshft_t, expr, body, end_t); end
228
+ def def_singleton(def_t, definee, dot_t, name_t, args, body, end_t); end
229
+ def emit_file_line_as_literals; end
230
+ def emit_file_line_as_literals=(_arg0); end
231
+ def false(false_t); end
232
+ def find_pattern(lbrack_t, elements, rbrack_t); end
233
+ def float(float_t); end
234
+ def for(for_t, iterator, in_t, iteratee, do_t, body, end_t); end
235
+ def forward_arg(dots_t); end
236
+ def forward_only_args(begin_t, dots_t, end_t); end
237
+ def forwarded_args(dots_t); end
238
+ def gvar(token); end
239
+ def hash_pattern(lbrace_t, kwargs, rbrace_t); end
240
+ def ident(token); end
241
+ def if_guard(if_t, if_body); end
242
+ def in_match(lhs, in_t, rhs); end
243
+ def in_pattern(in_t, pattern, guard, then_t, body); end
244
+ def index(receiver, lbrack_t, indexes, rbrack_t); end
245
+ def index_asgn(receiver, lbrack_t, indexes, rbrack_t); end
246
+ def integer(integer_t); end
247
+ def ivar(token); end
248
+ def keyword_cmd(type, keyword_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end
249
+ def kwarg(name_t); end
250
+ def kwnilarg(dstar_t, nil_t); end
251
+ def kwoptarg(name_t, value); end
252
+ def kwrestarg(dstar_t, name_t = T.unsafe(nil)); end
253
+ def kwsplat(dstar_t, arg); end
254
+ def logical_op(type, lhs, op_t, rhs); end
255
+ def loop(type, keyword_t, cond, do_t, body, end_t); end
256
+ def loop_mod(type, body, keyword_t, cond); end
257
+ def match_alt(left, pipe_t, right); end
258
+ def match_as(value, assoc_t, as); end
259
+ def match_hash_var(name_t); end
260
+ def match_hash_var_from_str(begin_t, strings, end_t); end
261
+ def match_label(label_type, label); end
262
+ def match_nil_pattern(dstar_t, nil_t); end
263
+ def match_op(receiver, match_t, arg); end
264
+ def match_pair(label_type, label, value); end
265
+ def match_pattern(lhs, match_t, rhs); end
266
+ def match_pattern_p(lhs, match_t, rhs); end
267
+ def match_rest(star_t, name_t = T.unsafe(nil)); end
268
+ def match_var(name_t); end
269
+ def match_with_trailing_comma(match, comma_t); end
270
+ def multi_assign(lhs, eql_t, rhs); end
271
+ def multi_lhs(begin_t, items, end_t); end
272
+ def nil(nil_t); end
273
+ def not_op(not_t, begin_t = T.unsafe(nil), receiver = T.unsafe(nil), end_t = T.unsafe(nil)); end
274
+ def nth_ref(token); end
275
+ def numargs(max_numparam); end
276
+ def objc_kwarg(kwname_t, assoc_t, name_t); end
277
+ def objc_restarg(star_t, name = T.unsafe(nil)); end
278
+ def objc_varargs(pair, rest_of_varargs); end
279
+ def op_assign(lhs, op_t, rhs); end
280
+ def optarg(name_t, eql_t, value); end
281
+ def pair(key, assoc_t, value); end
282
+ def pair_keyword(key_t, value); end
283
+ def pair_label(key_t); end
284
+ def pair_list_18(list); end
285
+ def pair_quoted(begin_t, parts, end_t, value); end
286
+ def parser; end
287
+ def parser=(_arg0); end
288
+ def pin(pin_t, var); end
289
+ def postexe(postexe_t, lbrace_t, compstmt, rbrace_t); end
290
+ def preexe(preexe_t, lbrace_t, compstmt, rbrace_t); end
291
+ def procarg0(arg); end
292
+ def range_exclusive(lhs, dot3_t, rhs); end
293
+ def range_inclusive(lhs, dot2_t, rhs); end
294
+ def rational(rational_t); end
295
+ def regexp_compose(begin_t, parts, end_t, options); end
296
+ def regexp_options(regopt_t); end
297
+ def rescue_body(rescue_t, exc_list, assoc_t, exc_var, then_t, compound_stmt); end
298
+ def restarg(star_t, name_t = T.unsafe(nil)); end
299
+ def restarg_expr(star_t, expr = T.unsafe(nil)); end
300
+ def self(token); end
301
+ def shadowarg(name_t); end
302
+ def splat(star_t, arg = T.unsafe(nil)); end
303
+ def string(string_t); end
304
+ def string_compose(begin_t, parts, end_t); end
305
+ def string_internal(string_t); end
306
+ def symbol(symbol_t); end
307
+ def symbol_compose(begin_t, parts, end_t); end
308
+ def symbol_internal(symbol_t); end
309
+ def symbols_compose(begin_t, parts, end_t); end
310
+ def ternary(cond, question_t, if_true, colon_t, if_false); end
311
+ def true(true_t); end
312
+ def unary_num(unary_t, numeric); end
313
+ def unary_op(op_t, receiver); end
314
+ def undef_method(undef_t, names); end
315
+ def unless_guard(unless_t, unless_body); end
316
+ def when(when_t, patterns, then_t, body); end
317
+ def word(parts); end
318
+ def words_compose(begin_t, parts, end_t); end
319
+ def xstring_compose(begin_t, parts, end_t); end
320
+
321
+ private
322
+
323
+ def arg_name_collides?(this_name, that_name); end
324
+ def arg_prefix_map(op_t, name_t = T.unsafe(nil)); end
325
+ def binary_op_map(left_e, op_t, right_e); end
326
+ def block_map(receiver_l, begin_t, end_t); end
327
+ def check_assignment_to_numparam(name, loc); end
328
+ def check_condition(cond); end
329
+ def check_duplicate_arg(this_arg, map = T.unsafe(nil)); end
330
+ def check_duplicate_args(args, map = T.unsafe(nil)); end
331
+ def check_duplicate_pattern_key(name, loc); end
332
+ def check_duplicate_pattern_variable(name, loc); end
333
+ def check_lvar_name(name, loc); end
334
+ def check_reserved_for_numparam(name, loc); end
335
+ def collapse_string_parts?(parts); end
336
+ def collection_map(begin_t, parts, end_t); end
337
+ def condition_map(keyword_t, cond_e, begin_t, body_e, else_t, else_e, end_t); end
338
+ def constant_map(scope, colon2_t, name_t); end
339
+ def definition_map(keyword_t, operator_t, name_t, end_t); end
340
+ def delimited_string_map(string_t); end
341
+ def diagnostic(type, reason, arguments, location, highlights = T.unsafe(nil)); end
342
+ def eh_keyword_map(compstmt_e, keyword_t, body_es, else_t, else_e); end
343
+ def endless_definition_map(keyword_t, operator_t, name_t, assignment_t, body_e); end
344
+ def expr_map(loc); end
345
+ def for_map(keyword_t, in_t, begin_t, end_t); end
346
+ def guard_map(keyword_t, guard_body_e); end
347
+ def index_map(receiver_e, lbrack_t, rbrack_t); end
348
+ def join_exprs(left_expr, right_expr); end
349
+ def keyword_map(keyword_t, begin_t, args, end_t); end
350
+ def keyword_mod_map(pre_e, keyword_t, post_e); end
351
+ def kwarg_map(name_t, value_e = T.unsafe(nil)); end
352
+ def kwargs?(node); end
353
+ def loc(token); end
354
+ def module_definition_map(keyword_t, name_e, operator_t, end_t); end
355
+ def n(type, children, source_map); end
356
+ def n0(type, source_map); end
357
+ def numeric(kind, token); end
358
+ def pair_keyword_map(key_t, value_e); end
359
+ def pair_quoted_map(begin_t, end_t, value_e); end
360
+ def prefix_string_map(symbol); end
361
+ def range_map(start_e, op_t, end_e); end
362
+ def regexp_map(begin_t, end_t, options_e); end
363
+ def rescue_body_map(keyword_t, exc_list_e, assoc_t, exc_var_e, then_t, compstmt_e); end
364
+ def rewrite_hash_args_to_kwargs(args); end
365
+ def send_binary_op_map(lhs_e, selector_t, rhs_e); end
366
+ def send_index_map(receiver_e, lbrack_t, rbrack_t); end
367
+ def send_map(receiver_e, dot_t, selector_t, begin_t = T.unsafe(nil), args = T.unsafe(nil), end_t = T.unsafe(nil)); end
368
+ def send_unary_op_map(selector_t, arg_e); end
369
+ def static_regexp(parts, options); end
370
+ def static_regexp_node(node); end
371
+ def static_string(nodes); end
372
+ def string_map(begin_t, parts, end_t); end
373
+ def string_value(token); end
374
+ def ternary_map(begin_e, question_t, mid_e, colon_t, end_e); end
375
+ def token_map(token); end
376
+ def unary_op_map(op_t, arg_e = T.unsafe(nil)); end
377
+ def unquoted_map(token); end
378
+ def validate_definee(definee); end
379
+ def validate_no_forward_arg_after_restarg(args); end
380
+ def value(token); end
381
+ def var_send_map(variable_e); end
382
+ def variable_map(name_t); end
383
+
384
+ class << self
385
+ def emit_arg_inside_procarg0; end
386
+ def emit_arg_inside_procarg0=(_arg0); end
387
+ def emit_encoding; end
388
+ def emit_encoding=(_arg0); end
389
+ def emit_forward_arg; end
390
+ def emit_forward_arg=(_arg0); end
391
+ def emit_index; end
392
+ def emit_index=(_arg0); end
393
+ def emit_kwargs; end
394
+ def emit_kwargs=(_arg0); end
395
+ def emit_lambda; end
396
+ def emit_lambda=(_arg0); end
397
+ def emit_match_pattern; end
398
+ def emit_match_pattern=(_arg0); end
399
+ def emit_procarg0; end
400
+ def emit_procarg0=(_arg0); end
401
+ def modernize; end
402
+ end
403
+ end
404
+
405
+ class Parser::ClobberingError < ::RuntimeError; end
406
+
407
+ class Parser::Context
408
+ def initialize; end
409
+
410
+ def in_argdef; end
411
+ def in_argdef=(_arg0); end
412
+ def in_block; end
413
+ def in_block=(_arg0); end
414
+ def in_class; end
415
+ def in_class=(_arg0); end
416
+ def in_def; end
417
+ def in_def=(_arg0); end
418
+ def in_defined; end
419
+ def in_defined=(_arg0); end
420
+ def in_dynamic_block?; end
421
+ def in_kwarg; end
422
+ def in_kwarg=(_arg0); end
423
+ def in_lambda; end
424
+ def in_lambda=(_arg0); end
425
+ def reset; end
426
+ end
427
+
428
+ Parser::Context::FLAGS = T.let(T.unsafe(nil), Array)
429
+
430
+ class Parser::CurrentArgStack
431
+ def initialize; end
432
+
433
+ def empty?; end
434
+ def pop; end
435
+ def push(value); end
436
+ def reset; end
437
+ def set(value); end
438
+ def stack; end
439
+ def top; end
440
+ end
441
+
442
+ Parser::CurrentRuby = Parser::Ruby27
443
+
444
+ module Parser::Deprecation
445
+ def warn_of_deprecation; end
446
+ def warned_of_deprecation=(_arg0); end
447
+ end
448
+
449
+ class Parser::Diagnostic
450
+ def initialize(level, reason, arguments, location, highlights = T.unsafe(nil)); end
451
+
452
+ def arguments; end
453
+ def highlights; end
454
+ def level; end
455
+ def location; end
456
+ def message; end
457
+ def reason; end
458
+ def render; end
459
+
460
+ private
461
+
462
+ def first_line_only(range); end
463
+ def last_line_only(range); end
464
+ def render_line(range, ellipsis = T.unsafe(nil), range_end = T.unsafe(nil)); end
465
+ end
466
+
467
+ class Parser::Diagnostic::Engine
468
+ def initialize(consumer = T.unsafe(nil)); end
469
+
470
+ def all_errors_are_fatal; end
471
+ def all_errors_are_fatal=(_arg0); end
472
+ def consumer; end
473
+ def consumer=(_arg0); end
474
+ def ignore_warnings; end
475
+ def ignore_warnings=(_arg0); end
476
+ def process(diagnostic); end
477
+
478
+ protected
479
+
480
+ def ignore?(diagnostic); end
481
+ def raise?(diagnostic); end
482
+ end
483
+
484
+ Parser::Diagnostic::LEVELS = T.let(T.unsafe(nil), Array)
485
+
486
+ class Parser::Lexer
487
+ def initialize(version); end
488
+
489
+ def advance; end
490
+ def cmdarg; end
491
+ def cmdarg=(_arg0); end
492
+ def cmdarg_stack; end
493
+ def command_start; end
494
+ def command_start=(_arg0); end
495
+ def comments; end
496
+ def comments=(_arg0); end
497
+ def cond; end
498
+ def cond=(_arg0); end
499
+ def cond_stack; end
500
+ def context; end
501
+ def context=(_arg0); end
502
+ def dedent_level; end
503
+ def diagnostics; end
504
+ def diagnostics=(_arg0); end
505
+ def encoding; end
506
+ def force_utf32; end
507
+ def force_utf32=(_arg0); end
508
+ def lambda_stack; end
509
+ def paren_nest; end
510
+ def pop_cmdarg; end
511
+ def pop_cond; end
512
+ def push_cmdarg; end
513
+ def push_cond; end
514
+ def reset(reset_state = T.unsafe(nil)); end
515
+ def source_buffer; end
516
+ def source_buffer=(source_buffer); end
517
+ def state; end
518
+ def state=(state); end
519
+ def static_env; end
520
+ def static_env=(_arg0); end
521
+ def tokens; end
522
+ def tokens=(_arg0); end
523
+
524
+ protected
525
+
526
+ def arg_or_cmdarg(cmd_state); end
527
+ def diagnostic(type, reason, arguments = T.unsafe(nil), location = T.unsafe(nil), highlights = T.unsafe(nil)); end
528
+ def emit(type, value = T.unsafe(nil), s = T.unsafe(nil), e = T.unsafe(nil)); end
529
+ def emit_comment(s = T.unsafe(nil), e = T.unsafe(nil)); end
530
+ def emit_do(do_block = T.unsafe(nil)); end
531
+ def emit_table(table, s = T.unsafe(nil), e = T.unsafe(nil)); end
532
+ def encode_escape(ord); end
533
+ def eof_codepoint?(point); end
534
+ def literal; end
535
+ def next_state_for_literal(literal); end
536
+ def pop_literal; end
537
+ def push_literal(*args); end
538
+ def range(s = T.unsafe(nil), e = T.unsafe(nil)); end
539
+ def stack_pop; end
540
+ def tok(s = T.unsafe(nil), e = T.unsafe(nil)); end
541
+ def version?(*versions); end
542
+
543
+ class << self
544
+ def lex_en_expr_arg; end
545
+ def lex_en_expr_arg=(_arg0); end
546
+ def lex_en_expr_beg; end
547
+ def lex_en_expr_beg=(_arg0); end
548
+ def lex_en_expr_cmdarg; end
549
+ def lex_en_expr_cmdarg=(_arg0); end
550
+ def lex_en_expr_dot; end
551
+ def lex_en_expr_dot=(_arg0); end
552
+ def lex_en_expr_end; end
553
+ def lex_en_expr_end=(_arg0); end
554
+ def lex_en_expr_endarg; end
555
+ def lex_en_expr_endarg=(_arg0); end
556
+ def lex_en_expr_endfn; end
557
+ def lex_en_expr_endfn=(_arg0); end
558
+ def lex_en_expr_fname; end
559
+ def lex_en_expr_fname=(_arg0); end
560
+ def lex_en_expr_labelarg; end
561
+ def lex_en_expr_labelarg=(_arg0); end
562
+ def lex_en_expr_mid; end
563
+ def lex_en_expr_mid=(_arg0); end
564
+ def lex_en_expr_value; end
565
+ def lex_en_expr_value=(_arg0); end
566
+ def lex_en_expr_variable; end
567
+ def lex_en_expr_variable=(_arg0); end
568
+ def lex_en_interp_backslash_delimited; end
569
+ def lex_en_interp_backslash_delimited=(_arg0); end
570
+ def lex_en_interp_backslash_delimited_words; end
571
+ def lex_en_interp_backslash_delimited_words=(_arg0); end
572
+ def lex_en_interp_string; end
573
+ def lex_en_interp_string=(_arg0); end
574
+ def lex_en_interp_words; end
575
+ def lex_en_interp_words=(_arg0); end
576
+ def lex_en_leading_dot; end
577
+ def lex_en_leading_dot=(_arg0); end
578
+ def lex_en_line_begin; end
579
+ def lex_en_line_begin=(_arg0); end
580
+ def lex_en_line_comment; end
581
+ def lex_en_line_comment=(_arg0); end
582
+ def lex_en_plain_backslash_delimited; end
583
+ def lex_en_plain_backslash_delimited=(_arg0); end
584
+ def lex_en_plain_backslash_delimited_words; end
585
+ def lex_en_plain_backslash_delimited_words=(_arg0); end
586
+ def lex_en_plain_string; end
587
+ def lex_en_plain_string=(_arg0); end
588
+ def lex_en_plain_words; end
589
+ def lex_en_plain_words=(_arg0); end
590
+ def lex_en_regexp_modifiers; end
591
+ def lex_en_regexp_modifiers=(_arg0); end
592
+ def lex_error; end
593
+ def lex_error=(_arg0); end
594
+ def lex_start; end
595
+ def lex_start=(_arg0); end
596
+
597
+ private
598
+
599
+ def _lex_eof_trans; end
600
+ def _lex_eof_trans=(_arg0); end
601
+ def _lex_from_state_actions; end
602
+ def _lex_from_state_actions=(_arg0); end
603
+ def _lex_index_offsets; end
604
+ def _lex_index_offsets=(_arg0); end
605
+ def _lex_indicies; end
606
+ def _lex_indicies=(_arg0); end
607
+ def _lex_key_spans; end
608
+ def _lex_key_spans=(_arg0); end
609
+ def _lex_to_state_actions; end
610
+ def _lex_to_state_actions=(_arg0); end
611
+ def _lex_trans_actions; end
612
+ def _lex_trans_actions=(_arg0); end
613
+ def _lex_trans_keys; end
614
+ def _lex_trans_keys=(_arg0); end
615
+ def _lex_trans_targs; end
616
+ def _lex_trans_targs=(_arg0); end
617
+ end
618
+ end
619
+
620
+ class Parser::Lexer::Dedenter
621
+ def initialize(dedent_level); end
622
+
623
+ def dedent(string); end
624
+ def interrupt; end
625
+ end
626
+
627
+ Parser::Lexer::Dedenter::TAB_WIDTH = T.let(T.unsafe(nil), Integer)
628
+ Parser::Lexer::ESCAPES = T.let(T.unsafe(nil), Hash)
629
+ Parser::Lexer::KEYWORDS = T.let(T.unsafe(nil), Hash)
630
+ Parser::Lexer::KEYWORDS_BEGIN = T.let(T.unsafe(nil), Hash)
631
+ Parser::Lexer::LEX_STATES = T.let(T.unsafe(nil), Hash)
632
+
633
+ class Parser::Lexer::Literal
634
+ def initialize(lexer, str_type, delimiter, str_s, heredoc_e = T.unsafe(nil), indent = T.unsafe(nil), dedent_body = T.unsafe(nil), label_allowed = T.unsafe(nil)); end
635
+
636
+ def backslash_delimited?; end
637
+ def dedent_level; end
638
+ def end_interp_brace_and_try_closing; end
639
+ def extend_content; end
640
+ def extend_space(ts, te); end
641
+ def extend_string(string, ts, te); end
642
+ def flush_string; end
643
+ def heredoc?; end
644
+ def heredoc_e; end
645
+ def infer_indent_level(line); end
646
+ def interpolate?; end
647
+ def munge_escape?(character); end
648
+ def nest_and_try_closing(delimiter, ts, te, lookahead = T.unsafe(nil)); end
649
+ def plain_heredoc?; end
650
+ def regexp?; end
651
+ def saved_herebody_s; end
652
+ def saved_herebody_s=(_arg0); end
653
+ def squiggly_heredoc?; end
654
+ def start_interp_brace; end
655
+ def str_s; end
656
+ def supports_line_continuation_via_slash?; end
657
+ def type; end
658
+ def words?; end
659
+
660
+ protected
661
+
662
+ def clear_buffer; end
663
+ def coerce_encoding(string); end
664
+ def delimiter?(delimiter); end
665
+ def emit(token, type, s, e); end
666
+ def emit_start_tok; end
667
+ end
668
+
669
+ Parser::Lexer::Literal::DELIMITERS = T.let(T.unsafe(nil), Hash)
670
+ Parser::Lexer::Literal::TYPES = T.let(T.unsafe(nil), Hash)
671
+ Parser::Lexer::PUNCTUATION = T.let(T.unsafe(nil), Hash)
672
+ Parser::Lexer::PUNCTUATION_BEGIN = T.let(T.unsafe(nil), Hash)
673
+ Parser::Lexer::REGEXP_META_CHARACTERS = T.let(T.unsafe(nil), Regexp)
674
+
675
+ class Parser::Lexer::StackState
676
+ def initialize(name); end
677
+
678
+ def active?; end
679
+ def clear; end
680
+ def empty?; end
681
+ def inspect; end
682
+ def lexpop; end
683
+ def pop; end
684
+ def push(bit); end
685
+ def to_s; end
686
+ end
687
+
688
+ Parser::MESSAGES = T.let(T.unsafe(nil), Hash)
689
+
690
+ class Parser::MaxNumparamStack
691
+ def initialize; end
692
+
693
+ def empty?; end
694
+ def has_numparams?; end
695
+ def has_ordinary_params!; end
696
+ def has_ordinary_params?; end
697
+ def pop; end
698
+ def push(static:); end
699
+ def register(numparam); end
700
+ def stack; end
701
+ def top; end
702
+
703
+ private
704
+
705
+ def set(value); end
706
+ end
707
+
708
+ Parser::MaxNumparamStack::ORDINARY_PARAMS = T.let(T.unsafe(nil), Integer)
709
+
710
+ module Parser::Messages
711
+ class << self
712
+ def compile(reason, arguments); end
713
+ end
714
+ end
715
+
716
+ module Parser::Meta; end
717
+ Parser::Meta::NODE_TYPES = T.let(T.unsafe(nil), Set)
718
+
719
+ class Parser::Rewriter < ::Parser::AST::Processor
720
+ extend ::Parser::Deprecation
721
+
722
+ def initialize(*_arg0); end
723
+
724
+ def assignment?(node); end
725
+ def insert_after(range, content); end
726
+ def insert_before(range, content); end
727
+ def remove(range); end
728
+ def replace(range, content); end
729
+ def rewrite(source_buffer, ast); end
730
+ def wrap(range, before, after); end
731
+ end
732
+
733
+ Parser::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
734
+
735
+ class Parser::Ruby27 < ::Parser::Base
736
+ def _reduce_1(val, _values, result); end
737
+ def _reduce_10(val, _values, result); end
738
+ def _reduce_100(val, _values, result); end
739
+ def _reduce_101(val, _values, result); end
740
+ def _reduce_102(val, _values, result); end
741
+ def _reduce_103(val, _values, result); end
742
+ def _reduce_104(val, _values, result); end
743
+ def _reduce_105(val, _values, result); end
744
+ def _reduce_106(val, _values, result); end
745
+ def _reduce_107(val, _values, result); end
746
+ def _reduce_108(val, _values, result); end
747
+ def _reduce_109(val, _values, result); end
748
+ def _reduce_11(val, _values, result); end
749
+ def _reduce_110(val, _values, result); end
750
+ def _reduce_111(val, _values, result); end
751
+ def _reduce_112(val, _values, result); end
752
+ def _reduce_113(val, _values, result); end
753
+ def _reduce_114(val, _values, result); end
754
+ def _reduce_115(val, _values, result); end
755
+ def _reduce_117(val, _values, result); end
756
+ def _reduce_118(val, _values, result); end
757
+ def _reduce_119(val, _values, result); end
758
+ def _reduce_12(val, _values, result); end
759
+ def _reduce_125(val, _values, result); end
760
+ def _reduce_127(val, _values, result); end
761
+ def _reduce_128(val, _values, result); end
762
+ def _reduce_129(val, _values, result); end
763
+ def _reduce_13(val, _values, result); end
764
+ def _reduce_14(val, _values, result); end
765
+ def _reduce_15(val, _values, result); end
766
+ def _reduce_16(val, _values, result); end
767
+ def _reduce_18(val, _values, result); end
768
+ def _reduce_19(val, _values, result); end
769
+ def _reduce_2(val, _values, result); end
770
+ def _reduce_20(val, _values, result); end
771
+ def _reduce_201(val, _values, result); end
772
+ def _reduce_202(val, _values, result); end
773
+ def _reduce_203(val, _values, result); end
774
+ def _reduce_204(val, _values, result); end
775
+ def _reduce_205(val, _values, result); end
776
+ def _reduce_206(val, _values, result); end
777
+ def _reduce_207(val, _values, result); end
778
+ def _reduce_208(val, _values, result); end
779
+ def _reduce_209(val, _values, result); end
780
+ def _reduce_21(val, _values, result); end
781
+ def _reduce_210(val, _values, result); end
782
+ def _reduce_211(val, _values, result); end
783
+ def _reduce_212(val, _values, result); end
784
+ def _reduce_213(val, _values, result); end
785
+ def _reduce_214(val, _values, result); end
786
+ def _reduce_215(val, _values, result); end
787
+ def _reduce_216(val, _values, result); end
788
+ def _reduce_217(val, _values, result); end
789
+ def _reduce_218(val, _values, result); end
790
+ def _reduce_219(val, _values, result); end
791
+ def _reduce_22(val, _values, result); end
792
+ def _reduce_220(val, _values, result); end
793
+ def _reduce_221(val, _values, result); end
794
+ def _reduce_222(val, _values, result); end
795
+ def _reduce_223(val, _values, result); end
796
+ def _reduce_224(val, _values, result); end
797
+ def _reduce_225(val, _values, result); end
798
+ def _reduce_226(val, _values, result); end
799
+ def _reduce_227(val, _values, result); end
800
+ def _reduce_228(val, _values, result); end
801
+ def _reduce_23(val, _values, result); end
802
+ def _reduce_230(val, _values, result); end
803
+ def _reduce_231(val, _values, result); end
804
+ def _reduce_232(val, _values, result); end
805
+ def _reduce_233(val, _values, result); end
806
+ def _reduce_234(val, _values, result); end
807
+ def _reduce_235(val, _values, result); end
808
+ def _reduce_236(val, _values, result); end
809
+ def _reduce_237(val, _values, result); end
810
+ def _reduce_238(val, _values, result); end
811
+ def _reduce_239(val, _values, result); end
812
+ def _reduce_24(val, _values, result); end
813
+ def _reduce_240(val, _values, result); end
814
+ def _reduce_241(val, _values, result); end
815
+ def _reduce_242(val, _values, result); end
816
+ def _reduce_248(val, _values, result); end
817
+ def _reduce_249(val, _values, result); end
818
+ def _reduce_25(val, _values, result); end
819
+ def _reduce_253(val, _values, result); end
820
+ def _reduce_254(val, _values, result); end
821
+ def _reduce_256(val, _values, result); end
822
+ def _reduce_257(val, _values, result); end
823
+ def _reduce_258(val, _values, result); end
824
+ def _reduce_259(val, _values, result); end
825
+ def _reduce_26(val, _values, result); end
826
+ def _reduce_260(val, _values, result); end
827
+ def _reduce_262(val, _values, result); end
828
+ def _reduce_265(val, _values, result); end
829
+ def _reduce_266(val, _values, result); end
830
+ def _reduce_267(val, _values, result); end
831
+ def _reduce_268(val, _values, result); end
832
+ def _reduce_269(val, _values, result); end
833
+ def _reduce_27(val, _values, result); end
834
+ def _reduce_270(val, _values, result); end
835
+ def _reduce_271(val, _values, result); end
836
+ def _reduce_272(val, _values, result); end
837
+ def _reduce_273(val, _values, result); end
838
+ def _reduce_274(val, _values, result); end
839
+ def _reduce_275(val, _values, result); end
840
+ def _reduce_276(val, _values, result); end
841
+ def _reduce_277(val, _values, result); end
842
+ def _reduce_278(val, _values, result); end
843
+ def _reduce_279(val, _values, result); end
844
+ def _reduce_28(val, _values, result); end
845
+ def _reduce_280(val, _values, result); end
846
+ def _reduce_281(val, _values, result); end
847
+ def _reduce_283(val, _values, result); end
848
+ def _reduce_284(val, _values, result); end
849
+ def _reduce_285(val, _values, result); end
850
+ def _reduce_29(val, _values, result); end
851
+ def _reduce_296(val, _values, result); end
852
+ def _reduce_297(val, _values, result); end
853
+ def _reduce_298(val, _values, result); end
854
+ def _reduce_299(val, _values, result); end
855
+ def _reduce_3(val, _values, result); end
856
+ def _reduce_30(val, _values, result); end
857
+ def _reduce_300(val, _values, result); end
858
+ def _reduce_301(val, _values, result); end
859
+ def _reduce_302(val, _values, result); end
860
+ def _reduce_303(val, _values, result); end
861
+ def _reduce_304(val, _values, result); end
862
+ def _reduce_305(val, _values, result); end
863
+ def _reduce_306(val, _values, result); end
864
+ def _reduce_307(val, _values, result); end
865
+ def _reduce_308(val, _values, result); end
866
+ def _reduce_309(val, _values, result); end
867
+ def _reduce_310(val, _values, result); end
868
+ def _reduce_311(val, _values, result); end
869
+ def _reduce_312(val, _values, result); end
870
+ def _reduce_313(val, _values, result); end
871
+ def _reduce_314(val, _values, result); end
872
+ def _reduce_315(val, _values, result); end
873
+ def _reduce_317(val, _values, result); end
874
+ def _reduce_318(val, _values, result); end
875
+ def _reduce_319(val, _values, result); end
876
+ def _reduce_32(val, _values, result); end
877
+ def _reduce_320(val, _values, result); end
878
+ def _reduce_321(val, _values, result); end
879
+ def _reduce_322(val, _values, result); end
880
+ def _reduce_323(val, _values, result); end
881
+ def _reduce_324(val, _values, result); end
882
+ def _reduce_325(val, _values, result); end
883
+ def _reduce_326(val, _values, result); end
884
+ def _reduce_327(val, _values, result); end
885
+ def _reduce_328(val, _values, result); end
886
+ def _reduce_329(val, _values, result); end
887
+ def _reduce_33(val, _values, result); end
888
+ def _reduce_330(val, _values, result); end
889
+ def _reduce_331(val, _values, result); end
890
+ def _reduce_332(val, _values, result); end
891
+ def _reduce_333(val, _values, result); end
892
+ def _reduce_334(val, _values, result); end
893
+ def _reduce_335(val, _values, result); end
894
+ def _reduce_336(val, _values, result); end
895
+ def _reduce_337(val, _values, result); end
896
+ def _reduce_338(val, _values, result); end
897
+ def _reduce_339(val, _values, result); end
898
+ def _reduce_34(val, _values, result); end
899
+ def _reduce_340(val, _values, result); end
900
+ def _reduce_341(val, _values, result); end
901
+ def _reduce_342(val, _values, result); end
902
+ def _reduce_344(val, _values, result); end
903
+ def _reduce_345(val, _values, result); end
904
+ def _reduce_346(val, _values, result); end
905
+ def _reduce_347(val, _values, result); end
906
+ def _reduce_35(val, _values, result); end
907
+ def _reduce_350(val, _values, result); end
908
+ def _reduce_354(val, _values, result); end
909
+ def _reduce_356(val, _values, result); end
910
+ def _reduce_359(val, _values, result); end
911
+ def _reduce_360(val, _values, result); end
912
+ def _reduce_361(val, _values, result); end
913
+ def _reduce_362(val, _values, result); end
914
+ def _reduce_364(val, _values, result); end
915
+ def _reduce_365(val, _values, result); end
916
+ def _reduce_366(val, _values, result); end
917
+ def _reduce_367(val, _values, result); end
918
+ def _reduce_368(val, _values, result); end
919
+ def _reduce_369(val, _values, result); end
920
+ def _reduce_37(val, _values, result); end
921
+ def _reduce_370(val, _values, result); end
922
+ def _reduce_371(val, _values, result); end
923
+ def _reduce_372(val, _values, result); end
924
+ def _reduce_373(val, _values, result); end
925
+ def _reduce_374(val, _values, result); end
926
+ def _reduce_375(val, _values, result); end
927
+ def _reduce_376(val, _values, result); end
928
+ def _reduce_377(val, _values, result); end
929
+ def _reduce_378(val, _values, result); end
930
+ def _reduce_379(val, _values, result); end
931
+ def _reduce_38(val, _values, result); end
932
+ def _reduce_380(val, _values, result); end
933
+ def _reduce_381(val, _values, result); end
934
+ def _reduce_383(val, _values, result); end
935
+ def _reduce_384(val, _values, result); end
936
+ def _reduce_385(val, _values, result); end
937
+ def _reduce_386(val, _values, result); end
938
+ def _reduce_387(val, _values, result); end
939
+ def _reduce_388(val, _values, result); end
940
+ def _reduce_389(val, _values, result); end
941
+ def _reduce_39(val, _values, result); end
942
+ def _reduce_390(val, _values, result); end
943
+ def _reduce_392(val, _values, result); end
944
+ def _reduce_393(val, _values, result); end
945
+ def _reduce_394(val, _values, result); end
946
+ def _reduce_395(val, _values, result); end
947
+ def _reduce_396(val, _values, result); end
948
+ def _reduce_397(val, _values, result); end
949
+ def _reduce_398(val, _values, result); end
950
+ def _reduce_399(val, _values, result); end
951
+ def _reduce_4(val, _values, result); end
952
+ def _reduce_40(val, _values, result); end
953
+ def _reduce_400(val, _values, result); end
954
+ def _reduce_402(val, _values, result); end
955
+ def _reduce_403(val, _values, result); end
956
+ def _reduce_404(val, _values, result); end
957
+ def _reduce_405(val, _values, result); end
958
+ def _reduce_406(val, _values, result); end
959
+ def _reduce_407(val, _values, result); end
960
+ def _reduce_408(val, _values, result); end
961
+ def _reduce_409(val, _values, result); end
962
+ def _reduce_41(val, _values, result); end
963
+ def _reduce_410(val, _values, result); end
964
+ def _reduce_411(val, _values, result); end
965
+ def _reduce_412(val, _values, result); end
966
+ def _reduce_413(val, _values, result); end
967
+ def _reduce_414(val, _values, result); end
968
+ def _reduce_415(val, _values, result); end
969
+ def _reduce_416(val, _values, result); end
970
+ def _reduce_417(val, _values, result); end
971
+ def _reduce_418(val, _values, result); end
972
+ def _reduce_419(val, _values, result); end
973
+ def _reduce_42(val, _values, result); end
974
+ def _reduce_420(val, _values, result); end
975
+ def _reduce_421(val, _values, result); end
976
+ def _reduce_422(val, _values, result); end
977
+ def _reduce_423(val, _values, result); end
978
+ def _reduce_424(val, _values, result); end
979
+ def _reduce_425(val, _values, result); end
980
+ def _reduce_426(val, _values, result); end
981
+ def _reduce_427(val, _values, result); end
982
+ def _reduce_428(val, _values, result); end
983
+ def _reduce_429(val, _values, result); end
984
+ def _reduce_43(val, _values, result); end
985
+ def _reduce_430(val, _values, result); end
986
+ def _reduce_431(val, _values, result); end
987
+ def _reduce_432(val, _values, result); end
988
+ def _reduce_433(val, _values, result); end
989
+ def _reduce_434(val, _values, result); end
990
+ def _reduce_435(val, _values, result); end
991
+ def _reduce_436(val, _values, result); end
992
+ def _reduce_438(val, _values, result); end
993
+ def _reduce_439(val, _values, result); end
994
+ def _reduce_44(val, _values, result); end
995
+ def _reduce_440(val, _values, result); end
996
+ def _reduce_441(val, _values, result); end
997
+ def _reduce_443(val, _values, result); end
998
+ def _reduce_444(val, _values, result); end
999
+ def _reduce_445(val, _values, result); end
1000
+ def _reduce_447(val, _values, result); end
1001
+ def _reduce_448(val, _values, result); end
1002
+ def _reduce_449(val, _values, result); end
1003
+ def _reduce_450(val, _values, result); end
1004
+ def _reduce_452(val, _values, result); end
1005
+ def _reduce_454(val, _values, result); end
1006
+ def _reduce_456(val, _values, result); end
1007
+ def _reduce_457(val, _values, result); end
1008
+ def _reduce_459(val, _values, result); end
1009
+ def _reduce_46(val, _values, result); end
1010
+ def _reduce_460(val, _values, result); end
1011
+ def _reduce_461(val, _values, result); end
1012
+ def _reduce_462(val, _values, result); end
1013
+ def _reduce_463(val, _values, result); end
1014
+ def _reduce_464(val, _values, result); end
1015
+ def _reduce_465(val, _values, result); end
1016
+ def _reduce_466(val, _values, result); end
1017
+ def _reduce_467(val, _values, result); end
1018
+ def _reduce_468(val, _values, result); end
1019
+ def _reduce_469(val, _values, result); end
1020
+ def _reduce_470(val, _values, result); end
1021
+ def _reduce_471(val, _values, result); end
1022
+ def _reduce_472(val, _values, result); end
1023
+ def _reduce_473(val, _values, result); end
1024
+ def _reduce_474(val, _values, result); end
1025
+ def _reduce_475(val, _values, result); end
1026
+ def _reduce_476(val, _values, result); end
1027
+ def _reduce_477(val, _values, result); end
1028
+ def _reduce_478(val, _values, result); end
1029
+ def _reduce_479(val, _values, result); end
1030
+ def _reduce_481(val, _values, result); end
1031
+ def _reduce_482(val, _values, result); end
1032
+ def _reduce_483(val, _values, result); end
1033
+ def _reduce_484(val, _values, result); end
1034
+ def _reduce_485(val, _values, result); end
1035
+ def _reduce_486(val, _values, result); end
1036
+ def _reduce_487(val, _values, result); end
1037
+ def _reduce_488(val, _values, result); end
1038
+ def _reduce_49(val, _values, result); end
1039
+ def _reduce_490(val, _values, result); end
1040
+ def _reduce_491(val, _values, result); end
1041
+ def _reduce_492(val, _values, result); end
1042
+ def _reduce_493(val, _values, result); end
1043
+ def _reduce_494(val, _values, result); end
1044
+ def _reduce_495(val, _values, result); end
1045
+ def _reduce_496(val, _values, result); end
1046
+ def _reduce_497(val, _values, result); end
1047
+ def _reduce_498(val, _values, result); end
1048
+ def _reduce_499(val, _values, result); end
1049
+ def _reduce_5(val, _values, result); end
1050
+ def _reduce_50(val, _values, result); end
1051
+ def _reduce_500(val, _values, result); end
1052
+ def _reduce_501(val, _values, result); end
1053
+ def _reduce_502(val, _values, result); end
1054
+ def _reduce_503(val, _values, result); end
1055
+ def _reduce_504(val, _values, result); end
1056
+ def _reduce_506(val, _values, result); end
1057
+ def _reduce_507(val, _values, result); end
1058
+ def _reduce_508(val, _values, result); end
1059
+ def _reduce_509(val, _values, result); end
1060
+ def _reduce_51(val, _values, result); end
1061
+ def _reduce_513(val, _values, result); end
1062
+ def _reduce_514(val, _values, result); end
1063
+ def _reduce_52(val, _values, result); end
1064
+ def _reduce_523(val, _values, result); end
1065
+ def _reduce_524(val, _values, result); end
1066
+ def _reduce_525(val, _values, result); end
1067
+ def _reduce_526(val, _values, result); end
1068
+ def _reduce_527(val, _values, result); end
1069
+ def _reduce_528(val, _values, result); end
1070
+ def _reduce_529(val, _values, result); end
1071
+ def _reduce_53(val, _values, result); end
1072
+ def _reduce_530(val, _values, result); end
1073
+ def _reduce_531(val, _values, result); end
1074
+ def _reduce_532(val, _values, result); end
1075
+ def _reduce_533(val, _values, result); end
1076
+ def _reduce_536(val, _values, result); end
1077
+ def _reduce_538(val, _values, result); end
1078
+ def _reduce_54(val, _values, result); end
1079
+ def _reduce_542(val, _values, result); end
1080
+ def _reduce_543(val, _values, result); end
1081
+ def _reduce_544(val, _values, result); end
1082
+ def _reduce_545(val, _values, result); end
1083
+ def _reduce_546(val, _values, result); end
1084
+ def _reduce_547(val, _values, result); end
1085
+ def _reduce_548(val, _values, result); end
1086
+ def _reduce_549(val, _values, result); end
1087
+ def _reduce_550(val, _values, result); end
1088
+ def _reduce_551(val, _values, result); end
1089
+ def _reduce_552(val, _values, result); end
1090
+ def _reduce_553(val, _values, result); end
1091
+ def _reduce_554(val, _values, result); end
1092
+ def _reduce_555(val, _values, result); end
1093
+ def _reduce_556(val, _values, result); end
1094
+ def _reduce_557(val, _values, result); end
1095
+ def _reduce_558(val, _values, result); end
1096
+ def _reduce_559(val, _values, result); end
1097
+ def _reduce_560(val, _values, result); end
1098
+ def _reduce_561(val, _values, result); end
1099
+ def _reduce_562(val, _values, result); end
1100
+ def _reduce_563(val, _values, result); end
1101
+ def _reduce_564(val, _values, result); end
1102
+ def _reduce_565(val, _values, result); end
1103
+ def _reduce_566(val, _values, result); end
1104
+ def _reduce_567(val, _values, result); end
1105
+ def _reduce_568(val, _values, result); end
1106
+ def _reduce_569(val, _values, result); end
1107
+ def _reduce_57(val, _values, result); end
1108
+ def _reduce_570(val, _values, result); end
1109
+ def _reduce_571(val, _values, result); end
1110
+ def _reduce_572(val, _values, result); end
1111
+ def _reduce_573(val, _values, result); end
1112
+ def _reduce_574(val, _values, result); end
1113
+ def _reduce_575(val, _values, result); end
1114
+ def _reduce_576(val, _values, result); end
1115
+ def _reduce_58(val, _values, result); end
1116
+ def _reduce_580(val, _values, result); end
1117
+ def _reduce_581(val, _values, result); end
1118
+ def _reduce_582(val, _values, result); end
1119
+ def _reduce_583(val, _values, result); end
1120
+ def _reduce_584(val, _values, result); end
1121
+ def _reduce_585(val, _values, result); end
1122
+ def _reduce_586(val, _values, result); end
1123
+ def _reduce_587(val, _values, result); end
1124
+ def _reduce_588(val, _values, result); end
1125
+ def _reduce_589(val, _values, result); end
1126
+ def _reduce_590(val, _values, result); end
1127
+ def _reduce_591(val, _values, result); end
1128
+ def _reduce_592(val, _values, result); end
1129
+ def _reduce_593(val, _values, result); end
1130
+ def _reduce_594(val, _values, result); end
1131
+ def _reduce_595(val, _values, result); end
1132
+ def _reduce_596(val, _values, result); end
1133
+ def _reduce_597(val, _values, result); end
1134
+ def _reduce_598(val, _values, result); end
1135
+ def _reduce_599(val, _values, result); end
1136
+ def _reduce_6(val, _values, result); end
1137
+ def _reduce_600(val, _values, result); end
1138
+ def _reduce_601(val, _values, result); end
1139
+ def _reduce_602(val, _values, result); end
1140
+ def _reduce_603(val, _values, result); end
1141
+ def _reduce_604(val, _values, result); end
1142
+ def _reduce_605(val, _values, result); end
1143
+ def _reduce_606(val, _values, result); end
1144
+ def _reduce_607(val, _values, result); end
1145
+ def _reduce_608(val, _values, result); end
1146
+ def _reduce_609(val, _values, result); end
1147
+ def _reduce_610(val, _values, result); end
1148
+ def _reduce_611(val, _values, result); end
1149
+ def _reduce_612(val, _values, result); end
1150
+ def _reduce_613(val, _values, result); end
1151
+ def _reduce_614(val, _values, result); end
1152
+ def _reduce_615(val, _values, result); end
1153
+ def _reduce_616(val, _values, result); end
1154
+ def _reduce_617(val, _values, result); end
1155
+ def _reduce_618(val, _values, result); end
1156
+ def _reduce_619(val, _values, result); end
1157
+ def _reduce_62(val, _values, result); end
1158
+ def _reduce_620(val, _values, result); end
1159
+ def _reduce_621(val, _values, result); end
1160
+ def _reduce_622(val, _values, result); end
1161
+ def _reduce_623(val, _values, result); end
1162
+ def _reduce_624(val, _values, result); end
1163
+ def _reduce_625(val, _values, result); end
1164
+ def _reduce_626(val, _values, result); end
1165
+ def _reduce_627(val, _values, result); end
1166
+ def _reduce_628(val, _values, result); end
1167
+ def _reduce_629(val, _values, result); end
1168
+ def _reduce_63(val, _values, result); end
1169
+ def _reduce_630(val, _values, result); end
1170
+ def _reduce_631(val, _values, result); end
1171
+ def _reduce_632(val, _values, result); end
1172
+ def _reduce_633(val, _values, result); end
1173
+ def _reduce_634(val, _values, result); end
1174
+ def _reduce_635(val, _values, result); end
1175
+ def _reduce_636(val, _values, result); end
1176
+ def _reduce_637(val, _values, result); end
1177
+ def _reduce_638(val, _values, result); end
1178
+ def _reduce_639(val, _values, result); end
1179
+ def _reduce_64(val, _values, result); end
1180
+ def _reduce_640(val, _values, result); end
1181
+ def _reduce_642(val, _values, result); end
1182
+ def _reduce_643(val, _values, result); end
1183
+ def _reduce_644(val, _values, result); end
1184
+ def _reduce_645(val, _values, result); end
1185
+ def _reduce_646(val, _values, result); end
1186
+ def _reduce_647(val, _values, result); end
1187
+ def _reduce_648(val, _values, result); end
1188
+ def _reduce_649(val, _values, result); end
1189
+ def _reduce_650(val, _values, result); end
1190
+ def _reduce_651(val, _values, result); end
1191
+ def _reduce_652(val, _values, result); end
1192
+ def _reduce_653(val, _values, result); end
1193
+ def _reduce_654(val, _values, result); end
1194
+ def _reduce_655(val, _values, result); end
1195
+ def _reduce_656(val, _values, result); end
1196
+ def _reduce_659(val, _values, result); end
1197
+ def _reduce_66(val, _values, result); end
1198
+ def _reduce_660(val, _values, result); end
1199
+ def _reduce_661(val, _values, result); end
1200
+ def _reduce_662(val, _values, result); end
1201
+ def _reduce_663(val, _values, result); end
1202
+ def _reduce_664(val, _values, result); end
1203
+ def _reduce_665(val, _values, result); end
1204
+ def _reduce_666(val, _values, result); end
1205
+ def _reduce_667(val, _values, result); end
1206
+ def _reduce_67(val, _values, result); end
1207
+ def _reduce_670(val, _values, result); end
1208
+ def _reduce_671(val, _values, result); end
1209
+ def _reduce_674(val, _values, result); end
1210
+ def _reduce_675(val, _values, result); end
1211
+ def _reduce_676(val, _values, result); end
1212
+ def _reduce_678(val, _values, result); end
1213
+ def _reduce_679(val, _values, result); end
1214
+ def _reduce_68(val, _values, result); end
1215
+ def _reduce_681(val, _values, result); end
1216
+ def _reduce_682(val, _values, result); end
1217
+ def _reduce_683(val, _values, result); end
1218
+ def _reduce_684(val, _values, result); end
1219
+ def _reduce_685(val, _values, result); end
1220
+ def _reduce_686(val, _values, result); end
1221
+ def _reduce_69(val, _values, result); end
1222
+ def _reduce_699(val, _values, result); end
1223
+ def _reduce_7(val, _values, result); end
1224
+ def _reduce_70(val, _values, result); end
1225
+ def _reduce_700(val, _values, result); end
1226
+ def _reduce_705(val, _values, result); end
1227
+ def _reduce_706(val, _values, result); end
1228
+ def _reduce_707(val, _values, result); end
1229
+ def _reduce_71(val, _values, result); end
1230
+ def _reduce_711(val, _values, result); end
1231
+ def _reduce_715(val, _values, result); end
1232
+ def _reduce_72(val, _values, result); end
1233
+ def _reduce_73(val, _values, result); end
1234
+ def _reduce_74(val, _values, result); end
1235
+ def _reduce_75(val, _values, result); end
1236
+ def _reduce_76(val, _values, result); end
1237
+ def _reduce_77(val, _values, result); end
1238
+ def _reduce_78(val, _values, result); end
1239
+ def _reduce_79(val, _values, result); end
1240
+ def _reduce_80(val, _values, result); end
1241
+ def _reduce_82(val, _values, result); end
1242
+ def _reduce_83(val, _values, result); end
1243
+ def _reduce_84(val, _values, result); end
1244
+ def _reduce_85(val, _values, result); end
1245
+ def _reduce_86(val, _values, result); end
1246
+ def _reduce_87(val, _values, result); end
1247
+ def _reduce_88(val, _values, result); end
1248
+ def _reduce_89(val, _values, result); end
1249
+ def _reduce_9(val, _values, result); end
1250
+ def _reduce_90(val, _values, result); end
1251
+ def _reduce_92(val, _values, result); end
1252
+ def _reduce_93(val, _values, result); end
1253
+ def _reduce_94(val, _values, result); end
1254
+ def _reduce_95(val, _values, result); end
1255
+ def _reduce_96(val, _values, result); end
1256
+ def _reduce_97(val, _values, result); end
1257
+ def _reduce_98(val, _values, result); end
1258
+ def _reduce_99(val, _values, result); end
1259
+ def _reduce_none(val, _values, result); end
1260
+ def default_encoding; end
1261
+ def local_pop; end
1262
+ def local_push; end
1263
+ def try_declare_numparam(node); end
1264
+ def version; end
1265
+ end
1266
+
1267
+ Parser::Ruby27::Racc_arg = T.let(T.unsafe(nil), Array)
1268
+ Parser::Ruby27::Racc_token_to_s_table = T.let(T.unsafe(nil), Array)
1269
+ module Parser::Source; end
1270
+
1271
+ class Parser::Source::Buffer
1272
+ def initialize(name, first_line = T.unsafe(nil), source: T.unsafe(nil)); end
1273
+
1274
+ def column_for_position(position); end
1275
+ def decompose_position(position); end
1276
+ def first_line; end
1277
+ def freeze; end
1278
+ def inspect; end
1279
+ def last_line; end
1280
+ def line_for_position(position); end
1281
+ def line_range(lineno); end
1282
+ def name; end
1283
+ def raw_source=(input); end
1284
+ def read; end
1285
+ def slice(range); end
1286
+ def source; end
1287
+ def source=(input); end
1288
+ def source_line(lineno); end
1289
+ def source_lines; end
1290
+ def source_range; end
1291
+
1292
+ private
1293
+
1294
+ def bsearch(line_begins, position); end
1295
+ def line_begins; end
1296
+ def line_index_for_position(position); end
1297
+
1298
+ class << self
1299
+ def recognize_encoding(string); end
1300
+ def reencode_string(input); end
1301
+ end
1302
+ end
1303
+
1304
+ Parser::Source::Buffer::ENCODING_RE = T.let(T.unsafe(nil), Regexp)
1305
+
1306
+ class Parser::Source::Comment
1307
+ def initialize(range); end
1308
+
1309
+ def ==(other); end
1310
+ def document?; end
1311
+ def inline?; end
1312
+ def inspect; end
1313
+ def loc; end
1314
+ def location; end
1315
+ def text; end
1316
+ def type; end
1317
+
1318
+ class << self
1319
+ def associate(ast, comments); end
1320
+ def associate_by_identity(ast, comments); end
1321
+ def associate_locations(ast, comments); end
1322
+ end
1323
+ end
1324
+
1325
+ class Parser::Source::Comment::Associator
1326
+ def initialize(ast, comments); end
1327
+
1328
+ def associate; end
1329
+ def associate_by_identity; end
1330
+ def associate_locations; end
1331
+ def skip_directives; end
1332
+ def skip_directives=(_arg0); end
1333
+
1334
+ private
1335
+
1336
+ def advance_comment; end
1337
+ def advance_through_directives; end
1338
+ def associate_and_advance_comment(node); end
1339
+ def children_in_source_order(node); end
1340
+ def current_comment_before?(node); end
1341
+ def current_comment_before_end?(node); end
1342
+ def current_comment_decorates?(node); end
1343
+ def do_associate; end
1344
+ def process_leading_comments(node); end
1345
+ def process_trailing_comments(node); end
1346
+ def visit(node); end
1347
+ end
1348
+
1349
+ Parser::Source::Comment::Associator::MAGIC_COMMENT_RE = T.let(T.unsafe(nil), Regexp)
1350
+ Parser::Source::Comment::Associator::POSTFIX_TYPES = T.let(T.unsafe(nil), Set)
1351
+
1352
+ class Parser::Source::Map
1353
+ def initialize(expression); end
1354
+
1355
+ def ==(other); end
1356
+ def column; end
1357
+ def expression; end
1358
+ def first_line; end
1359
+ def last_column; end
1360
+ def last_line; end
1361
+ def line; end
1362
+ def node; end
1363
+ def node=(node); end
1364
+ def to_hash; end
1365
+ def with_expression(expression_l); end
1366
+
1367
+ protected
1368
+
1369
+ def update_expression(expression_l); end
1370
+ def with(&block); end
1371
+
1372
+ private
1373
+
1374
+ def initialize_copy(other); end
1375
+ end
1376
+
1377
+ class Parser::Source::Map::Collection < ::Parser::Source::Map
1378
+ def initialize(begin_l, end_l, expression_l); end
1379
+
1380
+ def begin; end
1381
+ def end; end
1382
+ end
1383
+
1384
+ class Parser::Source::Map::Condition < ::Parser::Source::Map
1385
+ def initialize(keyword_l, begin_l, else_l, end_l, expression_l); end
1386
+
1387
+ def begin; end
1388
+ def else; end
1389
+ def end; end
1390
+ def keyword; end
1391
+ end
1392
+
1393
+ class Parser::Source::Map::Constant < ::Parser::Source::Map
1394
+ def initialize(double_colon, name, expression); end
1395
+
1396
+ def double_colon; end
1397
+ def name; end
1398
+ def operator; end
1399
+ def with_operator(operator_l); end
1400
+
1401
+ protected
1402
+
1403
+ def update_operator(operator_l); end
1404
+ end
1405
+
1406
+ class Parser::Source::Map::Definition < ::Parser::Source::Map
1407
+ def initialize(keyword_l, operator_l, name_l, end_l); end
1408
+
1409
+ def end; end
1410
+ def keyword; end
1411
+ def name; end
1412
+ def operator; end
1413
+ end
1414
+
1415
+ class Parser::Source::Map::For < ::Parser::Source::Map
1416
+ def initialize(keyword_l, in_l, begin_l, end_l, expression_l); end
1417
+
1418
+ def begin; end
1419
+ def end; end
1420
+ def in; end
1421
+ def keyword; end
1422
+ end
1423
+
1424
+ class Parser::Source::Map::Heredoc < ::Parser::Source::Map
1425
+ def initialize(begin_l, body_l, end_l); end
1426
+
1427
+ def heredoc_body; end
1428
+ def heredoc_end; end
1429
+ end
1430
+
1431
+ class Parser::Source::Map::Index < ::Parser::Source::Map
1432
+ def initialize(begin_l, end_l, expression_l); end
1433
+
1434
+ def begin; end
1435
+ def end; end
1436
+ def operator; end
1437
+ def with_operator(operator_l); end
1438
+
1439
+ protected
1440
+
1441
+ def update_operator(operator_l); end
1442
+ end
1443
+
1444
+ class Parser::Source::Map::Keyword < ::Parser::Source::Map
1445
+ def initialize(keyword_l, begin_l, end_l, expression_l); end
1446
+
1447
+ def begin; end
1448
+ def end; end
1449
+ def keyword; end
1450
+ end
1451
+
1452
+ class Parser::Source::Map::MethodDefinition < ::Parser::Source::Map
1453
+ def initialize(keyword_l, operator_l, name_l, end_l, assignment_l, body_l); end
1454
+
1455
+ def assignment; end
1456
+ def end; end
1457
+ def keyword; end
1458
+ def name; end
1459
+ def operator; end
1460
+ end
1461
+
1462
+ class Parser::Source::Map::ObjcKwarg < ::Parser::Source::Map
1463
+ def initialize(keyword_l, operator_l, argument_l, expression_l); end
1464
+
1465
+ def argument; end
1466
+ def keyword; end
1467
+ def operator; end
1468
+ end
1469
+
1470
+ class Parser::Source::Map::Operator < ::Parser::Source::Map
1471
+ def initialize(operator, expression); end
1472
+
1473
+ def operator; end
1474
+ end
1475
+
1476
+ class Parser::Source::Map::RescueBody < ::Parser::Source::Map
1477
+ def initialize(keyword_l, assoc_l, begin_l, expression_l); end
1478
+
1479
+ def assoc; end
1480
+ def begin; end
1481
+ def keyword; end
1482
+ end
1483
+
1484
+ class Parser::Source::Map::Send < ::Parser::Source::Map
1485
+ def initialize(dot_l, selector_l, begin_l, end_l, expression_l); end
1486
+
1487
+ def begin; end
1488
+ def dot; end
1489
+ def end; end
1490
+ def operator; end
1491
+ def selector; end
1492
+ def with_operator(operator_l); end
1493
+
1494
+ protected
1495
+
1496
+ def update_operator(operator_l); end
1497
+ end
1498
+
1499
+ class Parser::Source::Map::Ternary < ::Parser::Source::Map
1500
+ def initialize(question_l, colon_l, expression_l); end
1501
+
1502
+ def colon; end
1503
+ def question; end
1504
+ end
1505
+
1506
+ class Parser::Source::Map::Variable < ::Parser::Source::Map
1507
+ def initialize(name_l, expression_l = T.unsafe(nil)); end
1508
+
1509
+ def name; end
1510
+ def operator; end
1511
+ def with_operator(operator_l); end
1512
+
1513
+ protected
1514
+
1515
+ def update_operator(operator_l); end
1516
+ end
1517
+
1518
+ class Parser::Source::Range
1519
+ include ::Comparable
1520
+ include ::RuboCop::AST::Ext::Range
1521
+
1522
+ def initialize(source_buffer, begin_pos, end_pos); end
1523
+
1524
+ def <=>(other); end
1525
+ def adjust(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end
1526
+ def begin; end
1527
+ def begin_pos; end
1528
+ def column; end
1529
+ def column_range; end
1530
+ def contained?(other); end
1531
+ def contains?(other); end
1532
+ def crossing?(other); end
1533
+ def disjoint?(other); end
1534
+ def empty?; end
1535
+ def end; end
1536
+ def end_pos; end
1537
+ def eql?(_arg0); end
1538
+ def first_line; end
1539
+ def hash; end
1540
+ def inspect; end
1541
+ def intersect(other); end
1542
+ def is?(*what); end
1543
+ def join(other); end
1544
+ def last_column; end
1545
+ def last_line; end
1546
+ def length; end
1547
+ def line; end
1548
+ def overlaps?(other); end
1549
+ def resize(new_size); end
1550
+ def size; end
1551
+ def source; end
1552
+ def source_buffer; end
1553
+ def source_line; end
1554
+ def to_a; end
1555
+ def to_range; end
1556
+ def to_s; end
1557
+ def with(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end
1558
+ end
1559
+
1560
+ class Parser::Source::Rewriter
1561
+ extend ::Parser::Deprecation
1562
+
1563
+ def initialize(source_buffer); end
1564
+
1565
+ def diagnostics; end
1566
+ def insert_after(range, content); end
1567
+ def insert_after_multi(range, content); end
1568
+ def insert_before(range, content); end
1569
+ def insert_before_multi(range, content); end
1570
+ def process; end
1571
+ def remove(range); end
1572
+ def replace(range, content); end
1573
+ def source_buffer; end
1574
+ def transaction; end
1575
+ def wrap(range, before, after); end
1576
+
1577
+ private
1578
+
1579
+ def active_clobber; end
1580
+ def active_clobber=(value); end
1581
+ def active_insertions; end
1582
+ def active_insertions=(value); end
1583
+ def active_queue; end
1584
+ def adjacent?(range1, range2); end
1585
+ def adjacent_insertion_mask(range); end
1586
+ def adjacent_insertions?(range); end
1587
+ def adjacent_position_mask(range); end
1588
+ def adjacent_updates?(range); end
1589
+ def append(action); end
1590
+ def can_merge?(action, existing); end
1591
+ def clobbered_insertion?(insertion); end
1592
+ def clobbered_position_mask(range); end
1593
+ def in_transaction?; end
1594
+ def merge_actions(action, existing); end
1595
+ def merge_actions!(action, existing); end
1596
+ def merge_replacements(actions); end
1597
+ def raise_clobber_error(action, existing); end
1598
+ def record_insertion(range); end
1599
+ def record_replace(range); end
1600
+ def replace_actions(old, updated); end
1601
+ def replace_compatible_with_insertion?(replace, insertion); end
1602
+ end
1603
+
1604
+ class Parser::Source::Rewriter::Action
1605
+ include ::Comparable
1606
+
1607
+ def initialize(range, replacement = T.unsafe(nil), allow_multiple_insertions = T.unsafe(nil), order = T.unsafe(nil)); end
1608
+
1609
+ def <=>(other); end
1610
+ def allow_multiple_insertions; end
1611
+ def allow_multiple_insertions?; end
1612
+ def order; end
1613
+ def range; end
1614
+ def replacement; end
1615
+ def to_s; end
1616
+ end
1617
+
1618
+ Parser::Source::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
1619
+
1620
+ class Parser::Source::TreeRewriter
1621
+ extend ::Parser::Deprecation
1622
+
1623
+ def initialize(source_buffer, crossing_deletions: T.unsafe(nil), different_replacements: T.unsafe(nil), swallowed_insertions: T.unsafe(nil)); end
1624
+
1625
+ def as_nested_actions; end
1626
+ def as_replacements; end
1627
+ def diagnostics; end
1628
+ def empty?; end
1629
+ def import!(foreign_rewriter, offset: T.unsafe(nil)); end
1630
+ def in_transaction?; end
1631
+ def insert_after(range, content); end
1632
+ def insert_after_multi(range, text); end
1633
+ def insert_before(range, content); end
1634
+ def insert_before_multi(range, text); end
1635
+ def inspect; end
1636
+ def merge(with); end
1637
+ def merge!(with); end
1638
+ def process; end
1639
+ def remove(range); end
1640
+ def replace(range, content); end
1641
+ def source_buffer; end
1642
+ def transaction; end
1643
+ def wrap(range, insert_before, insert_after); end
1644
+
1645
+ protected
1646
+
1647
+ def action_root; end
1648
+
1649
+ private
1650
+
1651
+ def action_summary; end
1652
+ def check_policy_validity; end
1653
+ def check_range_validity(range); end
1654
+ def combine(range, attributes); end
1655
+ def enforce_policy(event); end
1656
+ def trigger_policy(event, range: T.unsafe(nil), conflict: T.unsafe(nil), **arguments); end
1657
+ end
1658
+
1659
+ Parser::Source::TreeRewriter::ACTIONS = T.let(T.unsafe(nil), Array)
1660
+
1661
+ class Parser::Source::TreeRewriter::Action
1662
+ def initialize(range, enforcer, insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil), children: T.unsafe(nil)); end
1663
+
1664
+ def combine(action); end
1665
+ def contract; end
1666
+ def empty?; end
1667
+ def insert_after; end
1668
+ def insert_before; end
1669
+ def insertion?; end
1670
+ def moved(source_buffer, offset); end
1671
+ def nested_actions; end
1672
+ def ordered_replacements; end
1673
+ def range; end
1674
+ def replacement; end
1675
+
1676
+ protected
1677
+
1678
+ def analyse_hierarchy(action); end
1679
+ def bsearch_child_index(from = T.unsafe(nil)); end
1680
+ def call_enforcer_for_merge(action); end
1681
+ def check_fusible(action, *fusible); end
1682
+ def children; end
1683
+ def combine_children(more_children); end
1684
+ def do_combine(action); end
1685
+ def fuse_deletions(action, fusible, other_sibblings); end
1686
+ def merge(action); end
1687
+ def place_in_hierarchy(action); end
1688
+ def swallow(children); end
1689
+ def with(range: T.unsafe(nil), enforcer: T.unsafe(nil), children: T.unsafe(nil), insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil)); end
1690
+ end
1691
+
1692
+ Parser::Source::TreeRewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
1693
+ Parser::Source::TreeRewriter::POLICY_TO_LEVEL = T.let(T.unsafe(nil), Hash)
1694
+
1695
+ class Parser::StaticEnvironment
1696
+ def initialize; end
1697
+
1698
+ def declare(name); end
1699
+ def declare_anonymous_blockarg; end
1700
+ def declare_forward_args; end
1701
+ def declared?(name); end
1702
+ def declared_anonymous_blockarg?; end
1703
+ def declared_forward_args?; end
1704
+ def empty?; end
1705
+ def extend_dynamic; end
1706
+ def extend_static; end
1707
+ def reset; end
1708
+ def unextend; end
1709
+ end
1710
+
1711
+ Parser::StaticEnvironment::ANONYMOUS_BLOCKARG = T.let(T.unsafe(nil), Symbol)
1712
+ Parser::StaticEnvironment::FORWARD_ARGS = T.let(T.unsafe(nil), Symbol)
1713
+
1714
+ class Parser::SyntaxError < ::StandardError
1715
+ def initialize(diagnostic); end
1716
+
1717
+ def diagnostic; end
1718
+ end
1719
+
1720
+ class Parser::TreeRewriter < ::Parser::AST::Processor
1721
+ def assignment?(node); end
1722
+ def insert_after(range, content); end
1723
+ def insert_before(range, content); end
1724
+ def remove(range); end
1725
+ def replace(range, content); end
1726
+ def rewrite(source_buffer, ast, **policy); end
1727
+ def wrap(range, before, after); end
1728
+ end
1729
+
1730
+ Parser::VERSION = T.let(T.unsafe(nil), String)
1731
+
1732
+ class Parser::VariablesStack
1733
+ def initialize; end
1734
+
1735
+ def declare(name); end
1736
+ def declared?(name); end
1737
+ def empty?; end
1738
+ def pop; end
1739
+ def push; end
1740
+ def reset; end
1741
+ end