shopify_api 4.13.0 → 12.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (698) hide show
  1. checksums.yaml +5 -5
  2. data/.github/CODEOWNERS +1 -0
  3. data/.github/ISSUE_TEMPLATE.md +35 -0
  4. data/.github/dependabot.yml +20 -0
  5. data/.github/pull_request_template.md +20 -0
  6. data/.github/workflows/build.yml +42 -0
  7. data/.github/workflows/cla.yml +22 -0
  8. data/.github/workflows/close-waiting-for-response-issues.yml +20 -0
  9. data/.github/workflows/remove-labels-on-activity.yml +16 -0
  10. data/.github/workflows/stale.yml +32 -0
  11. data/.rubocop.yml +56 -5
  12. data/BREAKING_CHANGES_FOR_OLDER_VERSIONS.md +110 -0
  13. data/CHANGELOG.md +568 -0
  14. data/CONTRIBUTING.md +4 -3
  15. data/Gemfile +9 -2
  16. data/Gemfile.lock +159 -0
  17. data/LICENSE +2 -2
  18. data/README.md +86 -218
  19. data/RELEASING.md +19 -0
  20. data/Rakefile +16 -32
  21. data/SECURITY.md +59 -0
  22. data/bin/tapioca +29 -0
  23. data/dev.yml +32 -0
  24. data/docs/README.md +13 -0
  25. data/docs/getting_started.md +53 -0
  26. data/docs/issues.md +39 -0
  27. data/docs/usage/graphql.md +115 -0
  28. data/docs/usage/graphql_storefront.md +42 -0
  29. data/docs/usage/oauth.md +105 -0
  30. data/docs/usage/rest.md +137 -0
  31. data/docs/usage/session_storage.md +46 -0
  32. data/docs/usage/webhooks.md +98 -0
  33. data/lib/shopify_api/admin_versions.rb +19 -0
  34. data/lib/shopify_api/auth/associated_user.rb +36 -0
  35. data/lib/shopify_api/auth/auth_scopes.rb +75 -0
  36. data/lib/shopify_api/auth/file_session_storage.rb +72 -0
  37. data/lib/shopify_api/auth/jwt_payload.rb +83 -0
  38. data/lib/shopify_api/auth/oauth/auth_query.rb +47 -0
  39. data/lib/shopify_api/auth/oauth/session_cookie.rb +28 -0
  40. data/lib/shopify_api/auth/oauth.rb +138 -0
  41. data/lib/shopify_api/auth/session.rb +119 -0
  42. data/lib/shopify_api/auth/session_storage.rb +30 -0
  43. data/lib/shopify_api/auth.rb +26 -0
  44. data/lib/shopify_api/clients/graphql/admin.rb +15 -0
  45. data/lib/shopify_api/clients/graphql/client.rb +40 -0
  46. data/lib/shopify_api/clients/graphql/storefront.rb +35 -0
  47. data/lib/shopify_api/clients/http_client.rb +100 -0
  48. data/lib/shopify_api/clients/http_request.rb +35 -0
  49. data/lib/shopify_api/clients/http_response.rb +66 -0
  50. data/lib/shopify_api/clients/rest/admin.rb +118 -0
  51. data/lib/shopify_api/context.rb +166 -0
  52. data/lib/shopify_api/errors/context_not_setup_error.rb +9 -0
  53. data/lib/shopify_api/errors/cookie_not_found_error.rb +9 -0
  54. data/lib/shopify_api/errors/http_response_error.rb +19 -0
  55. data/lib/shopify_api/errors/invalid_graphql_request_error.rb +9 -0
  56. data/lib/shopify_api/errors/invalid_http_request_error.rb +9 -0
  57. data/lib/shopify_api/errors/invalid_jwt_token_error.rb +9 -0
  58. data/lib/shopify_api/errors/invalid_oauth_error.rb +9 -0
  59. data/lib/shopify_api/errors/invalid_webhook_error.rb +9 -0
  60. data/lib/shopify_api/errors/invalid_webhook_registration_error.rb +9 -0
  61. data/lib/shopify_api/errors/max_http_retries_exceeded_error.rb +9 -0
  62. data/lib/shopify_api/errors/missing_jwt_token_error.rb +9 -0
  63. data/lib/shopify_api/errors/missing_required_argument_error.rb +9 -0
  64. data/lib/shopify_api/errors/no_active_session_error.rb +9 -0
  65. data/lib/shopify_api/errors/no_session_cookie_error.rb +9 -0
  66. data/lib/shopify_api/errors/no_webhook_handler.rb +9 -0
  67. data/lib/shopify_api/errors/private_app_error.rb +9 -0
  68. data/lib/shopify_api/errors/request_access_token_error.rb +9 -0
  69. data/lib/shopify_api/errors/session_not_found_error.rb +9 -0
  70. data/lib/shopify_api/errors/session_storage_error.rb +9 -0
  71. data/lib/shopify_api/errors/unsupported_oauth_error.rb +9 -0
  72. data/lib/shopify_api/errors/unsupported_version_error.rb +9 -0
  73. data/lib/shopify_api/errors/webhook_registration_error.rb +9 -0
  74. data/lib/shopify_api/inflector.rb +17 -0
  75. data/lib/shopify_api/rest/base.rb +387 -0
  76. data/lib/shopify_api/rest/base_errors.rb +32 -0
  77. data/lib/shopify_api/rest/resources/2022_01/abandoned_checkout.rb +190 -0
  78. data/lib/shopify_api/rest/resources/2022_01/access_scope.rb +58 -0
  79. data/lib/shopify_api/rest/resources/2022_01/android_pay_key.rb +77 -0
  80. data/lib/shopify_api/rest/resources/2022_01/apple_pay_certificate.rb +105 -0
  81. data/lib/shopify_api/rest/resources/2022_01/application_charge.rb +104 -0
  82. data/lib/shopify_api/rest/resources/2022_01/application_credit.rb +87 -0
  83. data/lib/shopify_api/rest/resources/2022_01/article.rb +265 -0
  84. data/lib/shopify_api/rest/resources/2022_01/asset.rb +118 -0
  85. data/lib/shopify_api/rest/resources/2022_01/assigned_fulfillment_order.rb +79 -0
  86. data/lib/shopify_api/rest/resources/2022_01/balance.rb +50 -0
  87. data/lib/shopify_api/rest/resources/2022_01/blog.rb +162 -0
  88. data/lib/shopify_api/rest/resources/2022_01/cancellation_request.rb +83 -0
  89. data/lib/shopify_api/rest/resources/2022_01/carrier_service.rb +116 -0
  90. data/lib/shopify_api/rest/resources/2022_01/checkout.rb +209 -0
  91. data/lib/shopify_api/rest/resources/2022_01/collect.rb +142 -0
  92. data/lib/shopify_api/rest/resources/2022_01/collection.rb +110 -0
  93. data/lib/shopify_api/rest/resources/2022_01/collection_listing.rb +155 -0
  94. data/lib/shopify_api/rest/resources/2022_01/comment.rb +283 -0
  95. data/lib/shopify_api/rest/resources/2022_01/country.rb +137 -0
  96. data/lib/shopify_api/rest/resources/2022_01/currency.rb +57 -0
  97. data/lib/shopify_api/rest/resources/2022_01/custom_collection.rb +187 -0
  98. data/lib/shopify_api/rest/resources/2022_01/customer.rb +318 -0
  99. data/lib/shopify_api/rest/resources/2022_01/customer_address.rb +201 -0
  100. data/lib/shopify_api/rest/resources/2022_01/customer_saved_search.rb +169 -0
  101. data/lib/shopify_api/rest/resources/2022_01/deprecated_api_call.rb +57 -0
  102. data/lib/shopify_api/rest/resources/2022_01/discount_code.rb +219 -0
  103. data/lib/shopify_api/rest/resources/2022_01/dispute.rb +111 -0
  104. data/lib/shopify_api/rest/resources/2022_01/draft_order.rb +275 -0
  105. data/lib/shopify_api/rest/resources/2022_01/event.rb +148 -0
  106. data/lib/shopify_api/rest/resources/2022_01/fulfillment.rb +268 -0
  107. data/lib/shopify_api/rest/resources/2022_01/fulfillment_event.rb +166 -0
  108. data/lib/shopify_api/rest/resources/2022_01/fulfillment_order.rb +281 -0
  109. data/lib/shopify_api/rest/resources/2022_01/fulfillment_request.rb +87 -0
  110. data/lib/shopify_api/rest/resources/2022_01/fulfillment_service.rb +130 -0
  111. data/lib/shopify_api/rest/resources/2022_01/gift_card.rb +215 -0
  112. data/lib/shopify_api/rest/resources/2022_01/gift_card_adjustment.rb +118 -0
  113. data/lib/shopify_api/rest/resources/2022_01/image.rb +157 -0
  114. data/lib/shopify_api/rest/resources/2022_01/inventory_item.rb +108 -0
  115. data/lib/shopify_api/rest/resources/2022_01/inventory_level.rb +179 -0
  116. data/lib/shopify_api/rest/resources/2022_01/location.rb +167 -0
  117. data/lib/shopify_api/rest/resources/2022_01/locations_for_move.rb +56 -0
  118. data/lib/shopify_api/rest/resources/2022_01/marketing_event.rb +209 -0
  119. data/lib/shopify_api/rest/resources/2022_01/metafield.rb +349 -0
  120. data/lib/shopify_api/rest/resources/2022_01/mobile_platform_application.rb +110 -0
  121. data/lib/shopify_api/rest/resources/2022_01/order.rb +473 -0
  122. data/lib/shopify_api/rest/resources/2022_01/order_risk.rb +135 -0
  123. data/lib/shopify_api/rest/resources/2022_01/page.rb +194 -0
  124. data/lib/shopify_api/rest/resources/2022_01/payment.rb +140 -0
  125. data/lib/shopify_api/rest/resources/2022_01/payment_gateway.rb +143 -0
  126. data/lib/shopify_api/rest/resources/2022_01/payment_transaction.rb +107 -0
  127. data/lib/shopify_api/rest/resources/2022_01/payout.rb +97 -0
  128. data/lib/shopify_api/rest/resources/2022_01/policy.rb +69 -0
  129. data/lib/shopify_api/rest/resources/2022_01/price_rule.rb +223 -0
  130. data/lib/shopify_api/rest/resources/2022_01/product.rb +223 -0
  131. data/lib/shopify_api/rest/resources/2022_01/product_listing.rb +196 -0
  132. data/lib/shopify_api/rest/resources/2022_01/product_resource_feedback.rb +88 -0
  133. data/lib/shopify_api/rest/resources/2022_01/province.rb +132 -0
  134. data/lib/shopify_api/rest/resources/2022_01/recurring_application_charge.rb +167 -0
  135. data/lib/shopify_api/rest/resources/2022_01/redirect.rb +139 -0
  136. data/lib/shopify_api/rest/resources/2022_01/refund.rb +151 -0
  137. data/lib/shopify_api/rest/resources/2022_01/report.rb +121 -0
  138. data/lib/shopify_api/rest/resources/2022_01/resource_feedback.rb +73 -0
  139. data/lib/shopify_api/rest/resources/2022_01/script_tag.rb +155 -0
  140. data/lib/shopify_api/rest/resources/2022_01/shipping_zone.rb +83 -0
  141. data/lib/shopify_api/rest/resources/2022_01/shop.rb +218 -0
  142. data/lib/shopify_api/rest/resources/2022_01/smart_collection.rb +216 -0
  143. data/lib/shopify_api/rest/resources/2022_01/storefront_access_token.rb +87 -0
  144. data/lib/shopify_api/rest/resources/2022_01/tender_transaction.rb +93 -0
  145. data/lib/shopify_api/rest/resources/2022_01/theme.rb +120 -0
  146. data/lib/shopify_api/rest/resources/2022_01/transaction.rb +181 -0
  147. data/lib/shopify_api/rest/resources/2022_01/usage_charge.rb +97 -0
  148. data/lib/shopify_api/rest/resources/2022_01/user.rb +138 -0
  149. data/lib/shopify_api/rest/resources/2022_01/variant.rb +212 -0
  150. data/lib/shopify_api/rest/resources/2022_01/webhook.rb +168 -0
  151. data/lib/shopify_api/rest/resources/2022_04/abandoned_checkout.rb +190 -0
  152. data/lib/shopify_api/rest/resources/2022_04/access_scope.rb +58 -0
  153. data/lib/shopify_api/rest/resources/2022_04/android_pay_key.rb +77 -0
  154. data/lib/shopify_api/rest/resources/2022_04/apple_pay_certificate.rb +105 -0
  155. data/lib/shopify_api/rest/resources/2022_04/application_charge.rb +104 -0
  156. data/lib/shopify_api/rest/resources/2022_04/application_credit.rb +87 -0
  157. data/lib/shopify_api/rest/resources/2022_04/article.rb +265 -0
  158. data/lib/shopify_api/rest/resources/2022_04/asset.rb +118 -0
  159. data/lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb +79 -0
  160. data/lib/shopify_api/rest/resources/2022_04/balance.rb +50 -0
  161. data/lib/shopify_api/rest/resources/2022_04/blog.rb +162 -0
  162. data/lib/shopify_api/rest/resources/2022_04/cancellation_request.rb +83 -0
  163. data/lib/shopify_api/rest/resources/2022_04/carrier_service.rb +116 -0
  164. data/lib/shopify_api/rest/resources/2022_04/checkout.rb +209 -0
  165. data/lib/shopify_api/rest/resources/2022_04/collect.rb +142 -0
  166. data/lib/shopify_api/rest/resources/2022_04/collection.rb +110 -0
  167. data/lib/shopify_api/rest/resources/2022_04/collection_listing.rb +155 -0
  168. data/lib/shopify_api/rest/resources/2022_04/comment.rb +283 -0
  169. data/lib/shopify_api/rest/resources/2022_04/country.rb +137 -0
  170. data/lib/shopify_api/rest/resources/2022_04/currency.rb +57 -0
  171. data/lib/shopify_api/rest/resources/2022_04/custom_collection.rb +187 -0
  172. data/lib/shopify_api/rest/resources/2022_04/customer.rb +321 -0
  173. data/lib/shopify_api/rest/resources/2022_04/customer_address.rb +201 -0
  174. data/lib/shopify_api/rest/resources/2022_04/customer_saved_search.rb +169 -0
  175. data/lib/shopify_api/rest/resources/2022_04/deprecated_api_call.rb +57 -0
  176. data/lib/shopify_api/rest/resources/2022_04/discount_code.rb +219 -0
  177. data/lib/shopify_api/rest/resources/2022_04/dispute.rb +111 -0
  178. data/lib/shopify_api/rest/resources/2022_04/draft_order.rb +275 -0
  179. data/lib/shopify_api/rest/resources/2022_04/event.rb +148 -0
  180. data/lib/shopify_api/rest/resources/2022_04/fulfillment.rb +268 -0
  181. data/lib/shopify_api/rest/resources/2022_04/fulfillment_event.rb +166 -0
  182. data/lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb +284 -0
  183. data/lib/shopify_api/rest/resources/2022_04/fulfillment_request.rb +87 -0
  184. data/lib/shopify_api/rest/resources/2022_04/fulfillment_service.rb +130 -0
  185. data/lib/shopify_api/rest/resources/2022_04/gift_card.rb +215 -0
  186. data/lib/shopify_api/rest/resources/2022_04/gift_card_adjustment.rb +118 -0
  187. data/lib/shopify_api/rest/resources/2022_04/image.rb +157 -0
  188. data/lib/shopify_api/rest/resources/2022_04/inventory_item.rb +108 -0
  189. data/lib/shopify_api/rest/resources/2022_04/inventory_level.rb +179 -0
  190. data/lib/shopify_api/rest/resources/2022_04/location.rb +167 -0
  191. data/lib/shopify_api/rest/resources/2022_04/locations_for_move.rb +56 -0
  192. data/lib/shopify_api/rest/resources/2022_04/marketing_event.rb +209 -0
  193. data/lib/shopify_api/rest/resources/2022_04/metafield.rb +342 -0
  194. data/lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb +110 -0
  195. data/lib/shopify_api/rest/resources/2022_04/order.rb +473 -0
  196. data/lib/shopify_api/rest/resources/2022_04/order_risk.rb +135 -0
  197. data/lib/shopify_api/rest/resources/2022_04/page.rb +194 -0
  198. data/lib/shopify_api/rest/resources/2022_04/payment.rb +140 -0
  199. data/lib/shopify_api/rest/resources/2022_04/payment_gateway.rb +143 -0
  200. data/lib/shopify_api/rest/resources/2022_04/payment_transaction.rb +107 -0
  201. data/lib/shopify_api/rest/resources/2022_04/payout.rb +97 -0
  202. data/lib/shopify_api/rest/resources/2022_04/policy.rb +69 -0
  203. data/lib/shopify_api/rest/resources/2022_04/price_rule.rb +223 -0
  204. data/lib/shopify_api/rest/resources/2022_04/product.rb +223 -0
  205. data/lib/shopify_api/rest/resources/2022_04/product_listing.rb +196 -0
  206. data/lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb +88 -0
  207. data/lib/shopify_api/rest/resources/2022_04/province.rb +132 -0
  208. data/lib/shopify_api/rest/resources/2022_04/recurring_application_charge.rb +167 -0
  209. data/lib/shopify_api/rest/resources/2022_04/redirect.rb +139 -0
  210. data/lib/shopify_api/rest/resources/2022_04/refund.rb +151 -0
  211. data/lib/shopify_api/rest/resources/2022_04/report.rb +121 -0
  212. data/lib/shopify_api/rest/resources/2022_04/resource_feedback.rb +73 -0
  213. data/lib/shopify_api/rest/resources/2022_04/script_tag.rb +155 -0
  214. data/lib/shopify_api/rest/resources/2022_04/shipping_zone.rb +83 -0
  215. data/lib/shopify_api/rest/resources/2022_04/shop.rb +218 -0
  216. data/lib/shopify_api/rest/resources/2022_04/smart_collection.rb +216 -0
  217. data/lib/shopify_api/rest/resources/2022_04/storefront_access_token.rb +87 -0
  218. data/lib/shopify_api/rest/resources/2022_04/tender_transaction.rb +93 -0
  219. data/lib/shopify_api/rest/resources/2022_04/theme.rb +120 -0
  220. data/lib/shopify_api/rest/resources/2022_04/transaction.rb +181 -0
  221. data/lib/shopify_api/rest/resources/2022_04/usage_charge.rb +97 -0
  222. data/lib/shopify_api/rest/resources/2022_04/user.rb +138 -0
  223. data/lib/shopify_api/rest/resources/2022_04/variant.rb +212 -0
  224. data/lib/shopify_api/rest/resources/2022_04/webhook.rb +168 -0
  225. data/lib/shopify_api/rest/resources/2022_07/abandoned_checkout.rb +190 -0
  226. data/lib/shopify_api/rest/resources/2022_07/access_scope.rb +58 -0
  227. data/lib/shopify_api/rest/resources/2022_07/android_pay_key.rb +77 -0
  228. data/lib/shopify_api/rest/resources/2022_07/apple_pay_certificate.rb +105 -0
  229. data/lib/shopify_api/rest/resources/2022_07/application_charge.rb +104 -0
  230. data/lib/shopify_api/rest/resources/2022_07/application_credit.rb +87 -0
  231. data/lib/shopify_api/rest/resources/2022_07/article.rb +265 -0
  232. data/lib/shopify_api/rest/resources/2022_07/asset.rb +118 -0
  233. data/lib/shopify_api/rest/resources/2022_07/assigned_fulfillment_order.rb +79 -0
  234. data/lib/shopify_api/rest/resources/2022_07/balance.rb +50 -0
  235. data/lib/shopify_api/rest/resources/2022_07/blog.rb +162 -0
  236. data/lib/shopify_api/rest/resources/2022_07/cancellation_request.rb +83 -0
  237. data/lib/shopify_api/rest/resources/2022_07/carrier_service.rb +113 -0
  238. data/lib/shopify_api/rest/resources/2022_07/checkout.rb +209 -0
  239. data/lib/shopify_api/rest/resources/2022_07/collect.rb +142 -0
  240. data/lib/shopify_api/rest/resources/2022_07/collection.rb +110 -0
  241. data/lib/shopify_api/rest/resources/2022_07/collection_listing.rb +155 -0
  242. data/lib/shopify_api/rest/resources/2022_07/comment.rb +283 -0
  243. data/lib/shopify_api/rest/resources/2022_07/country.rb +137 -0
  244. data/lib/shopify_api/rest/resources/2022_07/currency.rb +57 -0
  245. data/lib/shopify_api/rest/resources/2022_07/custom_collection.rb +187 -0
  246. data/lib/shopify_api/rest/resources/2022_07/customer.rb +321 -0
  247. data/lib/shopify_api/rest/resources/2022_07/customer_address.rb +201 -0
  248. data/lib/shopify_api/rest/resources/2022_07/customer_saved_search.rb +169 -0
  249. data/lib/shopify_api/rest/resources/2022_07/deprecated_api_call.rb +57 -0
  250. data/lib/shopify_api/rest/resources/2022_07/discount_code.rb +219 -0
  251. data/lib/shopify_api/rest/resources/2022_07/dispute.rb +111 -0
  252. data/lib/shopify_api/rest/resources/2022_07/dispute_evidence.rb +117 -0
  253. data/lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb +81 -0
  254. data/lib/shopify_api/rest/resources/2022_07/draft_order.rb +275 -0
  255. data/lib/shopify_api/rest/resources/2022_07/event.rb +148 -0
  256. data/lib/shopify_api/rest/resources/2022_07/fulfillment.rb +221 -0
  257. data/lib/shopify_api/rest/resources/2022_07/fulfillment_event.rb +166 -0
  258. data/lib/shopify_api/rest/resources/2022_07/fulfillment_order.rb +310 -0
  259. data/lib/shopify_api/rest/resources/2022_07/fulfillment_request.rb +87 -0
  260. data/lib/shopify_api/rest/resources/2022_07/fulfillment_service.rb +130 -0
  261. data/lib/shopify_api/rest/resources/2022_07/gift_card.rb +215 -0
  262. data/lib/shopify_api/rest/resources/2022_07/gift_card_adjustment.rb +118 -0
  263. data/lib/shopify_api/rest/resources/2022_07/image.rb +157 -0
  264. data/lib/shopify_api/rest/resources/2022_07/inventory_item.rb +108 -0
  265. data/lib/shopify_api/rest/resources/2022_07/inventory_level.rb +179 -0
  266. data/lib/shopify_api/rest/resources/2022_07/location.rb +167 -0
  267. data/lib/shopify_api/rest/resources/2022_07/locations_for_move.rb +56 -0
  268. data/lib/shopify_api/rest/resources/2022_07/marketing_event.rb +209 -0
  269. data/lib/shopify_api/rest/resources/2022_07/metafield.rb +342 -0
  270. data/lib/shopify_api/rest/resources/2022_07/mobile_platform_application.rb +110 -0
  271. data/lib/shopify_api/rest/resources/2022_07/order.rb +473 -0
  272. data/lib/shopify_api/rest/resources/2022_07/order_risk.rb +135 -0
  273. data/lib/shopify_api/rest/resources/2022_07/page.rb +194 -0
  274. data/lib/shopify_api/rest/resources/2022_07/payment.rb +140 -0
  275. data/lib/shopify_api/rest/resources/2022_07/payment_gateway.rb +143 -0
  276. data/lib/shopify_api/rest/resources/2022_07/payment_transaction.rb +107 -0
  277. data/lib/shopify_api/rest/resources/2022_07/payout.rb +97 -0
  278. data/lib/shopify_api/rest/resources/2022_07/policy.rb +69 -0
  279. data/lib/shopify_api/rest/resources/2022_07/price_rule.rb +223 -0
  280. data/lib/shopify_api/rest/resources/2022_07/product.rb +223 -0
  281. data/lib/shopify_api/rest/resources/2022_07/product_listing.rb +196 -0
  282. data/lib/shopify_api/rest/resources/2022_07/product_resource_feedback.rb +88 -0
  283. data/lib/shopify_api/rest/resources/2022_07/province.rb +132 -0
  284. data/lib/shopify_api/rest/resources/2022_07/recurring_application_charge.rb +167 -0
  285. data/lib/shopify_api/rest/resources/2022_07/redirect.rb +139 -0
  286. data/lib/shopify_api/rest/resources/2022_07/refund.rb +151 -0
  287. data/lib/shopify_api/rest/resources/2022_07/report.rb +121 -0
  288. data/lib/shopify_api/rest/resources/2022_07/resource_feedback.rb +73 -0
  289. data/lib/shopify_api/rest/resources/2022_07/script_tag.rb +155 -0
  290. data/lib/shopify_api/rest/resources/2022_07/shipping_zone.rb +83 -0
  291. data/lib/shopify_api/rest/resources/2022_07/shop.rb +218 -0
  292. data/lib/shopify_api/rest/resources/2022_07/smart_collection.rb +216 -0
  293. data/lib/shopify_api/rest/resources/2022_07/storefront_access_token.rb +87 -0
  294. data/lib/shopify_api/rest/resources/2022_07/tender_transaction.rb +93 -0
  295. data/lib/shopify_api/rest/resources/2022_07/theme.rb +120 -0
  296. data/lib/shopify_api/rest/resources/2022_07/transaction.rb +181 -0
  297. data/lib/shopify_api/rest/resources/2022_07/usage_charge.rb +97 -0
  298. data/lib/shopify_api/rest/resources/2022_07/user.rb +138 -0
  299. data/lib/shopify_api/rest/resources/2022_07/variant.rb +212 -0
  300. data/lib/shopify_api/rest/resources/2022_07/webhook.rb +168 -0
  301. data/lib/shopify_api/rest/resources/2022_10/abandoned_checkout.rb +190 -0
  302. data/lib/shopify_api/rest/resources/2022_10/access_scope.rb +58 -0
  303. data/lib/shopify_api/rest/resources/2022_10/android_pay_key.rb +77 -0
  304. data/lib/shopify_api/rest/resources/2022_10/apple_pay_certificate.rb +105 -0
  305. data/lib/shopify_api/rest/resources/2022_10/application_charge.rb +104 -0
  306. data/lib/shopify_api/rest/resources/2022_10/application_credit.rb +87 -0
  307. data/lib/shopify_api/rest/resources/2022_10/article.rb +265 -0
  308. data/lib/shopify_api/rest/resources/2022_10/asset.rb +118 -0
  309. data/lib/shopify_api/rest/resources/2022_10/assigned_fulfillment_order.rb +79 -0
  310. data/lib/shopify_api/rest/resources/2022_10/balance.rb +50 -0
  311. data/lib/shopify_api/rest/resources/2022_10/blog.rb +162 -0
  312. data/lib/shopify_api/rest/resources/2022_10/cancellation_request.rb +83 -0
  313. data/lib/shopify_api/rest/resources/2022_10/carrier_service.rb +113 -0
  314. data/lib/shopify_api/rest/resources/2022_10/checkout.rb +209 -0
  315. data/lib/shopify_api/rest/resources/2022_10/collect.rb +142 -0
  316. data/lib/shopify_api/rest/resources/2022_10/collection.rb +110 -0
  317. data/lib/shopify_api/rest/resources/2022_10/collection_listing.rb +155 -0
  318. data/lib/shopify_api/rest/resources/2022_10/comment.rb +283 -0
  319. data/lib/shopify_api/rest/resources/2022_10/country.rb +137 -0
  320. data/lib/shopify_api/rest/resources/2022_10/currency.rb +57 -0
  321. data/lib/shopify_api/rest/resources/2022_10/custom_collection.rb +187 -0
  322. data/lib/shopify_api/rest/resources/2022_10/customer.rb +321 -0
  323. data/lib/shopify_api/rest/resources/2022_10/customer_address.rb +201 -0
  324. data/lib/shopify_api/rest/resources/2022_10/customer_saved_search.rb +169 -0
  325. data/lib/shopify_api/rest/resources/2022_10/deprecated_api_call.rb +57 -0
  326. data/lib/shopify_api/rest/resources/2022_10/discount_code.rb +219 -0
  327. data/lib/shopify_api/rest/resources/2022_10/dispute.rb +111 -0
  328. data/lib/shopify_api/rest/resources/2022_10/dispute_evidence.rb +117 -0
  329. data/lib/shopify_api/rest/resources/2022_10/dispute_file_upload.rb +81 -0
  330. data/lib/shopify_api/rest/resources/2022_10/draft_order.rb +275 -0
  331. data/lib/shopify_api/rest/resources/2022_10/event.rb +148 -0
  332. data/lib/shopify_api/rest/resources/2022_10/fulfillment.rb +221 -0
  333. data/lib/shopify_api/rest/resources/2022_10/fulfillment_event.rb +166 -0
  334. data/lib/shopify_api/rest/resources/2022_10/fulfillment_order.rb +310 -0
  335. data/lib/shopify_api/rest/resources/2022_10/fulfillment_request.rb +87 -0
  336. data/lib/shopify_api/rest/resources/2022_10/fulfillment_service.rb +130 -0
  337. data/lib/shopify_api/rest/resources/2022_10/gift_card.rb +215 -0
  338. data/lib/shopify_api/rest/resources/2022_10/gift_card_adjustment.rb +118 -0
  339. data/lib/shopify_api/rest/resources/2022_10/image.rb +157 -0
  340. data/lib/shopify_api/rest/resources/2022_10/inventory_item.rb +108 -0
  341. data/lib/shopify_api/rest/resources/2022_10/inventory_level.rb +179 -0
  342. data/lib/shopify_api/rest/resources/2022_10/location.rb +167 -0
  343. data/lib/shopify_api/rest/resources/2022_10/locations_for_move.rb +56 -0
  344. data/lib/shopify_api/rest/resources/2022_10/marketing_event.rb +209 -0
  345. data/lib/shopify_api/rest/resources/2022_10/metafield.rb +342 -0
  346. data/lib/shopify_api/rest/resources/2022_10/mobile_platform_application.rb +110 -0
  347. data/lib/shopify_api/rest/resources/2022_10/order.rb +476 -0
  348. data/lib/shopify_api/rest/resources/2022_10/order_risk.rb +135 -0
  349. data/lib/shopify_api/rest/resources/2022_10/page.rb +194 -0
  350. data/lib/shopify_api/rest/resources/2022_10/payment.rb +140 -0
  351. data/lib/shopify_api/rest/resources/2022_10/payment_gateway.rb +143 -0
  352. data/lib/shopify_api/rest/resources/2022_10/payment_transaction.rb +107 -0
  353. data/lib/shopify_api/rest/resources/2022_10/payout.rb +97 -0
  354. data/lib/shopify_api/rest/resources/2022_10/policy.rb +69 -0
  355. data/lib/shopify_api/rest/resources/2022_10/price_rule.rb +223 -0
  356. data/lib/shopify_api/rest/resources/2022_10/product.rb +223 -0
  357. data/lib/shopify_api/rest/resources/2022_10/product_listing.rb +196 -0
  358. data/lib/shopify_api/rest/resources/2022_10/product_resource_feedback.rb +88 -0
  359. data/lib/shopify_api/rest/resources/2022_10/province.rb +132 -0
  360. data/lib/shopify_api/rest/resources/2022_10/recurring_application_charge.rb +167 -0
  361. data/lib/shopify_api/rest/resources/2022_10/redirect.rb +139 -0
  362. data/lib/shopify_api/rest/resources/2022_10/refund.rb +151 -0
  363. data/lib/shopify_api/rest/resources/2022_10/report.rb +121 -0
  364. data/lib/shopify_api/rest/resources/2022_10/resource_feedback.rb +73 -0
  365. data/lib/shopify_api/rest/resources/2022_10/script_tag.rb +155 -0
  366. data/lib/shopify_api/rest/resources/2022_10/shipping_zone.rb +83 -0
  367. data/lib/shopify_api/rest/resources/2022_10/shop.rb +221 -0
  368. data/lib/shopify_api/rest/resources/2022_10/smart_collection.rb +216 -0
  369. data/lib/shopify_api/rest/resources/2022_10/storefront_access_token.rb +87 -0
  370. data/lib/shopify_api/rest/resources/2022_10/tender_transaction.rb +93 -0
  371. data/lib/shopify_api/rest/resources/2022_10/theme.rb +120 -0
  372. data/lib/shopify_api/rest/resources/2022_10/transaction.rb +181 -0
  373. data/lib/shopify_api/rest/resources/2022_10/usage_charge.rb +97 -0
  374. data/lib/shopify_api/rest/resources/2022_10/user.rb +138 -0
  375. data/lib/shopify_api/rest/resources/2022_10/variant.rb +212 -0
  376. data/lib/shopify_api/rest/resources/2022_10/webhook.rb +168 -0
  377. data/lib/shopify_api/utils/graphql_proxy.rb +52 -0
  378. data/lib/shopify_api/utils/hmac_validator.rb +44 -0
  379. data/lib/shopify_api/utils/http_utils.rb +17 -0
  380. data/lib/shopify_api/utils/session_utils.rb +135 -0
  381. data/lib/shopify_api/utils/verifiable_query.rb +18 -0
  382. data/lib/shopify_api/version.rb +4 -1
  383. data/lib/shopify_api/webhooks/handler.rb +15 -0
  384. data/lib/shopify_api/webhooks/register_result.rb +14 -0
  385. data/lib/shopify_api/webhooks/registration.rb +73 -0
  386. data/lib/shopify_api/webhooks/registrations/event_bridge.rb +61 -0
  387. data/lib/shopify_api/webhooks/registrations/http.rb +72 -0
  388. data/lib/shopify_api/webhooks/registrations/pub_sub.rb +65 -0
  389. data/lib/shopify_api/webhooks/registry.rb +215 -0
  390. data/lib/shopify_api/webhooks/request.rb +56 -0
  391. data/lib/shopify_api.rb +19 -26
  392. data/service.yml +1 -0
  393. data/shipit.rubygems.yml +1 -1
  394. data/shopify_api.gemspec +36 -19
  395. data/sorbet/config +3 -0
  396. data/sorbet/rbi/gems/activesupport@7.0.1.rbi +654 -0
  397. data/sorbet/rbi/gems/addressable@2.8.0.rbi +290 -0
  398. data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
  399. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  400. data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +2401 -0
  401. data/sorbet/rbi/gems/crack@0.4.5.rbi +57 -0
  402. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +185 -0
  403. data/sorbet/rbi/gems/fakefs@1.4.1.rbi +571 -0
  404. data/sorbet/rbi/gems/hash_diff@1.0.0.rbi +47 -0
  405. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +82 -0
  406. data/sorbet/rbi/gems/httparty@0.20.0.rbi +573 -0
  407. data/sorbet/rbi/gems/i18n@1.8.11.rbi +25 -0
  408. data/sorbet/rbi/gems/jwt@2.3.0.rbi +437 -0
  409. data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
  410. data/sorbet/rbi/gems/mime-types-data@3.2022.0105.rbi +73 -0
  411. data/sorbet/rbi/gems/mime-types@3.4.1.rbi +295 -0
  412. data/sorbet/rbi/gems/minitest@5.15.0.rbi +541 -0
  413. data/sorbet/rbi/gems/mocha@1.13.0.rbi +986 -0
  414. data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +36 -0
  415. data/sorbet/rbi/gems/oj@3.13.11.rbi +274 -0
  416. data/sorbet/rbi/gems/openssl@3.0.0.rbi +581 -0
  417. data/sorbet/rbi/gems/parallel@1.21.0.rbi +113 -0
  418. data/sorbet/rbi/gems/parser@3.1.0.0.rbi +1741 -0
  419. data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
  420. data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +145 -0
  421. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +157 -0
  422. data/sorbet/rbi/gems/rake@13.0.6.rbi +814 -0
  423. data/sorbet/rbi/gems/rbi@0.0.11.rbi +1646 -0
  424. data/sorbet/rbi/gems/regexp_parser@2.2.0.rbi +1130 -0
  425. data/sorbet/rbi/gems/rexml@3.2.5.rbi +709 -0
  426. data/sorbet/rbi/gems/rubocop-ast@1.15.1.rbi +1921 -0
  427. data/sorbet/rbi/gems/rubocop-shopify@2.4.0.rbi +8 -0
  428. data/sorbet/rbi/gems/rubocop-sorbet@0.6.5.rbi +295 -0
  429. data/sorbet/rbi/gems/rubocop@1.25.1.rbi +13507 -0
  430. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
  431. data/sorbet/rbi/gems/securerandom@0.1.1.rbi +10 -0
  432. data/sorbet/rbi/gems/spoom@1.1.8.rbi +1252 -0
  433. data/sorbet/rbi/gems/tapioca@0.6.3.rbi +1238 -0
  434. data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
  435. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +858 -0
  436. data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +26 -0
  437. data/sorbet/rbi/gems/unparser@0.6.3.rbi +1816 -0
  438. data/sorbet/rbi/gems/webmock@3.14.0.rbi +683 -0
  439. data/sorbet/rbi/gems/webrick@1.7.0.rbi +601 -0
  440. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +199 -0
  441. data/sorbet/rbi/gems/yard@0.9.27.rbi +4145 -0
  442. data/sorbet/rbi/gems/zeitwerk@2.5.4.rbi +200 -0
  443. data/sorbet/rbi/shims/fakefs.rbi +1 -0
  444. data/sorbet/rbi/shims/openssl.rb +3 -0
  445. data/sorbet/rbi/todo.rbi +8 -0
  446. data/sorbet/tapioca/config.yml +4 -0
  447. data/sorbet/tapioca/require.rb +20 -0
  448. metadata +603 -280
  449. data/.document +0 -5
  450. data/.gitignore +0 -10
  451. data/.travis.yml +0 -32
  452. data/CHANGELOG +0 -310
  453. data/CONTRIBUTORS +0 -3
  454. data/Gemfile_ar30 +0 -6
  455. data/Gemfile_ar31 +0 -6
  456. data/Gemfile_ar32 +0 -6
  457. data/Gemfile_ar40 +0 -6
  458. data/Gemfile_ar_master +0 -6
  459. data/RELEASING +0 -16
  460. data/bin/shopify +0 -3
  461. data/lib/active_resource/base_ext.rb +0 -21
  462. data/lib/active_resource/connection_ext.rb +0 -10
  463. data/lib/active_resource/detailed_log_subscriber.rb +0 -19
  464. data/lib/active_resource/disable_prefix_check.rb +0 -36
  465. data/lib/active_resource/json_errors.rb +0 -31
  466. data/lib/active_resource/to_query.rb +0 -10
  467. data/lib/shopify_api/connection.rb +0 -33
  468. data/lib/shopify_api/countable.rb +0 -14
  469. data/lib/shopify_api/events.rb +0 -7
  470. data/lib/shopify_api/json_format.rb +0 -18
  471. data/lib/shopify_api/limits.rb +0 -76
  472. data/lib/shopify_api/metafields.rb +0 -20
  473. data/lib/shopify_api/resources/access_scope.rb +0 -5
  474. data/lib/shopify_api/resources/access_token.rb +0 -8
  475. data/lib/shopify_api/resources/address.rb +0 -4
  476. data/lib/shopify_api/resources/announcement.rb +0 -4
  477. data/lib/shopify_api/resources/api_permission.rb +0 -9
  478. data/lib/shopify_api/resources/application_charge.rb +0 -15
  479. data/lib/shopify_api/resources/application_credit.rb +0 -4
  480. data/lib/shopify_api/resources/article.rb +0 -21
  481. data/lib/shopify_api/resources/asset.rb +0 -96
  482. data/lib/shopify_api/resources/base.rb +0 -89
  483. data/lib/shopify_api/resources/billing_address.rb +0 -4
  484. data/lib/shopify_api/resources/blog.rb +0 -10
  485. data/lib/shopify_api/resources/carrier_service.rb +0 -4
  486. data/lib/shopify_api/resources/cart.rb +0 -4
  487. data/lib/shopify_api/resources/checkout.rb +0 -4
  488. data/lib/shopify_api/resources/collect.rb +0 -5
  489. data/lib/shopify_api/resources/collection_listing.rb +0 -9
  490. data/lib/shopify_api/resources/comment.rb +0 -9
  491. data/lib/shopify_api/resources/country.rb +0 -4
  492. data/lib/shopify_api/resources/custom_collection.rb +0 -19
  493. data/lib/shopify_api/resources/customer.rb +0 -29
  494. data/lib/shopify_api/resources/customer_group.rb +0 -5
  495. data/lib/shopify_api/resources/customer_invite.rb +0 -4
  496. data/lib/shopify_api/resources/customer_saved_search.rb +0 -9
  497. data/lib/shopify_api/resources/discount_code.rb +0 -9
  498. data/lib/shopify_api/resources/draft_order.rb +0 -14
  499. data/lib/shopify_api/resources/draft_order_invoice.rb +0 -4
  500. data/lib/shopify_api/resources/event.rb +0 -7
  501. data/lib/shopify_api/resources/fulfillment.rb +0 -13
  502. data/lib/shopify_api/resources/fulfillment_event.rb +0 -15
  503. data/lib/shopify_api/resources/fulfillment_request.rb +0 -15
  504. data/lib/shopify_api/resources/fulfillment_service.rb +0 -4
  505. data/lib/shopify_api/resources/gift_card.rb +0 -7
  506. data/lib/shopify_api/resources/graphql.rb +0 -22
  507. data/lib/shopify_api/resources/image.rb +0 -16
  508. data/lib/shopify_api/resources/inventory_item.rb +0 -6
  509. data/lib/shopify_api/resources/inventory_level.rb +0 -55
  510. data/lib/shopify_api/resources/line_item.rb +0 -14
  511. data/lib/shopify_api/resources/location.rb +0 -8
  512. data/lib/shopify_api/resources/marketing_event.rb +0 -8
  513. data/lib/shopify_api/resources/metafield.rb +0 -12
  514. data/lib/shopify_api/resources/note_attribute.rb +0 -4
  515. data/lib/shopify_api/resources/o_auth.rb +0 -17
  516. data/lib/shopify_api/resources/option.rb +0 -4
  517. data/lib/shopify_api/resources/order.rb +0 -29
  518. data/lib/shopify_api/resources/order_risk.rb +0 -8
  519. data/lib/shopify_api/resources/page.rb +0 -6
  520. data/lib/shopify_api/resources/payment_details.rb +0 -4
  521. data/lib/shopify_api/resources/ping/conversation.rb +0 -18
  522. data/lib/shopify_api/resources/ping/message.rb +0 -9
  523. data/lib/shopify_api/resources/ping.rb +0 -3
  524. data/lib/shopify_api/resources/policy.rb +0 -7
  525. data/lib/shopify_api/resources/price_rule.rb +0 -8
  526. data/lib/shopify_api/resources/product.rb +0 -33
  527. data/lib/shopify_api/resources/product_listing.rb +0 -9
  528. data/lib/shopify_api/resources/province.rb +0 -5
  529. data/lib/shopify_api/resources/receipt.rb +0 -4
  530. data/lib/shopify_api/resources/recurring_application_charge.rb +0 -31
  531. data/lib/shopify_api/resources/redirect.rb +0 -4
  532. data/lib/shopify_api/resources/refund.rb +0 -13
  533. data/lib/shopify_api/resources/report.rb +0 -4
  534. data/lib/shopify_api/resources/resource_feedback.rb +0 -19
  535. data/lib/shopify_api/resources/rule.rb +0 -4
  536. data/lib/shopify_api/resources/script_tag.rb +0 -4
  537. data/lib/shopify_api/resources/shipping_address.rb +0 -4
  538. data/lib/shopify_api/resources/shipping_line.rb +0 -4
  539. data/lib/shopify_api/resources/shipping_zone.rb +0 -4
  540. data/lib/shopify_api/resources/shop.rb +0 -23
  541. data/lib/shopify_api/resources/smart_collection.rb +0 -15
  542. data/lib/shopify_api/resources/storefront_access_token.rb +0 -4
  543. data/lib/shopify_api/resources/tax_line.rb +0 -4
  544. data/lib/shopify_api/resources/tax_service.rb +0 -4
  545. data/lib/shopify_api/resources/theme.rb +0 -4
  546. data/lib/shopify_api/resources/transaction.rb +0 -5
  547. data/lib/shopify_api/resources/usage_charge.rb +0 -5
  548. data/lib/shopify_api/resources/user.rb +0 -4
  549. data/lib/shopify_api/resources/variant.rb +0 -8
  550. data/lib/shopify_api/resources/webhook.rb +0 -4
  551. data/lib/shopify_api/resources.rb +0 -2
  552. data/lib/shopify_api/session.rb +0 -144
  553. data/test/access_token_test.rb +0 -19
  554. data/test/active_resource/json_errors_test.rb +0 -19
  555. data/test/api_permission_test.rb +0 -9
  556. data/test/application_charge_test.rb +0 -79
  557. data/test/application_credit_test.rb +0 -35
  558. data/test/article_test.rb +0 -73
  559. data/test/asset_test.rb +0 -18
  560. data/test/base_test.rb +0 -125
  561. data/test/blog_test.rb +0 -8
  562. data/test/carrier_service_test.rb +0 -17
  563. data/test/cart_test.rb +0 -13
  564. data/test/checkouts_test.rb +0 -9
  565. data/test/collect_test.rb +0 -9
  566. data/test/collection_listing_test.rb +0 -41
  567. data/test/countable_test.rb +0 -13
  568. data/test/custom_collection_test.rb +0 -9
  569. data/test/customer_saved_search_test.rb +0 -27
  570. data/test/customer_test.rb +0 -50
  571. data/test/detailed_log_subscriber_test.rb +0 -49
  572. data/test/discount_code_test.rb +0 -53
  573. data/test/draft_order_test.rb +0 -151
  574. data/test/fixtures/access_token_delegate.json +0 -4
  575. data/test/fixtures/application_charge.json +0 -16
  576. data/test/fixtures/application_charges.json +0 -57
  577. data/test/fixtures/application_credit.json +0 -12
  578. data/test/fixtures/application_credits.json +0 -24
  579. data/test/fixtures/article.json +0 -15
  580. data/test/fixtures/articles.json +0 -39
  581. data/test/fixtures/asset.json +0 -9
  582. data/test/fixtures/assets.json +0 -136
  583. data/test/fixtures/authors.json +0 -1
  584. data/test/fixtures/blog.json +0 -13
  585. data/test/fixtures/blogs.json +0 -13
  586. data/test/fixtures/carrier_service.json +0 -9
  587. data/test/fixtures/carts.json +0 -43
  588. data/test/fixtures/checkouts.json +0 -186
  589. data/test/fixtures/collect.json +0 -12
  590. data/test/fixtures/collection_listing.json +0 -11
  591. data/test/fixtures/collection_listing_product_ids.json +0 -1
  592. data/test/fixtures/collection_listings.json +0 -13
  593. data/test/fixtures/custom_collection.json +0 -17
  594. data/test/fixtures/customer_invite.json +0 -9
  595. data/test/fixtures/customer_saved_search.json +0 -9
  596. data/test/fixtures/customer_saved_search_customers.json +0 -60
  597. data/test/fixtures/customers.json +0 -59
  598. data/test/fixtures/customers_account_activation_url.json +0 -3
  599. data/test/fixtures/customers_search.json +0 -60
  600. data/test/fixtures/discount_code.json +0 -10
  601. data/test/fixtures/discount_codes.json +0 -12
  602. data/test/fixtures/draft_order.json +0 -159
  603. data/test/fixtures/draft_order_completed.json +0 -159
  604. data/test/fixtures/draft_order_invoice.json +0 -9
  605. data/test/fixtures/draft_orders.json +0 -161
  606. data/test/fixtures/engagement.json +0 -15
  607. data/test/fixtures/events.json +0 -31
  608. data/test/fixtures/fulfillment.json +0 -49
  609. data/test/fixtures/fulfillment_event.json +0 -12
  610. data/test/fixtures/fulfillment_request.json +0 -28
  611. data/test/fixtures/fulfillment_service.json +0 -10
  612. data/test/fixtures/gift_card.json +0 -20
  613. data/test/fixtures/gift_card_disabled.json +0 -20
  614. data/test/fixtures/image.json +0 -10
  615. data/test/fixtures/images.json +0 -20
  616. data/test/fixtures/inventory_level.json +0 -7
  617. data/test/fixtures/inventory_levels.json +0 -24
  618. data/test/fixtures/marketing_event.json +0 -28
  619. data/test/fixtures/marketing_events.json +0 -54
  620. data/test/fixtures/metafield.json +0 -12
  621. data/test/fixtures/metafields.json +0 -34
  622. data/test/fixtures/o_auth_revoke.json +0 -5
  623. data/test/fixtures/order.json +0 -297
  624. data/test/fixtures/order_risk.json +0 -14
  625. data/test/fixtures/order_risks.json +0 -28
  626. data/test/fixtures/order_with_properties.json +0 -373
  627. data/test/fixtures/orders.json +0 -299
  628. data/test/fixtures/ping/conversation.json +0 -1
  629. data/test/fixtures/ping/message.json +0 -1
  630. data/test/fixtures/policies.json +0 -8
  631. data/test/fixtures/price_rule.json +0 -27
  632. data/test/fixtures/price_rules.json +0 -28
  633. data/test/fixtures/product.json +0 -116
  634. data/test/fixtures/product_listing.json +0 -86
  635. data/test/fixtures/product_listing_product_ids.json +0 -1
  636. data/test/fixtures/product_listings.json +0 -174
  637. data/test/fixtures/recurring_application_charge.json +0 -22
  638. data/test/fixtures/recurring_application_charge_adjustment.json +0 -5
  639. data/test/fixtures/recurring_application_charges.json +0 -106
  640. data/test/fixtures/redirect.json +0 -7
  641. data/test/fixtures/refund.json +0 -112
  642. data/test/fixtures/report.json +0 -9
  643. data/test/fixtures/reports.json +0 -11
  644. data/test/fixtures/script_tag.json +0 -10
  645. data/test/fixtures/script_tags.json +0 -18
  646. data/test/fixtures/shipping_zones.json +0 -315
  647. data/test/fixtures/shop.json +0 -26
  648. data/test/fixtures/smart_collection.json +0 -21
  649. data/test/fixtures/storefront_access_token.json +0 -9
  650. data/test/fixtures/storefront_access_tokens.json +0 -18
  651. data/test/fixtures/tags.json +0 -1
  652. data/test/fixtures/tax_service.json +0 -9
  653. data/test/fixtures/transaction.json +0 -29
  654. data/test/fixtures/usage_charge.json +0 -11
  655. data/test/fixtures/usage_charges.json +0 -23
  656. data/test/fixtures/user.json +0 -21
  657. data/test/fixtures/users.json +0 -42
  658. data/test/fixtures/variant.json +0 -23
  659. data/test/fixtures/variants.json +0 -88
  660. data/test/fixtures/webhook.json +0 -10
  661. data/test/fixtures/webhooks.json +0 -18
  662. data/test/fulfillment_event_test.rb +0 -69
  663. data/test/fulfillment_request_test.rb +0 -33
  664. data/test/fulfillment_service_test.rb +0 -17
  665. data/test/fulfillment_test.rb +0 -61
  666. data/test/gift_card_test.rb +0 -22
  667. data/test/image_test.rb +0 -39
  668. data/test/inventory_level_test.rb +0 -59
  669. data/test/limits_test.rb +0 -38
  670. data/test/location_test.rb +0 -14
  671. data/test/marketing_event_test.rb +0 -68
  672. data/test/metafield_test.rb +0 -46
  673. data/test/o_auth_test.rb +0 -8
  674. data/test/order_risk_test.rb +0 -46
  675. data/test/order_test.rb +0 -59
  676. data/test/ping/conversation_test.rb +0 -39
  677. data/test/policy_test.rb +0 -19
  678. data/test/price_rule_test.rb +0 -65
  679. data/test/product_listing_test.rb +0 -40
  680. data/test/product_test.rb +0 -50
  681. data/test/recurring_application_charge_test.rb +0 -149
  682. data/test/redirect_test.rb +0 -9
  683. data/test/refund_test.rb +0 -32
  684. data/test/report_test.rb +0 -35
  685. data/test/resource_feedback_test.rb +0 -42
  686. data/test/script_tag_test.rb +0 -30
  687. data/test/session_test.rb +0 -250
  688. data/test/shipping_zone_test.rb +0 -10
  689. data/test/shop_test.rb +0 -68
  690. data/test/smart_collection_test.rb +0 -10
  691. data/test/storefront_access_token_test.rb +0 -32
  692. data/test/tax_service_test.rb +0 -8
  693. data/test/test_helper.rb +0 -97
  694. data/test/transaction_test.rb +0 -17
  695. data/test/usage_charge_test.rb +0 -21
  696. data/test/user_test.rb +0 -17
  697. data/test/variant_test.rb +0 -46
  698. data/test/webhook_test.rb +0 -21
@@ -0,0 +1,1921 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `rubocop-ast` gem.
5
+ # Please instead update this file by running `bin/tapioca gem rubocop-ast`.
6
+
7
+ module RuboCop; end
8
+
9
+ module RuboCop::AST
10
+ extend ::RuboCop::AST::RuboCopCompatibility
11
+ end
12
+
13
+ class RuboCop::AST::AliasNode < ::RuboCop::AST::Node
14
+ def new_identifier; end
15
+ def old_identifier; end
16
+ end
17
+
18
+ class RuboCop::AST::AndAsgnNode < ::RuboCop::AST::OpAsgnNode
19
+ def operator; end
20
+ end
21
+
22
+ class RuboCop::AST::AndNode < ::RuboCop::AST::Node
23
+ include ::RuboCop::AST::BinaryOperatorNode
24
+ include ::RuboCop::AST::PredicateOperatorNode
25
+
26
+ def alternate_operator; end
27
+ def inverse_operator; end
28
+ end
29
+
30
+ class RuboCop::AST::ArgNode < ::RuboCop::AST::Node
31
+ def default?; end
32
+ def default_value; end
33
+ def name; end
34
+ end
35
+
36
+ class RuboCop::AST::ArgsNode < ::RuboCop::AST::Node
37
+ include ::RuboCop::AST::CollectionNode
38
+
39
+ def argument_list; end
40
+ def empty_and_without_delimiters?; end
41
+ end
42
+
43
+ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node
44
+ def bracketed?; end
45
+ def each_value(&block); end
46
+ def percent_literal?(type = T.unsafe(nil)); end
47
+ def square_brackets?; end
48
+ def values; end
49
+ end
50
+
51
+ RuboCop::AST::ArrayNode::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Hash)
52
+
53
+ class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node
54
+ def expression; end
55
+ def name; end
56
+ end
57
+
58
+ module RuboCop::AST::BasicLiteralNode
59
+ def value; end
60
+ end
61
+
62
+ module RuboCop::AST::BinaryOperatorNode
63
+ def conditions; end
64
+ def lhs; end
65
+ def rhs; end
66
+ end
67
+
68
+ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node
69
+ include ::RuboCop::AST::MethodIdentifierPredicates
70
+
71
+ def argument_list; end
72
+ def arguments; end
73
+ def arguments?; end
74
+ def body; end
75
+ def braces?; end
76
+ def closing_delimiter; end
77
+ def delimiters; end
78
+ def keywords?; end
79
+ def lambda?; end
80
+ def method_name; end
81
+ def multiline?; end
82
+ def opening_delimiter; end
83
+ def send_node; end
84
+ def single_line?; end
85
+ def void_context?; end
86
+
87
+ private
88
+
89
+ def numbered_arguments; end
90
+ end
91
+
92
+ RuboCop::AST::BlockNode::VOID_CONTEXT_METHODS = T.let(T.unsafe(nil), Array)
93
+
94
+ class RuboCop::AST::BreakNode < ::RuboCop::AST::Node
95
+ include ::RuboCop::AST::ParameterizedNode
96
+ include ::RuboCop::AST::ParameterizedNode::WrappedArguments
97
+ end
98
+
99
+ class RuboCop::AST::Builder < ::Parser::Builders::Default
100
+ def n(type, children, source_map); end
101
+ def string_value(token); end
102
+
103
+ private
104
+
105
+ def node_klass(type); end
106
+ end
107
+
108
+ RuboCop::AST::Builder::NODE_MAP = T.let(T.unsafe(nil), Hash)
109
+
110
+ class RuboCop::AST::CaseMatchNode < ::RuboCop::AST::Node
111
+ include ::RuboCop::AST::ConditionalNode
112
+
113
+ def branches; end
114
+ def each_in_pattern(&block); end
115
+ def else?; end
116
+ def else_branch; end
117
+ def in_pattern_branches; end
118
+ def keyword; end
119
+ end
120
+
121
+ class RuboCop::AST::CaseNode < ::RuboCop::AST::Node
122
+ include ::RuboCop::AST::ConditionalNode
123
+
124
+ def branches; end
125
+ def each_when(&block); end
126
+ def else?; end
127
+ def else_branch; end
128
+ def keyword; end
129
+ def when_branches; end
130
+ end
131
+
132
+ class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node
133
+ def expression; end
134
+ def name; end
135
+ def namespace; end
136
+ end
137
+
138
+ class RuboCop::AST::ClassNode < ::RuboCop::AST::Node
139
+ def body; end
140
+ def identifier; end
141
+ def parent_class; end
142
+ end
143
+
144
+ module RuboCop::AST::CollectionNode
145
+ extend ::Forwardable
146
+
147
+ def &(*args, &block); end
148
+ def *(*args, &block); end
149
+ def +(*args, &block); end
150
+ def -(*args, &block); end
151
+ def <<(*args, &block); end
152
+ def [](*args, &block); end
153
+ def []=(*args, &block); end
154
+ def all?(*args, &block); end
155
+ def any?(*args, &block); end
156
+ def append(*args, &block); end
157
+ def assoc(*args, &block); end
158
+ def at(*args, &block); end
159
+ def bsearch(*args, &block); end
160
+ def bsearch_index(*args, &block); end
161
+ def chain(*args, &block); end
162
+ def chunk(*args, &block); end
163
+ def chunk_while(*args, &block); end
164
+ def clear(*args, &block); end
165
+ def collect(*args, &block); end
166
+ def collect!(*args, &block); end
167
+ def collect_concat(*args, &block); end
168
+ def combination(*args, &block); end
169
+ def compact(*args, &block); end
170
+ def compact!(*args, &block); end
171
+ def concat(*args, &block); end
172
+ def count(*args, &block); end
173
+ def cycle(*args, &block); end
174
+ def deconstruct(*args, &block); end
175
+ def delete(*args, &block); end
176
+ def delete_at(*args, &block); end
177
+ def delete_if(*args, &block); end
178
+ def detect(*args, &block); end
179
+ def difference(*args, &block); end
180
+ def dig(*args, &block); end
181
+ def drop(*args, &block); end
182
+ def drop_while(*args, &block); end
183
+ def each(*args, &block); end
184
+ def each_cons(*args, &block); end
185
+ def each_entry(*args, &block); end
186
+ def each_index(*args, &block); end
187
+ def each_slice(*args, &block); end
188
+ def each_with_index(*args, &block); end
189
+ def each_with_object(*args, &block); end
190
+ def empty?(*args, &block); end
191
+ def entries(*args, &block); end
192
+ def fetch(*args, &block); end
193
+ def fill(*args, &block); end
194
+ def filter(*args, &block); end
195
+ def filter!(*args, &block); end
196
+ def filter_map(*args, &block); end
197
+ def find(*args, &block); end
198
+ def find_all(*args, &block); end
199
+ def find_index(*args, &block); end
200
+ def first(*args, &block); end
201
+ def flat_map(*args, &block); end
202
+ def flatten(*args, &block); end
203
+ def flatten!(*args, &block); end
204
+ def grep(*args, &block); end
205
+ def grep_v(*args, &block); end
206
+ def group_by(*args, &block); end
207
+ def include?(*args, &block); end
208
+ def index(*args, &block); end
209
+ def inject(*args, &block); end
210
+ def insert(*args, &block); end
211
+ def intersection(*args, &block); end
212
+ def join(*args, &block); end
213
+ def keep_if(*args, &block); end
214
+ def last(*args, &block); end
215
+ def lazy(*args, &block); end
216
+ def length(*args, &block); end
217
+ def map(*args, &block); end
218
+ def map!(*args, &block); end
219
+ def max(*args, &block); end
220
+ def max_by(*args, &block); end
221
+ def member?(*args, &block); end
222
+ def min(*args, &block); end
223
+ def min_by(*args, &block); end
224
+ def minmax(*args, &block); end
225
+ def minmax_by(*args, &block); end
226
+ def none?(*args, &block); end
227
+ def one?(*args, &block); end
228
+ def pack(*args, &block); end
229
+ def partition(*args, &block); end
230
+ def permutation(*args, &block); end
231
+ def place(*args, &block); end
232
+ def pop(*args, &block); end
233
+ def prepend(*args, &block); end
234
+ def product(*args, &block); end
235
+ def push(*args, &block); end
236
+ def rassoc(*args, &block); end
237
+ def reduce(*args, &block); end
238
+ def reject(*args, &block); end
239
+ def reject!(*args, &block); end
240
+ def repeated_combination(*args, &block); end
241
+ def repeated_permutation(*args, &block); end
242
+ def replace(*args, &block); end
243
+ def reverse(*args, &block); end
244
+ def reverse!(*args, &block); end
245
+ def reverse_each(*args, &block); end
246
+ def rindex(*args, &block); end
247
+ def rotate(*args, &block); end
248
+ def rotate!(*args, &block); end
249
+ def sample(*args, &block); end
250
+ def select(*args, &block); end
251
+ def select!(*args, &block); end
252
+ def shelljoin(*args, &block); end
253
+ def shift(*args, &block); end
254
+ def shuffle(*args, &block); end
255
+ def shuffle!(*args, &block); end
256
+ def size(*args, &block); end
257
+ def slice(*args, &block); end
258
+ def slice!(*args, &block); end
259
+ def slice_after(*args, &block); end
260
+ def slice_before(*args, &block); end
261
+ def slice_when(*args, &block); end
262
+ def sort(*args, &block); end
263
+ def sort!(*args, &block); end
264
+ def sort_by(*args, &block); end
265
+ def sort_by!(*args, &block); end
266
+ def sum(*args, &block); end
267
+ def take(*args, &block); end
268
+ def take_while(*args, &block); end
269
+ def tally(*args, &block); end
270
+ def to_ary(*args, &block); end
271
+ def to_csv(*args, &block); end
272
+ def to_h(*args, &block); end
273
+ def to_set(*args, &block); end
274
+ def transpose(*args, &block); end
275
+ def union(*args, &block); end
276
+ def uniq(*args, &block); end
277
+ def uniq!(*args, &block); end
278
+ def unshift(*args, &block); end
279
+ def values_at(*args, &block); end
280
+ def zip(*args, &block); end
281
+ def |(*args, &block); end
282
+ end
283
+
284
+ RuboCop::AST::CollectionNode::ARRAY_METHODS = T.let(T.unsafe(nil), Array)
285
+
286
+ module RuboCop::AST::ConditionalNode
287
+ def body; end
288
+ def condition; end
289
+ def multiline_condition?; end
290
+ def single_line_condition?; end
291
+ end
292
+
293
+ class RuboCop::AST::ConstNode < ::RuboCop::AST::Node
294
+ def absolute?; end
295
+ def class_name?; end
296
+ def each_path(&block); end
297
+ def module_name?; end
298
+ def namespace; end
299
+ def relative?; end
300
+ def short_name; end
301
+ end
302
+
303
+ class RuboCop::AST::DefNode < ::RuboCop::AST::Node
304
+ include ::RuboCop::AST::ParameterizedNode
305
+ include ::RuboCop::AST::MethodIdentifierPredicates
306
+
307
+ def argument_forwarding?; end
308
+ def arguments; end
309
+ def body; end
310
+ def endless?; end
311
+ def method_name; end
312
+ def receiver; end
313
+ def void_context?; end
314
+ end
315
+
316
+ class RuboCop::AST::DefinedNode < ::RuboCop::AST::Node
317
+ include ::RuboCop::AST::ParameterizedNode
318
+ include ::RuboCop::AST::MethodIdentifierPredicates
319
+ include ::RuboCop::AST::MethodDispatchNode
320
+
321
+ def arguments; end
322
+ def node_parts; end
323
+ end
324
+
325
+ module RuboCop::AST::Descendence
326
+ def child_nodes; end
327
+ def descendants; end
328
+ def each_child_node(*types); end
329
+ def each_descendant(*types, &block); end
330
+ def each_node(*types, &block); end
331
+
332
+ protected
333
+
334
+ def visit_descendants(types, &block); end
335
+ end
336
+
337
+ class RuboCop::AST::DstrNode < ::RuboCop::AST::StrNode
338
+ def value; end
339
+ end
340
+
341
+ class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node
342
+ def body; end
343
+ end
344
+
345
+ module RuboCop::AST::Ext; end
346
+
347
+ module RuboCop::AST::Ext::Range
348
+ def line_span(exclude_end: T.unsafe(nil)); end
349
+ end
350
+
351
+ module RuboCop::AST::Ext::RangeMinMax; end
352
+
353
+ class RuboCop::AST::FloatNode < ::RuboCop::AST::Node
354
+ include ::RuboCop::AST::BasicLiteralNode
355
+ include ::RuboCop::AST::NumericNode
356
+ end
357
+
358
+ class RuboCop::AST::ForNode < ::RuboCop::AST::Node
359
+ def body; end
360
+ def collection; end
361
+ def do?; end
362
+ def keyword; end
363
+ def variable; end
364
+ def void_context?; end
365
+ end
366
+
367
+ class RuboCop::AST::ForwardArgsNode < ::RuboCop::AST::Node
368
+ include ::RuboCop::AST::CollectionNode
369
+
370
+ def to_a; end
371
+ end
372
+
373
+ module RuboCop::AST::HashElementNode
374
+ def delimiter_delta(other); end
375
+ def key; end
376
+ def key_delta(other, alignment = T.unsafe(nil)); end
377
+ def same_line?(other); end
378
+ def value; end
379
+ def value_delta(other); end
380
+ end
381
+
382
+ class RuboCop::AST::HashElementNode::HashElementDelta
383
+ def initialize(first, second); end
384
+
385
+ def delimiter_delta; end
386
+ def key_delta(alignment = T.unsafe(nil)); end
387
+ def value_delta; end
388
+
389
+ private
390
+
391
+ def delta(first, second, alignment = T.unsafe(nil)); end
392
+ def first; end
393
+ def keyword_splat?; end
394
+ def second; end
395
+ def valid_argument_types?; end
396
+ end
397
+
398
+ class RuboCop::AST::HashNode < ::RuboCop::AST::Node
399
+ def braces?; end
400
+ def each_key(&block); end
401
+ def each_pair; end
402
+ def each_value(&block); end
403
+ def empty?; end
404
+ def keys; end
405
+ def mixed_delimiters?; end
406
+ def pairs; end
407
+ def pairs_on_same_line?; end
408
+ def values; end
409
+ end
410
+
411
+ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
412
+ include ::RuboCop::AST::ConditionalNode
413
+ include ::RuboCop::AST::ModifierNode
414
+
415
+ def branches; end
416
+ def each_branch(&block); end
417
+ def else?; end
418
+ def else_branch; end
419
+ def elsif?; end
420
+ def elsif_conditional?; end
421
+ def if?; end
422
+ def if_branch; end
423
+ def inverse_keyword; end
424
+ def keyword; end
425
+ def modifier_form?; end
426
+ def nested_conditional?; end
427
+ def node_parts; end
428
+ def ternary?; end
429
+ def unless?; end
430
+ end
431
+
432
+ class RuboCop::AST::InPatternNode < ::RuboCop::AST::Node
433
+ def body; end
434
+ def branch_index; end
435
+ def pattern; end
436
+ def then?; end
437
+ end
438
+
439
+ class RuboCop::AST::IndexNode < ::RuboCop::AST::Node
440
+ include ::RuboCop::AST::ParameterizedNode
441
+ include ::RuboCop::AST::ParameterizedNode::RestArguments
442
+ include ::RuboCop::AST::MethodIdentifierPredicates
443
+ include ::RuboCop::AST::MethodDispatchNode
444
+
445
+ def assignment_method?; end
446
+ def attribute_accessor?; end
447
+ def method_name; end
448
+
449
+ private
450
+
451
+ def first_argument_index; end
452
+ end
453
+
454
+ class RuboCop::AST::IndexasgnNode < ::RuboCop::AST::Node
455
+ include ::RuboCop::AST::ParameterizedNode
456
+ include ::RuboCop::AST::ParameterizedNode::RestArguments
457
+ include ::RuboCop::AST::MethodIdentifierPredicates
458
+ include ::RuboCop::AST::MethodDispatchNode
459
+
460
+ def assignment_method?; end
461
+ def attribute_accessor?; end
462
+ def method_name; end
463
+
464
+ private
465
+
466
+ def first_argument_index; end
467
+ end
468
+
469
+ class RuboCop::AST::IntNode < ::RuboCop::AST::Node
470
+ include ::RuboCop::AST::BasicLiteralNode
471
+ include ::RuboCop::AST::NumericNode
472
+ end
473
+
474
+ class RuboCop::AST::KeywordSplatNode < ::RuboCop::AST::Node
475
+ include ::RuboCop::AST::HashElementNode
476
+
477
+ def colon?; end
478
+ def hash_rocket?; end
479
+ def node_parts; end
480
+ def operator; end
481
+ end
482
+
483
+ RuboCop::AST::KeywordSplatNode::DOUBLE_SPLAT = T.let(T.unsafe(nil), String)
484
+
485
+ class RuboCop::AST::LambdaNode < ::RuboCop::AST::Node
486
+ include ::RuboCop::AST::ParameterizedNode
487
+ include ::RuboCop::AST::ParameterizedNode::RestArguments
488
+ include ::RuboCop::AST::MethodIdentifierPredicates
489
+ include ::RuboCop::AST::MethodDispatchNode
490
+
491
+ def assignment_method?; end
492
+ def attribute_accessor?; end
493
+ def lambda?; end
494
+ def lambda_literal?; end
495
+ def method_name; end
496
+ def receiver; end
497
+
498
+ private
499
+
500
+ def first_argument_index; end
501
+ end
502
+
503
+ module RuboCop::AST::MethodDispatchNode
504
+ include ::RuboCop::AST::MethodIdentifierPredicates
505
+ extend ::RuboCop::AST::NodePattern::Macros
506
+
507
+ def access_modifier?; end
508
+ def adjacent_def_modifier?(param0 = T.unsafe(nil)); end
509
+ def arithmetic_operation?; end
510
+ def assignment?; end
511
+ def bare_access_modifier?; end
512
+ def bare_access_modifier_declaration?(param0 = T.unsafe(nil)); end
513
+ def binary_operation?; end
514
+ def block_literal?; end
515
+ def block_node; end
516
+ def command?(name); end
517
+ def const_receiver?; end
518
+ def def_modifier(node = T.unsafe(nil)); end
519
+ def def_modifier?(node = T.unsafe(nil)); end
520
+ def dot?; end
521
+ def double_colon?; end
522
+ def implicit_call?; end
523
+ def in_macro_scope?(param0 = T.unsafe(nil)); end
524
+ def lambda?; end
525
+ def lambda_literal?; end
526
+ def macro?; end
527
+ def method_name; end
528
+ def non_bare_access_modifier?; end
529
+ def non_bare_access_modifier_declaration?(param0 = T.unsafe(nil)); end
530
+ def receiver; end
531
+ def safe_navigation?; end
532
+ def self_receiver?; end
533
+ def setter_method?; end
534
+ def special_modifier?; end
535
+ def unary_operation?; end
536
+ end
537
+
538
+ RuboCop::AST::MethodDispatchNode::ARITHMETIC_OPERATORS = T.let(T.unsafe(nil), Array)
539
+ RuboCop::AST::MethodDispatchNode::SPECIAL_MODIFIERS = T.let(T.unsafe(nil), Array)
540
+
541
+ module RuboCop::AST::MethodIdentifierPredicates
542
+ def assignment_method?; end
543
+ def bang_method?; end
544
+ def camel_case_method?; end
545
+ def comparison_method?; end
546
+ def const_receiver?; end
547
+ def enumerable_method?; end
548
+ def enumerator_method?; end
549
+ def method?(name); end
550
+ def negation_method?; end
551
+ def nonmutating_array_method?; end
552
+ def nonmutating_binary_operator_method?; end
553
+ def nonmutating_hash_method?; end
554
+ def nonmutating_operator_method?; end
555
+ def nonmutating_string_method?; end
556
+ def nonmutating_unary_operator_method?; end
557
+ def operator_method?; end
558
+ def predicate_method?; end
559
+ def prefix_bang?; end
560
+ def prefix_not?; end
561
+ def self_receiver?; end
562
+ end
563
+
564
+ RuboCop::AST::MethodIdentifierPredicates::ENUMERABLE_METHODS = T.let(T.unsafe(nil), Set)
565
+ RuboCop::AST::MethodIdentifierPredicates::ENUMERATOR_METHODS = T.let(T.unsafe(nil), Set)
566
+ RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_ARRAY_METHODS = T.let(T.unsafe(nil), Set)
567
+ RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_BINARY_OPERATOR_METHODS = T.let(T.unsafe(nil), Set)
568
+ RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_HASH_METHODS = T.let(T.unsafe(nil), Set)
569
+ RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_OPERATOR_METHODS = T.let(T.unsafe(nil), Set)
570
+ RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_STRING_METHODS = T.let(T.unsafe(nil), Set)
571
+ RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_UNARY_OPERATOR_METHODS = T.let(T.unsafe(nil), Set)
572
+ RuboCop::AST::MethodIdentifierPredicates::OPERATOR_METHODS = T.let(T.unsafe(nil), Set)
573
+
574
+ module RuboCop::AST::ModifierNode
575
+ def modifier_form?; end
576
+ end
577
+
578
+ class RuboCop::AST::ModuleNode < ::RuboCop::AST::Node
579
+ def body; end
580
+ def identifier; end
581
+ end
582
+
583
+ class RuboCop::AST::NextNode < ::RuboCop::AST::Node
584
+ include ::RuboCop::AST::ParameterizedNode
585
+ include ::RuboCop::AST::ParameterizedNode::WrappedArguments
586
+ end
587
+
588
+ class RuboCop::AST::Node < ::Parser::AST::Node
589
+ include ::RuboCop::AST::Sexp
590
+ include ::RuboCop::AST::Descendence
591
+ extend ::RuboCop::AST::NodePattern::Macros
592
+
593
+ def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
594
+
595
+ def __ENCODING___type?; end
596
+ def __FILE___type?; end
597
+ def __LINE___type?; end
598
+ def alias_type?; end
599
+ def ancestors; end
600
+ def and_asgn_type?; end
601
+ def and_type?; end
602
+ def arg_expr_type?; end
603
+ def arg_type?; end
604
+ def args_type?; end
605
+ def argument?; end
606
+ def argument_type?; end
607
+ def array_pattern_type?; end
608
+ def array_pattern_with_tail_type?; end
609
+ def array_type?; end
610
+ def assignment?; end
611
+ def assignment_or_similar?(param0 = T.unsafe(nil)); end
612
+ def back_ref_type?; end
613
+ def basic_conditional?; end
614
+ def basic_literal?; end
615
+ def begin_type?; end
616
+ def block_pass_type?; end
617
+ def block_type?; end
618
+ def blockarg_expr_type?; end
619
+ def blockarg_type?; end
620
+ def boolean_type?; end
621
+ def break_type?; end
622
+ def call_type?; end
623
+ def case_match_type?; end
624
+ def case_type?; end
625
+ def casgn_type?; end
626
+ def cbase_type?; end
627
+ def chained?; end
628
+ def class_constructor?(param0 = T.unsafe(nil)); end
629
+ def class_definition?(param0 = T.unsafe(nil)); end
630
+ def class_type?; end
631
+ def complete!; end
632
+ def complete?; end
633
+ def complex_type?; end
634
+ def conditional?; end
635
+ def const_name; end
636
+ def const_pattern_type?; end
637
+ def const_type?; end
638
+ def csend_type?; end
639
+ def cvar_type?; end
640
+ def cvasgn_type?; end
641
+ def def_type?; end
642
+ def defined_module; end
643
+ def defined_module_name; end
644
+ def defined_type?; end
645
+ def defs_type?; end
646
+ def dstr_type?; end
647
+ def dsym_type?; end
648
+ def each_ancestor(*types, &block); end
649
+ def eflipflop_type?; end
650
+ def empty_else_type?; end
651
+ def empty_source?; end
652
+ def ensure_type?; end
653
+ def equals_asgn?; end
654
+ def erange_type?; end
655
+ def false_type?; end
656
+ def falsey_literal?; end
657
+ def find_pattern_type?; end
658
+ def first_line; end
659
+ def float_type?; end
660
+ def for_type?; end
661
+ def forward_arg_type?; end
662
+ def forward_args_type?; end
663
+ def forwarded_args_type?; end
664
+ def global_const?(param0 = T.unsafe(nil), param1); end
665
+ def guard_clause?; end
666
+ def gvar_type?; end
667
+ def gvasgn_type?; end
668
+ def hash_pattern_type?; end
669
+ def hash_type?; end
670
+ def ident_type?; end
671
+ def if_guard_type?; end
672
+ def if_type?; end
673
+ def iflipflop_type?; end
674
+ def immutable_literal?; end
675
+ def in_match_type?; end
676
+ def in_pattern_type?; end
677
+ def index_type?; end
678
+ def indexasgn_type?; end
679
+ def int_type?; end
680
+ def irange_type?; end
681
+ def ivar_type?; end
682
+ def ivasgn_type?; end
683
+ def keyword?; end
684
+ def kwarg_type?; end
685
+ def kwargs_type?; end
686
+ def kwbegin_type?; end
687
+ def kwnilarg_type?; end
688
+ def kwoptarg_type?; end
689
+ def kwrestarg_type?; end
690
+ def kwsplat_type?; end
691
+ def lambda?(param0 = T.unsafe(nil)); end
692
+ def lambda_or_proc?(param0 = T.unsafe(nil)); end
693
+ def lambda_type?; end
694
+ def last_line; end
695
+ def left_sibling; end
696
+ def left_siblings; end
697
+ def line_count; end
698
+ def literal?; end
699
+ def loop_keyword?; end
700
+ def lvar_type?; end
701
+ def lvasgn_type?; end
702
+ def masgn_type?; end
703
+ def match_alt_type?; end
704
+ def match_as_type?; end
705
+ def match_current_line_type?; end
706
+ def match_guard_clause?(param0 = T.unsafe(nil)); end
707
+ def match_nil_pattern_type?; end
708
+ def match_pattern_p_type?; end
709
+ def match_pattern_type?; end
710
+ def match_rest_type?; end
711
+ def match_var_type?; end
712
+ def match_with_lvasgn_type?; end
713
+ def match_with_trailing_comma_type?; end
714
+ def mlhs_type?; end
715
+ def module_definition?(param0 = T.unsafe(nil)); end
716
+ def module_type?; end
717
+ def multiline?; end
718
+ def mutable_literal?; end
719
+ def new_class_or_module_block?(param0 = T.unsafe(nil)); end
720
+ def next_type?; end
721
+ def nil_type?; end
722
+ def node_parts; end
723
+ def nonempty_line_count; end
724
+ def not_type?; end
725
+ def nth_ref_type?; end
726
+ def numargs_type?; end
727
+ def numblock_type?; end
728
+ def numeric_type?; end
729
+ def objc_kwarg_type?; end
730
+ def objc_restarg_type?; end
731
+ def objc_varargs_type?; end
732
+ def op_asgn_type?; end
733
+ def operator_keyword?; end
734
+ def optarg_type?; end
735
+ def or_asgn_type?; end
736
+ def or_type?; end
737
+ def pair_type?; end
738
+ def parent; end
739
+ def parent?; end
740
+ def parent_module_name; end
741
+ def parenthesized_call?; end
742
+ def pin_type?; end
743
+ def post_condition_loop?; end
744
+ def postexe_type?; end
745
+ def preexe_type?; end
746
+ def proc?(param0 = T.unsafe(nil)); end
747
+ def procarg0_type?; end
748
+ def pure?; end
749
+ def range_type?; end
750
+ def rational_type?; end
751
+ def receiver(param0 = T.unsafe(nil)); end
752
+ def recursive_basic_literal?; end
753
+ def recursive_literal?; end
754
+ def redo_type?; end
755
+ def reference?; end
756
+ def regexp_type?; end
757
+ def regopt_type?; end
758
+ def resbody_type?; end
759
+ def rescue_type?; end
760
+ def restarg_expr_type?; end
761
+ def restarg_type?; end
762
+ def retry_type?; end
763
+ def return_type?; end
764
+ def right_sibling; end
765
+ def right_siblings; end
766
+ def root?; end
767
+ def sclass_type?; end
768
+ def self_type?; end
769
+ def send_type?; end
770
+ def shadowarg_type?; end
771
+ def shorthand_asgn?; end
772
+ def sibling_index; end
773
+ def single_line?; end
774
+ def source; end
775
+ def source_length; end
776
+ def source_range; end
777
+ def special_keyword?; end
778
+ def splat_type?; end
779
+ def str_content(param0 = T.unsafe(nil)); end
780
+ def str_type?; end
781
+ def struct_constructor?(param0 = T.unsafe(nil)); end
782
+ def super_type?; end
783
+ def sym_type?; end
784
+ def true_type?; end
785
+ def truthy_literal?; end
786
+ def undef_type?; end
787
+ def unless_guard_type?; end
788
+ def until_post_type?; end
789
+ def until_type?; end
790
+ def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end
791
+ def value_used?; end
792
+ def variable?; end
793
+ def when_type?; end
794
+ def while_post_type?; end
795
+ def while_type?; end
796
+ def xstr_type?; end
797
+ def yield_type?; end
798
+ def zsuper_type?; end
799
+
800
+ protected
801
+
802
+ def parent=(node); end
803
+
804
+ private
805
+
806
+ def begin_value_used?; end
807
+ def case_if_value_used?; end
808
+ def defined_module0(param0 = T.unsafe(nil)); end
809
+ def for_value_used?; end
810
+ def parent_module_name_for_block(ancestor); end
811
+ def parent_module_name_for_sclass(sclass_node); end
812
+ def parent_module_name_part(node); end
813
+ def visit_ancestors(types); end
814
+ def while_until_value_used?; end
815
+ end
816
+
817
+ RuboCop::AST::Node::ARGUMENT_TYPES = T.let(T.unsafe(nil), Set)
818
+ RuboCop::AST::Node::ASSIGNMENTS = T.let(T.unsafe(nil), Set)
819
+ RuboCop::AST::Node::BASIC_CONDITIONALS = T.let(T.unsafe(nil), Set)
820
+ RuboCop::AST::Node::BASIC_LITERALS = T.let(T.unsafe(nil), Set)
821
+ RuboCop::AST::Node::COMPARISON_OPERATORS = T.let(T.unsafe(nil), Set)
822
+ RuboCop::AST::Node::COMPOSITE_LITERALS = T.let(T.unsafe(nil), Set)
823
+ RuboCop::AST::Node::CONDITIONALS = T.let(T.unsafe(nil), Set)
824
+ RuboCop::AST::Node::EQUALS_ASSIGNMENTS = T.let(T.unsafe(nil), Set)
825
+ RuboCop::AST::Node::FALSEY_LITERALS = T.let(T.unsafe(nil), Set)
826
+ RuboCop::AST::Node::IMMUTABLE_LITERALS = T.let(T.unsafe(nil), Set)
827
+ RuboCop::AST::Node::KEYWORDS = T.let(T.unsafe(nil), Set)
828
+ RuboCop::AST::Node::LITERALS = T.let(T.unsafe(nil), Set)
829
+ RuboCop::AST::Node::LITERAL_RECURSIVE_METHODS = T.let(T.unsafe(nil), Set)
830
+ RuboCop::AST::Node::LITERAL_RECURSIVE_TYPES = T.let(T.unsafe(nil), Set)
831
+ RuboCop::AST::Node::LOOP_TYPES = T.let(T.unsafe(nil), Set)
832
+ RuboCop::AST::Node::MUTABLE_LITERALS = T.let(T.unsafe(nil), Set)
833
+ RuboCop::AST::Node::OPERATOR_KEYWORDS = T.let(T.unsafe(nil), Set)
834
+ RuboCop::AST::Node::POST_CONDITION_LOOP_TYPES = T.let(T.unsafe(nil), Set)
835
+ RuboCop::AST::Node::REFERENCES = T.let(T.unsafe(nil), Set)
836
+ RuboCop::AST::Node::SHORTHAND_ASSIGNMENTS = T.let(T.unsafe(nil), Set)
837
+ RuboCop::AST::Node::SPECIAL_KEYWORDS = T.let(T.unsafe(nil), Set)
838
+ RuboCop::AST::Node::TRUTHY_LITERALS = T.let(T.unsafe(nil), Set)
839
+ RuboCop::AST::Node::VARIABLES = T.let(T.unsafe(nil), Set)
840
+
841
+ class RuboCop::AST::NodePattern
842
+ include ::RuboCop::AST::NodePattern::MethodDefiner
843
+ extend ::Forwardable
844
+
845
+ def initialize(str, compiler: T.unsafe(nil)); end
846
+
847
+ def ==(other); end
848
+ def as_json(_options = T.unsafe(nil)); end
849
+ def ast; end
850
+ def captures(*args, &block); end
851
+ def encode_with(coder); end
852
+ def eql?(other); end
853
+ def freeze; end
854
+ def init_with(coder); end
855
+ def marshal_dump; end
856
+ def marshal_load(pattern); end
857
+ def match(*args, **rest, &block); end
858
+ def match_code; end
859
+ def named_parameters(*args, &block); end
860
+ def pattern; end
861
+ def positional_parameters(*args, &block); end
862
+ def to_s; end
863
+
864
+ class << self
865
+ def descend(element, &block); end
866
+ end
867
+ end
868
+
869
+ class RuboCop::AST::NodePattern::Builder
870
+ def emit_atom(type, value); end
871
+ def emit_call(type, selector, args = T.unsafe(nil)); end
872
+ def emit_capture(capture_token, node); end
873
+ def emit_list(type, _begin, children, _end); end
874
+ def emit_subsequence(node_list); end
875
+ def emit_unary_op(type, _operator = T.unsafe(nil), *children); end
876
+ def emit_union(begin_t, pattern_lists, end_t); end
877
+
878
+ private
879
+
880
+ def n(type, *args); end
881
+ def optimizable_as_set?(children); end
882
+ def union_children(pattern_lists); end
883
+ end
884
+
885
+ class RuboCop::AST::NodePattern::Comment
886
+ def initialize(range); end
887
+
888
+ def ==(other); end
889
+ def inspect; end
890
+ def loc; end
891
+ def location; end
892
+ def text; end
893
+ end
894
+
895
+ class RuboCop::AST::NodePattern::Compiler
896
+ extend ::Forwardable
897
+
898
+ def initialize; end
899
+
900
+ def bind(*args, &block); end
901
+ def binding; end
902
+ def captures; end
903
+ def compile_as_atom(node); end
904
+ def compile_as_node_pattern(node, **options); end
905
+ def compile_sequence(sequence, var:); end
906
+ def each_union(enum, &block); end
907
+ def freeze; end
908
+ def named_parameter(name); end
909
+ def named_parameters; end
910
+ def next_capture; end
911
+ def parser; end
912
+ def positional_parameter(number); end
913
+ def positional_parameters; end
914
+ def with_temp_variables(*names, &block); end
915
+
916
+ private
917
+
918
+ def enforce_same_captures(enum); end
919
+ def new_capture; end
920
+ end
921
+
922
+ class RuboCop::AST::NodePattern::Compiler::AtomSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler
923
+ private
924
+
925
+ def visit_const; end
926
+ def visit_named_parameter; end
927
+ def visit_number; end
928
+ def visit_other_type; end
929
+ def visit_positional_parameter; end
930
+ def visit_regexp; end
931
+ def visit_set; end
932
+ def visit_string; end
933
+ def visit_symbol; end
934
+ def visit_unify; end
935
+ end
936
+
937
+ class RuboCop::AST::NodePattern::Compiler::Binding
938
+ def initialize; end
939
+
940
+ def bind(name); end
941
+ def union_bind(enum); end
942
+
943
+ private
944
+
945
+ def forbid(names); end
946
+ end
947
+
948
+ class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::Compiler
949
+ def initialize; end
950
+
951
+ def comments(*args, &block); end
952
+ def named_parameters; end
953
+ def node_ids; end
954
+ def parser; end
955
+ def tokens(*args, &block); end
956
+ end
957
+
958
+ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer
959
+ def initialize(pattern, compiler: T.unsafe(nil)); end
960
+
961
+ def compiler; end
962
+ def node_pattern; end
963
+ def pattern; end
964
+ def test(ruby, trace: T.unsafe(nil)); end
965
+
966
+ private
967
+
968
+ def ruby_ast(ruby); end
969
+ def ruby_parser; end
970
+ end
971
+
972
+ RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::COLOR_SCHEME = T.let(T.unsafe(nil), Hash)
973
+ RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Compiler = RuboCop::AST::NodePattern::Compiler::Debug
974
+
975
+ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct
976
+ def color_map(color_scheme = T.unsafe(nil)); end
977
+ def colorize(color_scheme = T.unsafe(nil)); end
978
+ def colorizer; end
979
+ def colorizer=(_); end
980
+ def match_map; end
981
+ def matched?(node); end
982
+ def returned; end
983
+ def returned=(_); end
984
+ def ruby_ast; end
985
+ def ruby_ast=(_); end
986
+ def trace; end
987
+ def trace=(_); end
988
+
989
+ private
990
+
991
+ def ast; end
992
+ def color_map_for(node, color); end
993
+
994
+ class << self
995
+ def [](*_arg0); end
996
+ def inspect; end
997
+ def members; end
998
+ def new(*_arg0); end
999
+ end
1000
+ end
1001
+
1002
+ module RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler
1003
+ def do_compile; end
1004
+
1005
+ private
1006
+
1007
+ def node_id; end
1008
+ def tracer(kind); end
1009
+ end
1010
+
1011
+ class RuboCop::AST::NodePattern::Compiler::Debug::NodePatternSubcompiler < ::RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler
1012
+ include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler
1013
+ end
1014
+
1015
+ class RuboCop::AST::NodePattern::Compiler::Debug::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler
1016
+ include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler
1017
+ end
1018
+
1019
+ class RuboCop::AST::NodePattern::Compiler::Debug::Trace
1020
+ def initialize; end
1021
+
1022
+ def enter(node_id); end
1023
+ def matched?(node_id); end
1024
+ def success(node_id); end
1025
+ end
1026
+
1027
+ class RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler
1028
+ def initialize(compiler, var: T.unsafe(nil), access: T.unsafe(nil), seq_head: T.unsafe(nil)); end
1029
+
1030
+ def access; end
1031
+ def seq_head; end
1032
+
1033
+ private
1034
+
1035
+ def access_element; end
1036
+ def access_node; end
1037
+ def compile_args(arg_list, first: T.unsafe(nil)); end
1038
+ def compile_guard_clause; end
1039
+ def compile_value_match(value); end
1040
+ def multiple_access(kind); end
1041
+ def visit_ascend; end
1042
+ def visit_capture; end
1043
+ def visit_descend; end
1044
+ def visit_function_call; end
1045
+ def visit_intersection; end
1046
+ def visit_negation; end
1047
+ def visit_node_type; end
1048
+ def visit_other_type; end
1049
+ def visit_predicate; end
1050
+ def visit_sequence; end
1051
+ def visit_unify; end
1052
+ def visit_union; end
1053
+ def visit_wildcard; end
1054
+ end
1055
+
1056
+ class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler
1057
+ def initialize(compiler, sequence:, var:); end
1058
+
1059
+ def compile_sequence; end
1060
+ def in_sync; end
1061
+
1062
+ protected
1063
+
1064
+ def compile_terms(children = T.unsafe(nil), last_arity = T.unsafe(nil)); end
1065
+ def cur_index; end
1066
+ def sync; end
1067
+
1068
+ private
1069
+
1070
+ def compile_and_advance(term); end
1071
+ def compile_any_order_branches(matched_var); end
1072
+ def compile_any_order_else; end
1073
+ def compile_captured_repetition(child_code, child_captures); end
1074
+ def compile_case(when_branches, else_code); end
1075
+ def compile_child_nb_guard(arity_range); end
1076
+ def compile_cur_index; end
1077
+ def compile_index(cur = T.unsafe(nil)); end
1078
+ def compile_loop(term); end
1079
+ def compile_loop_advance(to = T.unsafe(nil)); end
1080
+ def compile_matched(kind); end
1081
+ def compile_max_matched; end
1082
+ def compile_min_check; end
1083
+ def compile_remaining; end
1084
+ def compile_union_forks; end
1085
+ def empty_loop; end
1086
+ def handle_prev; end
1087
+ def merge_forks!(forks); end
1088
+ def preserve_union_start(forks); end
1089
+ def remaining_arities(children, last_arity); end
1090
+ def use_index_from_end; end
1091
+ def visit_any_order; end
1092
+ def visit_capture; end
1093
+ def visit_other_type; end
1094
+ def visit_repetition; end
1095
+ def visit_rest; end
1096
+ def visit_union; end
1097
+ def within_loop; end
1098
+ end
1099
+
1100
+ RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::DELTA = T.let(T.unsafe(nil), Integer)
1101
+ RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::POSITIVE = T.let(T.unsafe(nil), Proc)
1102
+
1103
+ class RuboCop::AST::NodePattern::Compiler::Subcompiler
1104
+ def initialize(compiler); end
1105
+
1106
+ def compile(node); end
1107
+ def compiler; end
1108
+
1109
+ private
1110
+
1111
+ def do_compile; end
1112
+ def node; end
1113
+
1114
+ class << self
1115
+ def inherited(base); end
1116
+ def method_added(method); end
1117
+ def registry; end
1118
+ end
1119
+ end
1120
+
1121
+ class RuboCop::AST::NodePattern::Invalid < ::StandardError; end
1122
+
1123
+ class RuboCop::AST::NodePattern::Lexer < ::RuboCop::AST::NodePattern::LexerRex
1124
+ def initialize(source); end
1125
+
1126
+ def comments; end
1127
+ def source_buffer; end
1128
+ def tokens; end
1129
+
1130
+ private
1131
+
1132
+ def do_parse; end
1133
+ def emit(type); end
1134
+ def emit_comment; end
1135
+ def emit_regexp; end
1136
+ def token(type, value); end
1137
+ end
1138
+
1139
+ RuboCop::AST::NodePattern::Lexer::Error = RuboCop::AST::NodePattern::LexerRex::ScanError
1140
+ RuboCop::AST::NodePattern::Lexer::REGEXP_OPTIONS = T.let(T.unsafe(nil), Hash)
1141
+
1142
+ class RuboCop::AST::NodePattern::LexerRex
1143
+ def action; end
1144
+ def filename; end
1145
+ def filename=(_arg0); end
1146
+ def location; end
1147
+ def match; end
1148
+ def matches; end
1149
+ def next_token; end
1150
+ def parse(str); end
1151
+ def parse_file(path); end
1152
+ def scanner_class; end
1153
+ def ss; end
1154
+ def ss=(_arg0); end
1155
+ def state; end
1156
+ def state=(_arg0); end
1157
+ end
1158
+
1159
+ RuboCop::AST::NodePattern::LexerRex::CALL = T.let(T.unsafe(nil), Regexp)
1160
+ RuboCop::AST::NodePattern::LexerRex::CONST_NAME = T.let(T.unsafe(nil), Regexp)
1161
+ RuboCop::AST::NodePattern::LexerRex::IDENTIFIER = T.let(T.unsafe(nil), Regexp)
1162
+ class RuboCop::AST::NodePattern::LexerRex::LexerError < ::StandardError; end
1163
+ RuboCop::AST::NodePattern::LexerRex::NODE_TYPE = T.let(T.unsafe(nil), Regexp)
1164
+ RuboCop::AST::NodePattern::LexerRex::REGEXP = T.let(T.unsafe(nil), Regexp)
1165
+ RuboCop::AST::NodePattern::LexerRex::REGEXP_BODY = T.let(T.unsafe(nil), Regexp)
1166
+ RuboCop::AST::NodePattern::LexerRex::SYMBOL_NAME = T.let(T.unsafe(nil), Regexp)
1167
+ class RuboCop::AST::NodePattern::LexerRex::ScanError < ::RuboCop::AST::NodePattern::LexerRex::LexerError; end
1168
+
1169
+ module RuboCop::AST::NodePattern::Macros
1170
+ def def_node_matcher(method_name, pattern_str, **keyword_defaults); end
1171
+ def def_node_search(method_name, pattern_str, **keyword_defaults); end
1172
+ end
1173
+
1174
+ module RuboCop::AST::NodePattern::MethodDefiner
1175
+ def as_lambda; end
1176
+ def compile_as_lambda; end
1177
+ def def_node_matcher(base, method_name, **defaults); end
1178
+ def def_node_search(base, method_name, **defaults); end
1179
+
1180
+ private
1181
+
1182
+ def compile_init; end
1183
+ def def_helper(base, method_name, **defaults); end
1184
+ def emit_keyword_list(forwarding: T.unsafe(nil)); end
1185
+ def emit_lambda_code; end
1186
+ def emit_method_code; end
1187
+ def emit_node_search(method_name); end
1188
+ def emit_node_search_body(method_name, prelude:, on_match:); end
1189
+ def emit_param_list; end
1190
+ def emit_params(*first, forwarding: T.unsafe(nil)); end
1191
+ def emit_retval; end
1192
+ def emit_yield_capture(when_no_capture = T.unsafe(nil), yield_with: T.unsafe(nil)); end
1193
+ def wrapping_block(method_name, **defaults); end
1194
+ end
1195
+
1196
+ class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node
1197
+ include ::RuboCop::AST::Descendence
1198
+ extend ::Forwardable
1199
+
1200
+ def arity; end
1201
+ def arity_range; end
1202
+ def capture?; end
1203
+ def child; end
1204
+ def children_nodes; end
1205
+ def in_sequence_head; end
1206
+ def matches_within_set?; end
1207
+ def nb_captures; end
1208
+ def rest?; end
1209
+ def variadic?; end
1210
+ def with(type: T.unsafe(nil), children: T.unsafe(nil), location: T.unsafe(nil)); end
1211
+ end
1212
+
1213
+ class RuboCop::AST::NodePattern::Node::AnyOrder < ::RuboCop::AST::NodePattern::Node
1214
+ include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
1215
+
1216
+ def arity; end
1217
+ def ends_with_rest?; end
1218
+ def rest_node; end
1219
+ def term_nodes; end
1220
+ end
1221
+
1222
+ RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash)
1223
+
1224
+ class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node
1225
+ def arity(*args, &block); end
1226
+ def capture?; end
1227
+ def in_sequence_head; end
1228
+ def nb_captures; end
1229
+ def rest?(*args, &block); end
1230
+ end
1231
+
1232
+ module RuboCop::AST::NodePattern::Node::ForbidInSeqHead
1233
+ def in_sequence_head; end
1234
+ end
1235
+
1236
+ RuboCop::AST::NodePattern::Node::FunctionCall = RuboCop::AST::NodePattern::Node::Predicate
1237
+ RuboCop::AST::NodePattern::Node::INT_TO_RANGE = T.let(T.unsafe(nil), Hash)
1238
+ RuboCop::AST::NodePattern::Node::MAP = T.let(T.unsafe(nil), Hash)
1239
+ RuboCop::AST::NodePattern::Node::MATCHES_WITHIN_SET = T.let(T.unsafe(nil), Set)
1240
+
1241
+ class RuboCop::AST::NodePattern::Node::Predicate < ::RuboCop::AST::NodePattern::Node
1242
+ def arg_list; end
1243
+ def method_name; end
1244
+ end
1245
+
1246
+ class RuboCop::AST::NodePattern::Node::Repetition < ::RuboCop::AST::NodePattern::Node
1247
+ include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
1248
+
1249
+ def arity; end
1250
+ def operator; end
1251
+ end
1252
+
1253
+ RuboCop::AST::NodePattern::Node::Repetition::ARITIES = T.let(T.unsafe(nil), Hash)
1254
+
1255
+ class RuboCop::AST::NodePattern::Node::Rest < ::RuboCop::AST::NodePattern::Node
1256
+ def arity; end
1257
+ def in_sequence_head; end
1258
+ def rest?; end
1259
+ end
1260
+
1261
+ RuboCop::AST::NodePattern::Node::Rest::ARITY = T.let(T.unsafe(nil), Range)
1262
+
1263
+ class RuboCop::AST::NodePattern::Node::Sequence < ::RuboCop::AST::NodePattern::Node
1264
+ include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
1265
+
1266
+ def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
1267
+ end
1268
+
1269
+ class RuboCop::AST::NodePattern::Node::Subsequence < ::RuboCop::AST::NodePattern::Node
1270
+ include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
1271
+
1272
+ def arity; end
1273
+ def in_sequence_head; end
1274
+ end
1275
+
1276
+ class RuboCop::AST::NodePattern::Node::Union < ::RuboCop::AST::NodePattern::Node
1277
+ def arity; end
1278
+ def in_sequence_head; end
1279
+ end
1280
+
1281
+ class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
1282
+ extend ::Forwardable
1283
+
1284
+ def initialize(builder = T.unsafe(nil)); end
1285
+
1286
+ def _reduce_10(val, _values); end
1287
+ def _reduce_11(val, _values); end
1288
+ def _reduce_13(val, _values); end
1289
+ def _reduce_14(val, _values); end
1290
+ def _reduce_15(val, _values); end
1291
+ def _reduce_16(val, _values); end
1292
+ def _reduce_17(val, _values); end
1293
+ def _reduce_18(val, _values); end
1294
+ def _reduce_19(val, _values); end
1295
+ def _reduce_2(val, _values); end
1296
+ def _reduce_20(val, _values); end
1297
+ def _reduce_21(val, _values); end
1298
+ def _reduce_22(val, _values); end
1299
+ def _reduce_25(val, _values); end
1300
+ def _reduce_26(val, _values); end
1301
+ def _reduce_3(val, _values); end
1302
+ def _reduce_33(val, _values); end
1303
+ def _reduce_37(val, _values); end
1304
+ def _reduce_38(val, _values); end
1305
+ def _reduce_39(val, _values); end
1306
+ def _reduce_4(val, _values); end
1307
+ def _reduce_40(val, _values); end
1308
+ def _reduce_41(val, _values); end
1309
+ def _reduce_42(val, _values); end
1310
+ def _reduce_43(val, _values); end
1311
+ def _reduce_44(val, _values); end
1312
+ def _reduce_45(val, _values); end
1313
+ def _reduce_46(val, _values); end
1314
+ def _reduce_5(val, _values); end
1315
+ def _reduce_6(val, _values); end
1316
+ def _reduce_7(val, _values); end
1317
+ def _reduce_8(val, _values); end
1318
+ def _reduce_9(val, _values); end
1319
+ def _reduce_none(val, _values); end
1320
+ def emit_atom(*args, &block); end
1321
+ def emit_call(*args, &block); end
1322
+ def emit_capture(*args, &block); end
1323
+ def emit_list(*args, &block); end
1324
+ def emit_unary_op(*args, &block); end
1325
+ def emit_union(*args, &block); end
1326
+ def inspect; end
1327
+ def next_token(*args, &block); end
1328
+ def parse(source); end
1329
+
1330
+ private
1331
+
1332
+ def enforce_unary(node); end
1333
+ def on_error(token, val, _vstack); end
1334
+ end
1335
+
1336
+ RuboCop::AST::NodePattern::Parser::Builder = RuboCop::AST::NodePattern::Builder
1337
+ RuboCop::AST::NodePattern::Parser::Lexer = RuboCop::AST::NodePattern::Lexer
1338
+ RuboCop::AST::NodePattern::Parser::Racc_arg = T.let(T.unsafe(nil), Array)
1339
+ RuboCop::AST::NodePattern::Parser::Racc_token_to_s_table = T.let(T.unsafe(nil), Array)
1340
+
1341
+ class RuboCop::AST::NodePattern::Parser::WithMeta < ::RuboCop::AST::NodePattern::Parser
1342
+ def comments; end
1343
+ def do_parse; end
1344
+ def tokens; end
1345
+ end
1346
+
1347
+ class RuboCop::AST::NodePattern::Parser::WithMeta::Builder < ::RuboCop::AST::NodePattern::Builder
1348
+ def emit_atom(type, token); end
1349
+ def emit_call(type, selector_t, args = T.unsafe(nil)); end
1350
+ def emit_list(type, begin_t, children, end_t); end
1351
+ def emit_unary_op(type, operator_t = T.unsafe(nil), *children); end
1352
+
1353
+ private
1354
+
1355
+ def join_exprs(left_expr, right_expr); end
1356
+ def loc(token_or_range); end
1357
+ def n(type, children, source_map); end
1358
+ def source_map(token_or_range, begin_t: T.unsafe(nil), end_t: T.unsafe(nil), operator_t: T.unsafe(nil), selector_t: T.unsafe(nil)); end
1359
+ end
1360
+
1361
+ class RuboCop::AST::NodePattern::Parser::WithMeta::Lexer < ::RuboCop::AST::NodePattern::Lexer
1362
+ def initialize(str_or_buffer); end
1363
+
1364
+ def emit_comment; end
1365
+ def pos; end
1366
+ def source_buffer; end
1367
+ def token(type, value); end
1368
+ end
1369
+
1370
+ module RuboCop::AST::NodePattern::Sets
1371
+ class << self
1372
+ def [](set); end
1373
+ def name(set); end
1374
+ def uniq(name); end
1375
+ end
1376
+ end
1377
+
1378
+ RuboCop::AST::NodePattern::Sets::MAX = T.let(T.unsafe(nil), Integer)
1379
+ RuboCop::AST::NodePattern::Sets::REGISTRY = T.let(T.unsafe(nil), Hash)
1380
+ RuboCop::AST::NodePattern::Sets::SET_0_1 = T.let(T.unsafe(nil), Set)
1381
+ RuboCop::AST::NodePattern::Sets::SET_10_10 = T.let(T.unsafe(nil), Set)
1382
+ RuboCop::AST::NodePattern::Sets::SET_1_1 = T.let(T.unsafe(nil), Set)
1383
+ RuboCop::AST::NodePattern::Sets::SET_ABSTRACT_OVERRIDE_OVERRIDABLE_ETC = T.let(T.unsafe(nil), Set)
1384
+ RuboCop::AST::NodePattern::Sets::SET_ADD_DEPENDENCY_ADD_RUNTIME_DEPENDENCY_ADD_DEVELOPMENT_DEPENDENCY = T.let(T.unsafe(nil), Set)
1385
+ RuboCop::AST::NodePattern::Sets::SET_ANY_ALL_NORETURN_ETC = T.let(T.unsafe(nil), Set)
1386
+ RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR = T.let(T.unsafe(nil), Set)
1387
+ RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR_ATTR = T.let(T.unsafe(nil), Set)
1388
+ RuboCop::AST::NodePattern::Sets::SET_BRANCH_REF_TAG = T.let(T.unsafe(nil), Set)
1389
+ RuboCop::AST::NodePattern::Sets::SET_CAPTURE2_CAPTURE2E_CAPTURE3_ETC = T.let(T.unsafe(nil), Set)
1390
+ RuboCop::AST::NodePattern::Sets::SET_CIPHER_DIGEST = T.let(T.unsafe(nil), Set)
1391
+ RuboCop::AST::NodePattern::Sets::SET_CLASS_EVAL_INSTANCE_EVAL = T.let(T.unsafe(nil), Set)
1392
+ RuboCop::AST::NodePattern::Sets::SET_CLASS_EVAL_MODULE_EVAL = T.let(T.unsafe(nil), Set)
1393
+ RuboCop::AST::NodePattern::Sets::SET_CLASS_MODULE = T.let(T.unsafe(nil), Set)
1394
+ RuboCop::AST::NodePattern::Sets::SET_CLASS_MODULE_STRUCT = T.let(T.unsafe(nil), Set)
1395
+ RuboCop::AST::NodePattern::Sets::SET_CONSTANTIZE_CONSTANTS_CONST_GET = T.let(T.unsafe(nil), Set)
1396
+ RuboCop::AST::NodePattern::Sets::SET_COUNT_LENGTH_SIZE = T.let(T.unsafe(nil), Set)
1397
+ RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD = T.let(T.unsafe(nil), Set)
1398
+ RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD_DEFINE_SINGLETON_METHOD = T.let(T.unsafe(nil), Set)
1399
+ RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_INDEX_WITH_INDEX = T.let(T.unsafe(nil), Set)
1400
+ RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_OBJECT_WITH_OBJECT = T.let(T.unsafe(nil), Set)
1401
+ RuboCop::AST::NodePattern::Sets::SET_ENUMERATOR_RATIONAL_COMPLEX_THREAD = T.let(T.unsafe(nil), Set)
1402
+ RuboCop::AST::NodePattern::Sets::SET_ESCAPE_ENCODE_UNESCAPE_DECODE = T.let(T.unsafe(nil), Set)
1403
+ RuboCop::AST::NodePattern::Sets::SET_FIRST_LAST__ETC = T.let(T.unsafe(nil), Set)
1404
+ RuboCop::AST::NodePattern::Sets::SET_FIXNUM_BIGNUM = T.let(T.unsafe(nil), Set)
1405
+ RuboCop::AST::NodePattern::Sets::SET_FORMAT_SPRINTF_PRINTF = T.let(T.unsafe(nil), Set)
1406
+ RuboCop::AST::NodePattern::Sets::SET_GSUB_GSUB = T.let(T.unsafe(nil), Set)
1407
+ RuboCop::AST::NodePattern::Sets::SET_INCLUDE_EXTEND_PREPEND = T.let(T.unsafe(nil), Set)
1408
+ RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EVAL_CLASS_EVAL_MODULE_EVAL = T.let(T.unsafe(nil), Set)
1409
+ RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EXEC_CLASS_EXEC_MODULE_EXEC = T.let(T.unsafe(nil), Set)
1410
+ RuboCop::AST::NodePattern::Sets::SET_KEYS_VALUES = T.let(T.unsafe(nil), Set)
1411
+ RuboCop::AST::NodePattern::Sets::SET_KEY_HAS_KEY_FETCH_ETC = T.let(T.unsafe(nil), Set)
1412
+ RuboCop::AST::NodePattern::Sets::SET_LAST_FIRST = T.let(T.unsafe(nil), Set)
1413
+ RuboCop::AST::NodePattern::Sets::SET_LENGTH_SIZE = T.let(T.unsafe(nil), Set)
1414
+ RuboCop::AST::NodePattern::Sets::SET_LOAD_RESTORE = T.let(T.unsafe(nil), Set)
1415
+ RuboCop::AST::NodePattern::Sets::SET_MAP_COLLECT = T.let(T.unsafe(nil), Set)
1416
+ RuboCop::AST::NodePattern::Sets::SET_NEW_ = T.let(T.unsafe(nil), Set)
1417
+ RuboCop::AST::NodePattern::Sets::SET_NEW_OPEN = T.let(T.unsafe(nil), Set)
1418
+ RuboCop::AST::NodePattern::Sets::SET_NIL_ = T.let(T.unsafe(nil), Set)
1419
+ RuboCop::AST::NodePattern::Sets::SET_PIPELINE_PIPELINE_R_PIPELINE_RW_ETC = T.let(T.unsafe(nil), Set)
1420
+ RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED = T.let(T.unsafe(nil), Set)
1421
+ RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED_PUBLIC = T.let(T.unsafe(nil), Set)
1422
+ RuboCop::AST::NodePattern::Sets::SET_PROP_CONST = T.let(T.unsafe(nil), Set)
1423
+ RuboCop::AST::NodePattern::Sets::SET_PUBLIC_CONSTANT_PRIVATE_CONSTANT = T.let(T.unsafe(nil), Set)
1424
+ RuboCop::AST::NodePattern::Sets::SET_PUBLIC_PROTECTED_PRIVATE_MODULE_FUNCTION = T.let(T.unsafe(nil), Set)
1425
+ RuboCop::AST::NodePattern::Sets::SET_RAISE_FAIL = T.let(T.unsafe(nil), Set)
1426
+ RuboCop::AST::NodePattern::Sets::SET_RAISE_FAIL_THROW_ETC = T.let(T.unsafe(nil), Set)
1427
+ RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set)
1428
+ RuboCop::AST::NodePattern::Sets::SET_REJECT_REJECT = T.let(T.unsafe(nil), Set)
1429
+ RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(nil), Set)
1430
+ RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT = T.let(T.unsafe(nil), Set)
1431
+ RuboCop::AST::NodePattern::Sets::SET_SEND_PUBLIC_SEND___SEND__ = T.let(T.unsafe(nil), Set)
1432
+ RuboCop::AST::NodePattern::Sets::SET_SORT_BY_SORT = T.let(T.unsafe(nil), Set)
1433
+ RuboCop::AST::NodePattern::Sets::SET_SPAWN_SYSTEM = T.let(T.unsafe(nil), Set)
1434
+ RuboCop::AST::NodePattern::Sets::SET_SPRINTF_FORMAT = T.let(T.unsafe(nil), Set)
1435
+ RuboCop::AST::NodePattern::Sets::SET_STRUCT_CLASS = T.let(T.unsafe(nil), Set)
1436
+ RuboCop::AST::NodePattern::Sets::SET_SUCC_PRED_NEXT = T.let(T.unsafe(nil), Set)
1437
+ RuboCop::AST::NodePattern::Sets::SET_TEMPFILE_STRINGIO = T.let(T.unsafe(nil), Set)
1438
+ RuboCop::AST::NodePattern::Sets::SET_TO_ENUM_ENUM_FOR = T.let(T.unsafe(nil), Set)
1439
+ RuboCop::AST::NodePattern::Sets::SET_TO_H_TO_HASH = T.let(T.unsafe(nil), Set)
1440
+ RuboCop::AST::NodePattern::Sets::SET_TO_I_TO_F_TO_C_TO_R = T.let(T.unsafe(nil), Set)
1441
+ RuboCop::AST::NodePattern::Sets::SET_TRUE_FALSE = T.let(T.unsafe(nil), Set)
1442
+ RuboCop::AST::NodePattern::Sets::SET_TYPE_TEMPLATE_TYPE_MEMBER = T.let(T.unsafe(nil), Set)
1443
+ RuboCop::AST::NodePattern::Sets::SET_ZERO_POSITIVE_NEGATIVE = T.let(T.unsafe(nil), Set)
1444
+ RuboCop::AST::NodePattern::Sets::SET__ = T.let(T.unsafe(nil), Set)
1445
+ RuboCop::AST::NodePattern::Sets::SET__AT_SLICE = T.let(T.unsafe(nil), Set)
1446
+ RuboCop::AST::NodePattern::Sets::SET__EQUAL_EQL = T.let(T.unsafe(nil), Set)
1447
+ RuboCop::AST::NodePattern::Sets::SET__GLOB = T.let(T.unsafe(nil), Set)
1448
+ RuboCop::AST::NodePattern::Sets::SET___ = T.let(T.unsafe(nil), Set)
1449
+ RuboCop::AST::NodePattern::Sets::SET___2 = T.let(T.unsafe(nil), Set)
1450
+ RuboCop::AST::NodePattern::Sets::SET___3 = T.let(T.unsafe(nil), Set)
1451
+ RuboCop::AST::NodePattern::Sets::SET___4 = T.let(T.unsafe(nil), Set)
1452
+ RuboCop::AST::NodePattern::Sets::SET___5 = T.let(T.unsafe(nil), Set)
1453
+ RuboCop::AST::NodePattern::Sets::SET___6 = T.let(T.unsafe(nil), Set)
1454
+ RuboCop::AST::NodePattern::Sets::SET___7 = T.let(T.unsafe(nil), Set)
1455
+ RuboCop::AST::NodePattern::Sets::SET___EQL = T.let(T.unsafe(nil), Set)
1456
+ RuboCop::AST::NodePattern::Sets::SET___METHOD_____CALLEE__ = T.let(T.unsafe(nil), Set)
1457
+ RuboCop::AST::NodePattern::Sets::SET____ = T.let(T.unsafe(nil), Set)
1458
+ RuboCop::AST::NodePattern::Sets::SET____ETC = T.let(T.unsafe(nil), Set)
1459
+ RuboCop::AST::NodePattern::Sets::SET____ETC_2 = T.let(T.unsafe(nil), Set)
1460
+ RuboCop::AST::NodePattern::Sets::SET____ETC_3 = T.let(T.unsafe(nil), Set)
1461
+ RuboCop::AST::NodePattern::VAR = T.let(T.unsafe(nil), String)
1462
+
1463
+ module RuboCop::AST::NumericNode
1464
+ def sign?; end
1465
+ end
1466
+
1467
+ RuboCop::AST::NumericNode::SIGN_REGEX = T.let(T.unsafe(nil), Regexp)
1468
+
1469
+ class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node
1470
+ def assignment_node; end
1471
+ def expression; end
1472
+ def name; end
1473
+ def operator; end
1474
+ end
1475
+
1476
+ class RuboCop::AST::OrAsgnNode < ::RuboCop::AST::OpAsgnNode
1477
+ def operator; end
1478
+ end
1479
+
1480
+ class RuboCop::AST::OrNode < ::RuboCop::AST::Node
1481
+ include ::RuboCop::AST::BinaryOperatorNode
1482
+ include ::RuboCop::AST::PredicateOperatorNode
1483
+
1484
+ def alternate_operator; end
1485
+ def inverse_operator; end
1486
+ end
1487
+
1488
+ class RuboCop::AST::PairNode < ::RuboCop::AST::Node
1489
+ include ::RuboCop::AST::HashElementNode
1490
+
1491
+ def colon?; end
1492
+ def delimiter(*deprecated, with_spacing: T.unsafe(nil)); end
1493
+ def hash_rocket?; end
1494
+ def inverse_delimiter(*deprecated, with_spacing: T.unsafe(nil)); end
1495
+ def value_omission?; end
1496
+ def value_on_new_line?; end
1497
+ end
1498
+
1499
+ RuboCop::AST::PairNode::COLON = T.let(T.unsafe(nil), String)
1500
+ RuboCop::AST::PairNode::HASH_ROCKET = T.let(T.unsafe(nil), String)
1501
+ RuboCop::AST::PairNode::SPACED_COLON = T.let(T.unsafe(nil), String)
1502
+ RuboCop::AST::PairNode::SPACED_HASH_ROCKET = T.let(T.unsafe(nil), String)
1503
+
1504
+ module RuboCop::AST::ParameterizedNode
1505
+ def arguments?; end
1506
+ def block_argument?; end
1507
+ def first_argument; end
1508
+ def last_argument; end
1509
+ def parenthesized?; end
1510
+ def rest_argument?; end
1511
+ def splat_argument?; end
1512
+ end
1513
+
1514
+ module RuboCop::AST::ParameterizedNode::RestArguments
1515
+ include ::RuboCop::AST::ParameterizedNode
1516
+
1517
+ def arguments; end
1518
+ def arguments?; end
1519
+ def first_argument; end
1520
+ def last_argument; end
1521
+ end
1522
+
1523
+ module RuboCop::AST::ParameterizedNode::WrappedArguments
1524
+ include ::RuboCop::AST::ParameterizedNode
1525
+
1526
+ def arguments; end
1527
+ end
1528
+
1529
+ module RuboCop::AST::PredicateOperatorNode
1530
+ def logical_operator?; end
1531
+ def operator; end
1532
+ def semantic_operator?; end
1533
+ end
1534
+
1535
+ RuboCop::AST::PredicateOperatorNode::LOGICAL_AND = T.let(T.unsafe(nil), String)
1536
+ RuboCop::AST::PredicateOperatorNode::LOGICAL_OR = T.let(T.unsafe(nil), String)
1537
+ RuboCop::AST::PredicateOperatorNode::SEMANTIC_AND = T.let(T.unsafe(nil), String)
1538
+ RuboCop::AST::PredicateOperatorNode::SEMANTIC_OR = T.let(T.unsafe(nil), String)
1539
+
1540
+ class RuboCop::AST::Procarg0Node < ::RuboCop::AST::ArgNode
1541
+ def name; end
1542
+ end
1543
+
1544
+ class RuboCop::AST::ProcessedSource
1545
+ include ::RuboCop::Ext::ProcessedSource
1546
+
1547
+ def initialize(source, ruby_version, path = T.unsafe(nil)); end
1548
+
1549
+ def [](*args); end
1550
+ def ast; end
1551
+ def ast_with_comments; end
1552
+ def blank?; end
1553
+ def buffer; end
1554
+ def checksum; end
1555
+ def comment_at_line(line); end
1556
+ def commented?(source_range); end
1557
+ def comments; end
1558
+ def comments_before_line(line); end
1559
+ def contains_comment?(source_range); end
1560
+ def current_line(token); end
1561
+ def diagnostics; end
1562
+ def each_comment(&block); end
1563
+ def each_comment_in_lines(line_range); end
1564
+ def each_token(&block); end
1565
+ def file_path; end
1566
+ def find_comment(&block); end
1567
+ def find_token(&block); end
1568
+ def first_token_of(range_or_node); end
1569
+ def following_line(token); end
1570
+ def last_token_of(range_or_node); end
1571
+ def line_indentation(line_number); end
1572
+ def line_with_comment?(line); end
1573
+ def lines; end
1574
+ def parser_error; end
1575
+ def path; end
1576
+ def preceding_line(token); end
1577
+ def raw_source; end
1578
+ def ruby_version; end
1579
+ def sorted_tokens; end
1580
+ def start_with?(string); end
1581
+ def tokens; end
1582
+ def tokens_within(range_or_node); end
1583
+ def valid_syntax?; end
1584
+
1585
+ private
1586
+
1587
+ def comment_index; end
1588
+ def create_parser(ruby_version); end
1589
+ def first_token_index(range_or_node); end
1590
+ def last_token_index(range_or_node); end
1591
+ def parse(source, ruby_version); end
1592
+ def parser_class(ruby_version); end
1593
+ def source_range(range_or_node); end
1594
+ def tokenize(parser); end
1595
+
1596
+ class << self
1597
+ def from_file(path, ruby_version); end
1598
+ end
1599
+ end
1600
+
1601
+ RuboCop::AST::ProcessedSource::INVALID_LEVELS = T.let(T.unsafe(nil), Array)
1602
+ RuboCop::AST::ProcessedSource::STRING_SOURCE_NAME = T.let(T.unsafe(nil), String)
1603
+
1604
+ class RuboCop::AST::RangeNode < ::RuboCop::AST::Node
1605
+ def begin; end
1606
+ def end; end
1607
+ end
1608
+
1609
+ class RuboCop::AST::RegexpNode < ::RuboCop::AST::Node
1610
+ include ::RuboCop::Ext::RegexpNode
1611
+
1612
+ def content; end
1613
+ def delimiter?(char); end
1614
+ def delimiters; end
1615
+ def extended?; end
1616
+ def ignore_case?; end
1617
+ def interpolation?; end
1618
+ def multiline_mode?; end
1619
+ def no_encoding?; end
1620
+ def options; end
1621
+ def percent_r_literal?; end
1622
+ def regopt; end
1623
+ def single_interpolation?; end
1624
+ def slash_literal?; end
1625
+ def to_regexp; end
1626
+
1627
+ private
1628
+
1629
+ def regopt_include?(option); end
1630
+ end
1631
+
1632
+ RuboCop::AST::RegexpNode::OPTIONS = T.let(T.unsafe(nil), Hash)
1633
+
1634
+ class RuboCop::AST::ResbodyNode < ::RuboCop::AST::Node
1635
+ def body; end
1636
+ def branch_index; end
1637
+ def exception_variable; end
1638
+ def exceptions; end
1639
+ end
1640
+
1641
+ class RuboCop::AST::RescueNode < ::RuboCop::AST::Node
1642
+ def body; end
1643
+ def branches; end
1644
+ def else?; end
1645
+ def else_branch; end
1646
+ def resbody_branches; end
1647
+ end
1648
+
1649
+ class RuboCop::AST::ReturnNode < ::RuboCop::AST::Node
1650
+ include ::RuboCop::AST::ParameterizedNode
1651
+ include ::RuboCop::AST::ParameterizedNode::WrappedArguments
1652
+ end
1653
+
1654
+ module RuboCop::AST::RuboCopCompatibility
1655
+ def rubocop_loaded; end
1656
+ end
1657
+
1658
+ RuboCop::AST::RuboCopCompatibility::INCOMPATIBLE_COPS = T.let(T.unsafe(nil), Hash)
1659
+
1660
+ class RuboCop::AST::SelfClassNode < ::RuboCop::AST::Node
1661
+ def body; end
1662
+ def identifier; end
1663
+ end
1664
+
1665
+ class RuboCop::AST::SendNode < ::RuboCop::AST::Node
1666
+ include ::RuboCop::AST::ParameterizedNode
1667
+ include ::RuboCop::AST::ParameterizedNode::RestArguments
1668
+ include ::RuboCop::AST::MethodIdentifierPredicates
1669
+ include ::RuboCop::AST::MethodDispatchNode
1670
+
1671
+ def attribute_accessor?(param0 = T.unsafe(nil)); end
1672
+
1673
+ private
1674
+
1675
+ def first_argument_index; end
1676
+ end
1677
+
1678
+ module RuboCop::AST::Sexp
1679
+ def s(type, *children); end
1680
+ end
1681
+
1682
+ class RuboCop::AST::StrNode < ::RuboCop::AST::Node
1683
+ include ::RuboCop::AST::BasicLiteralNode
1684
+
1685
+ def heredoc?; end
1686
+ end
1687
+
1688
+ class RuboCop::AST::SuperNode < ::RuboCop::AST::Node
1689
+ include ::RuboCop::AST::ParameterizedNode
1690
+ include ::RuboCop::AST::MethodIdentifierPredicates
1691
+ include ::RuboCop::AST::MethodDispatchNode
1692
+
1693
+ def arguments; end
1694
+ def node_parts; end
1695
+ end
1696
+
1697
+ class RuboCop::AST::SymbolNode < ::RuboCop::AST::Node
1698
+ include ::RuboCop::AST::BasicLiteralNode
1699
+ end
1700
+
1701
+ class RuboCop::AST::Token
1702
+ def initialize(pos, type, text); end
1703
+
1704
+ def begin_pos; end
1705
+ def column; end
1706
+ def comma?; end
1707
+ def comment?; end
1708
+ def end?; end
1709
+ def end_pos; end
1710
+ def equal_sign?; end
1711
+ def left_array_bracket?; end
1712
+ def left_brace?; end
1713
+ def left_bracket?; end
1714
+ def left_curly_brace?; end
1715
+ def left_parens?; end
1716
+ def left_ref_bracket?; end
1717
+ def line; end
1718
+ def pos; end
1719
+ def rescue_modifier?; end
1720
+ def right_bracket?; end
1721
+ def right_curly_brace?; end
1722
+ def right_parens?; end
1723
+ def semicolon?; end
1724
+ def space_after?; end
1725
+ def space_before?; end
1726
+ def text; end
1727
+ def to_s; end
1728
+ def type; end
1729
+
1730
+ class << self
1731
+ def from_parser_token(parser_token); end
1732
+ end
1733
+ end
1734
+
1735
+ module RuboCop::AST::Traversal
1736
+ extend ::RuboCop::AST::Traversal::CallbackCompiler
1737
+
1738
+ def on_(node); end
1739
+ def on___ENCODING__(node); end
1740
+ def on___FILE__(node); end
1741
+ def on___LINE__(node); end
1742
+ def on_alias(node); end
1743
+ def on_and(node); end
1744
+ def on_and_asgn(node); end
1745
+ def on_arg(node); end
1746
+ def on_arg_expr(node); end
1747
+ def on_args(node); end
1748
+ def on_array(node); end
1749
+ def on_array_pattern(node); end
1750
+ def on_array_pattern_with_tail(node); end
1751
+ def on_back_ref(node); end
1752
+ def on_begin(node); end
1753
+ def on_block(node); end
1754
+ def on_block_pass(node); end
1755
+ def on_blockarg(node); end
1756
+ def on_break(node); end
1757
+ def on_case(node); end
1758
+ def on_case_match(node); end
1759
+ def on_casgn(node); end
1760
+ def on_cbase(node); end
1761
+ def on_class(node); end
1762
+ def on_complex(node); end
1763
+ def on_const(node); end
1764
+ def on_const_pattern(node); end
1765
+ def on_csend(node); end
1766
+ def on_cvar(node); end
1767
+ def on_cvasgn(node); end
1768
+ def on_def(node); end
1769
+ def on_defined?(node); end
1770
+ def on_defs(node); end
1771
+ def on_dstr(node); end
1772
+ def on_dsym(node); end
1773
+ def on_eflipflop(node); end
1774
+ def on_empty_else(node); end
1775
+ def on_ensure(node); end
1776
+ def on_erange(node); end
1777
+ def on_false(node); end
1778
+ def on_find_pattern(node); end
1779
+ def on_float(node); end
1780
+ def on_for(node); end
1781
+ def on_forward_arg(node); end
1782
+ def on_forward_args(node); end
1783
+ def on_forwarded_args(node); end
1784
+ def on_gvar(node); end
1785
+ def on_gvasgn(node); end
1786
+ def on_hash(node); end
1787
+ def on_hash_pattern(node); end
1788
+ def on_if(node); end
1789
+ def on_if_guard(node); end
1790
+ def on_iflipflop(node); end
1791
+ def on_in_match(node); end
1792
+ def on_in_pattern(node); end
1793
+ def on_index(node); end
1794
+ def on_indexasgn(node); end
1795
+ def on_int(node); end
1796
+ def on_irange(node); end
1797
+ def on_ivar(node); end
1798
+ def on_ivasgn(node); end
1799
+ def on_kwarg(node); end
1800
+ def on_kwargs(node); end
1801
+ def on_kwbegin(node); end
1802
+ def on_kwnilarg(node); end
1803
+ def on_kwoptarg(node); end
1804
+ def on_kwrestarg(node); end
1805
+ def on_kwsplat(node); end
1806
+ def on_lambda(node); end
1807
+ def on_lvar(node); end
1808
+ def on_lvasgn(node); end
1809
+ def on_masgn(node); end
1810
+ def on_match_alt(node); end
1811
+ def on_match_as(node); end
1812
+ def on_match_current_line(node); end
1813
+ def on_match_nil_pattern(node); end
1814
+ def on_match_pattern(node); end
1815
+ def on_match_pattern_p(node); end
1816
+ def on_match_rest(node); end
1817
+ def on_match_var(node); end
1818
+ def on_match_with_lvasgn(node); end
1819
+ def on_match_with_trailing_comma(node); end
1820
+ def on_mlhs(node); end
1821
+ def on_module(node); end
1822
+ def on_mrasgn(node); end
1823
+ def on_next(node); end
1824
+ def on_nil(node); end
1825
+ def on_not(node); end
1826
+ def on_nth_ref(node); end
1827
+ def on_numblock(node); end
1828
+ def on_op_asgn(node); end
1829
+ def on_optarg(node); end
1830
+ def on_or(node); end
1831
+ def on_or_asgn(node); end
1832
+ def on_pair(node); end
1833
+ def on_pin(node); end
1834
+ def on_postexe(node); end
1835
+ def on_preexe(node); end
1836
+ def on_procarg0(node); end
1837
+ def on_rasgn(node); end
1838
+ def on_rational(node); end
1839
+ def on_redo(node); end
1840
+ def on_regexp(node); end
1841
+ def on_regopt(node); end
1842
+ def on_resbody(node); end
1843
+ def on_rescue(node); end
1844
+ def on_restarg(node); end
1845
+ def on_retry(node); end
1846
+ def on_return(node); end
1847
+ def on_sclass(node); end
1848
+ def on_self(node); end
1849
+ def on_send(node); end
1850
+ def on_shadowarg(node); end
1851
+ def on_splat(node); end
1852
+ def on_str(node); end
1853
+ def on_super(node); end
1854
+ def on_sym(node); end
1855
+ def on_true(node); end
1856
+ def on_undef(node); end
1857
+ def on_unless_guard(node); end
1858
+ def on_until(node); end
1859
+ def on_until_post(node); end
1860
+ def on_when(node); end
1861
+ def on_while(node); end
1862
+ def on_while_post(node); end
1863
+ def on_xstr(node); end
1864
+ def on_yield(node); end
1865
+ def on_zsuper(node); end
1866
+ def walk(node); end
1867
+ end
1868
+
1869
+ module RuboCop::AST::Traversal::CallbackCompiler
1870
+ def arity_check(range); end
1871
+ def body(signature, prelude); end
1872
+ def def_callback(type, *signature, arity: T.unsafe(nil), arity_check: T.unsafe(nil), body: T.unsafe(nil)); end
1873
+ end
1874
+
1875
+ RuboCop::AST::Traversal::CallbackCompiler::SEND = T.let(T.unsafe(nil), String)
1876
+ RuboCop::AST::Traversal::CallbackCompiler::TEMPLATE = T.let(T.unsafe(nil), Hash)
1877
+ class RuboCop::AST::Traversal::DebugError < ::RuntimeError; end
1878
+ RuboCop::AST::Traversal::NO_CHILD_NODES = T.let(T.unsafe(nil), Set)
1879
+ RuboCop::AST::Traversal::TYPE_TO_METHOD = T.let(T.unsafe(nil), Hash)
1880
+
1881
+ class RuboCop::AST::UntilNode < ::RuboCop::AST::Node
1882
+ include ::RuboCop::AST::ConditionalNode
1883
+ include ::RuboCop::AST::ModifierNode
1884
+
1885
+ def do?; end
1886
+ def inverse_keyword; end
1887
+ def keyword; end
1888
+ end
1889
+
1890
+ module RuboCop::AST::Version; end
1891
+ RuboCop::AST::Version::STRING = T.let(T.unsafe(nil), String)
1892
+
1893
+ class RuboCop::AST::WhenNode < ::RuboCop::AST::Node
1894
+ def body; end
1895
+ def branch_index; end
1896
+ def conditions; end
1897
+ def each_condition(&block); end
1898
+ def then?; end
1899
+ end
1900
+
1901
+ class RuboCop::AST::WhileNode < ::RuboCop::AST::Node
1902
+ include ::RuboCop::AST::ConditionalNode
1903
+ include ::RuboCop::AST::ModifierNode
1904
+
1905
+ def do?; end
1906
+ def inverse_keyword; end
1907
+ def keyword; end
1908
+ end
1909
+
1910
+ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node
1911
+ include ::RuboCop::AST::ParameterizedNode
1912
+ include ::RuboCop::AST::MethodIdentifierPredicates
1913
+ include ::RuboCop::AST::MethodDispatchNode
1914
+
1915
+ def arguments; end
1916
+ def node_parts; end
1917
+ end
1918
+
1919
+ RuboCop::NodePattern = RuboCop::AST::NodePattern
1920
+ RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource
1921
+ RuboCop::Token = RuboCop::AST::Token