diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c2571731..77ce2769f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,8 +55,6 @@ jobs: run: make ci-test env: GITHUB_TOKEN: ${{ secrets.github_token }} - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} - COVERALLS_SERVICE_NAME: github-action publish: name: Publish diff --git a/.gitignore b/.gitignore index d1539ac24..fb61d33a2 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ tags /.bundle/ coverage/ .idea/ +.ruby-version diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 76d3fda2c..f70150a49 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,7 +1,9 @@ { "recommendations": [ - "rebornix.ruby", - "misogi.ruby-rubocop", - "EditorConfig.editorconfig" + "EditorConfig.editorconfig", // default + "shopify.ruby-lsp", // intellisense-like support (if you get it working) + "sorbet.sorbet-vscode-extension", // typechecking, where applicable + "LoranKloeze.ruby-rubocop-revived", // linting + "SarahRidge.vscode-ruby-syntax" // Semantic syntax highlighting ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index a176040f7..c74be88e7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,7 @@ { + // Show the repo name in the top window bar. + "window.title": "${rootName}${separator}${activeEditorMedium}", + "editor.formatOnSave": true, "files.trimTrailingWhitespace": true, diff --git a/CHANGELOG.md b/CHANGELOG.md index 89355e6d2..9d9906090 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,41 @@ # Changelog +## 12.0.0 - 2024-06-24 +* [#1418](https://github.com/stripe/stripe-ruby/pull/1418) Add missing static method for verify on BankAccount +* [#1419](https://github.com/stripe/stripe-ruby/pull/1419) + + This release changes the pinned API version to 2024-06-20. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-06-20) and carefully review the API changes before upgrading. + + ### ⚠️ Breaking changes + + * Singleton `retrieve` method now requires `params` to be passed as the first argument. Existing calls to singleton `retrieve` method with only `opts` argument will have to be updated to account for the addition of `params` argument. + ```ruby + params = { expand: ["available"] } + opts = { stripe_account: "acct_123" } + + # ❌ No longer works + Stripe::Balance.retrieve(opts) + + # ✅ Correct way to call retrieve method + Stripe::Balance.retrieve(params, opts) + ``` + + ### Additions + + * Add support for `finalize_amount` test helper method on resource `Issuing.Authorization` + +## 11.7.0 - 2024-06-13 +* [#1415](https://github.com/stripe/stripe-ruby/pull/1415) Deprecate StripeClient#request + * Add deprecation warning for `StripeClient#request`. This helper method will be removed in a future major version. To access response objects, use the `last_response` property on the returned resource instead. Refer to [Accessing a response object](https://github.com/stripe/stripe-ruby?tab=readme-ov-file#accessing-a-response-object) in the README for usage details. + ## 11.7.0-beta.1 - 2024-05-30 * [#1400](https://github.com/stripe/stripe-ruby/pull/1400) Update generated code for beta * Keeping up with the changes from version 11.6.0 +## 11.6.0 - 2024-05-30 +* [#1404](https://github.com/stripe/stripe-ruby/pull/1404) Add method to list invoice line items + * Add methods `list_lines()` on the class `Invoice` to list the invoice line items + ## 11.5.0 - 2024-05-23 * This release has no changes. diff --git a/Gemfile b/Gemfile index 193658d62..235864c6a 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,6 @@ source "https://rubygems.org" gemspec group :development do - gem "coveralls_reborn", "~> 0.25.0" if RUBY_VERSION >= "3.1" gem "mocha", "~> 1.16.0" gem "rack", ">= 2.0.6" gem "rake" diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 07d3a0c43..a96216659 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1055 \ No newline at end of file +v1104 \ No newline at end of file diff --git a/README.md b/README.md index 776ee43bf..557d4f8be 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [![Gem Version](https://badge.fury.io/rb/stripe.svg)](https://badge.fury.io/rb/stripe) [![Build Status](https://github.com/stripe/stripe-ruby/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/stripe/stripe-ruby/actions?query=branch%3Amaster) -[![Coverage Status](https://coveralls.io/repos/github/stripe/stripe-ruby/badge.svg?branch=master)](https://coveralls.io/github/stripe/stripe-ruby?branch=master) The Stripe Ruby library provides convenient access to the Stripe API from applications written in the Ruby language. It includes a pre-defined set of diff --git a/lib/stripe/api_version.rb b/lib/stripe/api_version.rb index ae1985c7f..73fdfee95 100644 --- a/lib/stripe/api_version.rb +++ b/lib/stripe/api_version.rb @@ -3,7 +3,7 @@ module Stripe module ApiVersion - CURRENT = "2024-04-10" - PREVIEW = "2024-04-11.preview-v2" + CURRENT = "2024-06-20" + PREVIEW = "2024-05-23.preview-v2" end end diff --git a/lib/stripe/resources/bank_account.rb b/lib/stripe/resources/bank_account.rb index 656ef7112..5f4c17a25 100644 --- a/lib/stripe/resources/bank_account.rb +++ b/lib/stripe/resources/bank_account.rb @@ -5,8 +5,7 @@ module Stripe # These bank accounts are payment methods on `Customer` objects. # # On the other hand [External Accounts](https://stripe.com/api#external_accounts) are transfer - # destinations on `Account` objects for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) - # is `application`, which includes [Custom accounts](https://stripe.com/connect/custom-accounts). + # destinations on `Account` objects for connected accounts. # They can be bank accounts or debit cards as well, and are documented in the links above. # # Related guide: [Bank debits and transfers](https://stripe.com/payments/bank-debits-transfers) @@ -21,8 +20,21 @@ def self.object_name end def verify(params = {}, opts = {}) - resp, opts = execute_resource_request(:post, resource_url + "/verify", params, opts) - initialize_from(resp.data, opts) + request_stripe_object( + method: :post, + path: "#{Customer.resource_url}/#{customer}/sources/#{id}/verify", + params: params, + opts: opts + ) + end + + def self.verify(customer, id, params = {}, opts = {}) + request_stripe_object( + method: :post, + path: "#{Customer.resource_url}/#{customer}/sources/#{id}/verify", + params: params, + opts: opts + ) end def resource_url @@ -52,12 +64,12 @@ def self.retrieve(_id, _opts = nil) end def self.delete(id, params = {}, opts = {}) - request_stripe_object( - method: :delete, - path: "#{resource_url}/#{id}", - params: params, - opts: opts - ) + raise NotImplementedError, + "Bank accounts cannot be deleted without a customer ID or an " \ + "account ID. Delete a bank account using " \ + "`Customer.delete_source('customer_id', 'bank_account_id')` " \ + "or `Account.delete_external_account('account_id', " \ + "'bank_account_id')`" end def delete(params = {}, opts = {}) @@ -70,12 +82,11 @@ def delete(params = {}, opts = {}) end def self.list(filters = {}, opts = {}) - request_stripe_object( - method: :delete, - path: resource_url.to_s, - params: filters, - opts: opts - ) + raise NotImplementedError, + "Bank accounts cannot be listed without a customer ID or an " \ + "account ID. List bank accounts using " \ + "`Customer.list_sources('customer_id')` " \ + "or `Account.list_external_accounts('account_id')`" end end end diff --git a/lib/stripe/resources/card.rb b/lib/stripe/resources/card.rb index 1ef141ede..5f9f3c160 100644 --- a/lib/stripe/resources/card.rb +++ b/lib/stripe/resources/card.rb @@ -42,12 +42,11 @@ def self.retrieve(_id, _opts = nil) end def self.delete(id, params = {}, opts = {}) - request_stripe_object( - method: :delete, - path: "#{resource_url}/#{id}", - params: params, - opts: opts - ) + raise NotImplementedError, + "Card cannot be deleted without a customer ID or an account " \ + "ID. Delete a card using `Customer.delete_source(" \ + "'customer_id', 'card_id')` or " \ + "`Account.delete_external_account('account_id', 'card_id')`" end def delete(params = {}, opts = {}) @@ -60,12 +59,11 @@ def delete(params = {}, opts = {}) end def self.list(filters = {}, opts = {}) - request_stripe_object( - method: :delete, - path: resource_url.to_s, - params: filters, - opts: opts - ) + raise NotImplementedError, + "Cards cannot be listed without a customer ID or an account " \ + "ID. List cards using `Customer.list_sources(" \ + "'customer_id')` or " \ + "`Account.list_external_accounts('account_id')`" end end end diff --git a/lib/stripe/resources/climate/order.rb b/lib/stripe/resources/climate/order.rb index 5f494ecf9..f3b2b113a 100644 --- a/lib/stripe/resources/climate/order.rb +++ b/lib/stripe/resources/climate/order.rb @@ -15,7 +15,7 @@ def self.object_name "climate.order" end - # Cancels a Climate order. You can cancel an order within 30 days of creation. Stripe refunds the + # Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the # reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier # might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe # provides 90 days advance notice and refunds the amount_total. @@ -28,7 +28,7 @@ def cancel(params = {}, opts = {}) ) end - # Cancels a Climate order. You can cancel an order within 30 days of creation. Stripe refunds the + # Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the # reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier # might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe # provides 90 days advance notice and refunds the amount_total. diff --git a/lib/stripe/resources/issuing/authorization.rb b/lib/stripe/resources/issuing/authorization.rb index c5eeae69b..c21088e01 100644 --- a/lib/stripe/resources/issuing/authorization.rb +++ b/lib/stripe/resources/issuing/authorization.rb @@ -152,6 +152,26 @@ def expire(params = {}, opts = {}) ) end + # Finalize the amount on an Authorization prior to capture, when the initial authorization was for an estimated amount. + def self.finalize_amount(authorization, params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/test_helpers/issuing/authorizations/%s/finalize_amount", { authorization: CGI.escape(authorization) }), + params: params, + opts: opts + ) + end + + # Finalize the amount on an Authorization prior to capture, when the initial authorization was for an estimated amount. + def finalize_amount(params = {}, opts = {}) + @resource.request_stripe_object( + method: :post, + path: format("/v1/test_helpers/issuing/authorizations/%s/finalize_amount", { authorization: CGI.escape(@resource["id"]) }), + params: params, + opts: opts + ) + end + # Increment a test-mode Authorization. def self.increment(authorization, params = {}, opts = {}) request_stripe_object( diff --git a/lib/stripe/resources/margin.rb b/lib/stripe/resources/margin.rb index 0bb99f40b..36f6cfdff 100644 --- a/lib/stripe/resources/margin.rb +++ b/lib/stripe/resources/margin.rb @@ -14,7 +14,7 @@ def self.object_name "margin" end - # Create a margin object to be used with invoices, invoice items, and invoice line items for a customer to represent a partner discount.A margin has a percent_off which is the percent that will be taken off the subtotal after all items and other discounts and promotions) of any invoices for a customer. Calculation of prorations do not include any partner margins applied on the original invoice item. + # Create a margin object to be used with invoices, invoice items, and invoice line items for a customer to represent a partner discount. A margin has a percent_off which is the percent that will be taken off the subtotal after all items and other discounts and promotions) of any invoices for a customer. Calculation of prorations do not include any partner margins applied on the original invoice item. def self.create(params = {}, opts = {}) request_stripe_object(method: :post, path: "/v1/billing/margins", params: params, opts: opts) end diff --git a/lib/stripe/resources/setup_intent.rb b/lib/stripe/resources/setup_intent.rb index 3a6980f1d..9aa3b2b66 100644 --- a/lib/stripe/resources/setup_intent.rb +++ b/lib/stripe/resources/setup_intent.rb @@ -35,7 +35,7 @@ def self.object_name # You can cancel a SetupIntent object when it's in one of these statuses: requires_payment_method, requires_confirmation, or requires_action. # - # After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. + # After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead. def cancel(params = {}, opts = {}) request_stripe_object( method: :post, @@ -47,7 +47,7 @@ def cancel(params = {}, opts = {}) # You can cancel a SetupIntent object when it's in one of these statuses: requires_payment_method, requires_confirmation, or requires_action. # - # After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. + # After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead. def self.cancel(intent, params = {}, opts = {}) request_stripe_object( method: :post, diff --git a/lib/stripe/resources/tax/calculation.rb b/lib/stripe/resources/tax/calculation.rb index 33aa06277..99cd00e65 100644 --- a/lib/stripe/resources/tax/calculation.rb +++ b/lib/stripe/resources/tax/calculation.rb @@ -14,7 +14,7 @@ def self.object_name "tax.calculation" end - # Calculates tax based on input and returns a Tax Calculation object. + # Calculates tax based on the input and returns a Tax Calculation object. def self.create(params = {}, opts = {}) request_stripe_object( method: :post, @@ -24,7 +24,7 @@ def self.create(params = {}, opts = {}) ) end - # Retrieves the line items of a persisted tax calculation as a collection. + # Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. def list_line_items(params = {}, opts = {}) request_stripe_object( method: :get, @@ -34,7 +34,7 @@ def list_line_items(params = {}, opts = {}) ) end - # Retrieves the line items of a persisted tax calculation as a collection. + # Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. def self.list_line_items(calculation, params = {}, opts = {}) request_stripe_object( method: :get, diff --git a/lib/stripe/resources/tax/transaction.rb b/lib/stripe/resources/tax/transaction.rb index cacff9c3d..bdbfa41d9 100644 --- a/lib/stripe/resources/tax/transaction.rb +++ b/lib/stripe/resources/tax/transaction.rb @@ -12,7 +12,7 @@ def self.object_name "tax.transaction" end - # Creates a Tax Transaction from a calculation. + # Creates a Tax Transaction from a calculation, if that calculation hasn't expired. Calculations expire after 90 days. def self.create_from_calculation(params = {}, opts = {}) request_stripe_object( method: :post, diff --git a/lib/stripe/stripe_client.rb b/lib/stripe/stripe_client.rb index 219e53f2b..41917a7ea 100644 --- a/lib/stripe/stripe_client.rb +++ b/lib/stripe/stripe_client.rb @@ -190,6 +190,7 @@ def connection_manager # client = StripeClient.new # charge, resp = client.request { Charge.create } # + def request @usage = ["stripe_client_request"] old_stripe_client = self.class.current_thread_context.active_client @@ -211,6 +212,9 @@ def request self.class.current_thread_context.last_responses.delete(object_id) end end + deprecate :request, "the `last_response` property on the returned resource (see " \ + "https://github.com/stripe/stripe-ruby?tab=readme-ov-file#accessing-a-response-object " \ + "for usage examples)", 2024, 6 def execute_request(method, path, api_base: nil, api_key: nil, @@ -365,7 +369,7 @@ class ThreadContext # garbage in `Thread.current`. attr_accessor :last_responses - # A map of connection mangers for the thread. Normally shared between + # A map of connection managers for the thread. Normally shared between # all `StripeClient` objects on a particular thread, and created so as to # minimize the number of open connections that an application needs. def default_connection_managers diff --git a/sorbet/rbi/annotations/coveralls_reborn.rbi b/sorbet/rbi/annotations/coveralls_reborn.rbi deleted file mode 100644 index 338164f17..000000000 --- a/sorbet/rbi/annotations/coveralls_reborn.rbi +++ /dev/null @@ -1,3 +0,0 @@ -module Coveralls - def wear; end -end diff --git a/sorbet/rbi/gems/addressable@2.8.6.rbi b/sorbet/rbi/gems/addressable@2.8.6.rbi index c5c2e185c..9b249f24f 100644 --- a/sorbet/rbi/gems/addressable@2.8.6.rbi +++ b/sorbet/rbi/gems/addressable@2.8.6.rbi @@ -28,7 +28,7 @@ module Addressable::IDNA def to_unicode(input); end # @deprecated Use {String#unicode_normalize(:nfkc)} instead - def unicode_normalize_kc(*args, &block); end + def unicode_normalize_kc(*args, **_arg1, &block); end private diff --git a/sorbet/rbi/gems/bigdecimal@3.1.6.rbi b/sorbet/rbi/gems/bigdecimal@3.1.6.rbi new file mode 100644 index 000000000..24b5f4eec --- /dev/null +++ b/sorbet/rbi/gems/bigdecimal@3.1.6.rbi @@ -0,0 +1,8 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `bigdecimal` gem. +# Please instead update this file by running `bin/tapioca gem bigdecimal`. + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/byebug@11.1.3.rbi b/sorbet/rbi/gems/byebug@11.1.3.rbi index 27f4888b8..aa25630f1 100644 --- a/sorbet/rbi/gems/byebug@11.1.3.rbi +++ b/sorbet/rbi/gems/byebug@11.1.3.rbi @@ -4,7 +4,7 @@ # This is an autogenerated file for types exported from the `byebug` gem. # Please instead update this file by running `bin/tapioca gem byebug`. -# Main Container for all of Byebug's code +# Reopen main module to define the library version # # source://byebug//lib/byebug/attacher.rb#6 module Byebug @@ -501,43 +501,43 @@ class Byebug::Command # source://byebug//lib/byebug/command.rb#51 def arguments; end - # source://forwardable/1.3.1/forwardable.rb#226 - def confirm(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def confirm(*args, **_arg1, &block); end # source://byebug//lib/byebug/command.rb#43 def context; end - # source://forwardable/1.3.1/forwardable.rb#226 - def errmsg(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def errmsg(*args, **_arg1, &block); end # source://byebug//lib/byebug/command.rb#47 def frame; end - # source://forwardable/1.3.1/forwardable.rb#226 - def help(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def help(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def match(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def match(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def pr(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def pr(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def prc(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def prc(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def print(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def print(*args, **_arg1, &block); end # Returns the value of attribute processor. # # source://byebug//lib/byebug/command.rb#36 def processor; end - # source://forwardable/1.3.1/forwardable.rb#226 - def prv(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def prv(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def puts(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def puts(*args, **_arg1, &block); end class << self # Special methods to allow command filtering in processors @@ -677,33 +677,33 @@ class Byebug::CommandProcessor # source://byebug//lib/byebug/processors/command_processor.rb#50 def command_list; end - # source://forwardable/1.3.1/forwardable.rb#226 - def commands(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def commands(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def confirm(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def confirm(*args, **_arg1, &block); end # Returns the value of attribute context. # # source://byebug//lib/byebug/processors/command_processor.rb#21 def context; end - # source://forwardable/1.3.1/forwardable.rb#226 - def errmsg(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def errmsg(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def frame(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def frame(*args, **_arg1, &block); end # Returns the value of attribute interface. # # source://byebug//lib/byebug/processors/command_processor.rb#21 def interface; end - # source://forwardable/1.3.1/forwardable.rb#226 - def pr(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def pr(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def prc(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def prc(*args, **_arg1, &block); end # Returns the value of attribute prev_line. # @@ -730,11 +730,11 @@ class Byebug::CommandProcessor # source://byebug//lib/byebug/processors/command_processor.rb#94 def process_commands; end - # source://forwardable/1.3.1/forwardable.rb#226 - def prv(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def prv(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def puts(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def puts(*args, **_arg1, &block); end protected @@ -842,8 +842,8 @@ class Byebug::Context def backtrace; end def dead?; end - # source://forwardable/1.3.1/forwardable.rb#226 - def file(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def file(*args, **_arg1, &block); end # Reader for the current frame # @@ -872,8 +872,8 @@ class Byebug::Context # source://byebug//lib/byebug/context.rb#87 def interrupt; end - # source://forwardable/1.3.1/forwardable.rb#226 - def line(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def line(*args, **_arg1, &block); end # Current file & line information # @@ -988,7 +988,7 @@ end # Processes commands when there's not program running # -# source://byebug//lib/byebug/processors/control_processor.rb#12 +# source://byebug//lib/byebug/processors/control_processor.rb#9 class Byebug::ControlProcessor < ::Byebug::CommandProcessor # Available commands # @@ -1051,7 +1051,7 @@ end # Disabling custom display expressions or breakpoints. # -# source://byebug//lib/byebug/commands/disable/breakpoints.rb#12 +# source://byebug//lib/byebug/commands/disable/breakpoints.rb#9 class Byebug::DisableCommand < ::Byebug::Command include ::Byebug::Subcommands extend ::Byebug::Helpers::ReflectionHelper @@ -1199,7 +1199,7 @@ end # Enabling custom display expressions or breakpoints. # -# source://byebug//lib/byebug/commands/enable/breakpoints.rb#12 +# source://byebug//lib/byebug/commands/enable/breakpoints.rb#9 class Byebug::EnableCommand < ::Byebug::Command include ::Byebug::Subcommands extend ::Byebug::Helpers::ReflectionHelper @@ -1962,9 +1962,9 @@ end # source://byebug//lib/byebug/settings/histsize.rb#10 Byebug::HistsizeSetting::DEFAULT = T.let(T.unsafe(nil), Integer) -# Reopens the +info+ command to define the +line+ subcommand +# Shows info about different aspects of the debugger. # -# source://byebug//lib/byebug/commands/info/breakpoints.rb#10 +# source://byebug//lib/byebug/commands/info/breakpoints.rb#7 class Byebug::InfoCommand < ::Byebug::Command include ::Byebug::Subcommands extend ::Byebug::Helpers::ReflectionHelper @@ -2311,17 +2311,17 @@ class Byebug::ListCommand < ::Byebug::Command include ::Byebug::Helpers::FileHelper include ::Byebug::Helpers::ParseHelper - # source://forwardable/1.3.1/forwardable.rb#226 - def amend_final(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def amend_final(*args, **_arg1, &block); end # source://byebug//lib/byebug/commands/list.rb#40 def execute; end - # source://forwardable/1.3.1/forwardable.rb#226 - def max_line(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def max_line(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def size(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def size(*args, **_arg1, &block); end private @@ -2817,7 +2817,7 @@ end # Processes commands from a file # -# source://byebug//lib/byebug/processors/script_processor.rb#12 +# source://byebug//lib/byebug/processors/script_processor.rb#9 class Byebug::ScriptProcessor < ::Byebug::CommandProcessor # source://byebug//lib/byebug/processors/script_processor.rb#28 def after_repl; end @@ -3141,8 +3141,8 @@ module Byebug::Subcommands # source://byebug//lib/byebug/subcommands.rb#23 def execute; end - # source://forwardable/1.3.1/forwardable.rb#226 - def subcommand_list(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def subcommand_list(*args, **_arg1, &block); end class << self # @private @@ -3169,9 +3169,9 @@ module Byebug::Subcommands::ClassMethods def subcommand_list; end end -# Reopens the +thread+ command to define the +resume+ subcommand +# Manipulation of Ruby threads # -# source://byebug//lib/byebug/commands/thread/current.rb#12 +# source://byebug//lib/byebug/commands/thread/current.rb#9 class Byebug::ThreadCommand < ::Byebug::Command include ::Byebug::Subcommands extend ::Byebug::Helpers::ReflectionHelper @@ -3384,7 +3384,7 @@ end # Shows variables and its values # -# source://byebug//lib/byebug/commands/var/all.rb#12 +# source://byebug//lib/byebug/commands/var/all.rb#9 class Byebug::VarCommand < ::Byebug::Command include ::Byebug::Subcommands extend ::Byebug::Helpers::ReflectionHelper diff --git a/sorbet/rbi/gems/coderay@1.1.3.rbi b/sorbet/rbi/gems/coderay@1.1.3.rbi index d29174548..76870c112 100644 --- a/sorbet/rbi/gems/coderay@1.1.3.rbi +++ b/sorbet/rbi/gems/coderay@1.1.3.rbi @@ -1260,8 +1260,6 @@ class CodeRay::Encoders::Statistic::TypeStats < ::Struct # # @param value [Object] the value to set the attribute count to. # @return [Object] the newly set value - # - # source://coderay//lib/coderay/encoders/statistic.rb#13 def count=(_); end # Returns the value of attribute size @@ -1273,13 +1271,12 @@ class CodeRay::Encoders::Statistic::TypeStats < ::Struct # # @param value [Object] the value to set the attribute size to. # @return [Object] the newly set value - # - # source://coderay//lib/coderay/encoders/statistic.rb#13 def size=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -2678,9 +2675,6 @@ CodeRay::Scanners::Ruby::Patterns::FLOAT_SUFFIX = T.let(T.unsafe(nil), Regexp) # source://coderay//lib/coderay/scanners/ruby/patterns.rb#57 CodeRay::Scanners::Ruby::Patterns::GLOBAL_VARIABLE = T.let(T.unsafe(nil), Regexp) -# NOTE: This is not completely correct, but -# nobody needs heredoc delimiters ending with \n. -# # source://coderay//lib/coderay/scanners/ruby/patterns.rb#116 CodeRay::Scanners::Ruby::Patterns::HEREDOC_OPEN = T.let(T.unsafe(nil), Regexp) @@ -2732,8 +2726,6 @@ CodeRay::Scanners::Ruby::Patterns::OBJECT_VARIABLE = T.let(T.unsafe(nil), Regexp # source://coderay//lib/coderay/scanners/ruby/patterns.rb#70 CodeRay::Scanners::Ruby::Patterns::OCTAL = T.let(T.unsafe(nil), Regexp) -# See http://murfy.de/ruby-constants. -# # source://coderay//lib/coderay/scanners/ruby/patterns.rb#17 CodeRay::Scanners::Ruby::Patterns::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array) @@ -2758,9 +2750,6 @@ CodeRay::Scanners::Ruby::Patterns::SIMPLE_ESCAPE = T.let(T.unsafe(nil), Regexp) # source://coderay//lib/coderay/scanners/ruby/patterns.rb#79 CodeRay::Scanners::Ruby::Patterns::SYMBOL = T.let(T.unsafe(nil), Regexp) -# Checks for a valid value to follow. This enables -# value_expected in method calls without parentheses. -# # source://coderay//lib/coderay/scanners/ruby/patterns.rb#142 CodeRay::Scanners::Ruby::Patterns::VALUE_FOLLOWS = T.let(T.unsafe(nil), Regexp) @@ -3205,7 +3194,7 @@ CodeRay::TokenKinds = T.let(T.unsafe(nil), Hash) # You can serialize it to a JSON string and store it in a database, pass it # around to encode it more than once, send it to other algorithms... # -# source://coderay//lib/coderay/tokens.rb#43 +# source://coderay//lib/coderay/tokens.rb#41 class CodeRay::Tokens < ::Array # source://coderay//lib/coderay/tokens.rb#156 def begin_group(kind); end diff --git a/sorbet/rbi/gems/crack@0.4.5.rbi b/sorbet/rbi/gems/crack@1.0.0.rbi similarity index 100% rename from sorbet/rbi/gems/crack@0.4.5.rbi rename to sorbet/rbi/gems/crack@1.0.0.rbi diff --git a/sorbet/rbi/gems/erubi@1.12.0.rbi b/sorbet/rbi/gems/erubi@1.12.0.rbi index 44d28c69c..c52738faa 100644 --- a/sorbet/rbi/gems/erubi@1.12.0.rbi +++ b/sorbet/rbi/gems/erubi@1.12.0.rbi @@ -7,8 +7,7 @@ # source://erubi//lib/erubi.rb#3 module Erubi class << self - # source://erubi//lib/erubi.rb#35 - def h(value); end + def h(_arg0); end end end diff --git a/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi b/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi deleted file mode 100644 index 97aee8cff..000000000 --- a/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +++ /dev/null @@ -1,19 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `jaro_winkler` gem. -# Please instead update this file by running `bin/tapioca gem jaro_winkler`. - -# source://jaro_winkler//lib/jaro_winkler/version.rb#3 -module JaroWinkler - class << self - def distance(*_arg0); end - def jaro_distance(*_arg0); end - end -end - -class JaroWinkler::Error < ::RuntimeError; end -class JaroWinkler::InvalidWeightError < ::JaroWinkler::Error; end - -# source://jaro_winkler//lib/jaro_winkler/version.rb#4 -JaroWinkler::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/json@2.7.1.rbi b/sorbet/rbi/gems/json@2.7.1.rbi index e22ce040e..47754dc71 100644 --- a/sorbet/rbi/gems/json@2.7.1.rbi +++ b/sorbet/rbi/gems/json@2.7.1.rbi @@ -5,8 +5,6 @@ # Please instead update this file by running `bin/tapioca gem json`. # Extends any Class to include _json_creatable?_ method. -# -# source://json//lib/json/common.rb#689 class Class < ::Module # Returns true if this class can be used to create an instance # from a serialised JSON string. The class has to implement a class @@ -15,7 +13,7 @@ class Class < ::Module # # @return [Boolean] # - # source://json//lib/json/common.rb#694 + # source://json//json/common.rb#694 def json_creatable?; end end @@ -597,8 +595,6 @@ end # Parsed JSON: # Without custom addition: "#" (String) # With custom addition: # (Foo) -# -# source://json//lib/json/version.rb#2 module JSON private @@ -630,7 +626,7 @@ module JSON # Output: # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"} # - # source://json//lib/json/common.rb#614 + # source://json//json/common.rb#614 def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end # :call-seq: @@ -647,13 +643,13 @@ module JSON # # Raises SystemStackError (stack level too deep): # JSON.fast_generate(a) # - # source://json//lib/json/common.rb#328 + # source://json//json/common.rb#328 def fast_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json//lib/json/common.rb#328 + # source://json//json/common.rb#328 def fast_unparse(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -692,7 +688,7 @@ module JSON # # Raises JSON::NestingError (nesting of 100 is too deep): # JSON.generate(a) # - # source://json//lib/json/common.rb#299 + # source://json//json/common.rb#299 def generate(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -823,7 +819,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#540 + # source://json//json/common.rb#540 def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # :call-seq: @@ -834,7 +830,7 @@ module JSON # # See method #parse. # - # source://json//lib/json/common.rb#248 + # source://json//json/common.rb#248 def load_file(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -845,10 +841,10 @@ module JSON # # See method #parse! # - # source://json//lib/json/common.rb#259 + # source://json//json/common.rb#259 def load_file!(filespec, opts = T.unsafe(nil)); end - # source://json//lib/json/common.rb#642 + # source://json//json/common.rb#642 def merge_dump_options(opts, strict: T.unsafe(nil)); end # :call-seq: @@ -899,7 +895,7 @@ module JSON # # Raises JSON::ParserError (783: unexpected token at ''): # JSON.parse('') # - # source://json//lib/json/common.rb#218 + # source://json//json/common.rb#218 def parse(source, opts = T.unsafe(nil)); end # :call-seq: @@ -914,7 +910,7 @@ module JSON # which disables checking for nesting depth. # - Option +allow_nan+, if not provided, defaults to +true+. # - # source://json//lib/json/common.rb#233 + # source://json//json/common.rb#233 def parse!(source, opts = T.unsafe(nil)); end # :call-seq: @@ -947,28 +943,28 @@ module JSON # } # } # - # source://json//lib/json/common.rb#373 + # source://json//json/common.rb#373 def pretty_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json//lib/json/common.rb#373 + # source://json//json/common.rb#373 def pretty_unparse(obj, opts = T.unsafe(nil)); end # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_ # - # source://json//lib/json/common.rb#558 + # source://json//json/common.rb#558 def recurse_proc(result, &proc); end - # source://json//lib/json/common.rb#540 + # source://json//json/common.rb#540 def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and # later delete them. # - # source://json//lib/json/common.rb#299 + # source://json//json/common.rb#299 def unparse(obj, opts = T.unsafe(nil)); end class << self @@ -984,26 +980,26 @@ module JSON # ruby = [0, 1, nil] # JSON[ruby] # => '[0,1,null]' # - # source://json//lib/json/common.rb#21 + # source://json//json/common.rb#21 def [](object, opts = T.unsafe(nil)); end - # source://json//lib/json/common.rb#84 + # source://json//json/common.rb#84 def create_fast_state; end # Returns the current create identifier. # See also JSON.create_id=. # - # source://json//lib/json/common.rb#129 + # source://json//json/common.rb#129 def create_id; end # Sets create identifier, which is used to decide if the _json_create_ # hook of a class should be called; initial value is +json_class+: # JSON.create_id # => 'json_class' # - # source://json//lib/json/common.rb#123 + # source://json//json/common.rb#123 def create_id=(new_value); end - # source://json//lib/json/common.rb#94 + # source://json//json/common.rb#94 def create_pretty_state; end # Return the constant located at _path_. The format of _path_ has to be @@ -1011,7 +1007,7 @@ module JSON # level (absolute namespace path?). If there doesn't exist a constant at # the given path, an ArgumentError is raised. # - # source://json//lib/json/common.rb#45 + # source://json//json/common.rb#45 def deep_const_get(path); end # :call-seq: @@ -1042,7 +1038,7 @@ module JSON # Output: # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"} # - # source://json//lib/json/common.rb#614 + # source://json//json/common.rb#614 def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end # Sets or returns the default options for the JSON.dump method. @@ -1050,7 +1046,7 @@ module JSON # opts = JSON.dump_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :script_safe=>false} # - # source://json//lib/json/common.rb#579 + # source://json//json/common.rb#579 def dump_default_options; end # Sets or returns the default options for the JSON.dump method. @@ -1058,7 +1054,7 @@ module JSON # opts = JSON.dump_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :script_safe=>false} # - # source://json//lib/json/common.rb#579 + # source://json//json/common.rb#579 def dump_default_options=(_arg0); end # :call-seq: @@ -1075,13 +1071,13 @@ module JSON # # Raises SystemStackError (stack level too deep): # JSON.fast_generate(a) # - # source://json//lib/json/common.rb#328 + # source://json//json/common.rb#328 def fast_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json//lib/json/common.rb#328 + # source://json//json/common.rb#328 def fast_unparse(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -1120,24 +1116,24 @@ module JSON # # Raises JSON::NestingError (nesting of 100 is too deep): # JSON.generate(a) # - # source://json//lib/json/common.rb#299 + # source://json//json/common.rb#299 def generate(obj, opts = T.unsafe(nil)); end # Returns the JSON generator module that is used by JSON. This is # either JSON::Ext::Generator or JSON::Pure::Generator: # JSON.generator # => JSON::Ext::Generator # - # source://json//lib/json/common.rb#106 + # source://json//json/common.rb#106 def generator; end # Set the module _generator_ to be used by JSON. # - # source://json//lib/json/common.rb#61 + # source://json//json/common.rb#61 def generator=(generator); end # Encodes string using String.encode. # - # source://json//lib/json/common.rb#638 + # source://json//json/common.rb#638 def iconv(to, from, string); end # :call-seq: @@ -1268,7 +1264,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#540 + # source://json//json/common.rb#540 def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # Sets or returns default options for the JSON.load method. @@ -1276,7 +1272,7 @@ module JSON # opts = JSON.load_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} # - # source://json//lib/json/common.rb#403 + # source://json//json/common.rb#403 def load_default_options; end # Sets or returns default options for the JSON.load method. @@ -1284,7 +1280,7 @@ module JSON # opts = JSON.load_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} # - # source://json//lib/json/common.rb#403 + # source://json//json/common.rb#403 def load_default_options=(_arg0); end # :call-seq: @@ -1295,7 +1291,7 @@ module JSON # # See method #parse. # - # source://json//lib/json/common.rb#248 + # source://json//json/common.rb#248 def load_file(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -1306,7 +1302,7 @@ module JSON # # See method #parse! # - # source://json//lib/json/common.rb#259 + # source://json//json/common.rb#259 def load_file!(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -1357,7 +1353,7 @@ module JSON # # Raises JSON::ParserError (783: unexpected token at ''): # JSON.parse('') # - # source://json//lib/json/common.rb#218 + # source://json//json/common.rb#218 def parse(source, opts = T.unsafe(nil)); end # :call-seq: @@ -1372,19 +1368,19 @@ module JSON # which disables checking for nesting depth. # - Option +allow_nan+, if not provided, defaults to +true+. # - # source://json//lib/json/common.rb#233 + # source://json//json/common.rb#233 def parse!(source, opts = T.unsafe(nil)); end # Returns the JSON parser class that is used by JSON. This is either # JSON::Ext::Parser or JSON::Pure::Parser: # JSON.parser # => JSON::Ext::Parser # - # source://json//lib/json/common.rb#32 + # source://json//json/common.rb#32 def parser; end # Set the JSON parser class _parser_ to be used by JSON. # - # source://json//lib/json/common.rb#35 + # source://json//json/common.rb#35 def parser=(parser); end # :call-seq: @@ -1417,123 +1413,119 @@ module JSON # } # } # - # source://json//lib/json/common.rb#373 + # source://json//json/common.rb#373 def pretty_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json//lib/json/common.rb#373 + # source://json//json/common.rb#373 def pretty_unparse(obj, opts = T.unsafe(nil)); end # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_ # - # source://json//lib/json/common.rb#558 + # source://json//json/common.rb#558 def recurse_proc(result, &proc); end - # source://json//lib/json/common.rb#540 + # source://json//json/common.rb#540 def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # Sets or Returns the JSON generator state class that is used by JSON. This is # either JSON::Ext::Generator::State or JSON::Pure::Generator::State: # JSON.state # => JSON::Ext::Generator::State # - # source://json//lib/json/common.rb#111 + # source://json//json/common.rb#111 def state; end # Sets or Returns the JSON generator state class that is used by JSON. This is # either JSON::Ext::Generator::State or JSON::Pure::Generator::State: # JSON.state # => JSON::Ext::Generator::State # - # source://json//lib/json/common.rb#111 + # source://json//json/common.rb#111 def state=(_arg0); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and # later delete them. # - # source://json//lib/json/common.rb#299 + # source://json//json/common.rb#299 def unparse(obj, opts = T.unsafe(nil)); end private - # source://json//lib/json/common.rb#642 + # source://json//json/common.rb#642 def merge_dump_options(opts, strict: T.unsafe(nil)); end end end -# source://json//lib/json/common.rb#117 +# source://json//json/common.rb#117 JSON::CREATE_ID_TLS_KEY = T.let(T.unsafe(nil), String) -# source://json//lib/json/common.rb#114 +# source://json//json/common.rb#114 JSON::DEFAULT_CREATE_ID = T.let(T.unsafe(nil), String) -# source://json//lib/json/generic_object.rb#5 class JSON::GenericObject < ::OpenStruct - # source://json//lib/json/generic_object.rb#63 + # source://json//json/generic_object.rb#63 def as_json(*_arg0); end - # source://json//lib/json/generic_object.rb#47 + # source://json//json/generic_object.rb#47 def to_hash; end - # source://json//lib/json/generic_object.rb#67 + # source://json//json/generic_object.rb#67 def to_json(*a); end - # source://json//lib/json/generic_object.rb#59 + # source://json//json/generic_object.rb#59 def |(other); end class << self - # source://json//lib/json/generic_object.rb#41 + # source://json//json/generic_object.rb#41 def dump(obj, *args); end - # source://json//lib/json/generic_object.rb#21 + # source://json//json/generic_object.rb#21 def from_hash(object); end # Sets the attribute json_creatable # # @param value the value to set the attribute json_creatable to. # - # source://json//lib/json/generic_object.rb#13 + # source://json//json/generic_object.rb#13 def json_creatable=(_arg0); end # @return [Boolean] # - # source://json//lib/json/generic_object.rb#9 + # source://json//json/generic_object.rb#9 def json_creatable?; end - # source://json//lib/json/generic_object.rb#15 + # source://json//json/generic_object.rb#15 def json_create(data); end - # source://json//lib/json/generic_object.rb#36 + # source://json//json/generic_object.rb#36 def load(source, proc = T.unsafe(nil), opts = T.unsafe(nil)); end end end # The base exception for JSON errors. -# -# source://json//lib/json/common.rb#140 class JSON::JSONError < ::StandardError class << self - # source://json//lib/json/common.rb#141 + # source://json//json/common.rb#141 def wrap(exception); end end end -# source://json//lib/json/common.rb#6 +# source://json//json/common.rb#6 JSON::NOT_SET = T.let(T.unsafe(nil), Object) -# source://json//lib/json/common.rb#38 +# source://json//json/common.rb#38 JSON::Parser = JSON::Ext::Parser -# source://json//lib/json/common.rb#76 +# source://json//json/common.rb#76 JSON::State = JSON::Ext::Generator::State # For backwards compatibility # -# source://json//lib/json/common.rb#162 +# source://json//json/common.rb#162 JSON::UnparserError = JSON::GeneratorError -# source://json//lib/json/common.rb#652 module Kernel private @@ -1544,18 +1536,18 @@ module Kernel # The _opts_ argument is passed through to generate/parse respectively. See # generate and parse for their documentation. # - # source://json//lib/json/common.rb#679 + # source://json//json/common.rb#679 def JSON(object, *args); end # Outputs _objs_ to STDOUT as JSON strings in the shortest form, that is in # one line. # - # source://json//lib/json/common.rb#657 + # source://json//json/common.rb#657 def j(*objs); end # Outputs _objs_ to STDOUT as JSON strings in a pretty format, with # indentation and over many lines. # - # source://json//lib/json/common.rb#666 + # source://json//json/common.rb#666 def jj(*objs); end end diff --git a/sorbet/rbi/gems/netrc@0.11.0.rbi b/sorbet/rbi/gems/netrc@0.11.0.rbi index e575090c6..062a5577c 100644 --- a/sorbet/rbi/gems/netrc@0.11.0.rbi +++ b/sorbet/rbi/gems/netrc@0.11.0.rbi @@ -113,8 +113,6 @@ class Netrc::Entry < ::Struct # # @param value [Object] the value to set the attribute login to. # @return [Object] the newly set value - # - # source://netrc//lib/netrc.rb#244 def login=(_); end # Returns the value of attribute password @@ -126,8 +124,6 @@ class Netrc::Entry < ::Struct # # @param value [Object] the value to set the attribute password to. # @return [Object] the newly set value - # - # source://netrc//lib/netrc.rb#244 def password=(_); end def to_ary; end @@ -135,6 +131,7 @@ class Netrc::Entry < ::Struct class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end diff --git a/sorbet/rbi/gems/parser@3.2.2.4.rbi b/sorbet/rbi/gems/parser@3.3.0.5.rbi similarity index 57% rename from sorbet/rbi/gems/parser@3.2.2.4.rbi rename to sorbet/rbi/gems/parser@3.3.0.5.rbi index 6d82e0550..0acdc763d 100644 --- a/sorbet/rbi/gems/parser@3.2.2.4.rbi +++ b/sorbet/rbi/gems/parser@3.3.0.5.rbi @@ -7,16 +7,7 @@ # @api public # # source://parser//lib/parser.rb#19 -module Parser - class << self - private - - # @api public - # - # source://parser//lib/parser/current.rb#5 - def warn_syntax_deviation(feature, version); end - end -end +module Parser; end # @api public # @@ -665,7 +656,7 @@ end # # @api public # -# source://parser//lib/parser/base.rb#29 +# source://parser//lib/parser/base.rb#16 class Parser::Base < ::Racc::Parser # @api public # @param builder [Parser::Builders::Default] The AST builder to use. @@ -873,1480 +864,662 @@ end # source://parser//lib/parser.rb#77 module Parser::Builders; end -# Default AST builder. Uses {AST::Node}s. -# -# @api public -# # source://parser//lib/parser/builders/default.rb#8 class Parser::Builders::Default - # Initializes attributes: - # - # * `emit_file_line_as_literals`: `true` - # - # @api public - # @return [Default] a new instance of Default - # # source://parser//lib/parser/builders/default.rb#243 def initialize; end - # @api public - # - # source://parser//lib/parser/builders/default.rb#690 + # source://parser//lib/parser/builders/default.rb#703 def __ENCODING__(__ENCODING__t); end - # @api public - # # source://parser//lib/parser/builders/default.rb#348 def __FILE__(__FILE__t); end - # @api public - # # source://parser//lib/parser/builders/default.rb#312 def __LINE__(__LINE__t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#616 + # source://parser//lib/parser/builders/default.rb#622 def accessible(node); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#865 + # source://parser//lib/parser/builders/default.rb#878 def alias(alias_t, to, from); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#904 + # source://parser//lib/parser/builders/default.rb#917 def arg(name_t); end - # Ruby 1.8 block arguments - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#994 + # source://parser//lib/parser/builders/default.rb#1007 def arg_expr(expr); end - # Formal arguments - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#874 + # source://parser//lib/parser/builders/default.rb#887 def args(begin_t, args, end_t, check_args = T.unsafe(nil)); end - # Arrays - # - # @api public - # # source://parser//lib/parser/builders/default.rb#440 def array(begin_t, elements, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1577 + # source://parser//lib/parser/builders/default.rb#1590 def array_pattern(lbrack_t, elements, rbrack_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#754 + # source://parser//lib/parser/builders/default.rb#767 def assign(lhs, eql_t, rhs); end - # Assignment - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#699 + # source://parser//lib/parser/builders/default.rb#712 def assignable(node); end - # @api public - # # source://parser//lib/parser/builders/default.rb#540 def associate(begin_t, pairs, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1158 + # source://parser//lib/parser/builders/default.rb#1171 def attr_asgn(receiver, dot_t, selector_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#606 + # source://parser//lib/parser/builders/default.rb#612 def back_ref(token); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1422 + # source://parser//lib/parser/builders/default.rb#1435 def begin(begin_t, body, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1364 + # source://parser//lib/parser/builders/default.rb#1377 def begin_body(compound_stmt, rescue_bodies = T.unsafe(nil), else_t = T.unsafe(nil), else_ = T.unsafe(nil), ensure_t = T.unsafe(nil), ensure_ = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1440 + # source://parser//lib/parser/builders/default.rb#1453 def begin_keyword(begin_t, body, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1192 + # source://parser//lib/parser/builders/default.rb#1205 def binary_op(receiver, operator_t, arg); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1109 + # source://parser//lib/parser/builders/default.rb#1122 def block(method_call, begin_t, args, body, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1144 + # source://parser//lib/parser/builders/default.rb#1157 def block_pass(amper_t, arg); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#969 + # source://parser//lib/parser/builders/default.rb#982 def blockarg(amper_t, name_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1014 + # source://parser//lib/parser/builders/default.rb#1027 def blockarg_expr(amper_t, expr); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1100 + # source://parser//lib/parser/builders/default.rb#1113 def call_lambda(lambda_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1083 + # source://parser//lib/parser/builders/default.rb#1096 def call_method(receiver, dot_t, selector_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end - # Method calls - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#1055 + # source://parser//lib/parser/builders/default.rb#1068 def call_type_for_dot(dot_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1297 + # source://parser//lib/parser/builders/default.rb#1310 def case(case_t, expr, when_bodies, else_t, else_body, end_t); end - # PATTERN MATCHING - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#1460 + # source://parser//lib/parser/builders/default.rb#1473 def case_match(case_t, expr, in_bodies, else_t, else_body, end_t); end - # @api public - # # source://parser//lib/parser/builders/default.rb#343 def character(char_t); end - # @api public - # # source://parser//lib/parser/builders/default.rb#284 def complex(complex_t); end - # Expression grouping - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#1410 + # source://parser//lib/parser/builders/default.rb#1423 def compstmt(statements); end - # Conditionals - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#1273 + # source://parser//lib/parser/builders/default.rb#1286 def condition(cond_t, cond, then_t, if_true, else_t, if_false, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1279 + # source://parser//lib/parser/builders/default.rb#1292 def condition_mod(if_true, if_false, cond_t, cond); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#673 + # source://parser//lib/parser/builders/default.rb#686 def const(name_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#685 + # source://parser//lib/parser/builders/default.rb#698 def const_fetch(scope, t_colon2, name_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#678 + # source://parser//lib/parser/builders/default.rb#691 def const_global(t_colon3, name_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#750 + # source://parser//lib/parser/builders/default.rb#763 def const_op_assignable(node); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1607 + # source://parser//lib/parser/builders/default.rb#1620 def const_pattern(const, ldelim_t, pattern, rdelim_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#601 + # source://parser//lib/parser/builders/default.rb#607 def cvar(token); end - # Indented (interpolated, noninterpolated, executable) strings - # - # @api public - # # source://parser//lib/parser/builders/default.rb#388 def dedent_string(node, dedent_level); end - # Class and module definition - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#801 + # source://parser//lib/parser/builders/default.rb#814 def def_class(class_t, name, lt_t, superclass, body, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#832 + # source://parser//lib/parser/builders/default.rb#845 def def_endless_method(def_t, name_t, args, assignment_t, body); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#850 + # source://parser//lib/parser/builders/default.rb#863 def def_endless_singleton(def_t, definee, dot_t, name_t, args, assignment_t, body); end - # Method (un)definition - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#824 + # source://parser//lib/parser/builders/default.rb#837 def def_method(def_t, name_t, args, body, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#814 + # source://parser//lib/parser/builders/default.rb#827 def def_module(module_t, name, body, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#808 + # source://parser//lib/parser/builders/default.rb#821 def def_sclass(class_t, lshft_t, expr, body, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#840 + # source://parser//lib/parser/builders/default.rb#853 def def_singleton(def_t, definee, dot_t, name_t, args, body, end_t); end - # If set to true (the default), `__FILE__` and `__LINE__` are transformed to - # literal nodes. For example, `s(:str, "lib/foo.rb")` and `s(:int, 10)`. - # - # If set to false, `__FILE__` and `__LINE__` are emitted as-is, - # i.e. as `s(:__FILE__)` and `s(:__LINE__)` nodes. - # - # Source maps are identical in both cases. - # - # @api public - # @return [Boolean] - # # source://parser//lib/parser/builders/default.rb#237 def emit_file_line_as_literals; end - # If set to true (the default), `__FILE__` and `__LINE__` are transformed to - # literal nodes. For example, `s(:str, "lib/foo.rb")` and `s(:int, 10)`. - # - # If set to false, `__FILE__` and `__LINE__` are emitted as-is, - # i.e. as `s(:__FILE__)` and `s(:__LINE__)` nodes. - # - # Source maps are identical in both cases. - # - # @api public - # @return [Boolean] - # # source://parser//lib/parser/builders/default.rb#237 def emit_file_line_as_literals=(_arg0); end - # @api public - # # source://parser//lib/parser/builders/default.rb#265 def false(false_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1598 + # source://parser//lib/parser/builders/default.rb#1611 def find_pattern(lbrack_t, elements, rbrack_t); end - # @api public - # # source://parser//lib/parser/builders/default.rb#276 def float(float_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1318 + # source://parser//lib/parser/builders/default.rb#1331 def for(for_t, iterator, in_t, iteratee, do_t, body, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#900 + # source://parser//lib/parser/builders/default.rb#913 def forward_arg(dots_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#890 + # source://parser//lib/parser/builders/default.rb#903 def forward_only_args(begin_t, dots_t, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1071 + # source://parser//lib/parser/builders/default.rb#1084 def forwarded_args(dots_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1079 + # source://parser//lib/parser/builders/default.rb#1092 def forwarded_kwrestarg(dstar_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1075 + # source://parser//lib/parser/builders/default.rb#1088 def forwarded_restarg(star_t); end - # @api public - # # source://parser//lib/parser/builders/default.rb#596 def gvar(token); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1571 + # source://parser//lib/parser/builders/default.rb#1584 def hash_pattern(lbrace_t, kwargs, rbrace_t); end - # @api public - # # source://parser//lib/parser/builders/default.rb#586 def ident(token); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1487 + # source://parser//lib/parser/builders/default.rb#1500 def if_guard(if_t, if_body); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1466 + # source://parser//lib/parser/builders/default.rb#1479 def in_match(lhs, in_t, rhs); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1481 + # source://parser//lib/parser/builders/default.rb#1494 def in_pattern(in_t, pattern, guard, then_t, body); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1167 + # source://parser//lib/parser/builders/default.rb#1180 def index(receiver, lbrack_t, indexes, rbrack_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1181 + # source://parser//lib/parser/builders/default.rb#1194 def index_asgn(receiver, lbrack_t, indexes, rbrack_t); end - # Numerics - # - # @api public - # # source://parser//lib/parser/builders/default.rb#272 def integer(integer_t); end - # @api public - # # source://parser//lib/parser/builders/default.rb#591 def ivar(token); end - # Keywords - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#1326 + # source://parser//lib/parser/builders/default.rb#1339 def keyword_cmd(type, keyword_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#931 + # source://parser//lib/parser/builders/default.rb#944 def kwarg(name_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#957 + # source://parser//lib/parser/builders/default.rb#970 def kwnilarg(dstar_t, nil_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#938 + # source://parser//lib/parser/builders/default.rb#951 def kwoptarg(name_t, value); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#945 + # source://parser//lib/parser/builders/default.rb#958 def kwrestarg(dstar_t, name_t = T.unsafe(nil)); end - # @api public - # # source://parser//lib/parser/builders/default.rb#535 def kwsplat(dstar_t, arg); end - # Logical operations: and, or - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#1266 + # source://parser//lib/parser/builders/default.rb#1279 def logical_op(type, lhs, op_t, rhs); end - # Loops - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#1304 + # source://parser//lib/parser/builders/default.rb#1317 def loop(type, keyword_t, cond, do_t, body, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1309 + # source://parser//lib/parser/builders/default.rb#1322 def loop_mod(type, body, keyword_t, cond); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1621 + # source://parser//lib/parser/builders/default.rb#1634 def match_alt(left, pipe_t, right); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1628 + # source://parser//lib/parser/builders/default.rb#1641 def match_as(value, assoc_t, as); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1507 + # source://parser//lib/parser/builders/default.rb#1520 def match_hash_var(name_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1521 + # source://parser//lib/parser/builders/default.rb#1534 def match_hash_var_from_str(begin_t, strings, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1659 + # source://parser//lib/parser/builders/default.rb#1672 def match_label(label_type, label); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1635 + # source://parser//lib/parser/builders/default.rb#1648 def match_nil_pattern(dstar_t, nil_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1214 + # source://parser//lib/parser/builders/default.rb#1227 def match_op(receiver, match_t, arg); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1640 + # source://parser//lib/parser/builders/default.rb#1653 def match_pair(label_type, label, value); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1471 + # source://parser//lib/parser/builders/default.rb#1484 def match_pattern(lhs, match_t, rhs); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1476 + # source://parser//lib/parser/builders/default.rb#1489 def match_pattern_p(lhs, match_t, rhs); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1560 + # source://parser//lib/parser/builders/default.rb#1573 def match_rest(star_t, name_t = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1495 + # source://parser//lib/parser/builders/default.rb#1508 def match_var(name_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1603 + # source://parser//lib/parser/builders/default.rb#1616 def match_with_trailing_comma(match, comma_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#792 + # source://parser//lib/parser/builders/default.rb#805 def multi_assign(lhs, eql_t, rhs); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#787 + # source://parser//lib/parser/builders/default.rb#800 def multi_lhs(begin_t, items, end_t); end - # Singletons - # - # @api public - # # source://parser//lib/parser/builders/default.rb#255 def nil(nil_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1242 + # source://parser//lib/parser/builders/default.rb#1255 def not_op(not_t, begin_t = T.unsafe(nil), receiver = T.unsafe(nil), end_t = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#611 + # source://parser//lib/parser/builders/default.rb#617 def nth_ref(token); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#886 + # source://parser//lib/parser/builders/default.rb#899 def numargs(max_numparam); end - # MacRuby Objective-C arguments - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#1025 + # source://parser//lib/parser/builders/default.rb#1038 def objc_kwarg(kwname_t, assoc_t, name_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1039 + # source://parser//lib/parser/builders/default.rb#1052 def objc_restarg(star_t, name = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1149 + # source://parser//lib/parser/builders/default.rb#1162 def objc_varargs(pair, rest_of_varargs); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#761 + # source://parser//lib/parser/builders/default.rb#774 def op_assign(lhs, op_t, rhs); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#911 + # source://parser//lib/parser/builders/default.rb#924 def optarg(name_t, eql_t, value); end - # Hashes - # - # @api public - # # source://parser//lib/parser/builders/default.rb#488 def pair(key, assoc_t, value); end - # @api public - # # source://parser//lib/parser/builders/default.rb#505 def pair_keyword(key_t, value); end - # @api public - # # source://parser//lib/parser/builders/default.rb#521 def pair_label(key_t); end - # @api public - # # source://parser//lib/parser/builders/default.rb#493 def pair_list_18(list); end - # @api public - # # source://parser//lib/parser/builders/default.rb#513 def pair_quoted(begin_t, parts, end_t, value); end - # @api private - # # source://parser//lib/parser/builders/default.rb#225 def parser; end - # @api private - # # source://parser//lib/parser/builders/default.rb#225 def parser=(_arg0); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1616 + # source://parser//lib/parser/builders/default.rb#1629 def pin(pin_t, var); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1349 + # source://parser//lib/parser/builders/default.rb#1362 def postexe(postexe_t, lbrace_t, compstmt, rbrace_t); end - # BEGIN, END - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#1344 + # source://parser//lib/parser/builders/default.rb#1357 def preexe(preexe_t, lbrace_t, compstmt, rbrace_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#979 + # source://parser//lib/parser/builders/default.rb#992 def procarg0(arg); end - # @api public - # # source://parser//lib/parser/builders/default.rb#572 def range_exclusive(lhs, dot3_t, rhs); end - # Ranges - # - # @api public - # # source://parser//lib/parser/builders/default.rb#567 def range_inclusive(lhs, dot2_t, rhs); end - # @api public - # # source://parser//lib/parser/builders/default.rb#280 def rational(rational_t); end - # @api public - # # source://parser//lib/parser/builders/default.rb#426 def regexp_compose(begin_t, parts, end_t, options); end - # Regular expressions - # - # @api public - # # source://parser//lib/parser/builders/default.rb#417 def regexp_options(regopt_t); end - # Exception handling - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#1356 + # source://parser//lib/parser/builders/default.rb#1369 def rescue_body(rescue_t, exc_list, assoc_t, exc_var, then_t, compound_stmt); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#920 + # source://parser//lib/parser/builders/default.rb#933 def restarg(star_t, name_t = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1003 + # source://parser//lib/parser/builders/default.rb#1016 def restarg_expr(star_t, expr = T.unsafe(nil)); end - # Access - # - # @api public - # # source://parser//lib/parser/builders/default.rb#581 def self(token); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#962 + # source://parser//lib/parser/builders/default.rb#975 def shadowarg(name_t); end - # @api public - # # source://parser//lib/parser/builders/default.rb#445 def splat(star_t, arg = T.unsafe(nil)); end - # Strings - # - # @api public - # # source://parser//lib/parser/builders/default.rb#319 def string(string_t); end - # @api public - # # source://parser//lib/parser/builders/default.rb#329 def string_compose(begin_t, parts, end_t); end - # @api public - # # source://parser//lib/parser/builders/default.rb#324 def string_internal(string_t); end - # Symbols - # - # @api public - # # source://parser//lib/parser/builders/default.rb#355 def symbol(symbol_t); end - # @api public - # # source://parser//lib/parser/builders/default.rb#365 def symbol_compose(begin_t, parts, end_t); end - # @api public - # # source://parser//lib/parser/builders/default.rb#360 def symbol_internal(symbol_t); end - # @api public - # # source://parser//lib/parser/builders/default.rb#469 def symbols_compose(begin_t, parts, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1284 + # source://parser//lib/parser/builders/default.rb#1297 def ternary(cond, question_t, if_true, colon_t, if_false); end - # @api public - # # source://parser//lib/parser/builders/default.rb#260 def true(true_t); end - # @api public - # # source://parser//lib/parser/builders/default.rb#294 def unary_num(unary_t, numeric); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1230 + # source://parser//lib/parser/builders/default.rb#1243 def unary_op(op_t, receiver); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#860 + # source://parser//lib/parser/builders/default.rb#873 def undef_method(undef_t, names); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1491 + # source://parser//lib/parser/builders/default.rb#1504 def unless_guard(unless_t, unless_body); end - # Case matching - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#1291 + # source://parser//lib/parser/builders/default.rb#1304 def when(when_t, patterns, then_t, body); end - # @api public - # # source://parser//lib/parser/builders/default.rb#455 def word(parts); end - # @api public - # # source://parser//lib/parser/builders/default.rb#464 def words_compose(begin_t, parts, end_t); end - # Executable strings - # - # @api public - # # source://parser//lib/parser/builders/default.rb#381 def xstring_compose(begin_t, parts, end_t); end private - # @api public - # @return [Boolean] - # - # source://parser//lib/parser/builders/default.rb#1808 + # source://parser//lib/parser/builders/default.rb#1821 def arg_name_collides?(this_name, that_name); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2004 + # source://parser//lib/parser/builders/default.rb#2017 def arg_prefix_map(op_t, name_t = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1978 + # source://parser//lib/parser/builders/default.rb#1991 def binary_op_map(left_e, op_t, right_e); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2106 + # source://parser//lib/parser/builders/default.rb#2119 def block_map(receiver_l, begin_t, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1783 + # source://parser//lib/parser/builders/default.rb#1796 def check_assignment_to_numparam(name, loc); end - # VERIFICATION - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#1675 + # source://parser//lib/parser/builders/default.rb#1688 def check_condition(cond); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1754 + # source://parser//lib/parser/builders/default.rb#1767 def check_duplicate_arg(this_arg, map = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1729 + # source://parser//lib/parser/builders/default.rb#1742 def check_duplicate_args(args, map = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1841 + # source://parser//lib/parser/builders/default.rb#1854 def check_duplicate_pattern_key(name, loc); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1831 + # source://parser//lib/parser/builders/default.rb#1844 def check_duplicate_pattern_variable(name, loc); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1823 + # source://parser//lib/parser/builders/default.rb#1836 def check_lvar_name(name, loc); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1798 + # source://parser//lib/parser/builders/default.rb#1811 def check_reserved_for_numparam(name, loc); end - # @api public - # @return [Boolean] - # - # source://parser//lib/parser/builders/default.rb#2263 + # source://parser//lib/parser/builders/default.rb#2280 def collapse_string_parts?(parts); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1929 + # source://parser//lib/parser/builders/default.rb#1942 def collection_map(begin_t, parts, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2133 + # source://parser//lib/parser/builders/default.rb#2146 def condition_map(keyword_t, cond_e, begin_t, body_e, else_t, else_e, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1964 + # source://parser//lib/parser/builders/default.rb#1977 def constant_map(scope, colon2_t, name_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2037 + # source://parser//lib/parser/builders/default.rb#2050 def definition_map(keyword_t, operator_t, name_t, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1870 + # source://parser//lib/parser/builders/default.rb#1883 def delimited_string_map(string_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2285 + # source://parser//lib/parser/builders/default.rb#2302 def diagnostic(type, reason, arguments, location, highlights = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2177 + # source://parser//lib/parser/builders/default.rb#2190 def eh_keyword_map(compstmt_e, keyword_t, body_es, else_t, else_e); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2043 + # source://parser//lib/parser/builders/default.rb#2056 def endless_definition_map(keyword_t, operator_t, name_t, assignment_t, body_e); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1925 + # source://parser//lib/parser/builders/default.rb#1938 def expr_map(loc); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2158 + # source://parser//lib/parser/builders/default.rb#2171 def for_map(keyword_t, in_t, begin_t, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2205 + # source://parser//lib/parser/builders/default.rb#2218 def guard_map(keyword_t, guard_body_e); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2095 + # source://parser//lib/parser/builders/default.rb#2108 def index_map(receiver_e, lbrack_t, rbrack_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1861 + # source://parser//lib/parser/builders/default.rb#1874 def join_exprs(left_expr, right_expr); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2111 + # source://parser//lib/parser/builders/default.rb#2124 def keyword_map(keyword_t, begin_t, args, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2128 + # source://parser//lib/parser/builders/default.rb#2141 def keyword_mod_map(pre_e, keyword_t, post_e); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2014 + # source://parser//lib/parser/builders/default.rb#2027 def kwarg_map(name_t, value_e = T.unsafe(nil)); end - # @api public - # @return [Boolean] - # - # source://parser//lib/parser/builders/default.rb#2316 + # source://parser//lib/parser/builders/default.rb#2333 def kwargs?(node); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2280 + # source://parser//lib/parser/builders/default.rb#2297 def loc(token); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2027 + # source://parser//lib/parser/builders/default.rb#2040 def module_definition_map(keyword_t, name_e, operator_t, end_t); end - # SOURCE MAPS - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#1853 + # source://parser//lib/parser/builders/default.rb#1866 def n(type, children, source_map); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1857 + # source://parser//lib/parser/builders/default.rb#1870 def n0(type, source_map); end - # @api public - # # source://parser//lib/parser/builders/default.rb#288 def numeric(kind, token); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1895 + # source://parser//lib/parser/builders/default.rb#1908 def pair_keyword_map(key_t, value_e); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1910 + # source://parser//lib/parser/builders/default.rb#1923 def pair_quoted_map(begin_t, end_t, value_e); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1881 + # source://parser//lib/parser/builders/default.rb#1894 def prefix_string_map(symbol); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1992 + # source://parser//lib/parser/builders/default.rb#2005 def range_map(start_e, op_t, end_e); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1959 + # source://parser//lib/parser/builders/default.rb#1972 def regexp_map(begin_t, end_t, options_e); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2164 + # source://parser//lib/parser/builders/default.rb#2177 def rescue_body_map(keyword_t, exc_list_e, assoc_t, exc_var_e, then_t, compstmt_e); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2306 + # source://parser//lib/parser/builders/default.rb#2323 def rewrite_hash_args_to_kwargs(args); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2077 + # source://parser//lib/parser/builders/default.rb#2090 def send_binary_op_map(lhs_e, selector_t, rhs_e); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2100 + # source://parser//lib/parser/builders/default.rb#2113 def send_index_map(receiver_e, lbrack_t, rbrack_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2051 + # source://parser//lib/parser/builders/default.rb#2064 def send_map(receiver_e, dot_t, selector_t, begin_t = T.unsafe(nil), args = T.unsafe(nil), end_t = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2083 + # source://parser//lib/parser/builders/default.rb#2096 def send_unary_op_map(selector_t, arg_e); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2236 + # source://parser//lib/parser/builders/default.rb#2249 def static_regexp(parts, options); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2256 + # source://parser//lib/parser/builders/default.rb#2269 def static_regexp_node(node); end - # Extract a static string from e.g. a regular expression, - # honoring the fact that MRI expands interpolations like #{""} - # at parse time. - # - # @api public - # - # source://parser//lib/parser/builders/default.rb#2219 + # source://parser//lib/parser/builders/default.rb#2232 def static_string(nodes); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1945 + # source://parser//lib/parser/builders/default.rb#1958 def string_map(begin_t, parts, end_t); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2272 + # source://parser//lib/parser/builders/default.rb#2289 def string_value(token); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2153 + # source://parser//lib/parser/builders/default.rb#2166 def ternary_map(begin_e, question_t, mid_e, colon_t, end_e); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1866 + # source://parser//lib/parser/builders/default.rb#1879 def token_map(token); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1982 + # source://parser//lib/parser/builders/default.rb#1995 def unary_op_map(op_t, arg_e = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1890 + # source://parser//lib/parser/builders/default.rb#1903 def unquoted_map(token); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2294 + # source://parser//lib/parser/builders/default.rb#2311 def validate_definee(definee); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1768 + # source://parser//lib/parser/builders/default.rb#1781 def validate_no_forward_arg_after_restarg(args); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2268 + # source://parser//lib/parser/builders/default.rb#2285 def value(token); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#2071 + # source://parser//lib/parser/builders/default.rb#2084 def var_send_map(variable_e); end - # @api public - # - # source://parser//lib/parser/builders/default.rb#1974 + # source://parser//lib/parser/builders/default.rb#1987 def variable_map(name_t); end class << self - # AST compatibility attribute; causes a single non-mlhs - # block argument to be wrapped in s(:procarg0). - # - # If set to false (the default), block arguments `|a|` are emitted as - # `s(:args, s(:procarg0, :a))` - # - # If set to true, block arguments `|a|` are emitted as - # `s(:args, s(:procarg0, s(:arg, :a))` - # - # @api public - # @return [Boolean] - # # source://parser//lib/parser/builders/default.rb#97 def emit_arg_inside_procarg0; end - # AST compatibility attribute; causes a single non-mlhs - # block argument to be wrapped in s(:procarg0). - # - # If set to false (the default), block arguments `|a|` are emitted as - # `s(:args, s(:procarg0, :a))` - # - # If set to true, block arguments `|a|` are emitted as - # `s(:args, s(:procarg0, s(:arg, :a))` - # - # @api public - # @return [Boolean] - # # source://parser//lib/parser/builders/default.rb#97 def emit_arg_inside_procarg0=(_arg0); end - # AST compatibility attribute; locations of `__ENCODING__` are not the same - # as locations of `Encoding::UTF_8` causing problems during rewriting, - # all new code should set this attribute to true. - # - # If set to false (the default), `__ENCODING__` is emitted as - # ` s(:const, s(:const, nil, :Encoding), :UTF_8)`. - # - # If set to true, `__ENCODING__` is emitted as - # `s(:__ENCODING__)`. - # - # @api public - # @return [Boolean] - # # source://parser//lib/parser/builders/default.rb#58 def emit_encoding; end - # AST compatibility attribute; locations of `__ENCODING__` are not the same - # as locations of `Encoding::UTF_8` causing problems during rewriting, - # all new code should set this attribute to true. - # - # If set to false (the default), `__ENCODING__` is emitted as - # ` s(:const, s(:const, nil, :Encoding), :UTF_8)`. - # - # If set to true, `__ENCODING__` is emitted as - # `s(:__ENCODING__)`. - # - # @api public - # @return [Boolean] - # # source://parser//lib/parser/builders/default.rb#58 def emit_encoding=(_arg0); end - # AST compatibility attribute; arguments forwarding initially - # didn't have support for leading arguments - # (i.e. `def m(a, ...); end` was a syntax error). However, Ruby 3.0 - # added support for any number of arguments in front of the `...`. - # - # If set to false (the default): - # 1. `def m(...) end` is emitted as - # s(:def, :m, s(:forward_args), nil) - # 2. `def m(a, b, ...) end` is emitted as - # s(:def, :m, - # s(:args, s(:arg, :a), s(:arg, :b), s(:forward_arg))) - # - # If set to true it uses a single format: - # 1. `def m(...) end` is emitted as - # s(:def, :m, s(:args, s(:forward_arg))) - # 2. `def m(a, b, ...) end` is emitted as - # s(:def, :m, s(:args, s(:arg, :a), s(:arg, :b), s(:forward_arg))) - # - # It does't matter that much on 2.7 (because there can't be any leading arguments), - # but on 3.0 it should be better enabled to use a single AST format. - # - # @api public - # @return [Boolean] - # # source://parser//lib/parser/builders/default.rb#126 def emit_forward_arg; end - # AST compatibility attribute; arguments forwarding initially - # didn't have support for leading arguments - # (i.e. `def m(a, ...); end` was a syntax error). However, Ruby 3.0 - # added support for any number of arguments in front of the `...`. - # - # If set to false (the default): - # 1. `def m(...) end` is emitted as - # s(:def, :m, s(:forward_args), nil) - # 2. `def m(a, b, ...) end` is emitted as - # s(:def, :m, - # s(:args, s(:arg, :a), s(:arg, :b), s(:forward_arg))) - # - # If set to true it uses a single format: - # 1. `def m(...) end` is emitted as - # s(:def, :m, s(:args, s(:forward_arg))) - # 2. `def m(a, b, ...) end` is emitted as - # s(:def, :m, s(:args, s(:arg, :a), s(:arg, :b), s(:forward_arg))) - # - # It does't matter that much on 2.7 (because there can't be any leading arguments), - # but on 3.0 it should be better enabled to use a single AST format. - # - # @api public - # @return [Boolean] - # # source://parser//lib/parser/builders/default.rb#126 def emit_forward_arg=(_arg0); end - # AST compatibility attribute; indexed assignment, `x[] = 1`, is not - # semantically equivalent to calling the method directly, `x.[]=(1)`. - # Specifically, in the former case, the expression's value is always 1, - # and in the latter case, the expression's value is the return value - # of the `[]=` method. - # - # If set to false (the default), `self[1]` is emitted as - # `s(:send, s(:self), :[], s(:int, 1))`, and `self[1] = 2` is - # emitted as `s(:send, s(:self), :[]=, s(:int, 1), s(:int, 2))`. - # - # If set to true, `self[1]` is emitted as - # `s(:index, s(:self), s(:int, 1))`, and `self[1] = 2` is - # emitted as `s(:indexasgn, s(:self), s(:int, 1), s(:int, 2))`. - # - # @api public - # @return [Boolean] - # # source://parser//lib/parser/builders/default.rb#80 def emit_index; end - # AST compatibility attribute; indexed assignment, `x[] = 1`, is not - # semantically equivalent to calling the method directly, `x.[]=(1)`. - # Specifically, in the former case, the expression's value is always 1, - # and in the latter case, the expression's value is the return value - # of the `[]=` method. - # - # If set to false (the default), `self[1]` is emitted as - # `s(:send, s(:self), :[], s(:int, 1))`, and `self[1] = 2` is - # emitted as `s(:send, s(:self), :[]=, s(:int, 1), s(:int, 2))`. - # - # If set to true, `self[1]` is emitted as - # `s(:index, s(:self), s(:int, 1))`, and `self[1] = 2` is - # emitted as `s(:indexasgn, s(:self), s(:int, 1), s(:int, 2))`. - # - # @api public - # @return [Boolean] - # # source://parser//lib/parser/builders/default.rb#80 def emit_index=(_arg0); end - # AST compatibility attribute; Starting from Ruby 2.7 keyword arguments - # of method calls that are passed explicitly as a hash (i.e. with curly braces) - # are treated as positional arguments and Ruby 2.7 emits a warning on such method - # call. Ruby 3.0 given an ArgumentError. - # - # If set to false (the default) the last hash argument is emitted as `hash`: - # - # ``` - # (send nil :foo - # (hash - # (pair - # (sym :bar) - # (int 42)))) - # ``` - # - # If set to true it is emitted as `kwargs`: - # - # ``` - # (send nil :foo - # (kwargs - # (pair - # (sym :bar) - # (int 42)))) - # ``` - # - # Note that `kwargs` node is just a replacement for `hash` argument, - # so if there's are multiple arguments (or a `kwsplat`) all of them - # are wrapped into `kwargs` instead of `hash`: - # - # ``` - # (send nil :foo - # (kwargs - # (pair - # (sym :a) - # (int 42)) - # (kwsplat - # (send nil :b)) - # (pair - # (sym :c) - # (int 10)))) - # ``` - # - # @api public - # # source://parser//lib/parser/builders/default.rb#174 def emit_kwargs; end - # AST compatibility attribute; Starting from Ruby 2.7 keyword arguments - # of method calls that are passed explicitly as a hash (i.e. with curly braces) - # are treated as positional arguments and Ruby 2.7 emits a warning on such method - # call. Ruby 3.0 given an ArgumentError. - # - # If set to false (the default) the last hash argument is emitted as `hash`: - # - # ``` - # (send nil :foo - # (hash - # (pair - # (sym :bar) - # (int 42)))) - # ``` - # - # If set to true it is emitted as `kwargs`: - # - # ``` - # (send nil :foo - # (kwargs - # (pair - # (sym :bar) - # (int 42)))) - # ``` - # - # Note that `kwargs` node is just a replacement for `hash` argument, - # so if there's are multiple arguments (or a `kwsplat`) all of them - # are wrapped into `kwargs` instead of `hash`: - # - # ``` - # (send nil :foo - # (kwargs - # (pair - # (sym :a) - # (int 42)) - # (kwsplat - # (send nil :b)) - # (pair - # (sym :c) - # (int 10)))) - # ``` - # - # @api public - # # source://parser//lib/parser/builders/default.rb#174 def emit_kwargs=(_arg0); end - # AST compatibility attribute; since `-> {}` is not semantically - # equivalent to `lambda {}`, all new code should set this attribute - # to true. - # - # If set to false (the default), `-> {}` is emitted as - # `s(:block, s(:send, nil, :lambda), s(:args), nil)`. - # - # If set to true, `-> {}` is emitted as - # `s(:block, s(:lambda), s(:args), nil)`. - # - # @api public - # @return [Boolean] - # # source://parser//lib/parser/builders/default.rb#22 def emit_lambda; end - # AST compatibility attribute; since `-> {}` is not semantically - # equivalent to `lambda {}`, all new code should set this attribute - # to true. - # - # If set to false (the default), `-> {}` is emitted as - # `s(:block, s(:send, nil, :lambda), s(:args), nil)`. - # - # If set to true, `-> {}` is emitted as - # `s(:block, s(:lambda), s(:args), nil)`. - # - # @api public - # @return [Boolean] - # # source://parser//lib/parser/builders/default.rb#22 def emit_lambda=(_arg0); end - # AST compatibility attribute; Starting from 3.0 Ruby returns - # true/false from single-line pattern matching with `in` keyword. - # - # Before 3.0 there was an exception if given value doesn't match pattern. - # - # NOTE: This attribute affects only Ruby 2.7 grammar. - # 3.0 grammar always emits `match_pattern`/`match_pattern_p` - # - # If compatibility attribute set to false `foo in bar` is emitted as `in_match`: - # - # ``` - # (in-match - # (send nil :foo) - # (match-var :bar)) - # ``` - # - # If set to true it's emitted as `match_pattern_p`: - # ``` - # (match-pattern-p - # (send nil :foo) - # (match-var :bar)) - # ``` - # - # @api public - # # source://parser//lib/parser/builders/default.rb#203 def emit_match_pattern; end - # AST compatibility attribute; Starting from 3.0 Ruby returns - # true/false from single-line pattern matching with `in` keyword. - # - # Before 3.0 there was an exception if given value doesn't match pattern. - # - # NOTE: This attribute affects only Ruby 2.7 grammar. - # 3.0 grammar always emits `match_pattern`/`match_pattern_p` - # - # If compatibility attribute set to false `foo in bar` is emitted as `in_match`: - # - # ``` - # (in-match - # (send nil :foo) - # (match-var :bar)) - # ``` - # - # If set to true it's emitted as `match_pattern_p`: - # ``` - # (match-pattern-p - # (send nil :foo) - # (match-var :bar)) - # ``` - # - # @api public - # # source://parser//lib/parser/builders/default.rb#203 def emit_match_pattern=(_arg0); end - # AST compatibility attribute; block arguments of `m { |a| }` are - # not semantically equivalent to block arguments of `m { |a,| }` or `m { |a, b| }`, - # all new code should set this attribute to true. - # - # If set to false (the default), arguments of `m { |a| }` are emitted as - # `s(:args, s(:arg, :a))`. - # - # If set to true, arguments of `m { |a| }` are emitted as - # `s(:args, s(:procarg0, :a)). - # - # @api public - # @return [Boolean] - # # source://parser//lib/parser/builders/default.rb#40 def emit_procarg0; end - # AST compatibility attribute; block arguments of `m { |a| }` are - # not semantically equivalent to block arguments of `m { |a,| }` or `m { |a, b| }`, - # all new code should set this attribute to true. - # - # If set to false (the default), arguments of `m { |a| }` are emitted as - # `s(:args, s(:arg, :a))`. - # - # If set to true, arguments of `m { |a| }` are emitted as - # `s(:args, s(:procarg0, :a)). - # - # @api public - # @return [Boolean] - # # source://parser//lib/parser/builders/default.rb#40 def emit_procarg0=(_arg0); end - # @api private - # # source://parser//lib/parser/builders/default.rb#211 def modernize; end end @@ -2375,11 +1548,8 @@ class Parser::ClobberingError < ::RuntimeError; end # + :block - in the block body (tap {}) # + :lambda - in the lambda body (-> {}) # -# @api public -# # source://parser//lib/parser/context.rb#18 class Parser::Context - # @api public # @return [Context] a new instance of Context # # source://parser//lib/parser/context.rb#29 @@ -2415,7 +1585,6 @@ class Parser::Context # source://parser//lib/parser/context.rb#43 def in_defined=(_arg0); end - # @api public # @return [Boolean] # # source://parser//lib/parser/context.rb#45 @@ -2433,14 +1602,10 @@ class Parser::Context # source://parser//lib/parser/context.rb#43 def in_lambda=(_arg0); end - # @api public - # # source://parser//lib/parser/context.rb#33 def reset; end end -# @api public -# # source://parser//lib/parser/context.rb#19 Parser::Context::FLAGS = T.let(T.unsafe(nil), Array) @@ -2499,9 +1664,6 @@ class Parser::CurrentArgStack def top; end end -# source://parser//lib/parser/current.rb#84 -Parser::CurrentRuby = Parser::Ruby27 - # @api private # # source://parser//lib/parser/deprecation.rb#7 @@ -2736,11 +1898,8 @@ Parser::Diagnostic::LEVELS = T.let(T.unsafe(nil), Array) # # NoMethodError: undefined method `ord' for nil:NilClass # -# @api public -# # source://parser//lib/parser/lexer-F1.rb#82 class Parser::Lexer - # @api public # @return [Lexer] a new instance of Lexer # # source://parser//lib/parser/lexer-F1.rb#8250 @@ -2748,560 +1907,567 @@ class Parser::Lexer # Return next token: [type, value]. # - # @api public - # # source://parser//lib/parser/lexer-F1.rb#8410 def advance; end - # @api public + # Returns the value of attribute cmdarg. # # source://parser//lib/parser/lexer-F1.rb#8244 def cmdarg; end - # @api public + # Sets the attribute cmdarg + # + # @param value the value to set the attribute cmdarg to. # # source://parser//lib/parser/lexer-F1.rb#8244 def cmdarg=(_arg0); end - # @api public + # Returns the value of attribute cmdarg_stack. # # source://parser//lib/parser/lexer-F1.rb#8248 def cmdarg_stack; end - # @api public + # Returns the value of attribute command_start. # # source://parser//lib/parser/lexer-F1.rb#8244 def command_start; end - # @api public + # Sets the attribute command_start + # + # @param value the value to set the attribute command_start to. # # source://parser//lib/parser/lexer-F1.rb#8244 def command_start=(_arg0); end - # @api public + # Returns the value of attribute comments. # # source://parser//lib/parser/lexer-F1.rb#8246 def comments; end - # @api public + # Sets the attribute comments + # + # @param value the value to set the attribute comments to. # # source://parser//lib/parser/lexer-F1.rb#8246 def comments=(_arg0); end - # @api public + # Returns the value of attribute cond. # # source://parser//lib/parser/lexer-F1.rb#8244 def cond; end - # @api public + # Sets the attribute cond + # + # @param value the value to set the attribute cond to. # # source://parser//lib/parser/lexer-F1.rb#8244 def cond=(_arg0); end - # @api public + # Returns the value of attribute cond_stack. # # source://parser//lib/parser/lexer-F1.rb#8248 def cond_stack; end - # @api public + # Returns the value of attribute context. # # source://parser//lib/parser/lexer-F1.rb#8244 def context; end - # @api public + # Sets the attribute context + # + # @param value the value to set the attribute context to. # # source://parser//lib/parser/lexer-F1.rb#8244 def context=(_arg0); end - # @api public - # # source://parser//lib/parser/lexer-F1.rb#8405 def dedent_level; end - # @api public + # Returns the value of attribute diagnostics. # # source://parser//lib/parser/lexer-F1.rb#8240 def diagnostics; end - # @api public + # Sets the attribute diagnostics + # + # @param value the value to set the attribute diagnostics to. # # source://parser//lib/parser/lexer-F1.rb#8240 def diagnostics=(_arg0); end - # @api public - # # source://parser//lib/parser/lexer-F1.rb#8358 def encoding; end - # @api public + # Returns the value of attribute force_utf32. # # source://parser//lib/parser/lexer-F1.rb#8242 def force_utf32; end - # @api public + # Sets the attribute force_utf32 + # + # @param value the value to set the attribute force_utf32 to. # # source://parser//lib/parser/lexer-F1.rb#8242 def force_utf32=(_arg0); end - # @api public + # Returns the value of attribute lambda_stack. # # source://parser//lib/parser/lexer-F1.rb#8248 def lambda_stack; end - # @api public + # Returns the value of attribute paren_nest. # # source://parser//lib/parser/lexer-F1.rb#8248 def paren_nest; end - # @api public - # # source://parser//lib/parser/lexer-F1.rb#8392 def pop_cmdarg; end - # @api public - # # source://parser//lib/parser/lexer-F1.rb#8401 def pop_cond; end - # @api public - # # source://parser//lib/parser/lexer-F1.rb#8387 def push_cmdarg; end - # @api public - # # source://parser//lib/parser/lexer-F1.rb#8396 def push_cond; end - # @api public - # # source://parser//lib/parser/lexer-F1.rb#8281 def reset(reset_state = T.unsafe(nil)); end # % # - # @api public - # # source://parser//lib/parser/lexer-F1.rb#8238 def source_buffer; end - # @api public - # # source://parser//lib/parser/lexer-F1.rb#8334 def source_buffer=(source_buffer); end - # @api public - # # source://parser//lib/parser/lexer-F1.rb#8379 def state; end - # @api public - # # source://parser//lib/parser/lexer-F1.rb#8383 def state=(state); end - # @api public + # Returns the value of attribute static_env. # # source://parser//lib/parser/lexer-F1.rb#8241 def static_env; end - # @api public + # Sets the attribute static_env + # + # @param value the value to set the attribute static_env to. # # source://parser//lib/parser/lexer-F1.rb#8241 def static_env=(_arg0); end - # @api public + # Returns the value of attribute tokens. # # source://parser//lib/parser/lexer-F1.rb#8246 def tokens; end - # @api public + # Sets the attribute tokens + # + # @param value the value to set the attribute tokens to. # # source://parser//lib/parser/lexer-F1.rb#8246 def tokens=(_arg0); end - # @api public + # Returns the value of attribute version. # # source://parser//lib/parser/lexer-F1.rb#8248 def version; end protected - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14631 + # source://parser//lib/parser/lexer-F1.rb#14692 def arg_or_cmdarg(cmd_state); end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14693 + # source://parser//lib/parser/lexer-F1.rb#14754 def check_ambiguous_slash(tm); end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14655 + # source://parser//lib/parser/lexer-F1.rb#14716 def diagnostic(type, reason, arguments = T.unsafe(nil), location = T.unsafe(nil), highlights = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14661 + # source://parser//lib/parser/lexer-F1.rb#14722 def e_lbrace; end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14605 + # source://parser//lib/parser/lexer-F1.rb#14666 def emit(type, value = T.unsafe(nil), s = T.unsafe(nil), e = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14714 + # source://parser//lib/parser/lexer-F1.rb#14775 def emit_class_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14742 + # source://parser//lib/parser/lexer-F1.rb#14803 def emit_colon_with_digits(p, tm, diag_msg); end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14639 + # source://parser//lib/parser/lexer-F1.rb#14700 def emit_comment(s = T.unsafe(nil), e = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14651 + # source://parser//lib/parser/lexer-F1.rb#14712 def emit_comment_from_range(p, pe); end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14621 + # source://parser//lib/parser/lexer-F1.rb#14682 def emit_do(do_block = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14704 + # source://parser//lib/parser/lexer-F1.rb#14765 def emit_global_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14722 + # source://parser//lib/parser/lexer-F1.rb#14783 def emit_instance_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14730 + # source://parser//lib/parser/lexer-F1.rb#14791 def emit_rbrace_rparen_rbrack; end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14752 + # source://parser//lib/parser/lexer-F1.rb#14813 def emit_singleton_class; end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14615 + # source://parser//lib/parser/lexer-F1.rb#14676 def emit_table(table, s = T.unsafe(nil), e = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14670 + # source://parser//lib/parser/lexer-F1.rb#14731 def numeric_literal_int; end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14689 + # source://parser//lib/parser/lexer-F1.rb#14750 def on_newline(p); end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14601 + # source://parser//lib/parser/lexer-F1.rb#14662 def range(s = T.unsafe(nil), e = T.unsafe(nil)); end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14592 + # source://parser//lib/parser/lexer-F1.rb#14653 def stack_pop; end - # @api public - # - # source://parser//lib/parser/lexer-F1.rb#14597 + # source://parser//lib/parser/lexer-F1.rb#14658 def tok(s = T.unsafe(nil), e = T.unsafe(nil)); end - # @api public # @return [Boolean] # - # source://parser//lib/parser/lexer-F1.rb#14588 + # source://parser//lib/parser/lexer-F1.rb#14649 def version?(*versions); end class << self - # @api public + # Returns the value of attribute lex_en_expr_arg. # # source://parser//lib/parser/lexer-F1.rb#8186 def lex_en_expr_arg; end - # @api public + # Sets the attribute lex_en_expr_arg + # + # @param value the value to set the attribute lex_en_expr_arg to. # # source://parser//lib/parser/lexer-F1.rb#8186 def lex_en_expr_arg=(_arg0); end - # @api public + # Returns the value of attribute lex_en_expr_beg. # # source://parser//lib/parser/lexer-F1.rb#8202 def lex_en_expr_beg; end - # @api public + # Sets the attribute lex_en_expr_beg + # + # @param value the value to set the attribute lex_en_expr_beg to. # # source://parser//lib/parser/lexer-F1.rb#8202 def lex_en_expr_beg=(_arg0); end - # @api public + # Returns the value of attribute lex_en_expr_cmdarg. # # source://parser//lib/parser/lexer-F1.rb#8190 def lex_en_expr_cmdarg; end - # @api public + # Sets the attribute lex_en_expr_cmdarg + # + # @param value the value to set the attribute lex_en_expr_cmdarg to. # # source://parser//lib/parser/lexer-F1.rb#8190 def lex_en_expr_cmdarg=(_arg0); end - # @api public + # Returns the value of attribute lex_en_expr_dot. # # source://parser//lib/parser/lexer-F1.rb#8182 def lex_en_expr_dot; end - # @api public + # Sets the attribute lex_en_expr_dot + # + # @param value the value to set the attribute lex_en_expr_dot to. # # source://parser//lib/parser/lexer-F1.rb#8182 def lex_en_expr_dot=(_arg0); end - # @api public + # Returns the value of attribute lex_en_expr_end. # # source://parser//lib/parser/lexer-F1.rb#8214 def lex_en_expr_end; end - # @api public + # Sets the attribute lex_en_expr_end + # + # @param value the value to set the attribute lex_en_expr_end to. # # source://parser//lib/parser/lexer-F1.rb#8214 def lex_en_expr_end=(_arg0); end - # @api public + # Returns the value of attribute lex_en_expr_endarg. # # source://parser//lib/parser/lexer-F1.rb#8194 def lex_en_expr_endarg; end - # @api public + # Sets the attribute lex_en_expr_endarg + # + # @param value the value to set the attribute lex_en_expr_endarg to. # # source://parser//lib/parser/lexer-F1.rb#8194 def lex_en_expr_endarg=(_arg0); end - # @api public + # Returns the value of attribute lex_en_expr_endfn. # # source://parser//lib/parser/lexer-F1.rb#8178 def lex_en_expr_endfn; end - # @api public + # Sets the attribute lex_en_expr_endfn + # + # @param value the value to set the attribute lex_en_expr_endfn to. # # source://parser//lib/parser/lexer-F1.rb#8178 def lex_en_expr_endfn=(_arg0); end - # @api public + # Returns the value of attribute lex_en_expr_fname. # # source://parser//lib/parser/lexer-F1.rb#8174 def lex_en_expr_fname; end - # @api public + # Sets the attribute lex_en_expr_fname + # + # @param value the value to set the attribute lex_en_expr_fname to. # # source://parser//lib/parser/lexer-F1.rb#8174 def lex_en_expr_fname=(_arg0); end - # @api public + # Returns the value of attribute lex_en_expr_labelarg. # # source://parser//lib/parser/lexer-F1.rb#8206 def lex_en_expr_labelarg; end - # @api public + # Sets the attribute lex_en_expr_labelarg + # + # @param value the value to set the attribute lex_en_expr_labelarg to. # # source://parser//lib/parser/lexer-F1.rb#8206 def lex_en_expr_labelarg=(_arg0); end - # @api public + # Returns the value of attribute lex_en_expr_mid. # # source://parser//lib/parser/lexer-F1.rb#8198 def lex_en_expr_mid; end - # @api public + # Sets the attribute lex_en_expr_mid + # + # @param value the value to set the attribute lex_en_expr_mid to. # # source://parser//lib/parser/lexer-F1.rb#8198 def lex_en_expr_mid=(_arg0); end - # @api public + # Returns the value of attribute lex_en_expr_value. # # source://parser//lib/parser/lexer-F1.rb#8210 def lex_en_expr_value; end - # @api public + # Sets the attribute lex_en_expr_value + # + # @param value the value to set the attribute lex_en_expr_value to. # # source://parser//lib/parser/lexer-F1.rb#8210 def lex_en_expr_value=(_arg0); end - # @api public + # Returns the value of attribute lex_en_expr_variable. # # source://parser//lib/parser/lexer-F1.rb#8170 def lex_en_expr_variable; end - # @api public + # Sets the attribute lex_en_expr_variable + # + # @param value the value to set the attribute lex_en_expr_variable to. # # source://parser//lib/parser/lexer-F1.rb#8170 def lex_en_expr_variable=(_arg0); end - # @api public + # Returns the value of attribute lex_en_inside_string. # # source://parser//lib/parser/lexer-F1.rb#8230 def lex_en_inside_string; end - # @api public + # Sets the attribute lex_en_inside_string + # + # @param value the value to set the attribute lex_en_inside_string to. # # source://parser//lib/parser/lexer-F1.rb#8230 def lex_en_inside_string=(_arg0); end - # @api public + # Returns the value of attribute lex_en_leading_dot. # # source://parser//lib/parser/lexer-F1.rb#8218 def lex_en_leading_dot; end - # @api public + # Sets the attribute lex_en_leading_dot + # + # @param value the value to set the attribute lex_en_leading_dot to. # # source://parser//lib/parser/lexer-F1.rb#8218 def lex_en_leading_dot=(_arg0); end - # @api public + # Returns the value of attribute lex_en_line_begin. # # source://parser//lib/parser/lexer-F1.rb#8226 def lex_en_line_begin; end - # @api public + # Sets the attribute lex_en_line_begin + # + # @param value the value to set the attribute lex_en_line_begin to. # # source://parser//lib/parser/lexer-F1.rb#8226 def lex_en_line_begin=(_arg0); end - # @api public + # Returns the value of attribute lex_en_line_comment. # # source://parser//lib/parser/lexer-F1.rb#8222 def lex_en_line_comment; end - # @api public + # Sets the attribute lex_en_line_comment + # + # @param value the value to set the attribute lex_en_line_comment to. # # source://parser//lib/parser/lexer-F1.rb#8222 def lex_en_line_comment=(_arg0); end - # @api public + # Returns the value of attribute lex_error. # # source://parser//lib/parser/lexer-F1.rb#8165 def lex_error; end - # @api public + # Sets the attribute lex_error + # + # @param value the value to set the attribute lex_error to. # # source://parser//lib/parser/lexer-F1.rb#8165 def lex_error=(_arg0); end - # @api public + # Returns the value of attribute lex_start. # # source://parser//lib/parser/lexer-F1.rb#8161 def lex_start; end - # @api public + # Sets the attribute lex_start + # + # @param value the value to set the attribute lex_start to. # # source://parser//lib/parser/lexer-F1.rb#8161 def lex_start=(_arg0); end private - # @api public + # Returns the value of attribute _lex_eof_trans. # # source://parser//lib/parser/lexer-F1.rb#8064 def _lex_eof_trans; end - # @api public + # Sets the attribute _lex_eof_trans + # + # @param value the value to set the attribute _lex_eof_trans to. # # source://parser//lib/parser/lexer-F1.rb#8064 def _lex_eof_trans=(_arg0); end - # @api public + # Returns the value of attribute _lex_from_state_actions. # # source://parser//lib/parser/lexer-F1.rb#7967 def _lex_from_state_actions; end - # @api public + # Sets the attribute _lex_from_state_actions + # + # @param value the value to set the attribute _lex_from_state_actions to. # # source://parser//lib/parser/lexer-F1.rb#7967 def _lex_from_state_actions=(_arg0); end - # @api public + # Returns the value of attribute _lex_index_offsets. # # source://parser//lib/parser/lexer-F1.rb#461 def _lex_index_offsets; end - # @api public + # Sets the attribute _lex_index_offsets + # + # @param value the value to set the attribute _lex_index_offsets to. # # source://parser//lib/parser/lexer-F1.rb#461 def _lex_index_offsets=(_arg0); end - # @api public + # Returns the value of attribute _lex_indicies. # # source://parser//lib/parser/lexer-F1.rb#558 def _lex_indicies; end - # @api public + # Sets the attribute _lex_indicies + # + # @param value the value to set the attribute _lex_indicies to. # # source://parser//lib/parser/lexer-F1.rb#558 def _lex_indicies=(_arg0); end - # @api public + # Returns the value of attribute _lex_key_spans. # # source://parser//lib/parser/lexer-F1.rb#364 def _lex_key_spans; end - # @api public + # Sets the attribute _lex_key_spans + # + # @param value the value to set the attribute _lex_key_spans to. # # source://parser//lib/parser/lexer-F1.rb#364 def _lex_key_spans=(_arg0); end - # @api public + # Returns the value of attribute _lex_to_state_actions. # # source://parser//lib/parser/lexer-F1.rb#7870 def _lex_to_state_actions; end - # @api public + # Sets the attribute _lex_to_state_actions + # + # @param value the value to set the attribute _lex_to_state_actions to. # # source://parser//lib/parser/lexer-F1.rb#7870 def _lex_to_state_actions=(_arg0); end - # @api public + # Returns the value of attribute _lex_trans_actions. # # source://parser//lib/parser/lexer-F1.rb#7722 def _lex_trans_actions; end - # @api public + # Sets the attribute _lex_trans_actions + # + # @param value the value to set the attribute _lex_trans_actions to. # # source://parser//lib/parser/lexer-F1.rb#7722 def _lex_trans_actions=(_arg0); end - # @api public + # Returns the value of attribute _lex_trans_keys. # # source://parser//lib/parser/lexer-F1.rb#87 def _lex_trans_keys; end - # @api public + # Sets the attribute _lex_trans_keys + # + # @param value the value to set the attribute _lex_trans_keys to. # # source://parser//lib/parser/lexer-F1.rb#87 def _lex_trans_keys=(_arg0); end - # @api public + # Returns the value of attribute _lex_trans_targs. # # source://parser//lib/parser/lexer-F1.rb#7574 def _lex_trans_targs; end - # @api public + # Sets the attribute _lex_trans_targs + # + # @param value the value to set the attribute _lex_trans_targs to. # # source://parser//lib/parser/lexer-F1.rb#7574 def _lex_trans_targs=(_arg0); end @@ -3323,134 +2489,128 @@ end # source://parser//lib/parser/lexer/dedenter.rb#7 Parser::Lexer::Dedenter::TAB_WIDTH = T.let(T.unsafe(nil), Integer) -# @api public -# -# source://parser//lib/parser/lexer-F1.rb#14799 +# source://parser//lib/parser/lexer-F1.rb#14860 Parser::Lexer::ESCAPE_WHITESPACE = T.let(T.unsafe(nil), Hash) -# @api public -# -# source://parser//lib/parser/lexer-F1.rb#14785 +# source://parser//lib/parser/lexer-F1.rb#14846 Parser::Lexer::KEYWORDS = T.let(T.unsafe(nil), Hash) -# @api public -# -# source://parser//lib/parser/lexer-F1.rb#14792 +# source://parser//lib/parser/lexer-F1.rb#14853 Parser::Lexer::KEYWORDS_BEGIN = T.let(T.unsafe(nil), Hash) -# @api public -# # source://parser//lib/parser/lexer-F1.rb#8362 Parser::Lexer::LEX_STATES = T.let(T.unsafe(nil), Hash) # source://parser//lib/parser/lexer/literal.rb#6 class Parser::Lexer::Literal - # source://parser//lib/parser/lexer/literal.rb#40 + # source://parser//lib/parser/lexer/literal.rb#42 def initialize(lexer, str_type, delimiter, str_s, heredoc_e = T.unsafe(nil), indent = T.unsafe(nil), dedent_body = T.unsafe(nil), label_allowed = T.unsafe(nil)); end - # source://parser//lib/parser/lexer/literal.rb#114 + # source://parser//lib/parser/lexer/literal.rb#116 def backslash_delimited?; end - # source://parser//lib/parser/lexer/literal.rb#37 + # source://parser//lib/parser/lexer/literal.rb#39 def dedent_level; end - # source://parser//lib/parser/lexer/literal.rb#189 + # source://parser//lib/parser/lexer/literal.rb#191 def end_interp_brace_and_try_closing; end - # source://parser//lib/parser/lexer/literal.rb#216 + # source://parser//lib/parser/lexer/literal.rb#218 def extend_content; end - # source://parser//lib/parser/lexer/literal.rb#220 + # source://parser//lib/parser/lexer/literal.rb#222 def extend_space(ts, te); end - # source://parser//lib/parser/lexer/literal.rb#195 + # source://parser//lib/parser/lexer/literal.rb#197 def extend_string(string, ts, te); end - # source://parser//lib/parser/lexer/literal.rb#202 + # source://parser//lib/parser/lexer/literal.rb#204 def flush_string; end - # source://parser//lib/parser/lexer/literal.rb#102 + # source://parser//lib/parser/lexer/literal.rb#104 def heredoc?; end - # source://parser//lib/parser/lexer/literal.rb#37 + # source://parser//lib/parser/lexer/literal.rb#39 def heredoc_e; end - # source://parser//lib/parser/lexer/literal.rb#166 + # source://parser//lib/parser/lexer/literal.rb#168 def infer_indent_level(line); end - # source://parser//lib/parser/lexer/literal.rb#89 + # source://parser//lib/parser/lexer/literal.rb#91 def interpolate?; end - # source://parser//lib/parser/lexer/literal.rb#122 + # source://parser//lib/parser/lexer/literal.rb#124 def munge_escape?(character); end - # source://parser//lib/parser/lexer/literal.rb#132 + # source://parser//lib/parser/lexer/literal.rb#134 def nest_and_try_closing(delimiter, ts, te, lookahead = T.unsafe(nil)); end - # source://parser//lib/parser/lexer/literal.rb#106 + # source://parser//lib/parser/lexer/literal.rb#108 def plain_heredoc?; end - # source://parser//lib/parser/lexer/literal.rb#98 + # source://parser//lib/parser/lexer/literal.rb#100 def regexp?; end - # source://parser//lib/parser/lexer/literal.rb#38 + # source://parser//lib/parser/lexer/literal.rb#40 def saved_herebody_s; end - # source://parser//lib/parser/lexer/literal.rb#38 + # source://parser//lib/parser/lexer/literal.rb#40 def saved_herebody_s=(_arg0); end - # source://parser//lib/parser/lexer/literal.rb#110 + # source://parser//lib/parser/lexer/literal.rb#112 def squiggly_heredoc?; end - # source://parser//lib/parser/lexer/literal.rb#185 + # source://parser//lib/parser/lexer/literal.rb#187 def start_interp_brace; end - # source://parser//lib/parser/lexer/literal.rb#37 + # source://parser//lib/parser/lexer/literal.rb#39 def str_s; end - # source://parser//lib/parser/lexer/literal.rb#230 + # source://parser//lib/parser/lexer/literal.rb#232 def supports_line_continuation_via_slash?; end - # source://parser//lib/parser/lexer/literal.rb#118 + # source://parser//lib/parser/lexer/literal.rb#120 def type; end - # source://parser//lib/parser/lexer/literal.rb#93 + # source://parser//lib/parser/lexer/literal.rb#95 def words?; end protected - # source://parser//lib/parser/lexer/literal.rb#248 + # source://parser//lib/parser/lexer/literal.rb#263 def clear_buffer; end - # source://parser//lib/parser/lexer/literal.rb#244 + # source://parser//lib/parser/lexer/literal.rb#259 def coerce_encoding(string); end - # source://parser//lib/parser/lexer/literal.rb#236 + # source://parser//lib/parser/lexer/literal.rb#238 def delimiter?(delimiter); end - # source://parser//lib/parser/lexer/literal.rb#264 + # source://parser//lib/parser/lexer/literal.rb#279 def emit(token, type, s, e); end - # source://parser//lib/parser/lexer/literal.rb#259 + # source://parser//lib/parser/lexer/literal.rb#274 def emit_start_tok; end end # source://parser//lib/parser/lexer/literal.rb#7 Parser::Lexer::Literal::DELIMITERS = T.let(T.unsafe(nil), Hash) +# source://parser//lib/parser/lexer/literal.rb#8 +Parser::Lexer::Literal::SPACE = T.let(T.unsafe(nil), Integer) + # source://parser//lib/parser/lexer/literal.rb#9 +Parser::Lexer::Literal::TAB = T.let(T.unsafe(nil), Integer) + +# source://parser//lib/parser/lexer/literal.rb#11 Parser::Lexer::Literal::TYPES = T.let(T.unsafe(nil), Hash) # Mapping of strings to parser tokens. # -# @api public -# -# source://parser//lib/parser/lexer-F1.rb#14759 +# source://parser//lib/parser/lexer-F1.rb#14820 Parser::Lexer::PUNCTUATION = T.let(T.unsafe(nil), Hash) -# @api public -# -# source://parser//lib/parser/lexer-F1.rb#14779 +# source://parser//lib/parser/lexer-F1.rb#14840 Parser::Lexer::PUNCTUATION_BEGIN = T.let(T.unsafe(nil), Hash) # source://parser//lib/parser/lexer/stack_state.rb#5 @@ -3485,3508 +2645,671 @@ end # line 3 "lib/parser/lexer-strings.rl" # -# @api public -# # source://parser//lib/parser/lexer-strings.rb#6 class Parser::LexerStrings - # @api public # @return [LexerStrings] a new instance of LexerStrings # # source://parser//lib/parser/lexer-strings.rb#3300 def initialize(lexer, version); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#3339 def advance(p); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5069 def close_interp_on_current_literal(p); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5043 def continue_lexing(current_literal); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5092 def dedent_level; end - # @api public + # Returns the value of attribute herebody_s. # # source://parser//lib/parser/lexer-strings.rb#3295 def herebody_s; end - # @api public + # Sets the attribute herebody_s + # + # @param value the value to set the attribute herebody_s to. # # source://parser//lib/parser/lexer-strings.rb#3295 def herebody_s=(_arg0); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5047 def literal; end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5015 def next_state_for_literal(literal); end # This hook is triggered by "main" lexer on every newline character # - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5100 def on_newline(p); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5051 def pop_literal; end # === LITERAL STACK === # - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5009 def push_literal(*args); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#4999 def read_character_constant(p); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#3314 def reset; end # Set by "main" lexer # - # @api public - # # source://parser//lib/parser/lexer-strings.rb#3298 def source_buffer; end # Set by "main" lexer # - # @api public - # # source://parser//lib/parser/lexer-strings.rb#3298 def source_buffer=(_arg0); end # Set by "main" lexer # - # @api public - # # source://parser//lib/parser/lexer-strings.rb#3298 def source_pts; end # Set by "main" lexer # - # @api public - # # source://parser//lib/parser/lexer-strings.rb#3298 def source_pts=(_arg0); end protected - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5397 def check_ambiguous_slash(tm); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5408 def check_invalid_escapes(p); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5136 def cond; end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5132 def diagnostic(type, reason, arguments = T.unsafe(nil), location = T.unsafe(nil), highlights = T.unsafe(nil)); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5128 def emit(type, value = T.unsafe(nil), s = T.unsafe(nil), e = T.unsafe(nil)); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5387 def emit_character_constant; end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5364 def emit_interp_var(interp_var_kind); end - # @api public # @return [Boolean] # # source://parser//lib/parser/lexer-strings.rb#5140 def emit_invalid_escapes?; end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5291 def encode_escape(ord); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5375 def encode_escaped_char(p); end - # @api public # @return [Boolean] # # source://parser//lib/parser/lexer-strings.rb#5112 def eof_codepoint?(point); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5210 def extend_interp_code(current_literal); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5225 def extend_interp_digit_var; end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5355 def extend_interp_var(current_literal); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5234 def extend_string_eol_check_eof(current_literal, pe); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5251 def extend_string_eol_heredoc_intertwined(p); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5241 def extend_string_eol_heredoc_line; end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5267 def extend_string_eol_words(current_literal, p); end # String escaping # - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5154 def extend_string_escaped; end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5287 def extend_string_for_token_range(current_literal, string); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5279 def extend_string_slice_end(lookahead); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5124 def range(s = T.unsafe(nil), e = T.unsafe(nil)); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5347 def read_post_meta_or_ctrl_char(p); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5379 def slash_c_char; end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5383 def slash_m_char; end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5120 def tok(s = T.unsafe(nil), e = T.unsafe(nil)); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5295 def unescape_char(p); end - # @api public - # # source://parser//lib/parser/lexer-strings.rb#5307 def unicode_points(p); end - # @api public # @return [Boolean] # # source://parser//lib/parser/lexer-strings.rb#5116 def version?(*versions); end class << self - # @api public + # Returns the value of attribute lex_en_character. # # source://parser//lib/parser/lexer-strings.rb#3275 def lex_en_character; end - # @api public + # Sets the attribute lex_en_character + # + # @param value the value to set the attribute lex_en_character to. # # source://parser//lib/parser/lexer-strings.rb#3275 def lex_en_character=(_arg0); end - # @api public + # Returns the value of attribute lex_en_interp_backslash_delimited. # # source://parser//lib/parser/lexer-strings.rb#3255 def lex_en_interp_backslash_delimited; end - # @api public + # Sets the attribute lex_en_interp_backslash_delimited + # + # @param value the value to set the attribute lex_en_interp_backslash_delimited to. # # source://parser//lib/parser/lexer-strings.rb#3255 def lex_en_interp_backslash_delimited=(_arg0); end - # @api public + # Returns the value of attribute lex_en_interp_backslash_delimited_words. # # source://parser//lib/parser/lexer-strings.rb#3263 def lex_en_interp_backslash_delimited_words; end - # @api public + # Sets the attribute lex_en_interp_backslash_delimited_words + # + # @param value the value to set the attribute lex_en_interp_backslash_delimited_words to. # # source://parser//lib/parser/lexer-strings.rb#3263 def lex_en_interp_backslash_delimited_words=(_arg0); end - # @api public + # Returns the value of attribute lex_en_interp_string. # # source://parser//lib/parser/lexer-strings.rb#3243 def lex_en_interp_string; end - # @api public + # Sets the attribute lex_en_interp_string + # + # @param value the value to set the attribute lex_en_interp_string to. # # source://parser//lib/parser/lexer-strings.rb#3243 def lex_en_interp_string=(_arg0); end - # @api public + # Returns the value of attribute lex_en_interp_words. # # source://parser//lib/parser/lexer-strings.rb#3239 def lex_en_interp_words; end - # @api public + # Sets the attribute lex_en_interp_words + # + # @param value the value to set the attribute lex_en_interp_words to. # # source://parser//lib/parser/lexer-strings.rb#3239 def lex_en_interp_words=(_arg0); end - # @api public + # Returns the value of attribute lex_en_plain_backslash_delimited. # # source://parser//lib/parser/lexer-strings.rb#3259 def lex_en_plain_backslash_delimited; end - # @api public + # Sets the attribute lex_en_plain_backslash_delimited + # + # @param value the value to set the attribute lex_en_plain_backslash_delimited to. # # source://parser//lib/parser/lexer-strings.rb#3259 def lex_en_plain_backslash_delimited=(_arg0); end - # @api public + # Returns the value of attribute lex_en_plain_backslash_delimited_words. # # source://parser//lib/parser/lexer-strings.rb#3267 def lex_en_plain_backslash_delimited_words; end - # @api public + # Sets the attribute lex_en_plain_backslash_delimited_words + # + # @param value the value to set the attribute lex_en_plain_backslash_delimited_words to. # # source://parser//lib/parser/lexer-strings.rb#3267 def lex_en_plain_backslash_delimited_words=(_arg0); end - # @api public + # Returns the value of attribute lex_en_plain_string. # # source://parser//lib/parser/lexer-strings.rb#3251 def lex_en_plain_string; end - # @api public + # Sets the attribute lex_en_plain_string + # + # @param value the value to set the attribute lex_en_plain_string to. # # source://parser//lib/parser/lexer-strings.rb#3251 def lex_en_plain_string=(_arg0); end - # @api public + # Returns the value of attribute lex_en_plain_words. # # source://parser//lib/parser/lexer-strings.rb#3247 def lex_en_plain_words; end - # @api public + # Sets the attribute lex_en_plain_words + # + # @param value the value to set the attribute lex_en_plain_words to. # # source://parser//lib/parser/lexer-strings.rb#3247 def lex_en_plain_words=(_arg0); end - # @api public + # Returns the value of attribute lex_en_regexp_modifiers. # # source://parser//lib/parser/lexer-strings.rb#3271 def lex_en_regexp_modifiers; end - # @api public + # Sets the attribute lex_en_regexp_modifiers + # + # @param value the value to set the attribute lex_en_regexp_modifiers to. # # source://parser//lib/parser/lexer-strings.rb#3271 def lex_en_regexp_modifiers=(_arg0); end - # @api public + # Returns the value of attribute lex_en_unknown. # # source://parser//lib/parser/lexer-strings.rb#3279 def lex_en_unknown; end - # @api public + # Sets the attribute lex_en_unknown + # + # @param value the value to set the attribute lex_en_unknown to. # # source://parser//lib/parser/lexer-strings.rb#3279 def lex_en_unknown=(_arg0); end - # @api public + # Returns the value of attribute lex_error. # # source://parser//lib/parser/lexer-strings.rb#3234 def lex_error; end - # @api public + # Sets the attribute lex_error + # + # @param value the value to set the attribute lex_error to. # # source://parser//lib/parser/lexer-strings.rb#3234 def lex_error=(_arg0); end - # @api public + # Returns the value of attribute lex_start. # # source://parser//lib/parser/lexer-strings.rb#3230 def lex_start; end - # @api public + # Sets the attribute lex_start + # + # @param value the value to set the attribute lex_start to. # # source://parser//lib/parser/lexer-strings.rb#3230 def lex_start=(_arg0); end private - # @api public + # Returns the value of attribute _lex_actions. # # source://parser//lib/parser/lexer-strings.rb#11 def _lex_actions; end - # @api public + # Sets the attribute _lex_actions + # + # @param value the value to set the attribute _lex_actions to. # # source://parser//lib/parser/lexer-strings.rb#11 def _lex_actions=(_arg0); end - # @api public + # Returns the value of attribute _lex_eof_trans. # # source://parser//lib/parser/lexer-strings.rb#3184 def _lex_eof_trans; end - # @api public + # Sets the attribute _lex_eof_trans + # + # @param value the value to set the attribute _lex_eof_trans to. # # source://parser//lib/parser/lexer-strings.rb#3184 def _lex_eof_trans=(_arg0); end - # @api public + # Returns the value of attribute _lex_from_state_actions. # # source://parser//lib/parser/lexer-strings.rb#3138 def _lex_from_state_actions; end - # @api public + # Sets the attribute _lex_from_state_actions + # + # @param value the value to set the attribute _lex_from_state_actions to. # # source://parser//lib/parser/lexer-strings.rb#3138 def _lex_from_state_actions=(_arg0); end - # @api public + # Returns the value of attribute _lex_index_offsets. # # source://parser//lib/parser/lexer-strings.rb#244 def _lex_index_offsets; end - # @api public + # Sets the attribute _lex_index_offsets + # + # @param value the value to set the attribute _lex_index_offsets to. # # source://parser//lib/parser/lexer-strings.rb#244 def _lex_index_offsets=(_arg0); end - # @api public + # Returns the value of attribute _lex_indicies. # # source://parser//lib/parser/lexer-strings.rb#290 def _lex_indicies; end - # @api public + # Sets the attribute _lex_indicies + # + # @param value the value to set the attribute _lex_indicies to. # # source://parser//lib/parser/lexer-strings.rb#290 def _lex_indicies=(_arg0); end - # @api public + # Returns the value of attribute _lex_key_spans. # # source://parser//lib/parser/lexer-strings.rb#198 def _lex_key_spans; end - # @api public + # Sets the attribute _lex_key_spans + # + # @param value the value to set the attribute _lex_key_spans to. # # source://parser//lib/parser/lexer-strings.rb#198 def _lex_key_spans=(_arg0); end - # @api public + # Returns the value of attribute _lex_to_state_actions. # # source://parser//lib/parser/lexer-strings.rb#3092 def _lex_to_state_actions; end - # @api public + # Sets the attribute _lex_to_state_actions + # + # @param value the value to set the attribute _lex_to_state_actions to. # # source://parser//lib/parser/lexer-strings.rb#3092 def _lex_to_state_actions=(_arg0); end - # @api public + # Returns the value of attribute _lex_trans_actions. # # source://parser//lib/parser/lexer-strings.rb#3029 def _lex_trans_actions; end - # @api public + # Sets the attribute _lex_trans_actions + # + # @param value the value to set the attribute _lex_trans_actions to. # # source://parser//lib/parser/lexer-strings.rb#3029 def _lex_trans_actions=(_arg0); end - # @api public + # Returns the value of attribute _lex_trans_keys. # # source://parser//lib/parser/lexer-strings.rb#76 def _lex_trans_keys; end - # @api public - # - # source://parser//lib/parser/lexer-strings.rb#76 - def _lex_trans_keys=(_arg0); end - - # @api public + # Sets the attribute _lex_trans_keys # - # source://parser//lib/parser/lexer-strings.rb#2966 - def _lex_trans_targs; end - - # @api public + # @param value the value to set the attribute _lex_trans_keys to. # - # source://parser//lib/parser/lexer-strings.rb#2966 - def _lex_trans_targs=(_arg0); end - end -end - -# % -# -# @api public -# -# source://parser//lib/parser/lexer-strings.rb#3287 -Parser::LexerStrings::ESCAPES = T.let(T.unsafe(nil), Hash) - -# @api public -# -# source://parser//lib/parser/lexer-strings.rb#5414 -Parser::LexerStrings::ESCAPE_WHITESPACE = T.let(T.unsafe(nil), Hash) - -# @api public -# -# source://parser//lib/parser/lexer-strings.rb#3332 -Parser::LexerStrings::LEX_STATES = T.let(T.unsafe(nil), Hash) - -# @api public -# -# source://parser//lib/parser/lexer-strings.rb#3293 -Parser::LexerStrings::REGEXP_META_CHARACTERS = T.let(T.unsafe(nil), Regexp) - -# Diagnostic messages (errors, warnings and notices) that can be generated. -# -# @api public -# @see Diagnostic -# -# source://parser//lib/parser/messages.rb#11 -Parser::MESSAGES = T.let(T.unsafe(nil), Hash) - -# Holds p->max_numparam from parse.y -# -# @api private -# -# source://parser//lib/parser/max_numparam_stack.rb#8 -class Parser::MaxNumparamStack - # @api private - # @return [MaxNumparamStack] a new instance of MaxNumparamStack - # - # source://parser//lib/parser/max_numparam_stack.rb#13 - def initialize; end - - # @api private - # @return [Boolean] - # - # source://parser//lib/parser/max_numparam_stack.rb#17 - def empty?; end - - # @api private - # @return [Boolean] - # - # source://parser//lib/parser/max_numparam_stack.rb#29 - def has_numparams?; end - - # @api private - # - # source://parser//lib/parser/max_numparam_stack.rb#21 - def has_ordinary_params!; end - - # @api private - # @return [Boolean] - # - # source://parser//lib/parser/max_numparam_stack.rb#25 - def has_ordinary_params?; end - - # @api private - # - # source://parser//lib/parser/max_numparam_stack.rb#45 - def pop; end - - # @api private - # - # source://parser//lib/parser/max_numparam_stack.rb#41 - def push(static:); end - - # @api private - # - # source://parser//lib/parser/max_numparam_stack.rb#33 - def register(numparam); end - - # @api private - # - # source://parser//lib/parser/max_numparam_stack.rb#9 - def stack; end - - # @api private - # - # source://parser//lib/parser/max_numparam_stack.rb#37 - def top; end - - private - - # @api private - # - # source://parser//lib/parser/max_numparam_stack.rb#51 - def set(value); end -end - -# @api private -# -# source://parser//lib/parser/max_numparam_stack.rb#11 -Parser::MaxNumparamStack::ORDINARY_PARAMS = T.let(T.unsafe(nil), Integer) - -# @api private -# -# source://parser//lib/parser/messages.rb#107 -module Parser::Messages - class << self - # Formats the message, returns a raw template if there's nothing to interpolate - # - # Code like `format("", {})` gives a warning, and so this method tries interpolating - # only if `arguments` hash is not empty. - # - # @api private - # - # source://parser//lib/parser/messages.rb#114 - def compile(reason, arguments); end - end -end - -# Parser metadata -# -# @api public -# -# source://parser//lib/parser/meta.rb#5 -module Parser::Meta; end - -# All node types that parser can produce. Not all parser versions -# will be able to produce every possible node. -# -# @api public -# -# source://parser//lib/parser/meta.rb#9 -Parser::Meta::NODE_TYPES = T.let(T.unsafe(nil), Set) - -# {Parser::Rewriter} is deprecated. Use {Parser::TreeRewriter} instead. -# It has a backwards compatible API and uses {Parser::Source::TreeRewriter} -# instead of {Parser::Source::Rewriter}. -# Please check the documentation for {Parser::Source::Rewriter} for details. -# -# @api public -# @deprecated Use {Parser::TreeRewriter} -# -# source://parser//lib/parser/rewriter.rb#22 -class Parser::Rewriter < ::Parser::AST::Processor - extend ::Parser::Deprecation - - # @api public - # @return [Rewriter] a new instance of Rewriter - # - # source://parser//lib/parser/rewriter.rb#98 - def initialize(*_arg0); end - - # Returns `true` if the specified node is an assignment node, returns false - # otherwise. - # - # @api public - # @param node [Parser::AST::Node] - # @return [Boolean] - # - # source://parser//lib/parser/rewriter.rb#38 - def assignment?(node); end - - # Inserts new code after the given source range. - # - # @api public - # @param range [Parser::Source::Range] - # @param content [String] - # - # source://parser//lib/parser/rewriter.rb#77 - def insert_after(range, content); end - - # Inserts new code before the given source range. - # - # @api public - # @param range [Parser::Source::Range] - # @param content [String] - # - # source://parser//lib/parser/rewriter.rb#67 - def insert_before(range, content); end - - # Removes the source range. - # - # @api public - # @param range [Parser::Source::Range] - # - # source://parser//lib/parser/rewriter.rb#47 - def remove(range); end - - # Replaces the code of the source range `range` with `content`. - # - # @api public - # @param range [Parser::Source::Range] - # @param content [String] - # - # source://parser//lib/parser/rewriter.rb#87 - def replace(range, content); end - - # Rewrites the AST/source buffer and returns a String containing the new - # version. - # - # @api public - # @param source_buffer [Parser::Source::Buffer] - # @param ast [Parser::AST::Node] - # @return [String] - # - # source://parser//lib/parser/rewriter.rb#23 - def rewrite(source_buffer, ast); end - - # Wraps the given source range with the given values. - # - # @api public - # @param range [Parser::Source::Range] - # @param content [String] - # - # source://parser//lib/parser/rewriter.rb#57 - def wrap(range, before, after); end -end - -# @api public -# -# source://parser//lib/parser/rewriter.rb#91 -Parser::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) - -# @api public -# -# source://parser//lib/parser/ruby27.rb#14 -class Parser::Ruby27 < ::Parser::Base - # reduce 0 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#7908 - def _reduce_1(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#7962 - def _reduce_10(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8538 - def _reduce_100(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8548 - def _reduce_101(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8554 - def _reduce_102(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8564 - def _reduce_103(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8571 - def _reduce_104(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8578 - def _reduce_105(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8584 - def _reduce_106(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8590 - def _reduce_107(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8596 - def _reduce_108(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8602 - def _reduce_109(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#7968 - def _reduce_11(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8608 - def _reduce_110(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8614 - def _reduce_111(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8620 - def _reduce_112(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8627 - def _reduce_113(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8634 - def _reduce_114(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8640 - def _reduce_115(val, _values, result); end - - # reduce 116 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#8648 - def _reduce_117(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8654 - def _reduce_118(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8660 - def _reduce_119(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#7985 - def _reduce_12(val, _values, result); end - - # reduce 124 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#8676 - def _reduce_125(val, _values, result); end - - # reduce 126 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#8684 - def _reduce_127(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8690 - def _reduce_128(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8696 - def _reduce_129(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#7991 - def _reduce_13(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#7997 - def _reduce_14(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8003 - def _reduce_15(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8009 - def _reduce_16(val, _values, result); end - - # reduce 17 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#8017 - def _reduce_18(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8023 - def _reduce_19(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#7915 - def _reduce_2(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8029 - def _reduce_20(val, _values, result); end - - # reduce 200 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#8844 - def _reduce_201(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8850 - def _reduce_202(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8856 - def _reduce_203(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8865 - def _reduce_204(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8874 - def _reduce_205(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8883 - def _reduce_206(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8892 - def _reduce_207(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8900 - def _reduce_208(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8908 - def _reduce_209(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8035 - def _reduce_21(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8914 - def _reduce_210(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8920 - def _reduce_211(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8926 - def _reduce_212(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8932 - def _reduce_213(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8938 - def _reduce_214(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8944 - def _reduce_215(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8950 - def _reduce_216(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8956 - def _reduce_217(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8962 - def _reduce_218(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8968 - def _reduce_219(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8043 - def _reduce_22(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8974 - def _reduce_220(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8980 - def _reduce_221(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8986 - def _reduce_222(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8994 - def _reduce_223(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9000 - def _reduce_224(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9006 - def _reduce_225(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9012 - def _reduce_226(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9018 - def _reduce_227(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9024 - def _reduce_228(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8051 - def _reduce_23(val, _values, result); end - - # reduce 229 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#9032 - def _reduce_230(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9038 - def _reduce_231(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9044 - def _reduce_232(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9050 - def _reduce_233(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9056 - def _reduce_234(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9062 - def _reduce_235(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9068 - def _reduce_236(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9074 - def _reduce_237(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9080 - def _reduce_238(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9086 - def _reduce_239(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8057 - def _reduce_24(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9092 - def _reduce_240(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9098 - def _reduce_241(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9104 - def _reduce_242(val, _values, result); end - - # reduce 247 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#9121 - def _reduce_248(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9127 - def _reduce_249(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8063 - def _reduce_25(val, _values, result); end - - # reduce 252 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#9139 - def _reduce_253(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9145 - def _reduce_254(val, _values, result); end - - # reduce 255 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#9153 - def _reduce_256(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9163 - def _reduce_257(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9169 - def _reduce_258(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9179 - def _reduce_259(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8070 - def _reduce_26(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9189 - def _reduce_260(val, _values, result); end - - # reduce 261 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#9197 - def _reduce_262(val, _values, result); end - - # reduce 264 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#9207 - def _reduce_265(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9213 - def _reduce_266(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9219 - def _reduce_267(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9225 - def _reduce_268(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9231 - def _reduce_269(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8077 - def _reduce_27(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9238 - def _reduce_270(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9246 - def _reduce_271(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9252 - def _reduce_272(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9279 - def _reduce_273(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9300 - def _reduce_274(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9306 - def _reduce_275(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9312 - def _reduce_276(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9318 - def _reduce_277(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9324 - def _reduce_278(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9330 - def _reduce_279(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8083 - def _reduce_28(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9336 - def _reduce_280(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9342 - def _reduce_281(val, _values, result); end - - # reduce 282 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#9350 - def _reduce_283(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9356 - def _reduce_284(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9362 - def _reduce_285(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8089 - def _reduce_29(val, _values, result); end - - # reduce 295 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#9388 - def _reduce_296(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9394 - def _reduce_297(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9400 - def _reduce_298(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9408 - def _reduce_299(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#7924 - def _reduce_3(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8099 - def _reduce_30(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9414 - def _reduce_300(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9420 - def _reduce_301(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9426 - def _reduce_302(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9432 - def _reduce_303(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9438 - def _reduce_304(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9444 - def _reduce_305(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9450 - def _reduce_306(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9456 - def _reduce_307(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9462 - def _reduce_308(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9468 - def _reduce_309(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9474 - def _reduce_310(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9480 - def _reduce_311(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9486 - def _reduce_312(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9493 - def _reduce_313(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9499 - def _reduce_314(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9505 - def _reduce_315(val, _values, result); end - - # reduce 316 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#9517 - def _reduce_317(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9525 - def _reduce_318(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9532 - def _reduce_319(val, _values, result); end - - # reduce 31 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#8107 - def _reduce_32(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9544 - def _reduce_320(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9553 - def _reduce_321(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9562 - def _reduce_322(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9568 - def _reduce_323(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9574 - def _reduce_324(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9584 - def _reduce_325(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9594 - def _reduce_326(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9604 - def _reduce_327(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9610 - def _reduce_328(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9617 - def _reduce_329(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8113 - def _reduce_33(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9634 - def _reduce_330(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9642 - def _reduce_331(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9654 - def _reduce_332(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9661 - def _reduce_333(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9676 - def _reduce_334(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9685 - def _reduce_335(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9696 - def _reduce_336(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9702 - def _reduce_337(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9711 - def _reduce_338(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9722 - def _reduce_339(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8120 - def _reduce_34(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9728 - def _reduce_340(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9734 - def _reduce_341(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9740 - def _reduce_342(val, _values, result); end - - # reduce 343 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#9748 - def _reduce_344(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9754 - def _reduce_345(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9760 - def _reduce_346(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9766 - def _reduce_347(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8131 - def _reduce_35(val, _values, result); end - - # reduce 349 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#9778 - def _reduce_350(val, _values, result); end - - # reduce 353 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#9790 - def _reduce_354(val, _values, result); end - - # reduce 355 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#9803 - def _reduce_356(val, _values, result); end - - # reduce 358 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#9813 - def _reduce_359(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9819 - def _reduce_360(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9825 - def _reduce_361(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9831 - def _reduce_362(val, _values, result); end - - # reduce 363 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#9839 - def _reduce_364(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9846 - def _reduce_365(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9854 - def _reduce_366(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9860 - def _reduce_367(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9866 - def _reduce_368(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9872 - def _reduce_369(val, _values, result); end - - # reduce 36 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#8139 - def _reduce_37(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9878 - def _reduce_370(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9884 - def _reduce_371(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9890 - def _reduce_372(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9896 - def _reduce_373(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9902 - def _reduce_374(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9908 - def _reduce_375(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9914 - def _reduce_376(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9920 - def _reduce_377(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9929 - def _reduce_378(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9939 - def _reduce_379(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8145 - def _reduce_38(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9947 - def _reduce_380(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9956 - def _reduce_381(val, _values, result); end - - # reduce 382 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#9966 - def _reduce_383(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9975 - def _reduce_384(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9985 - def _reduce_385(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#9993 - def _reduce_386(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10002 - def _reduce_387(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10009 - def _reduce_388(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10017 - def _reduce_389(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8151 - def _reduce_39(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10024 - def _reduce_390(val, _values, result); end - - # reduce 391 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#10034 - def _reduce_392(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10040 - def _reduce_393(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10046 - def _reduce_394(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10054 - def _reduce_395(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10062 - def _reduce_396(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10068 - def _reduce_397(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10074 - def _reduce_398(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10080 - def _reduce_399(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#7930 - def _reduce_4(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8160 - def _reduce_40(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10086 - def _reduce_400(val, _values, result); end - - # reduce 401 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#10095 - def _reduce_402(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10102 - def _reduce_403(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10108 - def _reduce_404(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10119 - def _reduce_405(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10126 - def _reduce_406(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10135 - def _reduce_407(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10142 - def _reduce_408(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10149 - def _reduce_409(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8169 - def _reduce_41(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10156 - def _reduce_410(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10163 - def _reduce_411(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10170 - def _reduce_412(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10177 - def _reduce_413(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10185 - def _reduce_414(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10193 - def _reduce_415(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10205 - def _reduce_416(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10216 - def _reduce_417(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10224 - def _reduce_418(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10232 - def _reduce_419(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8178 - def _reduce_42(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10240 - def _reduce_420(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10246 - def _reduce_421(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10254 - def _reduce_422(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10262 - def _reduce_423(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10270 - def _reduce_424(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10276 - def _reduce_425(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10282 - def _reduce_426(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10289 - def _reduce_427(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10296 - def _reduce_428(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10303 - def _reduce_429(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8186 - def _reduce_43(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10310 - def _reduce_430(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10317 - def _reduce_431(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10327 - def _reduce_432(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10334 - def _reduce_433(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10340 - def _reduce_434(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10351 - def _reduce_435(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10358 - def _reduce_436(val, _values, result); end - - # reduce 437 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#10366 - def _reduce_438(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10378 - def _reduce_439(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8195 - def _reduce_44(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10386 - def _reduce_440(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10393 - def _reduce_441(val, _values, result); end - - # reduce 442 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#10401 - def _reduce_443(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10407 - def _reduce_444(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10413 - def _reduce_445(val, _values, result); end - - # reduce 446 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#10421 - def _reduce_447(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10431 - def _reduce_448(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10437 - def _reduce_449(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10443 - def _reduce_450(val, _values, result); end - - # reduce 451 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#10451 - def _reduce_452(val, _values, result); end - - # reduce 453 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#10459 - def _reduce_454(val, _values, result); end - - # reduce 455 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#10467 - def _reduce_456(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10474 - def _reduce_457(val, _values, result); end - - # reduce 458 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#10483 - def _reduce_459(val, _values, result); end - - # reduce 45 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#8203 - def _reduce_46(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10491 - def _reduce_460(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10499 - def _reduce_461(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10506 - def _reduce_462(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10514 - def _reduce_463(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10522 - def _reduce_464(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10529 - def _reduce_465(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10535 - def _reduce_466(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10542 - def _reduce_467(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10548 - def _reduce_468(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10556 - def _reduce_469(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10564 - def _reduce_470(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10570 - def _reduce_471(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10576 - def _reduce_472(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10583 - def _reduce_473(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10589 - def _reduce_474(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10595 - def _reduce_475(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10601 - def _reduce_476(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10608 - def _reduce_477(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10615 - def _reduce_478(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10621 - def _reduce_479(val, _values, result); end - - # reduce 480 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#10629 - def _reduce_481(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10639 - def _reduce_482(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10649 - def _reduce_483(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10656 - def _reduce_484(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10663 - def _reduce_485(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10670 - def _reduce_486(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10677 - def _reduce_487(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10683 - def _reduce_488(val, _values, result); end - - # reduce 48 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#8217 - def _reduce_49(val, _values, result); end - - # reduce 489 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#10691 - def _reduce_490(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10697 - def _reduce_491(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10703 - def _reduce_492(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10709 - def _reduce_493(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10715 - def _reduce_494(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10721 - def _reduce_495(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10727 - def _reduce_496(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10733 - def _reduce_497(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10739 - def _reduce_498(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10745 - def _reduce_499(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#7936 - def _reduce_5(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8223 - def _reduce_50(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10751 - def _reduce_500(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10757 - def _reduce_501(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10763 - def _reduce_502(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10769 - def _reduce_503(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10775 - def _reduce_504(val, _values, result); end - - # reduce 505 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#10783 - def _reduce_506(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10789 - def _reduce_507(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10795 - def _reduce_508(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10801 - def _reduce_509(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8229 - def _reduce_51(val, _values, result); end - - # reduce 512 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#10813 - def _reduce_513(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10819 - def _reduce_514(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8235 - def _reduce_52(val, _values, result); end - - # reduce 522 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#10841 - def _reduce_523(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10847 - def _reduce_524(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10854 - def _reduce_525(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10866 - def _reduce_526(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10872 - def _reduce_527(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10884 - def _reduce_528(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10890 - def _reduce_529(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8241 - def _reduce_53(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10896 - def _reduce_530(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10902 - def _reduce_531(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10917 - def _reduce_532(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10923 - def _reduce_533(val, _values, result); end - - # reduce 535 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#10933 - def _reduce_536(val, _values, result); end - - # reduce 537 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#10941 - def _reduce_538(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8252 - def _reduce_54(val, _values, result); end - - # reduce 541 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#10953 - def _reduce_542(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10959 - def _reduce_543(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10965 - def _reduce_544(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10971 - def _reduce_545(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10978 - def _reduce_546(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10985 - def _reduce_547(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10991 - def _reduce_548(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#10998 - def _reduce_549(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11005 - def _reduce_550(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11011 - def _reduce_551(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11017 - def _reduce_552(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11023 - def _reduce_553(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11029 - def _reduce_554(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11035 - def _reduce_555(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11041 - def _reduce_556(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11047 - def _reduce_557(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11053 - def _reduce_558(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11059 - def _reduce_559(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11065 - def _reduce_560(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11071 - def _reduce_561(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11077 - def _reduce_562(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11083 - def _reduce_563(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11089 - def _reduce_564(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11095 - def _reduce_565(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11101 - def _reduce_566(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11107 - def _reduce_567(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11113 - def _reduce_568(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11119 - def _reduce_569(val, _values, result); end - - # reduce 56 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#8268 - def _reduce_57(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11125 - def _reduce_570(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11131 - def _reduce_571(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11137 - def _reduce_572(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11144 - def _reduce_573(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11153 - def _reduce_574(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11159 - def _reduce_575(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11165 - def _reduce_576(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8274 - def _reduce_58(val, _values, result); end - - # reduce 579 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#11177 - def _reduce_580(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11184 - def _reduce_581(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11191 - def _reduce_582(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11197 - def _reduce_583(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11208 - def _reduce_584(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11215 - def _reduce_585(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11222 - def _reduce_586(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11229 - def _reduce_587(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11236 - def _reduce_588(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11242 - def _reduce_589(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11248 - def _reduce_590(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11254 - def _reduce_591(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11260 - def _reduce_592(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11266 - def _reduce_593(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11272 - def _reduce_594(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11278 - def _reduce_595(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11284 - def _reduce_596(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11290 - def _reduce_597(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11296 - def _reduce_598(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11302 - def _reduce_599(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#7942 - def _reduce_6(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11308 - def _reduce_600(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11314 - def _reduce_601(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11320 - def _reduce_602(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11326 - def _reduce_603(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11332 - def _reduce_604(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11338 - def _reduce_605(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11344 - def _reduce_606(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11350 - def _reduce_607(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11356 - def _reduce_608(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11362 - def _reduce_609(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11370 - def _reduce_610(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11378 - def _reduce_611(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11387 - def _reduce_612(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11394 - def _reduce_613(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11401 - def _reduce_614(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11407 - def _reduce_615(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11413 - def _reduce_616(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11419 - def _reduce_617(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11425 - def _reduce_618(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11431 - def _reduce_619(val, _values, result); end - - # reduce 61 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#8287 - def _reduce_62(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11437 - def _reduce_620(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11443 - def _reduce_621(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11452 - def _reduce_622(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11462 - def _reduce_623(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11470 - def _reduce_624(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11479 - def _reduce_625(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11487 - def _reduce_626(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11496 - def _reduce_627(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11503 - def _reduce_628(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11511 - def _reduce_629(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8294 - def _reduce_63(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11520 - def _reduce_630(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11527 - def _reduce_631(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11535 - def _reduce_632(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11542 - def _reduce_633(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11550 - def _reduce_634(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11556 - def _reduce_635(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11562 - def _reduce_636(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11568 - def _reduce_637(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11574 - def _reduce_638(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11580 - def _reduce_639(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8301 - def _reduce_64(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11586 - def _reduce_640(val, _values, result); end - - # reduce 641 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#11594 - def _reduce_642(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11604 - def _reduce_643(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11611 - def _reduce_644(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11618 - def _reduce_645(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11624 - def _reduce_646(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11630 - def _reduce_647(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11636 - def _reduce_648(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11650 - def _reduce_649(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11657 - def _reduce_650(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11664 - def _reduce_651(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11670 - def _reduce_652(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11676 - def _reduce_653(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11682 - def _reduce_654(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11688 - def _reduce_655(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11694 - def _reduce_656(val, _values, result); end - - # reduce 658 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#11704 - def _reduce_659(val, _values, result); end - - # reduce 65 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#8310 - def _reduce_66(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11710 - def _reduce_660(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11718 - def _reduce_661(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11724 - def _reduce_662(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11731 - def _reduce_663(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11738 - def _reduce_664(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11744 - def _reduce_665(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11750 - def _reduce_666(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11756 - def _reduce_667(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8317 - def _reduce_67(val, _values, result); end - - # reduce 669 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#11766 - def _reduce_670(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11774 - def _reduce_671(val, _values, result); end - - # reduce 673 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#11784 - def _reduce_674(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11792 - def _reduce_675(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11798 - def _reduce_676(val, _values, result); end - - # reduce 677 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#11806 - def _reduce_678(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11812 - def _reduce_679(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8328 - def _reduce_68(val, _values, result); end - - # reduce 680 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#11820 - def _reduce_681(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11826 - def _reduce_682(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11832 - def _reduce_683(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11838 - def _reduce_684(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11844 - def _reduce_685(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11850 - def _reduce_686(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8335 - def _reduce_69(val, _values, result); end - - # reduce 698 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#11880 - def _reduce_699(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#7948 - def _reduce_7(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#8346 - def _reduce_70(val, _values, result); end - - # @api public - # - # source://parser//lib/parser/ruby27.rb#11886 - def _reduce_700(val, _values, result); end + # source://parser//lib/parser/lexer-strings.rb#76 + def _lex_trans_keys=(_arg0); end - # reduce 704 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#11900 - def _reduce_705(val, _values, result); end + # Returns the value of attribute _lex_trans_targs. + # + # source://parser//lib/parser/lexer-strings.rb#2966 + def _lex_trans_targs; end - # @api public - # - # source://parser//lib/parser/ruby27.rb#11906 - def _reduce_706(val, _values, result); end + # Sets the attribute _lex_trans_targs + # + # @param value the value to set the attribute _lex_trans_targs to. + # + # source://parser//lib/parser/lexer-strings.rb#2966 + def _lex_trans_targs=(_arg0); end + end +end - # @api public - # - # source://parser//lib/parser/ruby27.rb#11912 - def _reduce_707(val, _values, result); end +# % +# +# source://parser//lib/parser/lexer-strings.rb#3287 +Parser::LexerStrings::ESCAPES = T.let(T.unsafe(nil), Hash) - # @api public - # - # source://parser//lib/parser/ruby27.rb#8353 - def _reduce_71(val, _values, result); end +# source://parser//lib/parser/lexer-strings.rb#5414 +Parser::LexerStrings::ESCAPE_WHITESPACE = T.let(T.unsafe(nil), Hash) - # reduce 710 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#11924 - def _reduce_711(val, _values, result); end +# source://parser//lib/parser/lexer-strings.rb#3332 +Parser::LexerStrings::LEX_STATES = T.let(T.unsafe(nil), Hash) - # reduce 714 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#11936 - def _reduce_715(val, _values, result); end +# source://parser//lib/parser/lexer-strings.rb#3293 +Parser::LexerStrings::REGEXP_META_CHARACTERS = T.let(T.unsafe(nil), Regexp) - # @api public - # - # source://parser//lib/parser/ruby27.rb#8364 - def _reduce_72(val, _values, result); end +# Diagnostic messages (errors, warnings and notices) that can be generated. +# +# @api public +# @see Diagnostic +# +# source://parser//lib/parser/messages.rb#11 +Parser::MESSAGES = T.let(T.unsafe(nil), Hash) - # @api public +# Holds p->max_numparam from parse.y +# +# @api private +# +# source://parser//lib/parser/max_numparam_stack.rb#8 +class Parser::MaxNumparamStack + # @api private + # @return [MaxNumparamStack] a new instance of MaxNumparamStack # - # source://parser//lib/parser/ruby27.rb#8371 - def _reduce_73(val, _values, result); end + # source://parser//lib/parser/max_numparam_stack.rb#13 + def initialize; end - # @api public + # @api private + # @return [Boolean] # - # source://parser//lib/parser/ruby27.rb#8378 - def _reduce_74(val, _values, result); end + # source://parser//lib/parser/max_numparam_stack.rb#17 + def empty?; end - # @api public + # @api private + # @return [Boolean] # - # source://parser//lib/parser/ruby27.rb#8385 - def _reduce_75(val, _values, result); end + # source://parser//lib/parser/max_numparam_stack.rb#29 + def has_numparams?; end - # @api public + # @api private # - # source://parser//lib/parser/ruby27.rb#8392 - def _reduce_76(val, _values, result); end + # source://parser//lib/parser/max_numparam_stack.rb#21 + def has_ordinary_params!; end - # @api public + # @api private + # @return [Boolean] # - # source://parser//lib/parser/ruby27.rb#8399 - def _reduce_77(val, _values, result); end + # source://parser//lib/parser/max_numparam_stack.rb#25 + def has_ordinary_params?; end - # @api public + # @api private # - # source://parser//lib/parser/ruby27.rb#8405 - def _reduce_78(val, _values, result); end + # source://parser//lib/parser/max_numparam_stack.rb#45 + def pop; end - # @api public + # @api private # - # source://parser//lib/parser/ruby27.rb#8411 - def _reduce_79(val, _values, result); end + # source://parser//lib/parser/max_numparam_stack.rb#41 + def push(static:); end - # @api public + # @api private # - # source://parser//lib/parser/ruby27.rb#8417 - def _reduce_80(val, _values, result); end + # source://parser//lib/parser/max_numparam_stack.rb#33 + def register(numparam); end - # reduce 81 omitted - # - # @api public + # @api private # - # source://parser//lib/parser/ruby27.rb#8425 - def _reduce_82(val, _values, result); end + # source://parser//lib/parser/max_numparam_stack.rb#9 + def stack; end - # @api public + # @api private # - # source://parser//lib/parser/ruby27.rb#8432 - def _reduce_83(val, _values, result); end + # source://parser//lib/parser/max_numparam_stack.rb#37 + def top; end - # @api public - # - # source://parser//lib/parser/ruby27.rb#8439 - def _reduce_84(val, _values, result); end + private - # @api public + # @api private # - # source://parser//lib/parser/ruby27.rb#8447 - def _reduce_85(val, _values, result); end + # source://parser//lib/parser/max_numparam_stack.rb#51 + def set(value); end +end - # @api public - # - # source://parser//lib/parser/ruby27.rb#8454 - def _reduce_86(val, _values, result); end +# @api private +# +# source://parser//lib/parser/max_numparam_stack.rb#11 +Parser::MaxNumparamStack::ORDINARY_PARAMS = T.let(T.unsafe(nil), Integer) - # @api public - # - # source://parser//lib/parser/ruby27.rb#8462 - def _reduce_87(val, _values, result); end +# @api private +# +# source://parser//lib/parser/messages.rb#112 +module Parser::Messages + class << self + # Formats the message, returns a raw template if there's nothing to interpolate + # + # Code like `format("", {})` gives a warning, and so this method tries interpolating + # only if `arguments` hash is not empty. + # + # @api private + # + # source://parser//lib/parser/messages.rb#119 + def compile(reason, arguments); end + end +end - # @api public - # - # source://parser//lib/parser/ruby27.rb#8468 - def _reduce_88(val, _values, result); end +# Parser metadata +# +# source://parser//lib/parser/meta.rb#5 +module Parser::Meta; end - # @api public - # - # source://parser//lib/parser/ruby27.rb#8475 - def _reduce_89(val, _values, result); end +# All node types that parser can produce. Not all parser versions +# will be able to produce every possible node. +# +# source://parser//lib/parser/meta.rb#9 +Parser::Meta::NODE_TYPES = T.let(T.unsafe(nil), Set) - # reduce 8 omitted - # - # @api public - # - # source://parser//lib/parser/ruby27.rb#7956 - def _reduce_9(val, _values, result); end +# {Parser::Rewriter} is deprecated. Use {Parser::TreeRewriter} instead. +# It has a backwards compatible API and uses {Parser::Source::TreeRewriter} +# instead of {Parser::Source::Rewriter}. +# Please check the documentation for {Parser::Source::Rewriter} for details. +# +# @api public +# @deprecated Use {Parser::TreeRewriter} +# +# source://parser//lib/parser/rewriter.rb#14 +class Parser::Rewriter < ::Parser::AST::Processor + extend ::Parser::Deprecation # @api public + # @return [Rewriter] a new instance of Rewriter # - # source://parser//lib/parser/ruby27.rb#8481 - def _reduce_90(val, _values, result); end + # source://parser//lib/parser/rewriter.rb#98 + def initialize(*_arg0); end - # reduce 91 omitted - # - # @api public + # Returns `true` if the specified node is an assignment node, returns false + # otherwise. # - # source://parser//lib/parser/ruby27.rb#8490 - def _reduce_92(val, _values, result); end - # @api public + # @param node [Parser::AST::Node] + # @return [Boolean] # - # source://parser//lib/parser/ruby27.rb#8496 - def _reduce_93(val, _values, result); end + # source://parser//lib/parser/rewriter.rb#38 + def assignment?(node); end - # @api public + # Inserts new code after the given source range. # - # source://parser//lib/parser/ruby27.rb#8502 - def _reduce_94(val, _values, result); end - # @api public + # @param range [Parser::Source::Range] + # @param content [String] # - # source://parser//lib/parser/ruby27.rb#8508 - def _reduce_95(val, _values, result); end + # source://parser//lib/parser/rewriter.rb#77 + def insert_after(range, content); end - # @api public + # Inserts new code before the given source range. # - # source://parser//lib/parser/ruby27.rb#8514 - def _reduce_96(val, _values, result); end - # @api public + # @param range [Parser::Source::Range] + # @param content [String] # - # source://parser//lib/parser/ruby27.rb#8520 - def _reduce_97(val, _values, result); end + # source://parser//lib/parser/rewriter.rb#67 + def insert_before(range, content); end - # @api public + # Removes the source range. # - # source://parser//lib/parser/ruby27.rb#8526 - def _reduce_98(val, _values, result); end - # @api public + # @param range [Parser::Source::Range] # - # source://parser//lib/parser/ruby27.rb#8532 - def _reduce_99(val, _values, result); end + # source://parser//lib/parser/rewriter.rb#47 + def remove(range); end - # @api public + # Replaces the code of the source range `range` with `content`. # - # source://parser//lib/parser/ruby27.rb#11942 - def _reduce_none(val, _values, result); end - # @api public + # @param range [Parser::Source::Range] + # @param content [String] # - # source://parser//lib/parser/ruby27.rb#21 - def default_encoding; end + # source://parser//lib/parser/rewriter.rb#87 + def replace(range, content); end - # @api public + # Rewrites the AST/source buffer and returns a String containing the new + # version. # - # source://parser//lib/parser/ruby27.rb#32 - def local_pop; end - # @api public + # @param source_buffer [Parser::Source::Buffer] + # @param ast [Parser::AST::Node] + # @return [String] # - # source://parser//lib/parser/ruby27.rb#25 - def local_push; end + # source://parser//lib/parser/rewriter.rb#23 + def rewrite(source_buffer, ast); end - # @api public + # Wraps the given source range with the given values. # - # source://parser//lib/parser/ruby27.rb#39 - def try_declare_numparam(node); end - # @api public + # @param range [Parser::Source::Range] + # @param content [String] # - # source://parser//lib/parser/ruby27.rb#17 - def version; end + # source://parser//lib/parser/rewriter.rb#57 + def wrap(range, before, after); end end # @api public # -# source://parser//lib/parser/ruby27.rb#7507 -Parser::Ruby27::Racc_arg = T.let(T.unsafe(nil), Array) - -# @api public -# -# source://parser//lib/parser/ruby27.rb#7902 -Parser::Ruby27::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass) - -# @api public -# -# source://parser//lib/parser/ruby27.rb#7524 -Parser::Ruby27::Racc_token_to_s_table = T.let(T.unsafe(nil), Array) +# source://parser//lib/parser/rewriter.rb#91 +Parser::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) # @api public # @@ -7560,445 +3883,262 @@ class Parser::Source::Map def initialize_copy(other); end end -# @api public -# # source://parser//lib/parser/source/map/collection.rb#6 class Parser::Source::Map::Collection < ::Parser::Source::Map - # @api public - # @return [Collection] a new instance of Collection - # # source://parser//lib/parser/source/map/collection.rb#10 def initialize(begin_l, end_l, expression_l); end - # @api public - # # source://parser//lib/parser/source/map/collection.rb#7 def begin; end - # @api public - # # source://parser//lib/parser/source/map/collection.rb#8 def end; end end -# @api public -# # source://parser//lib/parser/source/map/condition.rb#6 class Parser::Source::Map::Condition < ::Parser::Source::Map - # @api public - # @return [Condition] a new instance of Condition - # # source://parser//lib/parser/source/map/condition.rb#12 def initialize(keyword_l, begin_l, else_l, end_l, expression_l); end - # @api public - # # source://parser//lib/parser/source/map/condition.rb#8 def begin; end - # @api public - # # source://parser//lib/parser/source/map/condition.rb#9 def else; end - # @api public - # # source://parser//lib/parser/source/map/condition.rb#10 def end; end - # @api public - # # source://parser//lib/parser/source/map/condition.rb#7 def keyword; end end -# @api public -# # source://parser//lib/parser/source/map/constant.rb#6 class Parser::Source::Map::Constant < ::Parser::Source::Map - # @api public - # @return [Constant] a new instance of Constant - # # source://parser//lib/parser/source/map/constant.rb#11 def initialize(double_colon, name, expression); end - # @api public - # # source://parser//lib/parser/source/map/constant.rb#7 def double_colon; end - # @api public - # # source://parser//lib/parser/source/map/constant.rb#8 def name; end - # @api public - # # source://parser//lib/parser/source/map/constant.rb#9 def operator; end - # @api private - # # source://parser//lib/parser/source/map/constant.rb#20 def with_operator(operator_l); end protected - # @api public - # # source://parser//lib/parser/source/map/constant.rb#26 def update_operator(operator_l); end end -# @api public -# # source://parser//lib/parser/source/map/definition.rb#6 class Parser::Source::Map::Definition < ::Parser::Source::Map - # @api public - # @return [Definition] a new instance of Definition - # # source://parser//lib/parser/source/map/definition.rb#12 def initialize(keyword_l, operator_l, name_l, end_l); end - - # @api public - # + # source://parser//lib/parser/source/map/definition.rb#10 def end; end - # @api public - # # source://parser//lib/parser/source/map/definition.rb#7 def keyword; end - # @api public - # # source://parser//lib/parser/source/map/definition.rb#9 def name; end - # @api public - # # source://parser//lib/parser/source/map/definition.rb#8 def operator; end end -# @api public -# # source://parser//lib/parser/source/map/for.rb#6 class Parser::Source::Map::For < ::Parser::Source::Map - # @api public - # @return [For] a new instance of For - # # source://parser//lib/parser/source/map/for.rb#10 def initialize(keyword_l, in_l, begin_l, end_l, expression_l); end - # @api public - # # source://parser//lib/parser/source/map/for.rb#8 def begin; end - # @api public - # # source://parser//lib/parser/source/map/for.rb#8 def end; end - # @api public - # # source://parser//lib/parser/source/map/for.rb#7 def in; end - # @api public - # # source://parser//lib/parser/source/map/for.rb#7 def keyword; end end -# @api public -# # source://parser//lib/parser/source/map/heredoc.rb#6 class Parser::Source::Map::Heredoc < ::Parser::Source::Map - # @api public - # @return [Heredoc] a new instance of Heredoc - # # source://parser//lib/parser/source/map/heredoc.rb#10 def initialize(begin_l, body_l, end_l); end - # @api public - # # source://parser//lib/parser/source/map/heredoc.rb#7 def heredoc_body; end - # @api public - # # source://parser//lib/parser/source/map/heredoc.rb#8 def heredoc_end; end end -# @api public -# # source://parser//lib/parser/source/map/index.rb#6 class Parser::Source::Map::Index < ::Parser::Source::Map - # @api public - # @return [Index] a new instance of Index - # # source://parser//lib/parser/source/map/index.rb#11 def initialize(begin_l, end_l, expression_l); end - # @api public - # # source://parser//lib/parser/source/map/index.rb#7 def begin; end - # @api public - # # source://parser//lib/parser/source/map/index.rb#8 def end; end - # @api public - # # source://parser//lib/parser/source/map/index.rb#9 def operator; end - # @api private - # # source://parser//lib/parser/source/map/index.rb#21 def with_operator(operator_l); end protected - # @api public - # # source://parser//lib/parser/source/map/index.rb#27 def update_operator(operator_l); end end -# @api public -# # source://parser//lib/parser/source/map/keyword.rb#6 class Parser::Source::Map::Keyword < ::Parser::Source::Map - # @api public - # @return [Keyword] a new instance of Keyword - # # source://parser//lib/parser/source/map/keyword.rb#11 def initialize(keyword_l, begin_l, end_l, expression_l); end - # @api public - # # source://parser//lib/parser/source/map/keyword.rb#8 def begin; end - # @api public - # # source://parser//lib/parser/source/map/keyword.rb#9 def end; end - # @api public - # # source://parser//lib/parser/source/map/keyword.rb#7 def keyword; end end -# @api public -# # source://parser//lib/parser/source/map/method_definition.rb#6 class Parser::Source::Map::MethodDefinition < ::Parser::Source::Map - # @api public - # @return [MethodDefinition] a new instance of MethodDefinition - # # source://parser//lib/parser/source/map/method_definition.rb#13 def initialize(keyword_l, operator_l, name_l, end_l, assignment_l, body_l); end - # @api public - # # source://parser//lib/parser/source/map/method_definition.rb#11 def assignment; end - # @api public - # # source://parser//lib/parser/source/map/method_definition.rb#10 def end; end - # @api public - # # source://parser//lib/parser/source/map/method_definition.rb#7 def keyword; end - # @api public - # # source://parser//lib/parser/source/map/method_definition.rb#9 def name; end - # @api public - # # source://parser//lib/parser/source/map/method_definition.rb#8 def operator; end end -# @api public -# # source://parser//lib/parser/source/map/objc_kwarg.rb#6 class Parser::Source::Map::ObjcKwarg < ::Parser::Source::Map - # @api public - # @return [ObjcKwarg] a new instance of ObjcKwarg - # # source://parser//lib/parser/source/map/objc_kwarg.rb#11 def initialize(keyword_l, operator_l, argument_l, expression_l); end - # @api public - # # source://parser//lib/parser/source/map/objc_kwarg.rb#9 def argument; end - # @api public - # # source://parser//lib/parser/source/map/objc_kwarg.rb#7 def keyword; end - # @api public - # # source://parser//lib/parser/source/map/objc_kwarg.rb#8 def operator; end end -# @api public -# # source://parser//lib/parser/source/map/operator.rb#6 class Parser::Source::Map::Operator < ::Parser::Source::Map - # @api public - # @return [Operator] a new instance of Operator - # # source://parser//lib/parser/source/map/operator.rb#9 def initialize(operator, expression); end - # @api public - # # source://parser//lib/parser/source/map/operator.rb#7 def operator; end end -# @api public -# # source://parser//lib/parser/source/map/rescue_body.rb#6 class Parser::Source::Map::RescueBody < ::Parser::Source::Map - # @api public - # @return [RescueBody] a new instance of RescueBody - # # source://parser//lib/parser/source/map/rescue_body.rb#11 def initialize(keyword_l, assoc_l, begin_l, expression_l); end - # @api public - # # source://parser//lib/parser/source/map/rescue_body.rb#8 def assoc; end - # @api public - # # source://parser//lib/parser/source/map/rescue_body.rb#9 def begin; end - # @api public - # # source://parser//lib/parser/source/map/rescue_body.rb#7 def keyword; end end -# @api public -# # source://parser//lib/parser/source/map/send.rb#6 class Parser::Source::Map::Send < ::Parser::Source::Map - # @api public - # @return [Send] a new instance of Send - # # source://parser//lib/parser/source/map/send.rb#13 def initialize(dot_l, selector_l, begin_l, end_l, expression_l); end - # @api public - # # source://parser//lib/parser/source/map/send.rb#10 def begin; end - # @api public - # # source://parser//lib/parser/source/map/send.rb#7 def dot; end - # @api public - # # source://parser//lib/parser/source/map/send.rb#11 def end; end - # @api public - # # source://parser//lib/parser/source/map/send.rb#9 def operator; end - # @api public - # # source://parser//lib/parser/source/map/send.rb#8 def selector; end - # @api private - # # source://parser//lib/parser/source/map/send.rb#24 def with_operator(operator_l); end protected - # @api public - # # source://parser//lib/parser/source/map/send.rb#30 def update_operator(operator_l); end end -# @api public -# # source://parser//lib/parser/source/map/ternary.rb#6 class Parser::Source::Map::Ternary < ::Parser::Source::Map - # @api public - # @return [Ternary] a new instance of Ternary - # # source://parser//lib/parser/source/map/ternary.rb#10 def initialize(question_l, colon_l, expression_l); end - # @api public - # # source://parser//lib/parser/source/map/ternary.rb#8 def colon; end - # @api public - # # source://parser//lib/parser/source/map/ternary.rb#7 def question; end end -# @api public -# # source://parser//lib/parser/source/map/variable.rb#6 class Parser::Source::Map::Variable < ::Parser::Source::Map - # @api public - # @return [Variable] a new instance of Variable - # # source://parser//lib/parser/source/map/variable.rb#10 def initialize(name_l, expression_l = T.unsafe(nil)); end - # @api public - # # source://parser//lib/parser/source/map/variable.rb#7 def name; end - # @api public - # # source://parser//lib/parser/source/map/variable.rb#8 def operator; end - # @api private - # # source://parser//lib/parser/source/map/variable.rb#19 def with_operator(operator_l); end protected - # @api public - # # source://parser//lib/parser/source/map/variable.rb#25 def update_operator(operator_l); end end @@ -8984,166 +5124,79 @@ end # source://parser//lib/parser/source/tree_rewriter.rb#391 Parser::Source::TreeRewriter::ACTIONS = T.let(T.unsafe(nil), Array) -# Actions are arranged in a tree and get combined so that: -# children are strictly contained by their parent -# sibblings all disjoint from one another and ordered -# only actions with replacement==nil may have children -# -# @api private -# # source://parser//lib/parser/source/tree_rewriter/action.rb#13 class Parser::Source::TreeRewriter::Action - # @api private - # @return [Action] a new instance of Action - # # source://parser//lib/parser/source/tree_rewriter/action.rb#16 def initialize(range, enforcer, insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil), children: T.unsafe(nil)); end - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#28 def combine(action); end - # A root action has its range set to the whole source range, even - # though it typically do not act on that range. - # This method returns the action as if it was a child action with - # its range contracted. - # - # @api private - # @return [Action] - # # source://parser//lib/parser/source/tree_rewriter/action.rb#67 def contract; end - # @api private - # @return [Boolean] - # # source://parser//lib/parser/source/tree_rewriter/action.rb#33 def empty?; end - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#14 def insert_after; end - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#14 def insert_before; end - # @api private - # @return [Boolean] - # # source://parser//lib/parser/source/tree_rewriter/action.rb#57 def insertion?; end - # No check is done on validity of resulting range. - # - # @api private - # @return [Action] that has been moved to the given source_buffer and with the given offset - # # source://parser//lib/parser/source/tree_rewriter/action.rb#80 def moved(source_buffer, offset); end - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#49 def nested_actions; end - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#40 def ordered_replacements; end - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#14 def range; end - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#14 def replacement; end protected - # Returns the children in a hierarchy with respect to `action`: - # :sibbling_left, sibbling_right (for those that are disjoint from `action`) - # :parent (in case one of our children contains `action`) - # :child (in case `action` strictly contains some of our children) - # :fusible (in case `action` overlaps some children but they can be fused in one deletion) - # or raises a `CloberingError` - # In case a child has equal range to `action`, it is returned as `:parent` - # Reminder: an empty range 1...1 is considered disjoint from 1...10 - # - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#158 def analyse_hierarchy(action); end - # Similar to @children.bsearch_index || size - # except allows for a starting point - # and `bsearch_index` is only Ruby 2.3+ - # - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#145 def bsearch_child_index(from = T.unsafe(nil)); end - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#224 def call_enforcer_for_merge(action); end - # @api private - # @param fusible [Array(Action | nil)] - # # source://parser//lib/parser/source/tree_rewriter/action.rb#204 def check_fusible(action, *fusible); end - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#94 def children; end - # Assumes `more_children` all contained within `@range` - # - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#129 def combine_children(more_children); end - # Assumes range.contains?(action.range) && action.children.empty? - # - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#102 def do_combine(action); end - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#135 def fuse_deletions(action, fusible, other_sibblings); end - # Assumes action.range == range && action.children.empty? - # - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#215 def merge(action); end - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#110 def place_in_hierarchy(action); end - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#232 def swallow(children); end - # @api private - # # source://parser//lib/parser/source/tree_rewriter/action.rb#96 def with(range: T.unsafe(nil), enforcer: T.unsafe(nil), children: T.unsafe(nil), insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil)); end end @@ -9158,115 +5211,95 @@ Parser::Source::TreeRewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) # source://parser//lib/parser/source/tree_rewriter.rb#417 Parser::Source::TreeRewriter::POLICY_TO_LEVEL = T.let(T.unsafe(nil), Hash) -# @api public -# # source://parser//lib/parser/static_environment.rb#5 class Parser::StaticEnvironment - # @api public # @return [StaticEnvironment] a new instance of StaticEnvironment # # source://parser//lib/parser/static_environment.rb#11 def initialize; end - # @api public - # # source://parser//lib/parser/static_environment.rb#40 def declare(name); end - # @api public - # # source://parser//lib/parser/static_environment.rb#58 def declare_anonymous_blockarg; end - # @api public - # - # source://parser//lib/parser/static_environment.rb#74 + # source://parser//lib/parser/static_environment.rb#82 def declare_anonymous_kwrestarg; end - # @api public - # - # source://parser//lib/parser/static_environment.rb#66 + # source://parser//lib/parser/static_environment.rb#70 def declare_anonymous_restarg; end - # @api public - # # source://parser//lib/parser/static_environment.rb#50 def declare_forward_args; end - # @api public # @return [Boolean] # # source://parser//lib/parser/static_environment.rb#46 def declared?(name); end - # @api public # @return [Boolean] # # source://parser//lib/parser/static_environment.rb#62 def declared_anonymous_blockarg?; end - # @api public # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#78 + # source://parser//lib/parser/static_environment.rb#86 def declared_anonymous_kwrestarg?; end - # @api public # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#70 + # source://parser//lib/parser/static_environment.rb#74 def declared_anonymous_restarg?; end - # @api public # @return [Boolean] # # source://parser//lib/parser/static_environment.rb#54 def declared_forward_args?; end - # @api public # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#82 + # source://parser//lib/parser/static_environment.rb#94 def empty?; end - # @api public - # # source://parser//lib/parser/static_environment.rb#27 def extend_dynamic; end - # @api public - # # source://parser//lib/parser/static_environment.rb#20 def extend_static; end - # @api public + # @return [Boolean] + # + # source://parser//lib/parser/static_environment.rb#66 + def parent_has_anonymous_blockarg?; end + + # @return [Boolean] + # + # source://parser//lib/parser/static_environment.rb#90 + def parent_has_anonymous_kwrestarg?; end + + # @return [Boolean] # + # source://parser//lib/parser/static_environment.rb#78 + def parent_has_anonymous_restarg?; end + # source://parser//lib/parser/static_environment.rb#15 def reset; end - # @api public - # # source://parser//lib/parser/static_environment.rb#34 def unextend; end end -# @api public -# # source://parser//lib/parser/static_environment.rb#7 Parser::StaticEnvironment::ANONYMOUS_BLOCKARG = T.let(T.unsafe(nil), Symbol) -# @api public -# # source://parser//lib/parser/static_environment.rb#9 Parser::StaticEnvironment::ANONYMOUS_KWRESTARG = T.let(T.unsafe(nil), Symbol) -# @api public -# # source://parser//lib/parser/static_environment.rb#8 Parser::StaticEnvironment::ANONYMOUS_RESTARG = T.let(T.unsafe(nil), Symbol) -# @api public -# # source://parser//lib/parser/static_environment.rb#6 Parser::StaticEnvironment::FORWARD_ARGS = T.let(T.unsafe(nil), Symbol) @@ -9335,7 +5368,7 @@ end # # @api public # -# source://parser//lib/parser/tree_rewriter.rb#61 +# source://parser//lib/parser/tree_rewriter.rb#51 class Parser::TreeRewriter < ::Parser::AST::Processor # Returns `true` if the specified node is an assignment node, returns false # otherwise. @@ -9405,50 +5438,35 @@ class Parser::TreeRewriter < ::Parser::AST::Processor def wrap(range, before, after); end end -# @api public -# # source://parser//lib/parser/version.rb#4 Parser::VERSION = T.let(T.unsafe(nil), String) -# @api public -# # source://parser//lib/parser/variables_stack.rb#5 class Parser::VariablesStack - # @api public # @return [VariablesStack] a new instance of VariablesStack # # source://parser//lib/parser/variables_stack.rb#6 def initialize; end - # @api public - # # source://parser//lib/parser/variables_stack.rb#27 def declare(name); end - # @api public # @return [Boolean] # # source://parser//lib/parser/variables_stack.rb#31 def declared?(name); end - # @api public # @return [Boolean] # # source://parser//lib/parser/variables_stack.rb#11 def empty?; end - # @api public - # # source://parser//lib/parser/variables_stack.rb#19 def pop; end - # @api public - # # source://parser//lib/parser/variables_stack.rb#15 def push; end - # @api public - # # source://parser//lib/parser/variables_stack.rb#23 def reset; end end diff --git a/sorbet/rbi/gems/power_assert@2.0.3.rbi b/sorbet/rbi/gems/power_assert@2.0.3.rbi index 850fd649b..ea9f2864f 100644 --- a/sorbet/rbi/gems/power_assert@2.0.3.rbi +++ b/sorbet/rbi/gems/power_assert@2.0.3.rbi @@ -145,8 +145,6 @@ class PowerAssert::Context::Value < ::Struct # # @param value [Object] the value to set the attribute column to. # @return [Object] the newly set value - # - # source://power_assert//lib/power_assert/context.rb#8 def column=(_); end # Returns the value of attribute display_offset @@ -158,8 +156,6 @@ class PowerAssert::Context::Value < ::Struct # # @param value [Object] the value to set the attribute display_offset to. # @return [Object] the newly set value - # - # source://power_assert//lib/power_assert/context.rb#8 def display_offset=(_); end # Returns the value of attribute lineno @@ -171,8 +167,6 @@ class PowerAssert::Context::Value < ::Struct # # @param value [Object] the value to set the attribute lineno to. # @return [Object] the newly set value - # - # source://power_assert//lib/power_assert/context.rb#8 def lineno=(_); end # Returns the value of attribute name @@ -184,8 +178,6 @@ class PowerAssert::Context::Value < ::Struct # # @param value [Object] the value to set the attribute name to. # @return [Object] the newly set value - # - # source://power_assert//lib/power_assert/context.rb#8 def name=(_); end # Returns the value of attribute value @@ -197,13 +189,12 @@ class PowerAssert::Context::Value < ::Struct # # @param value [Object] the value to set the attribute value to. # @return [Object] the newly set value - # - # source://power_assert//lib/power_assert/context.rb#8 def value=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -339,8 +330,6 @@ class PowerAssert::Parser::Ident < ::Struct # # @param value [Object] the value to set the attribute column to. # @return [Object] the newly set value - # - # source://power_assert//lib/power_assert/parser.rb#5 def column=(_); end # Returns the value of attribute name @@ -352,8 +341,6 @@ class PowerAssert::Parser::Ident < ::Struct # # @param value [Object] the value to set the attribute name to. # @return [Object] the newly set value - # - # source://power_assert//lib/power_assert/parser.rb#5 def name=(_); end # Returns the value of attribute type @@ -365,13 +352,12 @@ class PowerAssert::Parser::Ident < ::Struct # # @param value [Object] the value to set the attribute type to. # @return [Object] the newly set value - # - # source://power_assert//lib/power_assert/parser.rb#5 def type=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end diff --git a/sorbet/rbi/gems/prism@0.19.0.rbi b/sorbet/rbi/gems/prism@0.21.0.rbi similarity index 78% rename from sorbet/rbi/gems/prism@0.19.0.rbi rename to sorbet/rbi/gems/prism@0.21.0.rbi index 8f58adefe..7dec5286f 100644 --- a/sorbet/rbi/gems/prism@0.19.0.rbi +++ b/sorbet/rbi/gems/prism@0.21.0.rbi @@ -36,7 +36,7 @@ module Prism # # For supported options, see Prism::parse. # - # source://prism//lib/prism.rb#46 + # source://prism//lib/prism.rb#47 def lex_compat(source, **options); end # Mirror the Prism.lex_file API by using the serialization API. @@ -49,7 +49,7 @@ module Prism # returns the same tokens. Raises SyntaxError if the syntax in source is # invalid. # - # source://prism//lib/prism.rb#56 + # source://prism//lib/prism.rb#57 def lex_ripper(source); end # :call-seq: @@ -57,7 +57,7 @@ module Prism # # Load the serialized AST using the source as a reference into a tree. # - # source://prism//lib/prism.rb#64 + # source://prism//lib/prism.rb#65 def load(source, serialized); end # Mirror the Prism.parse API by using the serialization API. @@ -73,7 +73,7 @@ module Prism # # @return [Boolean] # - # source://prism//lib/prism.rb#72 + # source://prism//lib/prism.rb#73 def parse_failure?(source, **options); end # Mirror the Prism.parse_file API by using the serialization API. This uses @@ -93,7 +93,7 @@ module Prism # # @return [Boolean] # - # source://prism//lib/prism.rb#80 + # source://prism//lib/prism.rb#81 def parse_file_failure?(filepath, **options); end # Mirror the Prism.parse_file_success? API by using the serialization API. @@ -119,13 +119,13 @@ end # alias $foo $bar # ^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#53 +# source://prism//lib/prism/node.rb#90 class Prism::AliasGlobalVariableNode < ::Prism::Node - # def initialize: (new_name: Node, old_name: Node, keyword_loc: Location, location: Location) -> void + # def initialize: (Node new_name, Node old_name, Location keyword_loc, Location location) -> void # # @return [AliasGlobalVariableNode] a new instance of AliasGlobalVariableNode # - # source://prism//lib/prism/node.rb#63 + # source://prism//lib/prism/node.rb#101 sig do params( new_name: Prism::Node, @@ -136,44 +136,44 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node end def initialize(new_name, old_name, keyword_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#71 + # source://prism//lib/prism/node.rb#109 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#76 + # source://prism//lib/prism/node.rb#114 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#86 + # source://prism//lib/prism/node.rb#124 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#81 + # source://prism//lib/prism/node.rb#119 def compact_child_nodes; end # def copy: (**params) -> AliasGlobalVariableNode # - # source://prism//lib/prism/node.rb#91 + # source://prism//lib/prism/node.rb#129 sig { params(params: T.untyped).returns(Prism::AliasGlobalVariableNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#76 + # source://prism//lib/prism/node.rb#114 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { new_name: Node, old_name: Node, keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#104 + # source://prism//lib/prism/node.rb#142 sig do params( keys: T::Array[Symbol] @@ -181,32 +181,32 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#114 + # source://prism//lib/prism/node.rb#152 def inspect(inspector = T.unsafe(nil)); end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#109 + # source://prism//lib/prism/node.rb#147 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#60 + # source://prism//lib/prism/node.rb#98 sig { returns(Prism::Location) } def keyword_loc; end # attr_reader new_name: Node # - # source://prism//lib/prism/node.rb#54 + # source://prism//lib/prism/node.rb#92 sig { returns(Prism::Node) } def new_name; end # attr_reader old_name: Node # - # source://prism//lib/prism/node.rb#57 + # source://prism//lib/prism/node.rb#95 sig { returns(Prism::Node) } def old_name; end @@ -225,7 +225,7 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#138 + # source://prism//lib/prism/node.rb#176 def type; end class << self @@ -236,7 +236,7 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#148 + # source://prism//lib/prism/node.rb#186 def type; end end end @@ -246,13 +246,13 @@ end # alias foo bar # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#158 +# source://prism//lib/prism/node.rb#195 class Prism::AliasMethodNode < ::Prism::Node - # def initialize: (new_name: Node, old_name: Node, keyword_loc: Location, location: Location) -> void + # def initialize: (Node new_name, Node old_name, Location keyword_loc, Location location) -> void # # @return [AliasMethodNode] a new instance of AliasMethodNode # - # source://prism//lib/prism/node.rb#168 + # source://prism//lib/prism/node.rb#206 sig do params( new_name: Prism::Node, @@ -263,44 +263,44 @@ class Prism::AliasMethodNode < ::Prism::Node end def initialize(new_name, old_name, keyword_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#176 + # source://prism//lib/prism/node.rb#214 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#181 + # source://prism//lib/prism/node.rb#219 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#191 + # source://prism//lib/prism/node.rb#229 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#186 + # source://prism//lib/prism/node.rb#224 def compact_child_nodes; end # def copy: (**params) -> AliasMethodNode # - # source://prism//lib/prism/node.rb#196 + # source://prism//lib/prism/node.rb#234 sig { params(params: T.untyped).returns(Prism::AliasMethodNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#181 + # source://prism//lib/prism/node.rb#219 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { new_name: Node, old_name: Node, keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#209 + # source://prism//lib/prism/node.rb#247 sig do params( keys: T::Array[Symbol] @@ -308,32 +308,32 @@ class Prism::AliasMethodNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#219 + # source://prism//lib/prism/node.rb#257 def inspect(inspector = T.unsafe(nil)); end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#214 + # source://prism//lib/prism/node.rb#252 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#165 + # source://prism//lib/prism/node.rb#203 sig { returns(Prism::Location) } def keyword_loc; end # attr_reader new_name: Node # - # source://prism//lib/prism/node.rb#159 + # source://prism//lib/prism/node.rb#197 sig { returns(Prism::Node) } def new_name; end # attr_reader old_name: Node # - # source://prism//lib/prism/node.rb#162 + # source://prism//lib/prism/node.rb#200 sig { returns(Prism::Node) } def old_name; end @@ -352,7 +352,7 @@ class Prism::AliasMethodNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#243 + # source://prism//lib/prism/node.rb#281 def type; end class << self @@ -363,7 +363,7 @@ class Prism::AliasMethodNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#253 + # source://prism//lib/prism/node.rb#291 def type; end end end @@ -373,54 +373,54 @@ end # foo => bar | baz # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#263 +# source://prism//lib/prism/node.rb#300 class Prism::AlternationPatternNode < ::Prism::Node - # def initialize: (left: Node, right: Node, operator_loc: Location, location: Location) -> void + # def initialize: (Node left, Node right, Location operator_loc, Location location) -> void # # @return [AlternationPatternNode] a new instance of AlternationPatternNode # - # source://prism//lib/prism/node.rb#273 + # source://prism//lib/prism/node.rb#311 sig { params(left: Prism::Node, right: Prism::Node, operator_loc: Prism::Location, location: Prism::Location).void } def initialize(left, right, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#281 + # source://prism//lib/prism/node.rb#319 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#286 + # source://prism//lib/prism/node.rb#324 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#296 + # source://prism//lib/prism/node.rb#334 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#291 + # source://prism//lib/prism/node.rb#329 def compact_child_nodes; end # def copy: (**params) -> AlternationPatternNode # - # source://prism//lib/prism/node.rb#301 + # source://prism//lib/prism/node.rb#339 sig { params(params: T.untyped).returns(Prism::AlternationPatternNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#286 + # source://prism//lib/prism/node.rb#324 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { left: Node, right: Node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#314 + # source://prism//lib/prism/node.rb#352 sig do params( keys: T::Array[Symbol] @@ -428,32 +428,32 @@ class Prism::AlternationPatternNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#324 + # source://prism//lib/prism/node.rb#362 def inspect(inspector = T.unsafe(nil)); end # attr_reader left: Node # - # source://prism//lib/prism/node.rb#264 + # source://prism//lib/prism/node.rb#302 sig { returns(Prism::Node) } def left; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#319 + # source://prism//lib/prism/node.rb#357 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#270 + # source://prism//lib/prism/node.rb#308 sig { returns(Prism::Location) } def operator_loc; end # attr_reader right: Node # - # source://prism//lib/prism/node.rb#267 + # source://prism//lib/prism/node.rb#305 sig { returns(Prism::Node) } def right; end @@ -472,7 +472,7 @@ class Prism::AlternationPatternNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#348 + # source://prism//lib/prism/node.rb#386 def type; end class << self @@ -483,7 +483,7 @@ class Prism::AlternationPatternNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#358 + # source://prism//lib/prism/node.rb#396 def type; end end end @@ -493,54 +493,54 @@ end # left and right # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#368 +# source://prism//lib/prism/node.rb#405 class Prism::AndNode < ::Prism::Node - # def initialize: (left: Node, right: Node, operator_loc: Location, location: Location) -> void + # def initialize: (Node left, Node right, Location operator_loc, Location location) -> void # # @return [AndNode] a new instance of AndNode # - # source://prism//lib/prism/node.rb#378 + # source://prism//lib/prism/node.rb#431 sig { params(left: Prism::Node, right: Prism::Node, operator_loc: Prism::Location, location: Prism::Location).void } def initialize(left, right, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#386 + # source://prism//lib/prism/node.rb#439 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#391 + # source://prism//lib/prism/node.rb#444 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#401 + # source://prism//lib/prism/node.rb#454 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#396 + # source://prism//lib/prism/node.rb#449 def compact_child_nodes; end # def copy: (**params) -> AndNode # - # source://prism//lib/prism/node.rb#406 + # source://prism//lib/prism/node.rb#459 sig { params(params: T.untyped).returns(Prism::AndNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#391 + # source://prism//lib/prism/node.rb#444 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { left: Node, right: Node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#419 + # source://prism//lib/prism/node.rb#472 sig do params( keys: T::Array[Symbol] @@ -548,32 +548,47 @@ class Prism::AndNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#429 + # source://prism//lib/prism/node.rb#482 def inspect(inspector = T.unsafe(nil)); end - # attr_reader left: Node + # Represents the left side of the expression. It can be any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression). + # + # left and right + # ^^^^ # - # source://prism//lib/prism/node.rb#369 + # 1 && 2 + # ^ + # + # source://prism//lib/prism/node.rb#413 sig { returns(Prism::Node) } def left; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#424 + # source://prism//lib/prism/node.rb#477 sig { returns(String) } def operator; end - # attr_reader operator_loc: Location + # The location of the `and` keyword or the `&&` operator. + # + # left and right + # ^^^ # - # source://prism//lib/prism/node.rb#375 + # source://prism//lib/prism/node.rb#428 sig { returns(Prism::Location) } def operator_loc; end - # attr_reader right: Node + # Represents the right side of the expression. It can be any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression). + # + # left && right + # ^^^^^ # - # source://prism//lib/prism/node.rb#372 + # 1 and 2 + # ^ + # + # source://prism//lib/prism/node.rb#422 sig { returns(Prism::Node) } def right; end @@ -592,7 +607,7 @@ class Prism::AndNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#453 + # source://prism//lib/prism/node.rb#506 def type; end class << self @@ -603,7 +618,7 @@ class Prism::AndNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#463 + # source://prism//lib/prism/node.rb#516 def type; end end end @@ -613,68 +628,68 @@ end # return foo, bar, baz # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#473 +# source://prism//lib/prism/node.rb#525 class Prism::ArgumentsNode < ::Prism::Node - # def initialize: (flags: Integer, arguments: Array[Node], location: Location) -> void + # def initialize: (Integer flags, Array[Node] arguments, Location location) -> void # # @return [ArgumentsNode] a new instance of ArgumentsNode # - # source://prism//lib/prism/node.rb#480 + # source://prism//lib/prism/node.rb#533 sig { params(flags: Integer, arguments: T::Array[Prism::Node], location: Prism::Location).void } def initialize(flags, arguments, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#487 + # source://prism//lib/prism/node.rb#540 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader arguments: Array[Node] # - # source://prism//lib/prism/node.rb#477 + # source://prism//lib/prism/node.rb#530 sig { returns(T::Array[Prism::Node]) } def arguments; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#492 + # source://prism//lib/prism/node.rb#545 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#502 + # source://prism//lib/prism/node.rb#555 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#497 + # source://prism//lib/prism/node.rb#550 def compact_child_nodes; end # def contains_keyword_splat?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#524 + # source://prism//lib/prism/node.rb#577 sig { returns(T::Boolean) } def contains_keyword_splat?; end # def copy: (**params) -> ArgumentsNode # - # source://prism//lib/prism/node.rb#507 + # source://prism//lib/prism/node.rb#560 sig { params(params: T.untyped).returns(Prism::ArgumentsNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#492 + # source://prism//lib/prism/node.rb#545 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, arguments: Array[Node], location: Location } # - # source://prism//lib/prism/node.rb#519 + # source://prism//lib/prism/node.rb#572 sig do params( keys: T::Array[Symbol] @@ -682,9 +697,9 @@ class Prism::ArgumentsNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#529 + # source://prism//lib/prism/node.rb#582 def inspect(inspector = T.unsafe(nil)); end # Sometimes you want to check an instance of a node against a list of @@ -702,14 +717,14 @@ class Prism::ArgumentsNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#551 + # source://prism//lib/prism/node.rb#604 def type; end private # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#474 + # source://prism//lib/prism/node.rb#527 sig { returns(Integer) } def flags; end @@ -721,34 +736,33 @@ class Prism::ArgumentsNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#561 + # source://prism//lib/prism/node.rb#614 def type; end end end # Flags for arguments nodes. # -# source://prism//lib/prism/node.rb#17277 +# source://prism//lib/prism/node.rb#17551 module Prism::ArgumentsNodeFlags; end # if arguments contain keyword splat # -# source://prism//lib/prism/node.rb#17279 +# source://prism//lib/prism/node.rb#17553 Prism::ArgumentsNodeFlags::CONTAINS_KEYWORD_SPLAT = T.let(T.unsafe(nil), Integer) -# Represents an array literal. This can be a regular array using brackets or -# a special array using % like %w or %i. +# Represents an array literal. This can be a regular array using brackets or a special array using % like %w or %i. # # [1, 2, 3] # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#572 +# source://prism//lib/prism/node.rb#623 class Prism::ArrayNode < ::Prism::Node - # def initialize: (flags: Integer, elements: Array[Node], opening_loc: Location?, closing_loc: Location?, location: Location) -> void + # def initialize: (Integer flags, Array[Node] elements, Location? opening_loc, Location? closing_loc, Location location) -> void # # @return [ArrayNode] a new instance of ArrayNode # - # source://prism//lib/prism/node.rb#585 + # source://prism//lib/prism/node.rb#637 sig do params( flags: Integer, @@ -760,64 +774,64 @@ class Prism::ArrayNode < ::Prism::Node end def initialize(flags, elements, opening_loc, closing_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#594 + # source://prism//lib/prism/node.rb#646 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#599 + # source://prism//lib/prism/node.rb#651 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#643 + # source://prism//lib/prism/node.rb#695 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#582 + # source://prism//lib/prism/node.rb#634 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#609 + # source://prism//lib/prism/node.rb#661 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#604 + # source://prism//lib/prism/node.rb#656 def compact_child_nodes; end # def contains_splat?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#633 + # source://prism//lib/prism/node.rb#685 sig { returns(T::Boolean) } def contains_splat?; end # def copy: (**params) -> ArrayNode # - # source://prism//lib/prism/node.rb#614 + # source://prism//lib/prism/node.rb#666 sig { params(params: T.untyped).returns(Prism::ArrayNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#599 + # source://prism//lib/prism/node.rb#651 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, elements: Array[Node], opening_loc: Location?, closing_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#628 + # source://prism//lib/prism/node.rb#680 sig do params( keys: T::Array[Symbol] @@ -827,24 +841,24 @@ class Prism::ArrayNode < ::Prism::Node # attr_reader elements: Array[Node] # - # source://prism//lib/prism/node.rb#576 + # source://prism//lib/prism/node.rb#628 sig { returns(T::Array[Prism::Node]) } def elements; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#648 + # source://prism//lib/prism/node.rb#700 def inspect(inspector = T.unsafe(nil)); end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#638 + # source://prism//lib/prism/node.rb#690 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#579 + # source://prism//lib/prism/node.rb#631 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end @@ -863,14 +877,14 @@ class Prism::ArrayNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#672 + # source://prism//lib/prism/node.rb#724 def type; end private # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#573 + # source://prism//lib/prism/node.rb#625 sig { returns(Integer) } def flags; end @@ -882,19 +896,19 @@ class Prism::ArrayNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#682 + # source://prism//lib/prism/node.rb#734 def type; end end end # Flags for array nodes. # -# source://prism//lib/prism/node.rb#17283 +# source://prism//lib/prism/node.rb#17557 module Prism::ArrayNodeFlags; end # if array contains splat nodes # -# source://prism//lib/prism/node.rb#17285 +# source://prism//lib/prism/node.rb#17559 Prism::ArrayNodeFlags::CONTAINS_SPLAT = T.let(T.unsafe(nil), Integer) # Represents an array pattern in pattern matching. @@ -914,13 +928,13 @@ Prism::ArrayNodeFlags::CONTAINS_SPLAT = T.let(T.unsafe(nil), Integer) # foo in Bar[1, 2, 3] # ^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#704 +# source://prism//lib/prism/node.rb#755 class Prism::ArrayPatternNode < ::Prism::Node - # def initialize: (constant: Node?, requireds: Array[Node], rest: Node?, posts: Array[Node], opening_loc: Location?, closing_loc: Location?, location: Location) -> void + # def initialize: (Node? constant, Array[Node] requireds, Node? rest, Array[Node] posts, Location? opening_loc, Location? closing_loc, Location location) -> void # # @return [ArrayPatternNode] a new instance of ArrayPatternNode # - # source://prism//lib/prism/node.rb#723 + # source://prism//lib/prism/node.rb#775 sig do params( constant: T.nilable(Prism::Node), @@ -934,62 +948,62 @@ class Prism::ArrayPatternNode < ::Prism::Node end def initialize(constant, requireds, rest, posts, opening_loc, closing_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#734 + # source://prism//lib/prism/node.rb#786 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#739 + # source://prism//lib/prism/node.rb#791 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#785 + # source://prism//lib/prism/node.rb#837 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#720 + # source://prism//lib/prism/node.rb#772 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#754 + # source://prism//lib/prism/node.rb#806 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#744 + # source://prism//lib/prism/node.rb#796 def compact_child_nodes; end # attr_reader constant: Node? # - # source://prism//lib/prism/node.rb#705 + # source://prism//lib/prism/node.rb#757 sig { returns(T.nilable(Prism::Node)) } def constant; end # def copy: (**params) -> ArrayPatternNode # - # source://prism//lib/prism/node.rb#759 + # source://prism//lib/prism/node.rb#811 sig { params(params: T.untyped).returns(Prism::ArrayPatternNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#739 + # source://prism//lib/prism/node.rb#791 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { constant: Node?, requireds: Array[Node], rest: Node?, posts: Array[Node], opening_loc: Location?, closing_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#775 + # source://prism//lib/prism/node.rb#827 sig do params( keys: T::Array[Symbol] @@ -997,38 +1011,38 @@ class Prism::ArrayPatternNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#790 + # source://prism//lib/prism/node.rb#842 def inspect(inspector = T.unsafe(nil)); end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#780 + # source://prism//lib/prism/node.rb#832 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#717 + # source://prism//lib/prism/node.rb#769 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader posts: Array[Node] # - # source://prism//lib/prism/node.rb#714 + # source://prism//lib/prism/node.rb#766 sig { returns(T::Array[Prism::Node]) } def posts; end # attr_reader requireds: Array[Node] # - # source://prism//lib/prism/node.rb#708 + # source://prism//lib/prism/node.rb#760 sig { returns(T::Array[Prism::Node]) } def requireds; end # attr_reader rest: Node? # - # source://prism//lib/prism/node.rb#711 + # source://prism//lib/prism/node.rb#763 sig { returns(T.nilable(Prism::Node)) } def rest; end @@ -1047,7 +1061,7 @@ class Prism::ArrayPatternNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#825 + # source://prism//lib/prism/node.rb#877 def type; end class << self @@ -1058,7 +1072,7 @@ class Prism::ArrayPatternNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#835 + # source://prism//lib/prism/node.rb#887 def type; end end end @@ -1068,61 +1082,61 @@ end # { a => b } # ^^^^^^ # -# source://prism//lib/prism/node.rb#845 +# source://prism//lib/prism/node.rb#896 class Prism::AssocNode < ::Prism::Node - # def initialize: (key: Node, value: Node?, operator_loc: Location?, location: Location) -> void + # def initialize: (Node key, Node value, Location? operator_loc, Location location) -> void # # @return [AssocNode] a new instance of AssocNode # - # source://prism//lib/prism/node.rb#855 + # source://prism//lib/prism/node.rb#925 sig do params( key: Prism::Node, - value: T.nilable(Prism::Node), + value: Prism::Node, operator_loc: T.nilable(Prism::Location), location: Prism::Location ).void end def initialize(key, value, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#863 + # source://prism//lib/prism/node.rb#933 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#868 + # source://prism//lib/prism/node.rb#938 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#881 + # source://prism//lib/prism/node.rb#948 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#873 + # source://prism//lib/prism/node.rb#943 def compact_child_nodes; end # def copy: (**params) -> AssocNode # - # source://prism//lib/prism/node.rb#886 + # source://prism//lib/prism/node.rb#953 sig { params(params: T.untyped).returns(Prism::AssocNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#868 + # source://prism//lib/prism/node.rb#938 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { key: Node, value: Node, operator_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#899 + # source://prism//lib/prism/node.rb#966 sig do params( keys: T::Array[Symbol] @@ -1130,26 +1144,38 @@ class Prism::AssocNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#909 + # source://prism//lib/prism/node.rb#976 def inspect(inspector = T.unsafe(nil)); end - # attr_reader key: Node + # The key of the association. This can be any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression). + # + # { a: b } + # ^ + # + # { foo => bar } + # ^^^ # - # source://prism//lib/prism/node.rb#846 + # { def a; end => 1 } + # ^^^^^^^^^^ + # + # source://prism//lib/prism/node.rb#907 sig { returns(Prism::Node) } def key; end # def operator: () -> String? # - # source://prism//lib/prism/node.rb#904 + # source://prism//lib/prism/node.rb#971 sig { returns(T.nilable(String)) } def operator; end - # attr_reader operator_loc: Location? + # The location of the `=>` operator, if present. + # + # { foo => bar } + # ^^ # - # source://prism//lib/prism/node.rb#852 + # source://prism//lib/prism/node.rb#922 sig { returns(T.nilable(Prism::Location)) } def operator_loc; end @@ -1168,13 +1194,19 @@ class Prism::AssocNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#937 + # source://prism//lib/prism/node.rb#1000 def type; end - # attr_reader value: Node? + # The value of the association, if present. This can be any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression). # - # source://prism//lib/prism/node.rb#849 - sig { returns(T.nilable(Prism::Node)) } + # { foo => bar } + # ^^^ + # + # { x: 1 } + # ^ + # + # source://prism//lib/prism/node.rb#916 + sig { returns(Prism::Node) } def value; end class << self @@ -1185,7 +1217,7 @@ class Prism::AssocNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#947 + # source://prism//lib/prism/node.rb#1010 def type; end end end @@ -1195,54 +1227,54 @@ end # { **foo } # ^^^^^ # -# source://prism//lib/prism/node.rb#957 +# source://prism//lib/prism/node.rb#1019 class Prism::AssocSplatNode < ::Prism::Node - # def initialize: (value: Node?, operator_loc: Location, location: Location) -> void + # def initialize: (Node? value, Location operator_loc, Location location) -> void # # @return [AssocSplatNode] a new instance of AssocSplatNode # - # source://prism//lib/prism/node.rb#964 + # source://prism//lib/prism/node.rb#1033 sig { params(value: T.nilable(Prism::Node), operator_loc: Prism::Location, location: Prism::Location).void } def initialize(value, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#971 + # source://prism//lib/prism/node.rb#1040 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#976 + # source://prism//lib/prism/node.rb#1045 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#988 + # source://prism//lib/prism/node.rb#1057 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#981 + # source://prism//lib/prism/node.rb#1050 def compact_child_nodes; end # def copy: (**params) -> AssocSplatNode # - # source://prism//lib/prism/node.rb#993 + # source://prism//lib/prism/node.rb#1062 sig { params(params: T.untyped).returns(Prism::AssocSplatNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#976 + # source://prism//lib/prism/node.rb#1045 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { value: Node?, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#1005 + # source://prism//lib/prism/node.rb#1074 sig do params( keys: T::Array[Symbol] @@ -1250,20 +1282,23 @@ class Prism::AssocSplatNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#1015 + # source://prism//lib/prism/node.rb#1084 def inspect(inspector = T.unsafe(nil)); end # def operator: () -> String # - # source://prism//lib/prism/node.rb#1010 + # source://prism//lib/prism/node.rb#1079 sig { returns(String) } def operator; end - # attr_reader operator_loc: Location + # The location of the `**` operator. + # + # { **x } + # ^^ # - # source://prism//lib/prism/node.rb#961 + # source://prism//lib/prism/node.rb#1030 sig { returns(Prism::Location) } def operator_loc; end @@ -1282,12 +1317,15 @@ class Prism::AssocSplatNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1041 + # source://prism//lib/prism/node.rb#1110 def type; end - # attr_reader value: Node? + # The value to be splatted, if present. Will be missing when keyword rest argument forwarding is used. # - # source://prism//lib/prism/node.rb#958 + # { **foo } + # ^^^ + # + # source://prism//lib/prism/node.rb#1024 sig { returns(T.nilable(Prism::Node)) } def value; end @@ -1299,7 +1337,7 @@ class Prism::AssocSplatNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1051 + # source://prism//lib/prism/node.rb#1120 def type; end end end @@ -1311,54 +1349,54 @@ Prism::BACKEND = T.let(T.unsafe(nil), Symbol) # $' # ^^ # -# source://prism//lib/prism/node.rb#1061 +# source://prism//lib/prism/node.rb#1129 class Prism::BackReferenceReadNode < ::Prism::Node - # def initialize: (name: Symbol, location: Location) -> void + # def initialize: (Symbol name, Location location) -> void # # @return [BackReferenceReadNode] a new instance of BackReferenceReadNode # - # source://prism//lib/prism/node.rb#1065 + # source://prism//lib/prism/node.rb#1138 sig { params(name: Symbol, location: Prism::Location).void } def initialize(name, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1071 + # source://prism//lib/prism/node.rb#1144 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1076 + # source://prism//lib/prism/node.rb#1149 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1086 + # source://prism//lib/prism/node.rb#1159 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#1081 + # source://prism//lib/prism/node.rb#1154 def compact_child_nodes; end # def copy: (**params) -> BackReferenceReadNode # - # source://prism//lib/prism/node.rb#1091 + # source://prism//lib/prism/node.rb#1164 sig { params(params: T.untyped).returns(Prism::BackReferenceReadNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1076 + # source://prism//lib/prism/node.rb#1149 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#1102 + # source://prism//lib/prism/node.rb#1175 sig do params( keys: T::Array[Symbol] @@ -1366,14 +1404,18 @@ class Prism::BackReferenceReadNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#1107 + # source://prism//lib/prism/node.rb#1180 def inspect(inspector = T.unsafe(nil)); end - # attr_reader name: Symbol + # The name of the back-reference variable, including the leading `$`. # - # source://prism//lib/prism/node.rb#1062 + # $& # name `:$&` + # + # $+ # name `:$+` + # + # source://prism//lib/prism/node.rb#1135 sig { returns(Symbol) } def name; end @@ -1392,7 +1434,7 @@ class Prism::BackReferenceReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1127 + # source://prism//lib/prism/node.rb#1200 def type; end class << self @@ -1403,7 +1445,7 @@ class Prism::BackReferenceReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1137 + # source://prism//lib/prism/node.rb#1210 def type; end end end @@ -1442,13 +1484,13 @@ end # end # ^^^^^ # -# source://prism//lib/prism/node.rb#1149 +# source://prism//lib/prism/node.rb#1221 class Prism::BeginNode < ::Prism::Node - # def initialize: (begin_keyword_loc: Location?, statements: StatementsNode?, rescue_clause: RescueNode?, else_clause: ElseNode?, ensure_clause: EnsureNode?, end_keyword_loc: Location?, location: Location) -> void + # def initialize: (Location? begin_keyword_loc, StatementsNode? statements, RescueNode? rescue_clause, ElseNode? else_clause, EnsureNode? ensure_clause, Location? end_keyword_loc, Location location) -> void # # @return [BeginNode] a new instance of BeginNode # - # source://prism//lib/prism/node.rb#1168 + # source://prism//lib/prism/node.rb#1241 sig do params( begin_keyword_loc: T.nilable(Prism::Location), @@ -1462,56 +1504,56 @@ class Prism::BeginNode < ::Prism::Node end def initialize(begin_keyword_loc, statements, rescue_clause, else_clause, ensure_clause, end_keyword_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1179 + # source://prism//lib/prism/node.rb#1252 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def begin_keyword: () -> String? # - # source://prism//lib/prism/node.rb#1229 + # source://prism//lib/prism/node.rb#1302 sig { returns(T.nilable(String)) } def begin_keyword; end # attr_reader begin_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#1150 + # source://prism//lib/prism/node.rb#1223 sig { returns(T.nilable(Prism::Location)) } def begin_keyword_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1188 + # source://prism//lib/prism/node.rb#1261 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1203 + # source://prism//lib/prism/node.rb#1276 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#1193 + # source://prism//lib/prism/node.rb#1266 def compact_child_nodes; end # def copy: (**params) -> BeginNode # - # source://prism//lib/prism/node.rb#1208 + # source://prism//lib/prism/node.rb#1281 sig { params(params: T.untyped).returns(Prism::BeginNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1188 + # source://prism//lib/prism/node.rb#1261 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { begin_keyword_loc: Location?, statements: StatementsNode?, rescue_clause: RescueNode?, else_clause: ElseNode?, ensure_clause: EnsureNode?, end_keyword_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#1224 + # source://prism//lib/prism/node.rb#1297 sig do params( keys: T::Array[Symbol] @@ -1521,45 +1563,45 @@ class Prism::BeginNode < ::Prism::Node # attr_reader else_clause: ElseNode? # - # source://prism//lib/prism/node.rb#1159 + # source://prism//lib/prism/node.rb#1232 sig { returns(T.nilable(Prism::ElseNode)) } def else_clause; end # def end_keyword: () -> String? # - # source://prism//lib/prism/node.rb#1234 + # source://prism//lib/prism/node.rb#1307 sig { returns(T.nilable(String)) } def end_keyword; end # attr_reader end_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#1165 + # source://prism//lib/prism/node.rb#1238 sig { returns(T.nilable(Prism::Location)) } def end_keyword_loc; end # attr_reader ensure_clause: EnsureNode? # - # source://prism//lib/prism/node.rb#1162 + # source://prism//lib/prism/node.rb#1235 sig { returns(T.nilable(Prism::EnsureNode)) } def ensure_clause; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#1239 + # source://prism//lib/prism/node.rb#1312 def inspect(inspector = T.unsafe(nil)); end # attr_reader rescue_clause: RescueNode? # - # source://prism//lib/prism/node.rb#1156 + # source://prism//lib/prism/node.rb#1229 sig { returns(T.nilable(Prism::RescueNode)) } def rescue_clause; end - # source://prism//lib/prism/node.rb#1183 + # source://prism//lib/prism/node.rb#1256 def set_newline_flag(newline_marked); end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#1153 + # source://prism//lib/prism/node.rb#1226 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -1578,7 +1620,7 @@ class Prism::BeginNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1284 + # source://prism//lib/prism/node.rb#1357 def type; end class << self @@ -1589,7 +1631,7 @@ class Prism::BeginNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1294 + # source://prism//lib/prism/node.rb#1367 def type; end end end @@ -1599,54 +1641,54 @@ end # bar(&args) # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#1304 +# source://prism//lib/prism/node.rb#1376 class Prism::BlockArgumentNode < ::Prism::Node - # def initialize: (expression: Node?, operator_loc: Location, location: Location) -> void + # def initialize: (Node? expression, Location operator_loc, Location location) -> void # # @return [BlockArgumentNode] a new instance of BlockArgumentNode # - # source://prism//lib/prism/node.rb#1311 + # source://prism//lib/prism/node.rb#1384 sig { params(expression: T.nilable(Prism::Node), operator_loc: Prism::Location, location: Prism::Location).void } def initialize(expression, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1318 + # source://prism//lib/prism/node.rb#1391 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1323 + # source://prism//lib/prism/node.rb#1396 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1335 + # source://prism//lib/prism/node.rb#1408 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#1328 + # source://prism//lib/prism/node.rb#1401 def compact_child_nodes; end # def copy: (**params) -> BlockArgumentNode # - # source://prism//lib/prism/node.rb#1340 + # source://prism//lib/prism/node.rb#1413 sig { params(params: T.untyped).returns(Prism::BlockArgumentNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1323 + # source://prism//lib/prism/node.rb#1396 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { expression: Node?, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#1352 + # source://prism//lib/prism/node.rb#1425 sig do params( keys: T::Array[Symbol] @@ -1656,24 +1698,24 @@ class Prism::BlockArgumentNode < ::Prism::Node # attr_reader expression: Node? # - # source://prism//lib/prism/node.rb#1305 + # source://prism//lib/prism/node.rb#1378 sig { returns(T.nilable(Prism::Node)) } def expression; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#1362 + # source://prism//lib/prism/node.rb#1435 def inspect(inspector = T.unsafe(nil)); end # def operator: () -> String # - # source://prism//lib/prism/node.rb#1357 + # source://prism//lib/prism/node.rb#1430 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#1308 + # source://prism//lib/prism/node.rb#1381 sig { returns(Prism::Location) } def operator_loc; end @@ -1692,7 +1734,7 @@ class Prism::BlockArgumentNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1388 + # source://prism//lib/prism/node.rb#1461 def type; end class << self @@ -1703,7 +1745,7 @@ class Prism::BlockArgumentNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1398 + # source://prism//lib/prism/node.rb#1471 def type; end end end @@ -1713,54 +1755,54 @@ end # a { |; b| } # ^ # -# source://prism//lib/prism/node.rb#1408 +# source://prism//lib/prism/node.rb#1480 class Prism::BlockLocalVariableNode < ::Prism::Node - # def initialize: (name: Symbol, location: Location) -> void + # def initialize: (Integer flags, Symbol name, Location location) -> void # # @return [BlockLocalVariableNode] a new instance of BlockLocalVariableNode # - # source://prism//lib/prism/node.rb#1412 - sig { params(name: Symbol, location: Prism::Location).void } - def initialize(name, location); end + # source://prism//lib/prism/node.rb#1488 + sig { params(flags: Integer, name: Symbol, location: Prism::Location).void } + def initialize(flags, name, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1418 + # source://prism//lib/prism/node.rb#1495 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1423 + # source://prism//lib/prism/node.rb#1500 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1433 + # source://prism//lib/prism/node.rb#1510 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#1428 + # source://prism//lib/prism/node.rb#1505 def compact_child_nodes; end # def copy: (**params) -> BlockLocalVariableNode # - # source://prism//lib/prism/node.rb#1438 + # source://prism//lib/prism/node.rb#1515 sig { params(params: T.untyped).returns(Prism::BlockLocalVariableNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1423 + # source://prism//lib/prism/node.rb#1500 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#1449 + # source://prism//lib/prism/node.rb#1527 sig do params( keys: T::Array[Symbol] @@ -1768,17 +1810,25 @@ class Prism::BlockLocalVariableNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#1454 + # source://prism//lib/prism/node.rb#1537 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#1409 + # source://prism//lib/prism/node.rb#1485 sig { returns(Symbol) } def name; end + # def repeated_parameter?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#1532 + sig { returns(T::Boolean) } + def repeated_parameter?; end + # Sometimes you want to check an instance of a node against a list of # classes to see what kind of behavior to perform. Usually this is done by # calling `[cls1, cls2].include?(node.class)` or putting the node into a @@ -1794,9 +1844,17 @@ class Prism::BlockLocalVariableNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1474 + # source://prism//lib/prism/node.rb#1559 def type; end + private + + # Returns the value of attribute flags. + # + # source://prism//lib/prism/node.rb#1482 + sig { returns(Integer) } + def flags; end + class << self # Similar to #type, this method returns a symbol that you can use for # splitting on the type of the node without having to do a long === chain. @@ -1805,27 +1863,26 @@ class Prism::BlockLocalVariableNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1484 + # source://prism//lib/prism/node.rb#1569 def type; end end end # Represents a block of ruby code. # -# [1, 2, 3].each { |i| puts x } -# ^^^^^^^^^^^^^^ +# [1, 2, 3].each { |i| puts x } +# ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#1494 +# source://prism//lib/prism/node.rb#1578 class Prism::BlockNode < ::Prism::Node - # def initialize: (locals: Array[Symbol], locals_body_index: Integer, parameters: Node?, body: Node?, opening_loc: Location, closing_loc: Location, location: Location) -> void + # def initialize: (Array[Symbol] locals, Node? parameters, Node? body, Location opening_loc, Location closing_loc, Location location) -> void # # @return [BlockNode] a new instance of BlockNode # - # source://prism//lib/prism/node.rb#1513 + # source://prism//lib/prism/node.rb#1595 sig do params( locals: T::Array[Symbol], - locals_body_index: Integer, parameters: T.nilable(Prism::Node), body: T.nilable(Prism::Node), opening_loc: Prism::Location, @@ -1833,64 +1890,64 @@ class Prism::BlockNode < ::Prism::Node location: Prism::Location ).void end - def initialize(locals, locals_body_index, parameters, body, opening_loc, closing_loc, location); end + def initialize(locals, parameters, body, opening_loc, closing_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1524 + # source://prism//lib/prism/node.rb#1605 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader body: Node? # - # source://prism//lib/prism/node.rb#1504 + # source://prism//lib/prism/node.rb#1586 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1529 + # source://prism//lib/prism/node.rb#1610 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#1573 + # source://prism//lib/prism/node.rb#1653 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#1510 + # source://prism//lib/prism/node.rb#1592 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1542 + # source://prism//lib/prism/node.rb#1623 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#1534 + # source://prism//lib/prism/node.rb#1615 def compact_child_nodes; end # def copy: (**params) -> BlockNode # - # source://prism//lib/prism/node.rb#1547 + # source://prism//lib/prism/node.rb#1628 sig { params(params: T.untyped).returns(Prism::BlockNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1529 + # source://prism//lib/prism/node.rb#1610 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { locals: Array[Symbol], parameters: Node?, body: Node?, opening_loc: Location, closing_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#1563 + # source://prism//lib/prism/node.rb#1643 sig do params( keys: T::Array[Symbol] @@ -1898,38 +1955,32 @@ class Prism::BlockNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#1578 + # source://prism//lib/prism/node.rb#1658 def inspect(inspector = T.unsafe(nil)); end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#1495 + # source://prism//lib/prism/node.rb#1580 sig { returns(T::Array[Symbol]) } def locals; end - # attr_reader locals_body_index: Integer - # - # source://prism//lib/prism/node.rb#1498 - sig { returns(Integer) } - def locals_body_index; end - # def opening: () -> String # - # source://prism//lib/prism/node.rb#1568 + # source://prism//lib/prism/node.rb#1648 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#1507 + # source://prism//lib/prism/node.rb#1589 sig { returns(Prism::Location) } def opening_loc; end # attr_reader parameters: Node? # - # source://prism//lib/prism/node.rb#1501 + # source://prism//lib/prism/node.rb#1583 sig { returns(T.nilable(Prism::Node)) } def parameters; end @@ -1948,7 +1999,7 @@ class Prism::BlockNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1613 + # source://prism//lib/prism/node.rb#1692 def type; end class << self @@ -1959,7 +2010,7 @@ class Prism::BlockNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1623 + # source://prism//lib/prism/node.rb#1702 def type; end end end @@ -1970,61 +2021,62 @@ end # ^^ # end # -# source://prism//lib/prism/node.rb#1634 +# source://prism//lib/prism/node.rb#1712 class Prism::BlockParameterNode < ::Prism::Node - # def initialize: (name: Symbol?, name_loc: Location?, operator_loc: Location, location: Location) -> void + # def initialize: (Integer flags, Symbol? name, Location? name_loc, Location operator_loc, Location location) -> void # # @return [BlockParameterNode] a new instance of BlockParameterNode # - # source://prism//lib/prism/node.rb#1644 + # source://prism//lib/prism/node.rb#1726 sig do params( + flags: Integer, name: T.nilable(Symbol), name_loc: T.nilable(Prism::Location), operator_loc: Prism::Location, location: Prism::Location ).void end - def initialize(name, name_loc, operator_loc, location); end + def initialize(flags, name, name_loc, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1652 + # source://prism//lib/prism/node.rb#1735 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1657 + # source://prism//lib/prism/node.rb#1740 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1667 + # source://prism//lib/prism/node.rb#1750 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#1662 + # source://prism//lib/prism/node.rb#1745 def compact_child_nodes; end # def copy: (**params) -> BlockParameterNode # - # source://prism//lib/prism/node.rb#1672 + # source://prism//lib/prism/node.rb#1755 sig { params(params: T.untyped).returns(Prism::BlockParameterNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1657 + # source://prism//lib/prism/node.rb#1740 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, name: Symbol?, name_loc: Location?, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#1685 + # source://prism//lib/prism/node.rb#1769 sig do params( keys: T::Array[Symbol] @@ -2032,35 +2084,43 @@ class Prism::BlockParameterNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#1695 + # source://prism//lib/prism/node.rb#1784 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol? # - # source://prism//lib/prism/node.rb#1635 + # source://prism//lib/prism/node.rb#1717 sig { returns(T.nilable(Symbol)) } def name; end # attr_reader name_loc: Location? # - # source://prism//lib/prism/node.rb#1638 + # source://prism//lib/prism/node.rb#1720 sig { returns(T.nilable(Prism::Location)) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#1690 + # source://prism//lib/prism/node.rb#1779 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#1641 + # source://prism//lib/prism/node.rb#1723 sig { returns(Prism::Location) } def operator_loc; end + # def repeated_parameter?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#1774 + sig { returns(T::Boolean) } + def repeated_parameter?; end + # Sometimes you want to check an instance of a node against a list of # classes to see what kind of behavior to perform. Usually this is done by # calling `[cls1, cls2].include?(node.class)` or putting the node into a @@ -2076,9 +2136,17 @@ class Prism::BlockParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1721 + # source://prism//lib/prism/node.rb#1812 def type; end + private + + # Returns the value of attribute flags. + # + # source://prism//lib/prism/node.rb#1714 + sig { returns(Integer) } + def flags; end + class << self # Similar to #type, this method returns a symbol that you can use for # splitting on the type of the node without having to do a long === chain. @@ -2087,7 +2155,7 @@ class Prism::BlockParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1731 + # source://prism//lib/prism/node.rb#1822 def type; end end end @@ -2101,13 +2169,13 @@ end # ^^^^^^^^^^^^^^^^^ # end # -# source://prism//lib/prism/node.rb#1745 +# source://prism//lib/prism/node.rb#1835 class Prism::BlockParametersNode < ::Prism::Node - # def initialize: (parameters: ParametersNode?, locals: Array[Node], opening_loc: Location?, closing_loc: Location?, location: Location) -> void + # def initialize: (ParametersNode? parameters, Array[Node] locals, Location? opening_loc, Location? closing_loc, Location location) -> void # # @return [BlockParametersNode] a new instance of BlockParametersNode # - # source://prism//lib/prism/node.rb#1758 + # source://prism//lib/prism/node.rb#1849 sig do params( parameters: T.nilable(Prism::ParametersNode), @@ -2119,56 +2187,56 @@ class Prism::BlockParametersNode < ::Prism::Node end def initialize(parameters, locals, opening_loc, closing_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1767 + # source://prism//lib/prism/node.rb#1858 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1772 + # source://prism//lib/prism/node.rb#1863 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#1814 + # source://prism//lib/prism/node.rb#1905 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#1755 + # source://prism//lib/prism/node.rb#1846 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1785 + # source://prism//lib/prism/node.rb#1876 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#1777 + # source://prism//lib/prism/node.rb#1868 def compact_child_nodes; end # def copy: (**params) -> BlockParametersNode # - # source://prism//lib/prism/node.rb#1790 + # source://prism//lib/prism/node.rb#1881 sig { params(params: T.untyped).returns(Prism::BlockParametersNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1772 + # source://prism//lib/prism/node.rb#1863 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { parameters: ParametersNode?, locals: Array[Node], opening_loc: Location?, closing_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#1804 + # source://prism//lib/prism/node.rb#1895 sig do params( keys: T::Array[Symbol] @@ -2176,32 +2244,32 @@ class Prism::BlockParametersNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#1819 + # source://prism//lib/prism/node.rb#1910 def inspect(inspector = T.unsafe(nil)); end # attr_reader locals: Array[Node] # - # source://prism//lib/prism/node.rb#1749 + # source://prism//lib/prism/node.rb#1840 sig { returns(T::Array[Prism::Node]) } def locals; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#1809 + # source://prism//lib/prism/node.rb#1900 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#1752 + # source://prism//lib/prism/node.rb#1843 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader parameters: ParametersNode? # - # source://prism//lib/prism/node.rb#1746 + # source://prism//lib/prism/node.rb#1837 sig { returns(T.nilable(Prism::ParametersNode)) } def parameters; end @@ -2220,7 +2288,7 @@ class Prism::BlockParametersNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1847 + # source://prism//lib/prism/node.rb#1938 def type; end class << self @@ -2231,7 +2299,7 @@ class Prism::BlockParametersNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1857 + # source://prism//lib/prism/node.rb#1948 def type; end end end @@ -2241,13 +2309,13 @@ end # break foo # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#1867 +# source://prism//lib/prism/node.rb#1957 class Prism::BreakNode < ::Prism::Node - # def initialize: (arguments: ArgumentsNode?, keyword_loc: Location, location: Location) -> void + # def initialize: (ArgumentsNode? arguments, Location keyword_loc, Location location) -> void # # @return [BreakNode] a new instance of BreakNode # - # source://prism//lib/prism/node.rb#1874 + # source://prism//lib/prism/node.rb#1965 sig do params( arguments: T.nilable(Prism::ArgumentsNode), @@ -2257,50 +2325,50 @@ class Prism::BreakNode < ::Prism::Node end def initialize(arguments, keyword_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1881 + # source://prism//lib/prism/node.rb#1972 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#1868 + # source://prism//lib/prism/node.rb#1959 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1886 + # source://prism//lib/prism/node.rb#1977 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1898 + # source://prism//lib/prism/node.rb#1989 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#1891 + # source://prism//lib/prism/node.rb#1982 def compact_child_nodes; end # def copy: (**params) -> BreakNode # - # source://prism//lib/prism/node.rb#1903 + # source://prism//lib/prism/node.rb#1994 sig { params(params: T.untyped).returns(Prism::BreakNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1886 + # source://prism//lib/prism/node.rb#1977 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { arguments: ArgumentsNode?, keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#1915 + # source://prism//lib/prism/node.rb#2006 sig do params( keys: T::Array[Symbol] @@ -2308,20 +2376,20 @@ class Prism::BreakNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#1925 + # source://prism//lib/prism/node.rb#2016 def inspect(inspector = T.unsafe(nil)); end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#1920 + # source://prism//lib/prism/node.rb#2011 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#1871 + # source://prism//lib/prism/node.rb#1962 sig { returns(Prism::Location) } def keyword_loc; end @@ -2340,7 +2408,7 @@ class Prism::BreakNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1951 + # source://prism//lib/prism/node.rb#2042 def type; end class << self @@ -2351,7 +2419,7 @@ class Prism::BreakNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1961 + # source://prism//lib/prism/node.rb#2052 def type; end end end @@ -2361,13 +2429,13 @@ end # foo.bar &&= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#1971 +# source://prism//lib/prism/node.rb#2061 class Prism::CallAndWriteNode < ::Prism::Node - # def initialize: (flags: Integer, receiver: Node?, call_operator_loc: Location?, message_loc: Location?, read_name: Symbol, write_name: Symbol, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (Integer flags, Node? receiver, Location? call_operator_loc, Location? message_loc, Symbol read_name, Symbol write_name, Location operator_loc, Node value, Location location) -> void # # @return [CallAndWriteNode] a new instance of CallAndWriteNode # - # source://prism//lib/prism/node.rb#1996 + # source://prism//lib/prism/node.rb#2087 sig do params( flags: Integer, @@ -2383,9 +2451,9 @@ class Prism::CallAndWriteNode < ::Prism::Node end def initialize(flags, receiver, call_operator_loc, message_loc, read_name, write_name, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2009 + # source://prism//lib/prism/node.rb#2100 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end @@ -2393,54 +2461,54 @@ class Prism::CallAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2065 + # source://prism//lib/prism/node.rb#2156 sig { returns(T::Boolean) } def attribute_write?; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#2070 + # source://prism//lib/prism/node.rb#2166 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#1978 + # source://prism//lib/prism/node.rb#2069 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2014 + # source://prism//lib/prism/node.rb#2105 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#2027 + # source://prism//lib/prism/node.rb#2118 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#2019 + # source://prism//lib/prism/node.rb#2110 def compact_child_nodes; end # def copy: (**params) -> CallAndWriteNode # - # source://prism//lib/prism/node.rb#2032 + # source://prism//lib/prism/node.rb#2123 sig { params(params: T.untyped).returns(Prism::CallAndWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2014 + # source://prism//lib/prism/node.rb#2105 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Node?, call_operator_loc: Location?, message_loc: Location?, read_name: Symbol, write_name: Symbol, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#2050 + # source://prism//lib/prism/node.rb#2141 sig do params( keys: T::Array[Symbol] @@ -2448,44 +2516,52 @@ class Prism::CallAndWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def ignore_visibility?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#2161 + sig { returns(T::Boolean) } + def ignore_visibility?; end + + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#2085 + # source://prism//lib/prism/node.rb#2181 def inspect(inspector = T.unsafe(nil)); end # def message: () -> String? # - # source://prism//lib/prism/node.rb#2075 + # source://prism//lib/prism/node.rb#2171 sig { returns(T.nilable(String)) } def message; end # attr_reader message_loc: Location? # - # source://prism//lib/prism/node.rb#1981 + # source://prism//lib/prism/node.rb#2072 sig { returns(T.nilable(Prism::Location)) } def message_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#2080 + # source://prism//lib/prism/node.rb#2176 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#1990 + # source://prism//lib/prism/node.rb#2081 sig { returns(Prism::Location) } def operator_loc; end # attr_reader read_name: Symbol # - # source://prism//lib/prism/node.rb#1984 + # source://prism//lib/prism/node.rb#2075 sig { returns(Symbol) } def read_name; end # attr_reader receiver: Node? # - # source://prism//lib/prism/node.rb#1975 + # source://prism//lib/prism/node.rb#2066 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -2493,7 +2569,7 @@ class Prism::CallAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2055 + # source://prism//lib/prism/node.rb#2146 sig { returns(T::Boolean) } def safe_navigation?; end @@ -2512,12 +2588,12 @@ class Prism::CallAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#2119 + # source://prism//lib/prism/node.rb#2215 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#1993 + # source://prism//lib/prism/node.rb#2084 sig { returns(Prism::Node) } def value; end @@ -2525,13 +2601,13 @@ class Prism::CallAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2060 + # source://prism//lib/prism/node.rb#2151 sig { returns(T::Boolean) } def variable_call?; end # attr_reader write_name: Symbol # - # source://prism//lib/prism/node.rb#1987 + # source://prism//lib/prism/node.rb#2078 sig { returns(Symbol) } def write_name; end @@ -2539,7 +2615,7 @@ class Prism::CallAndWriteNode < ::Prism::Node # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#1972 + # source://prism//lib/prism/node.rb#2063 sig { returns(Integer) } def flags; end @@ -2551,7 +2627,7 @@ class Prism::CallAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#2129 + # source://prism//lib/prism/node.rb#2225 def type; end end end @@ -2576,13 +2652,13 @@ end # foo&.bar # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#2154 +# source://prism//lib/prism/node.rb#2249 class Prism::CallNode < ::Prism::Node - # def initialize: (flags: Integer, receiver: Node?, call_operator_loc: Location?, name: Symbol, message_loc: Location?, opening_loc: Location?, arguments: ArgumentsNode?, closing_loc: Location?, block: Node?, location: Location) -> void + # def initialize: (Integer flags, Node? receiver, Location? call_operator_loc, Symbol name, Location? message_loc, Location? opening_loc, ArgumentsNode? arguments, Location? closing_loc, Node? block, Location location) -> void # # @return [CallNode] a new instance of CallNode # - # source://prism//lib/prism/node.rb#2182 + # source://prism//lib/prism/node.rb#2287 sig do params( flags: Integer, @@ -2599,15 +2675,15 @@ class Prism::CallNode < ::Prism::Node end def initialize(flags, receiver, call_operator_loc, name, message_loc, opening_loc, arguments, closing_loc, block, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2196 + # source://prism//lib/prism/node.rb#2301 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#2173 + # source://prism//lib/prism/node.rb#2278 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end @@ -2615,72 +2691,72 @@ class Prism::CallNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2254 + # source://prism//lib/prism/node.rb#2359 sig { returns(T::Boolean) } def attribute_write?; end # attr_reader block: Node? # - # source://prism//lib/prism/node.rb#2179 + # source://prism//lib/prism/node.rb#2284 sig { returns(T.nilable(Prism::Node)) } def block; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#2259 + # source://prism//lib/prism/node.rb#2369 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#2161 + # source://prism//lib/prism/node.rb#2266 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2201 + # source://prism//lib/prism/node.rb#2306 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#2274 + # source://prism//lib/prism/node.rb#2384 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#2176 + # source://prism//lib/prism/node.rb#2281 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#2215 + # source://prism//lib/prism/node.rb#2320 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#2206 + # source://prism//lib/prism/node.rb#2311 def compact_child_nodes; end # def copy: (**params) -> CallNode # - # source://prism//lib/prism/node.rb#2220 + # source://prism//lib/prism/node.rb#2325 sig { params(params: T.untyped).returns(Prism::CallNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2201 + # source://prism//lib/prism/node.rb#2306 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Node?, call_operator_loc: Location?, name: Symbol, message_loc: Location?, opening_loc: Location?, arguments: ArgumentsNode?, closing_loc: Location?, block: Node?, location: Location } # - # source://prism//lib/prism/node.rb#2239 + # source://prism//lib/prism/node.rb#2344 sig do params( keys: T::Array[Symbol] @@ -2688,44 +2764,61 @@ class Prism::CallNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def ignore_visibility?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#2364 + sig { returns(T::Boolean) } + def ignore_visibility?; end + + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#2279 + # source://prism//lib/prism/node.rb#2389 def inspect(inspector = T.unsafe(nil)); end # def message: () -> String? # - # source://prism//lib/prism/node.rb#2264 + # source://prism//lib/prism/node.rb#2374 sig { returns(T.nilable(String)) } def message; end # attr_reader message_loc: Location? # - # source://prism//lib/prism/node.rb#2167 + # source://prism//lib/prism/node.rb#2272 sig { returns(T.nilable(Prism::Location)) } def message_loc; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#2164 + # source://prism//lib/prism/node.rb#2269 sig { returns(Symbol) } def name; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#2269 + # source://prism//lib/prism/node.rb#2379 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#2170 + # source://prism//lib/prism/node.rb#2275 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end - # attr_reader receiver: Node? + # The object that the method is being called on. This can be either `nil` or any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression). + # + # foo.bar + # ^^^ + # + # +foo + # ^^^ # - # source://prism//lib/prism/node.rb#2158 + # foo + bar + # ^^^ + # + # source://prism//lib/prism/node.rb#2263 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -2733,7 +2826,7 @@ class Prism::CallNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2244 + # source://prism//lib/prism/node.rb#2349 sig { returns(T::Boolean) } def safe_navigation?; end @@ -2752,14 +2845,14 @@ class Prism::CallNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#2323 + # source://prism//lib/prism/node.rb#2433 def type; end # def variable_call?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2249 + # source://prism//lib/prism/node.rb#2354 sig { returns(T::Boolean) } def variable_call?; end @@ -2767,7 +2860,7 @@ class Prism::CallNode < ::Prism::Node # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#2155 + # source://prism//lib/prism/node.rb#2251 sig { returns(Integer) } def flags; end @@ -2779,29 +2872,34 @@ class Prism::CallNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#2333 + # source://prism//lib/prism/node.rb#2443 def type; end end end # Flags for call nodes. # -# source://prism//lib/prism/node.rb#17289 +# source://prism//lib/prism/node.rb#17563 module Prism::CallNodeFlags; end # a call that is an attribute write, so the value being written should be returned # -# source://prism//lib/prism/node.rb#17297 +# source://prism//lib/prism/node.rb#17571 Prism::CallNodeFlags::ATTRIBUTE_WRITE = T.let(T.unsafe(nil), Integer) +# a call that ignores method visibility +# +# source://prism//lib/prism/node.rb#17574 +Prism::CallNodeFlags::IGNORE_VISIBILITY = T.let(T.unsafe(nil), Integer) + # &. operator # -# source://prism//lib/prism/node.rb#17291 +# source://prism//lib/prism/node.rb#17565 Prism::CallNodeFlags::SAFE_NAVIGATION = T.let(T.unsafe(nil), Integer) # a call that could have been a local variable # -# source://prism//lib/prism/node.rb#17294 +# source://prism//lib/prism/node.rb#17568 Prism::CallNodeFlags::VARIABLE_CALL = T.let(T.unsafe(nil), Integer) # Represents the use of an assignment operator on a call. @@ -2809,13 +2907,13 @@ Prism::CallNodeFlags::VARIABLE_CALL = T.let(T.unsafe(nil), Integer) # foo.bar += baz # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#2343 +# source://prism//lib/prism/node.rb#2452 class Prism::CallOperatorWriteNode < ::Prism::Node - # def initialize: (flags: Integer, receiver: Node?, call_operator_loc: Location?, message_loc: Location?, read_name: Symbol, write_name: Symbol, operator: Symbol, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (Integer flags, Node? receiver, Location? call_operator_loc, Location? message_loc, Symbol read_name, Symbol write_name, Symbol operator, Location operator_loc, Node value, Location location) -> void # # @return [CallOperatorWriteNode] a new instance of CallOperatorWriteNode # - # source://prism//lib/prism/node.rb#2371 + # source://prism//lib/prism/node.rb#2481 sig do params( flags: Integer, @@ -2832,9 +2930,9 @@ class Prism::CallOperatorWriteNode < ::Prism::Node end def initialize(flags, receiver, call_operator_loc, message_loc, read_name, write_name, operator, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2385 + # source://prism//lib/prism/node.rb#2495 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end @@ -2842,54 +2940,54 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2442 + # source://prism//lib/prism/node.rb#2552 sig { returns(T::Boolean) } def attribute_write?; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#2447 + # source://prism//lib/prism/node.rb#2562 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#2350 + # source://prism//lib/prism/node.rb#2460 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2390 + # source://prism//lib/prism/node.rb#2500 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#2403 + # source://prism//lib/prism/node.rb#2513 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#2395 + # source://prism//lib/prism/node.rb#2505 def compact_child_nodes; end # def copy: (**params) -> CallOperatorWriteNode # - # source://prism//lib/prism/node.rb#2408 + # source://prism//lib/prism/node.rb#2518 sig { params(params: T.untyped).returns(Prism::CallOperatorWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2390 + # source://prism//lib/prism/node.rb#2500 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Node?, call_operator_loc: Location?, message_loc: Location?, read_name: Symbol, write_name: Symbol, operator: Symbol, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#2427 + # source://prism//lib/prism/node.rb#2537 sig do params( keys: T::Array[Symbol] @@ -2897,44 +2995,52 @@ class Prism::CallOperatorWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def ignore_visibility?: () -> bool # - # source://prism//lib/prism/node.rb#2457 + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#2557 + sig { returns(T::Boolean) } + def ignore_visibility?; end + + # def inspect(NodeInspector inspector) -> String + # + # source://prism//lib/prism/node.rb#2572 def inspect(inspector = T.unsafe(nil)); end # def message: () -> String? # - # source://prism//lib/prism/node.rb#2452 + # source://prism//lib/prism/node.rb#2567 sig { returns(T.nilable(String)) } def message; end # attr_reader message_loc: Location? # - # source://prism//lib/prism/node.rb#2353 + # source://prism//lib/prism/node.rb#2463 sig { returns(T.nilable(Prism::Location)) } def message_loc; end # attr_reader operator: Symbol # - # source://prism//lib/prism/node.rb#2362 + # source://prism//lib/prism/node.rb#2472 sig { returns(Symbol) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#2365 + # source://prism//lib/prism/node.rb#2475 sig { returns(Prism::Location) } def operator_loc; end # attr_reader read_name: Symbol # - # source://prism//lib/prism/node.rb#2356 + # source://prism//lib/prism/node.rb#2466 sig { returns(Symbol) } def read_name; end # attr_reader receiver: Node? # - # source://prism//lib/prism/node.rb#2347 + # source://prism//lib/prism/node.rb#2457 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -2942,7 +3048,7 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2432 + # source://prism//lib/prism/node.rb#2542 sig { returns(T::Boolean) } def safe_navigation?; end @@ -2961,12 +3067,12 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#2492 + # source://prism//lib/prism/node.rb#2607 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#2368 + # source://prism//lib/prism/node.rb#2478 sig { returns(Prism::Node) } def value; end @@ -2974,13 +3080,13 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2437 + # source://prism//lib/prism/node.rb#2547 sig { returns(T::Boolean) } def variable_call?; end # attr_reader write_name: Symbol # - # source://prism//lib/prism/node.rb#2359 + # source://prism//lib/prism/node.rb#2469 sig { returns(Symbol) } def write_name; end @@ -2988,7 +3094,7 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#2344 + # source://prism//lib/prism/node.rb#2454 sig { returns(Integer) } def flags; end @@ -3000,7 +3106,7 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#2502 + # source://prism//lib/prism/node.rb#2617 def type; end end end @@ -3010,13 +3116,13 @@ end # foo.bar ||= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#2512 +# source://prism//lib/prism/node.rb#2626 class Prism::CallOrWriteNode < ::Prism::Node - # def initialize: (flags: Integer, receiver: Node?, call_operator_loc: Location?, message_loc: Location?, read_name: Symbol, write_name: Symbol, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (Integer flags, Node? receiver, Location? call_operator_loc, Location? message_loc, Symbol read_name, Symbol write_name, Location operator_loc, Node value, Location location) -> void # # @return [CallOrWriteNode] a new instance of CallOrWriteNode # - # source://prism//lib/prism/node.rb#2537 + # source://prism//lib/prism/node.rb#2652 sig do params( flags: Integer, @@ -3032,9 +3138,9 @@ class Prism::CallOrWriteNode < ::Prism::Node end def initialize(flags, receiver, call_operator_loc, message_loc, read_name, write_name, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2550 + # source://prism//lib/prism/node.rb#2665 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end @@ -3042,54 +3148,54 @@ class Prism::CallOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2606 + # source://prism//lib/prism/node.rb#2721 sig { returns(T::Boolean) } def attribute_write?; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#2611 + # source://prism//lib/prism/node.rb#2731 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#2519 + # source://prism//lib/prism/node.rb#2634 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2555 + # source://prism//lib/prism/node.rb#2670 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#2568 + # source://prism//lib/prism/node.rb#2683 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#2560 + # source://prism//lib/prism/node.rb#2675 def compact_child_nodes; end # def copy: (**params) -> CallOrWriteNode # - # source://prism//lib/prism/node.rb#2573 + # source://prism//lib/prism/node.rb#2688 sig { params(params: T.untyped).returns(Prism::CallOrWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2555 + # source://prism//lib/prism/node.rb#2670 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Node?, call_operator_loc: Location?, message_loc: Location?, read_name: Symbol, write_name: Symbol, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#2591 + # source://prism//lib/prism/node.rb#2706 sig do params( keys: T::Array[Symbol] @@ -3097,44 +3203,52 @@ class Prism::CallOrWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def ignore_visibility?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#2726 + sig { returns(T::Boolean) } + def ignore_visibility?; end + + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#2626 + # source://prism//lib/prism/node.rb#2746 def inspect(inspector = T.unsafe(nil)); end # def message: () -> String? # - # source://prism//lib/prism/node.rb#2616 + # source://prism//lib/prism/node.rb#2736 sig { returns(T.nilable(String)) } def message; end # attr_reader message_loc: Location? # - # source://prism//lib/prism/node.rb#2522 + # source://prism//lib/prism/node.rb#2637 sig { returns(T.nilable(Prism::Location)) } def message_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#2621 + # source://prism//lib/prism/node.rb#2741 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#2531 + # source://prism//lib/prism/node.rb#2646 sig { returns(Prism::Location) } def operator_loc; end # attr_reader read_name: Symbol # - # source://prism//lib/prism/node.rb#2525 + # source://prism//lib/prism/node.rb#2640 sig { returns(Symbol) } def read_name; end # attr_reader receiver: Node? # - # source://prism//lib/prism/node.rb#2516 + # source://prism//lib/prism/node.rb#2631 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -3142,7 +3256,7 @@ class Prism::CallOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2596 + # source://prism//lib/prism/node.rb#2711 sig { returns(T::Boolean) } def safe_navigation?; end @@ -3161,12 +3275,12 @@ class Prism::CallOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#2660 + # source://prism//lib/prism/node.rb#2780 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#2534 + # source://prism//lib/prism/node.rb#2649 sig { returns(Prism::Node) } def value; end @@ -3174,13 +3288,13 @@ class Prism::CallOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2601 + # source://prism//lib/prism/node.rb#2716 sig { returns(T::Boolean) } def variable_call?; end # attr_reader write_name: Symbol # - # source://prism//lib/prism/node.rb#2528 + # source://prism//lib/prism/node.rb#2643 sig { returns(Symbol) } def write_name; end @@ -3188,7 +3302,7 @@ class Prism::CallOrWriteNode < ::Prism::Node # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#2513 + # source://prism//lib/prism/node.rb#2628 sig { returns(Integer) } def flags; end @@ -3200,7 +3314,7 @@ class Prism::CallOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#2670 + # source://prism//lib/prism/node.rb#2790 def type; end end end @@ -3218,13 +3332,13 @@ end # for foo.bar in baz do end # ^^^^^^^ # -# source://prism//lib/prism/node.rb#2688 +# source://prism//lib/prism/node.rb#2807 class Prism::CallTargetNode < ::Prism::Node - # def initialize: (flags: Integer, receiver: Node, call_operator_loc: Location, name: Symbol, message_loc: Location, location: Location) -> void + # def initialize: (Integer flags, Node receiver, Location call_operator_loc, Symbol name, Location message_loc, Location location) -> void # # @return [CallTargetNode] a new instance of CallTargetNode # - # source://prism//lib/prism/node.rb#2704 + # source://prism//lib/prism/node.rb#2824 sig do params( flags: Integer, @@ -3237,9 +3351,9 @@ class Prism::CallTargetNode < ::Prism::Node end def initialize(flags, receiver, call_operator_loc, name, message_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2714 + # source://prism//lib/prism/node.rb#2834 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end @@ -3247,54 +3361,54 @@ class Prism::CallTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2764 + # source://prism//lib/prism/node.rb#2884 sig { returns(T::Boolean) } def attribute_write?; end # def call_operator: () -> String # - # source://prism//lib/prism/node.rb#2769 + # source://prism//lib/prism/node.rb#2894 sig { returns(String) } def call_operator; end # attr_reader call_operator_loc: Location # - # source://prism//lib/prism/node.rb#2695 + # source://prism//lib/prism/node.rb#2815 sig { returns(Prism::Location) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2719 + # source://prism//lib/prism/node.rb#2839 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#2729 + # source://prism//lib/prism/node.rb#2849 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#2724 + # source://prism//lib/prism/node.rb#2844 def compact_child_nodes; end # def copy: (**params) -> CallTargetNode # - # source://prism//lib/prism/node.rb#2734 + # source://prism//lib/prism/node.rb#2854 sig { params(params: T.untyped).returns(Prism::CallTargetNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2719 + # source://prism//lib/prism/node.rb#2839 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Node, call_operator_loc: Location, name: Symbol, message_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#2749 + # source://prism//lib/prism/node.rb#2869 sig do params( keys: T::Array[Symbol] @@ -3302,32 +3416,40 @@ class Prism::CallTargetNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def ignore_visibility?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#2889 + sig { returns(T::Boolean) } + def ignore_visibility?; end + + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#2779 + # source://prism//lib/prism/node.rb#2904 def inspect(inspector = T.unsafe(nil)); end # def message: () -> String # - # source://prism//lib/prism/node.rb#2774 + # source://prism//lib/prism/node.rb#2899 sig { returns(String) } def message; end # attr_reader message_loc: Location # - # source://prism//lib/prism/node.rb#2701 + # source://prism//lib/prism/node.rb#2821 sig { returns(Prism::Location) } def message_loc; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#2698 + # source://prism//lib/prism/node.rb#2818 sig { returns(Symbol) } def name; end # attr_reader receiver: Node # - # source://prism//lib/prism/node.rb#2692 + # source://prism//lib/prism/node.rb#2812 sig { returns(Prism::Node) } def receiver; end @@ -3335,7 +3457,7 @@ class Prism::CallTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2754 + # source://prism//lib/prism/node.rb#2874 sig { returns(T::Boolean) } def safe_navigation?; end @@ -3354,14 +3476,14 @@ class Prism::CallTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#2805 + # source://prism//lib/prism/node.rb#2930 def type; end # def variable_call?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2759 + # source://prism//lib/prism/node.rb#2879 sig { returns(T::Boolean) } def variable_call?; end @@ -3369,7 +3491,7 @@ class Prism::CallTargetNode < ::Prism::Node # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#2689 + # source://prism//lib/prism/node.rb#2809 sig { returns(Integer) } def flags; end @@ -3381,7 +3503,7 @@ class Prism::CallTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#2815 + # source://prism//lib/prism/node.rb#2940 def type; end end end @@ -3391,13 +3513,13 @@ end # foo => [bar => baz] # ^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#2825 +# source://prism//lib/prism/node.rb#2949 class Prism::CapturePatternNode < ::Prism::Node - # def initialize: (value: Node, target: Node, operator_loc: Location, location: Location) -> void + # def initialize: (Node value, Node target, Location operator_loc, Location location) -> void # # @return [CapturePatternNode] a new instance of CapturePatternNode # - # source://prism//lib/prism/node.rb#2835 + # source://prism//lib/prism/node.rb#2960 sig do params( value: Prism::Node, @@ -3408,44 +3530,44 @@ class Prism::CapturePatternNode < ::Prism::Node end def initialize(value, target, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2843 + # source://prism//lib/prism/node.rb#2968 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2848 + # source://prism//lib/prism/node.rb#2973 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#2858 + # source://prism//lib/prism/node.rb#2983 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#2853 + # source://prism//lib/prism/node.rb#2978 def compact_child_nodes; end # def copy: (**params) -> CapturePatternNode # - # source://prism//lib/prism/node.rb#2863 + # source://prism//lib/prism/node.rb#2988 sig { params(params: T.untyped).returns(Prism::CapturePatternNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2848 + # source://prism//lib/prism/node.rb#2973 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { value: Node, target: Node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#2876 + # source://prism//lib/prism/node.rb#3001 sig do params( keys: T::Array[Symbol] @@ -3453,26 +3575,26 @@ class Prism::CapturePatternNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#2886 + # source://prism//lib/prism/node.rb#3011 def inspect(inspector = T.unsafe(nil)); end # def operator: () -> String # - # source://prism//lib/prism/node.rb#2881 + # source://prism//lib/prism/node.rb#3006 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#2832 + # source://prism//lib/prism/node.rb#2957 sig { returns(Prism::Location) } def operator_loc; end # attr_reader target: Node # - # source://prism//lib/prism/node.rb#2829 + # source://prism//lib/prism/node.rb#2954 sig { returns(Prism::Node) } def target; end @@ -3491,12 +3613,12 @@ class Prism::CapturePatternNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#2910 + # source://prism//lib/prism/node.rb#3035 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#2826 + # source://prism//lib/prism/node.rb#2951 sig { returns(Prism::Node) } def value; end @@ -3508,7 +3630,7 @@ class Prism::CapturePatternNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#2920 + # source://prism//lib/prism/node.rb#3045 def type; end end end @@ -3520,13 +3642,13 @@ end # end # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#2932 +# source://prism//lib/prism/node.rb#3056 class Prism::CaseMatchNode < ::Prism::Node - # def initialize: (predicate: Node?, conditions: Array[Node], consequent: ElseNode?, case_keyword_loc: Location, end_keyword_loc: Location, location: Location) -> void + # def initialize: (Node? predicate, Array[Node] conditions, ElseNode? consequent, Location case_keyword_loc, Location end_keyword_loc, Location location) -> void # # @return [CaseMatchNode] a new instance of CaseMatchNode # - # source://prism//lib/prism/node.rb#2948 + # source://prism//lib/prism/node.rb#3073 sig do params( predicate: T.nilable(Prism::Node), @@ -3539,68 +3661,68 @@ class Prism::CaseMatchNode < ::Prism::Node end def initialize(predicate, conditions, consequent, case_keyword_loc, end_keyword_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2958 + # source://prism//lib/prism/node.rb#3083 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def case_keyword: () -> String # - # source://prism//lib/prism/node.rb#3002 + # source://prism//lib/prism/node.rb#3127 sig { returns(String) } def case_keyword; end # attr_reader case_keyword_loc: Location # - # source://prism//lib/prism/node.rb#2942 + # source://prism//lib/prism/node.rb#3067 sig { returns(Prism::Location) } def case_keyword_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2963 + # source://prism//lib/prism/node.rb#3088 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#2977 + # source://prism//lib/prism/node.rb#3102 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#2968 + # source://prism//lib/prism/node.rb#3093 def compact_child_nodes; end # attr_reader conditions: Array[Node] # - # source://prism//lib/prism/node.rb#2936 + # source://prism//lib/prism/node.rb#3061 sig { returns(T::Array[Prism::Node]) } def conditions; end # attr_reader consequent: ElseNode? # - # source://prism//lib/prism/node.rb#2939 + # source://prism//lib/prism/node.rb#3064 sig { returns(T.nilable(Prism::ElseNode)) } def consequent; end # def copy: (**params) -> CaseMatchNode # - # source://prism//lib/prism/node.rb#2982 + # source://prism//lib/prism/node.rb#3107 sig { params(params: T.untyped).returns(Prism::CaseMatchNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2963 + # source://prism//lib/prism/node.rb#3088 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { predicate: Node?, conditions: Array[Node], consequent: ElseNode?, case_keyword_loc: Location, end_keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#2997 + # source://prism//lib/prism/node.rb#3122 sig do params( keys: T::Array[Symbol] @@ -3610,24 +3732,24 @@ class Prism::CaseMatchNode < ::Prism::Node # def end_keyword: () -> String # - # source://prism//lib/prism/node.rb#3007 + # source://prism//lib/prism/node.rb#3132 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#2945 + # source://prism//lib/prism/node.rb#3070 sig { returns(Prism::Location) } def end_keyword_loc; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#3012 + # source://prism//lib/prism/node.rb#3137 def inspect(inspector = T.unsafe(nil)); end # attr_reader predicate: Node? # - # source://prism//lib/prism/node.rb#2933 + # source://prism//lib/prism/node.rb#3058 sig { returns(T.nilable(Prism::Node)) } def predicate; end @@ -3646,7 +3768,7 @@ class Prism::CaseMatchNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3046 + # source://prism//lib/prism/node.rb#3171 def type; end class << self @@ -3657,7 +3779,7 @@ class Prism::CaseMatchNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3056 + # source://prism//lib/prism/node.rb#3181 def type; end end end @@ -3669,13 +3791,13 @@ end # end # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3068 +# source://prism//lib/prism/node.rb#3192 class Prism::CaseNode < ::Prism::Node - # def initialize: (predicate: Node?, conditions: Array[Node], consequent: ElseNode?, case_keyword_loc: Location, end_keyword_loc: Location, location: Location) -> void + # def initialize: (Node? predicate, Array[Node] conditions, ElseNode? consequent, Location case_keyword_loc, Location end_keyword_loc, Location location) -> void # # @return [CaseNode] a new instance of CaseNode # - # source://prism//lib/prism/node.rb#3084 + # source://prism//lib/prism/node.rb#3209 sig do params( predicate: T.nilable(Prism::Node), @@ -3688,68 +3810,68 @@ class Prism::CaseNode < ::Prism::Node end def initialize(predicate, conditions, consequent, case_keyword_loc, end_keyword_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3094 + # source://prism//lib/prism/node.rb#3219 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def case_keyword: () -> String # - # source://prism//lib/prism/node.rb#3138 + # source://prism//lib/prism/node.rb#3263 sig { returns(String) } def case_keyword; end # attr_reader case_keyword_loc: Location # - # source://prism//lib/prism/node.rb#3078 + # source://prism//lib/prism/node.rb#3203 sig { returns(Prism::Location) } def case_keyword_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3099 + # source://prism//lib/prism/node.rb#3224 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#3113 + # source://prism//lib/prism/node.rb#3238 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#3104 + # source://prism//lib/prism/node.rb#3229 def compact_child_nodes; end # attr_reader conditions: Array[Node] # - # source://prism//lib/prism/node.rb#3072 + # source://prism//lib/prism/node.rb#3197 sig { returns(T::Array[Prism::Node]) } def conditions; end # attr_reader consequent: ElseNode? # - # source://prism//lib/prism/node.rb#3075 + # source://prism//lib/prism/node.rb#3200 sig { returns(T.nilable(Prism::ElseNode)) } def consequent; end # def copy: (**params) -> CaseNode # - # source://prism//lib/prism/node.rb#3118 + # source://prism//lib/prism/node.rb#3243 sig { params(params: T.untyped).returns(Prism::CaseNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3099 + # source://prism//lib/prism/node.rb#3224 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { predicate: Node?, conditions: Array[Node], consequent: ElseNode?, case_keyword_loc: Location, end_keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#3133 + # source://prism//lib/prism/node.rb#3258 sig do params( keys: T::Array[Symbol] @@ -3759,24 +3881,24 @@ class Prism::CaseNode < ::Prism::Node # def end_keyword: () -> String # - # source://prism//lib/prism/node.rb#3143 + # source://prism//lib/prism/node.rb#3268 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#3081 + # source://prism//lib/prism/node.rb#3206 sig { returns(Prism::Location) } def end_keyword_loc; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#3148 + # source://prism//lib/prism/node.rb#3273 def inspect(inspector = T.unsafe(nil)); end # attr_reader predicate: Node? # - # source://prism//lib/prism/node.rb#3069 + # source://prism//lib/prism/node.rb#3194 sig { returns(T.nilable(Prism::Node)) } def predicate; end @@ -3795,7 +3917,7 @@ class Prism::CaseNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3182 + # source://prism//lib/prism/node.rb#3307 def type; end class << self @@ -3806,7 +3928,7 @@ class Prism::CaseNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3192 + # source://prism//lib/prism/node.rb#3317 def type; end end end @@ -3816,13 +3938,13 @@ end # class Foo end # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3202 +# source://prism//lib/prism/node.rb#3326 class Prism::ClassNode < ::Prism::Node - # def initialize: (locals: Array[Symbol], class_keyword_loc: Location, constant_path: Node, inheritance_operator_loc: Location?, superclass: Node?, body: Node?, end_keyword_loc: Location, name: Symbol, location: Location) -> void + # def initialize: (Array[Symbol] locals, Location class_keyword_loc, Node constant_path, Location? inheritance_operator_loc, Node? superclass, Node? body, Location end_keyword_loc, Symbol name, Location location) -> void # # @return [ClassNode] a new instance of ClassNode # - # source://prism//lib/prism/node.rb#3227 + # source://prism//lib/prism/node.rb#3352 sig do params( locals: T::Array[Symbol], @@ -3838,68 +3960,68 @@ class Prism::ClassNode < ::Prism::Node end def initialize(locals, class_keyword_loc, constant_path, inheritance_operator_loc, superclass, body, end_keyword_loc, name, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3240 + # source://prism//lib/prism/node.rb#3365 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader body: Node? # - # source://prism//lib/prism/node.rb#3218 + # source://prism//lib/prism/node.rb#3343 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3245 + # source://prism//lib/prism/node.rb#3370 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def class_keyword: () -> String # - # source://prism//lib/prism/node.rb#3287 + # source://prism//lib/prism/node.rb#3412 sig { returns(String) } def class_keyword; end # attr_reader class_keyword_loc: Location # - # source://prism//lib/prism/node.rb#3206 + # source://prism//lib/prism/node.rb#3331 sig { returns(Prism::Location) } def class_keyword_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#3259 + # source://prism//lib/prism/node.rb#3384 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#3250 + # source://prism//lib/prism/node.rb#3375 def compact_child_nodes; end # attr_reader constant_path: Node # - # source://prism//lib/prism/node.rb#3209 + # source://prism//lib/prism/node.rb#3334 sig { returns(Prism::Node) } def constant_path; end # def copy: (**params) -> ClassNode # - # source://prism//lib/prism/node.rb#3264 + # source://prism//lib/prism/node.rb#3389 sig { params(params: T.untyped).returns(Prism::ClassNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3245 + # source://prism//lib/prism/node.rb#3370 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { locals: Array[Symbol], class_keyword_loc: Location, constant_path: Node, inheritance_operator_loc: Location?, superclass: Node?, body: Node?, end_keyword_loc: Location, name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#3282 + # source://prism//lib/prism/node.rb#3407 sig do params( keys: T::Array[Symbol] @@ -3909,48 +4031,48 @@ class Prism::ClassNode < ::Prism::Node # def end_keyword: () -> String # - # source://prism//lib/prism/node.rb#3297 + # source://prism//lib/prism/node.rb#3422 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#3221 + # source://prism//lib/prism/node.rb#3346 sig { returns(Prism::Location) } def end_keyword_loc; end # def inheritance_operator: () -> String? # - # source://prism//lib/prism/node.rb#3292 + # source://prism//lib/prism/node.rb#3417 sig { returns(T.nilable(String)) } def inheritance_operator; end # attr_reader inheritance_operator_loc: Location? # - # source://prism//lib/prism/node.rb#3212 + # source://prism//lib/prism/node.rb#3337 sig { returns(T.nilable(Prism::Location)) } def inheritance_operator_loc; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#3302 + # source://prism//lib/prism/node.rb#3427 def inspect(inspector = T.unsafe(nil)); end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#3203 + # source://prism//lib/prism/node.rb#3328 sig { returns(T::Array[Symbol]) } def locals; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#3224 + # source://prism//lib/prism/node.rb#3349 sig { returns(Symbol) } def name; end # attr_reader superclass: Node? # - # source://prism//lib/prism/node.rb#3215 + # source://prism//lib/prism/node.rb#3340 sig { returns(T.nilable(Prism::Node)) } def superclass; end @@ -3969,7 +4091,7 @@ class Prism::ClassNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3340 + # source://prism//lib/prism/node.rb#3465 def type; end class << self @@ -3980,7 +4102,7 @@ class Prism::ClassNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3350 + # source://prism//lib/prism/node.rb#3475 def type; end end end @@ -3990,13 +4112,13 @@ end # @@target &&= value # ^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3360 +# source://prism//lib/prism/node.rb#3484 class Prism::ClassVariableAndWriteNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void # # @return [ClassVariableAndWriteNode] a new instance of ClassVariableAndWriteNode # - # source://prism//lib/prism/node.rb#3373 + # source://prism//lib/prism/node.rb#3498 sig do params( name: Symbol, @@ -4008,44 +4130,44 @@ class Prism::ClassVariableAndWriteNode < ::Prism::Node end def initialize(name, name_loc, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3382 + # source://prism//lib/prism/node.rb#3507 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3387 + # source://prism//lib/prism/node.rb#3512 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#3397 + # source://prism//lib/prism/node.rb#3522 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#3392 + # source://prism//lib/prism/node.rb#3517 def compact_child_nodes; end # def copy: (**params) -> ClassVariableAndWriteNode # - # source://prism//lib/prism/node.rb#3402 + # source://prism//lib/prism/node.rb#3527 sig { params(params: T.untyped).returns(Prism::ClassVariableAndWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3387 + # source://prism//lib/prism/node.rb#3512 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#3416 + # source://prism//lib/prism/node.rb#3541 sig do params( keys: T::Array[Symbol] @@ -4053,32 +4175,32 @@ class Prism::ClassVariableAndWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#3426 + # source://prism//lib/prism/node.rb#3551 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#3361 + # source://prism//lib/prism/node.rb#3486 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#3364 + # source://prism//lib/prism/node.rb#3489 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#3421 + # source://prism//lib/prism/node.rb#3546 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#3367 + # source://prism//lib/prism/node.rb#3492 sig { returns(Prism::Location) } def operator_loc; end @@ -4097,12 +4219,12 @@ class Prism::ClassVariableAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3450 + # source://prism//lib/prism/node.rb#3575 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#3370 + # source://prism//lib/prism/node.rb#3495 sig { returns(Prism::Node) } def value; end @@ -4114,7 +4236,7 @@ class Prism::ClassVariableAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3460 + # source://prism//lib/prism/node.rb#3585 def type; end end end @@ -4124,13 +4246,13 @@ end # @@target += value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3470 +# source://prism//lib/prism/node.rb#3594 class Prism::ClassVariableOperatorWriteNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, operator: Symbol, location: Location) -> void + # def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Symbol operator, Location location) -> void # # @return [ClassVariableOperatorWriteNode] a new instance of ClassVariableOperatorWriteNode # - # source://prism//lib/prism/node.rb#3486 + # source://prism//lib/prism/node.rb#3611 sig do params( name: Symbol, @@ -4143,44 +4265,44 @@ class Prism::ClassVariableOperatorWriteNode < ::Prism::Node end def initialize(name, name_loc, operator_loc, value, operator, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3496 + # source://prism//lib/prism/node.rb#3621 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3501 + # source://prism//lib/prism/node.rb#3626 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#3511 + # source://prism//lib/prism/node.rb#3636 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#3506 + # source://prism//lib/prism/node.rb#3631 def compact_child_nodes; end # def copy: (**params) -> ClassVariableOperatorWriteNode # - # source://prism//lib/prism/node.rb#3516 + # source://prism//lib/prism/node.rb#3641 sig { params(params: T.untyped).returns(Prism::ClassVariableOperatorWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3501 + # source://prism//lib/prism/node.rb#3626 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Node, operator: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#3531 + # source://prism//lib/prism/node.rb#3656 sig do params( keys: T::Array[Symbol] @@ -4188,32 +4310,32 @@ class Prism::ClassVariableOperatorWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#3536 + # source://prism//lib/prism/node.rb#3661 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#3471 + # source://prism//lib/prism/node.rb#3596 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#3474 + # source://prism//lib/prism/node.rb#3599 sig { returns(Prism::Location) } def name_loc; end # attr_reader operator: Symbol # - # source://prism//lib/prism/node.rb#3483 + # source://prism//lib/prism/node.rb#3608 sig { returns(Symbol) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#3477 + # source://prism//lib/prism/node.rb#3602 sig { returns(Prism::Location) } def operator_loc; end @@ -4232,12 +4354,12 @@ class Prism::ClassVariableOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3561 + # source://prism//lib/prism/node.rb#3686 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#3480 + # source://prism//lib/prism/node.rb#3605 sig { returns(Prism::Node) } def value; end @@ -4249,7 +4371,7 @@ class Prism::ClassVariableOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3571 + # source://prism//lib/prism/node.rb#3696 def type; end end end @@ -4259,13 +4381,13 @@ end # @@target ||= value # ^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3581 +# source://prism//lib/prism/node.rb#3705 class Prism::ClassVariableOrWriteNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void # # @return [ClassVariableOrWriteNode] a new instance of ClassVariableOrWriteNode # - # source://prism//lib/prism/node.rb#3594 + # source://prism//lib/prism/node.rb#3719 sig do params( name: Symbol, @@ -4277,44 +4399,44 @@ class Prism::ClassVariableOrWriteNode < ::Prism::Node end def initialize(name, name_loc, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3603 + # source://prism//lib/prism/node.rb#3728 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3608 + # source://prism//lib/prism/node.rb#3733 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#3618 + # source://prism//lib/prism/node.rb#3743 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#3613 + # source://prism//lib/prism/node.rb#3738 def compact_child_nodes; end # def copy: (**params) -> ClassVariableOrWriteNode # - # source://prism//lib/prism/node.rb#3623 + # source://prism//lib/prism/node.rb#3748 sig { params(params: T.untyped).returns(Prism::ClassVariableOrWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3608 + # source://prism//lib/prism/node.rb#3733 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#3637 + # source://prism//lib/prism/node.rb#3762 sig do params( keys: T::Array[Symbol] @@ -4322,32 +4444,32 @@ class Prism::ClassVariableOrWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#3647 + # source://prism//lib/prism/node.rb#3772 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#3582 + # source://prism//lib/prism/node.rb#3707 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#3585 + # source://prism//lib/prism/node.rb#3710 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#3642 + # source://prism//lib/prism/node.rb#3767 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#3588 + # source://prism//lib/prism/node.rb#3713 sig { returns(Prism::Location) } def operator_loc; end @@ -4366,12 +4488,12 @@ class Prism::ClassVariableOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3671 + # source://prism//lib/prism/node.rb#3796 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#3591 + # source://prism//lib/prism/node.rb#3716 sig { returns(Prism::Node) } def value; end @@ -4383,7 +4505,7 @@ class Prism::ClassVariableOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3681 + # source://prism//lib/prism/node.rb#3806 def type; end end end @@ -4393,54 +4515,54 @@ end # @@foo # ^^^^^ # -# source://prism//lib/prism/node.rb#3691 +# source://prism//lib/prism/node.rb#3815 class Prism::ClassVariableReadNode < ::Prism::Node - # def initialize: (name: Symbol, location: Location) -> void + # def initialize: (Symbol name, Location location) -> void # # @return [ClassVariableReadNode] a new instance of ClassVariableReadNode # - # source://prism//lib/prism/node.rb#3695 + # source://prism//lib/prism/node.rb#3824 sig { params(name: Symbol, location: Prism::Location).void } def initialize(name, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3701 + # source://prism//lib/prism/node.rb#3830 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3706 + # source://prism//lib/prism/node.rb#3835 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#3716 + # source://prism//lib/prism/node.rb#3845 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#3711 + # source://prism//lib/prism/node.rb#3840 def compact_child_nodes; end # def copy: (**params) -> ClassVariableReadNode # - # source://prism//lib/prism/node.rb#3721 + # source://prism//lib/prism/node.rb#3850 sig { params(params: T.untyped).returns(Prism::ClassVariableReadNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3706 + # source://prism//lib/prism/node.rb#3835 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#3732 + # source://prism//lib/prism/node.rb#3861 sig do params( keys: T::Array[Symbol] @@ -4448,14 +4570,18 @@ class Prism::ClassVariableReadNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#3737 + # source://prism//lib/prism/node.rb#3866 def inspect(inspector = T.unsafe(nil)); end - # attr_reader name: Symbol + # The name of the class variable, which is a `@@` followed by an [identifier](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#identifiers). + # + # @@abc # name `:@@abc` + # + # @@_test # name `:@@_test` # - # source://prism//lib/prism/node.rb#3692 + # source://prism//lib/prism/node.rb#3821 sig { returns(Symbol) } def name; end @@ -4474,7 +4600,7 @@ class Prism::ClassVariableReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3757 + # source://prism//lib/prism/node.rb#3886 def type; end class << self @@ -4485,7 +4611,7 @@ class Prism::ClassVariableReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3767 + # source://prism//lib/prism/node.rb#3896 def type; end end end @@ -4495,54 +4621,54 @@ end # @@foo, @@bar = baz # ^^^^^ ^^^^^ # -# source://prism//lib/prism/node.rb#3777 +# source://prism//lib/prism/node.rb#3905 class Prism::ClassVariableTargetNode < ::Prism::Node - # def initialize: (name: Symbol, location: Location) -> void + # def initialize: (Symbol name, Location location) -> void # # @return [ClassVariableTargetNode] a new instance of ClassVariableTargetNode # - # source://prism//lib/prism/node.rb#3781 + # source://prism//lib/prism/node.rb#3910 sig { params(name: Symbol, location: Prism::Location).void } def initialize(name, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3787 + # source://prism//lib/prism/node.rb#3916 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3792 + # source://prism//lib/prism/node.rb#3921 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#3802 + # source://prism//lib/prism/node.rb#3931 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#3797 + # source://prism//lib/prism/node.rb#3926 def compact_child_nodes; end # def copy: (**params) -> ClassVariableTargetNode # - # source://prism//lib/prism/node.rb#3807 + # source://prism//lib/prism/node.rb#3936 sig { params(params: T.untyped).returns(Prism::ClassVariableTargetNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3792 + # source://prism//lib/prism/node.rb#3921 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#3818 + # source://prism//lib/prism/node.rb#3947 sig do params( keys: T::Array[Symbol] @@ -4550,14 +4676,14 @@ class Prism::ClassVariableTargetNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#3823 + # source://prism//lib/prism/node.rb#3952 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#3778 + # source://prism//lib/prism/node.rb#3907 sig { returns(Symbol) } def name; end @@ -4576,7 +4702,7 @@ class Prism::ClassVariableTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3843 + # source://prism//lib/prism/node.rb#3972 def type; end class << self @@ -4587,7 +4713,7 @@ class Prism::ClassVariableTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3853 + # source://prism//lib/prism/node.rb#3982 def type; end end end @@ -4597,13 +4723,13 @@ end # @@foo = 1 # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3863 +# source://prism//lib/prism/node.rb#3991 class Prism::ClassVariableWriteNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, value: Node, operator_loc: Location?, location: Location) -> void + # def initialize: (Symbol name, Location name_loc, Node value, Location? operator_loc, Location location) -> void # # @return [ClassVariableWriteNode] a new instance of ClassVariableWriteNode # - # source://prism//lib/prism/node.rb#3876 + # source://prism//lib/prism/node.rb#4005 sig do params( name: Symbol, @@ -4615,44 +4741,44 @@ class Prism::ClassVariableWriteNode < ::Prism::Node end def initialize(name, name_loc, value, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3885 + # source://prism//lib/prism/node.rb#4014 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3890 + # source://prism//lib/prism/node.rb#4019 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#3900 + # source://prism//lib/prism/node.rb#4029 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#3895 + # source://prism//lib/prism/node.rb#4024 def compact_child_nodes; end # def copy: (**params) -> ClassVariableWriteNode # - # source://prism//lib/prism/node.rb#3905 + # source://prism//lib/prism/node.rb#4034 sig { params(params: T.untyped).returns(Prism::ClassVariableWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3890 + # source://prism//lib/prism/node.rb#4019 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, value: Node, operator_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#3919 + # source://prism//lib/prism/node.rb#4048 sig do params( keys: T::Array[Symbol] @@ -4660,32 +4786,32 @@ class Prism::ClassVariableWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#3929 + # source://prism//lib/prism/node.rb#4058 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#3864 + # source://prism//lib/prism/node.rb#3993 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#3867 + # source://prism//lib/prism/node.rb#3996 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String? # - # source://prism//lib/prism/node.rb#3924 + # source://prism//lib/prism/node.rb#4053 sig { returns(T.nilable(String)) } def operator; end # attr_reader operator_loc: Location? # - # source://prism//lib/prism/node.rb#3873 + # source://prism//lib/prism/node.rb#4002 sig { returns(T.nilable(Prism::Location)) } def operator_loc; end @@ -4704,12 +4830,12 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3953 + # source://prism//lib/prism/node.rb#4082 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#3870 + # source://prism//lib/prism/node.rb#3999 sig { returns(Prism::Node) } def value; end @@ -4721,7 +4847,7 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3963 + # source://prism//lib/prism/node.rb#4092 def type; end end end @@ -5681,13 +5807,13 @@ end # Target &&= value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3973 +# source://prism//lib/prism/node.rb#4101 class Prism::ConstantAndWriteNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void # # @return [ConstantAndWriteNode] a new instance of ConstantAndWriteNode # - # source://prism//lib/prism/node.rb#3986 + # source://prism//lib/prism/node.rb#4115 sig do params( name: Symbol, @@ -5699,44 +5825,44 @@ class Prism::ConstantAndWriteNode < ::Prism::Node end def initialize(name, name_loc, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3995 + # source://prism//lib/prism/node.rb#4124 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4000 + # source://prism//lib/prism/node.rb#4129 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4010 + # source://prism//lib/prism/node.rb#4139 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4005 + # source://prism//lib/prism/node.rb#4134 def compact_child_nodes; end # def copy: (**params) -> ConstantAndWriteNode # - # source://prism//lib/prism/node.rb#4015 + # source://prism//lib/prism/node.rb#4144 sig { params(params: T.untyped).returns(Prism::ConstantAndWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4000 + # source://prism//lib/prism/node.rb#4129 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#4029 + # source://prism//lib/prism/node.rb#4158 sig do params( keys: T::Array[Symbol] @@ -5744,32 +5870,32 @@ class Prism::ConstantAndWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#4039 + # source://prism//lib/prism/node.rb#4168 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#3974 + # source://prism//lib/prism/node.rb#4103 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#3977 + # source://prism//lib/prism/node.rb#4106 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#4034 + # source://prism//lib/prism/node.rb#4163 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#3980 + # source://prism//lib/prism/node.rb#4109 sig { returns(Prism::Location) } def operator_loc; end @@ -5788,12 +5914,12 @@ class Prism::ConstantAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4063 + # source://prism//lib/prism/node.rb#4192 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#3983 + # source://prism//lib/prism/node.rb#4112 sig { returns(Prism::Node) } def value; end @@ -5805,7 +5931,7 @@ class Prism::ConstantAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4073 + # source://prism//lib/prism/node.rb#4202 def type; end end end @@ -5815,13 +5941,13 @@ end # Target += value # ^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4083 +# source://prism//lib/prism/node.rb#4211 class Prism::ConstantOperatorWriteNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, operator: Symbol, location: Location) -> void + # def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Symbol operator, Location location) -> void # # @return [ConstantOperatorWriteNode] a new instance of ConstantOperatorWriteNode # - # source://prism//lib/prism/node.rb#4099 + # source://prism//lib/prism/node.rb#4228 sig do params( name: Symbol, @@ -5834,44 +5960,44 @@ class Prism::ConstantOperatorWriteNode < ::Prism::Node end def initialize(name, name_loc, operator_loc, value, operator, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4109 + # source://prism//lib/prism/node.rb#4238 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4114 + # source://prism//lib/prism/node.rb#4243 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4124 + # source://prism//lib/prism/node.rb#4253 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4119 + # source://prism//lib/prism/node.rb#4248 def compact_child_nodes; end # def copy: (**params) -> ConstantOperatorWriteNode # - # source://prism//lib/prism/node.rb#4129 + # source://prism//lib/prism/node.rb#4258 sig { params(params: T.untyped).returns(Prism::ConstantOperatorWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4114 + # source://prism//lib/prism/node.rb#4243 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Node, operator: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#4144 + # source://prism//lib/prism/node.rb#4273 sig do params( keys: T::Array[Symbol] @@ -5879,32 +6005,32 @@ class Prism::ConstantOperatorWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#4149 + # source://prism//lib/prism/node.rb#4278 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#4084 + # source://prism//lib/prism/node.rb#4213 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#4087 + # source://prism//lib/prism/node.rb#4216 sig { returns(Prism::Location) } def name_loc; end # attr_reader operator: Symbol # - # source://prism//lib/prism/node.rb#4096 + # source://prism//lib/prism/node.rb#4225 sig { returns(Symbol) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#4090 + # source://prism//lib/prism/node.rb#4219 sig { returns(Prism::Location) } def operator_loc; end @@ -5923,12 +6049,12 @@ class Prism::ConstantOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4174 + # source://prism//lib/prism/node.rb#4303 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#4093 + # source://prism//lib/prism/node.rb#4222 sig { returns(Prism::Node) } def value; end @@ -5940,7 +6066,7 @@ class Prism::ConstantOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4184 + # source://prism//lib/prism/node.rb#4313 def type; end end end @@ -5950,13 +6076,13 @@ end # Target ||= value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4194 +# source://prism//lib/prism/node.rb#4322 class Prism::ConstantOrWriteNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void # # @return [ConstantOrWriteNode] a new instance of ConstantOrWriteNode # - # source://prism//lib/prism/node.rb#4207 + # source://prism//lib/prism/node.rb#4336 sig do params( name: Symbol, @@ -5968,44 +6094,44 @@ class Prism::ConstantOrWriteNode < ::Prism::Node end def initialize(name, name_loc, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4216 + # source://prism//lib/prism/node.rb#4345 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4221 + # source://prism//lib/prism/node.rb#4350 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4231 + # source://prism//lib/prism/node.rb#4360 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4226 + # source://prism//lib/prism/node.rb#4355 def compact_child_nodes; end # def copy: (**params) -> ConstantOrWriteNode # - # source://prism//lib/prism/node.rb#4236 + # source://prism//lib/prism/node.rb#4365 sig { params(params: T.untyped).returns(Prism::ConstantOrWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4221 + # source://prism//lib/prism/node.rb#4350 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#4250 + # source://prism//lib/prism/node.rb#4379 sig do params( keys: T::Array[Symbol] @@ -6013,32 +6139,32 @@ class Prism::ConstantOrWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#4260 + # source://prism//lib/prism/node.rb#4389 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#4195 + # source://prism//lib/prism/node.rb#4324 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#4198 + # source://prism//lib/prism/node.rb#4327 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#4255 + # source://prism//lib/prism/node.rb#4384 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#4201 + # source://prism//lib/prism/node.rb#4330 sig { returns(Prism::Location) } def operator_loc; end @@ -6057,12 +6183,12 @@ class Prism::ConstantOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4284 + # source://prism//lib/prism/node.rb#4413 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#4204 + # source://prism//lib/prism/node.rb#4333 sig { returns(Prism::Node) } def value; end @@ -6074,7 +6200,7 @@ class Prism::ConstantOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4294 + # source://prism//lib/prism/node.rb#4423 def type; end end end @@ -6084,13 +6210,13 @@ end # Parent::Child &&= value # ^^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4304 +# source://prism//lib/prism/node.rb#4432 class Prism::ConstantPathAndWriteNode < ::Prism::Node - # def initialize: (target: ConstantPathNode, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (ConstantPathNode target, Location operator_loc, Node value, Location location) -> void # # @return [ConstantPathAndWriteNode] a new instance of ConstantPathAndWriteNode # - # source://prism//lib/prism/node.rb#4314 + # source://prism//lib/prism/node.rb#4443 sig do params( target: Prism::ConstantPathNode, @@ -6101,44 +6227,44 @@ class Prism::ConstantPathAndWriteNode < ::Prism::Node end def initialize(target, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4322 + # source://prism//lib/prism/node.rb#4451 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4327 + # source://prism//lib/prism/node.rb#4456 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4337 + # source://prism//lib/prism/node.rb#4466 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4332 + # source://prism//lib/prism/node.rb#4461 def compact_child_nodes; end # def copy: (**params) -> ConstantPathAndWriteNode # - # source://prism//lib/prism/node.rb#4342 + # source://prism//lib/prism/node.rb#4471 sig { params(params: T.untyped).returns(Prism::ConstantPathAndWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4327 + # source://prism//lib/prism/node.rb#4456 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { target: ConstantPathNode, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#4355 + # source://prism//lib/prism/node.rb#4484 sig do params( keys: T::Array[Symbol] @@ -6146,26 +6272,26 @@ class Prism::ConstantPathAndWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#4365 + # source://prism//lib/prism/node.rb#4494 def inspect(inspector = T.unsafe(nil)); end # def operator: () -> String # - # source://prism//lib/prism/node.rb#4360 + # source://prism//lib/prism/node.rb#4489 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#4308 + # source://prism//lib/prism/node.rb#4437 sig { returns(Prism::Location) } def operator_loc; end # attr_reader target: ConstantPathNode # - # source://prism//lib/prism/node.rb#4305 + # source://prism//lib/prism/node.rb#4434 sig { returns(Prism::ConstantPathNode) } def target; end @@ -6184,12 +6310,12 @@ class Prism::ConstantPathAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4389 + # source://prism//lib/prism/node.rb#4518 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#4311 + # source://prism//lib/prism/node.rb#4440 sig { returns(Prism::Node) } def value; end @@ -6201,7 +6327,7 @@ class Prism::ConstantPathAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4399 + # source://prism//lib/prism/node.rb#4528 def type; end end end @@ -6211,13 +6337,13 @@ end # Foo::Bar # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#4409 +# source://prism//lib/prism/node.rb#4537 class Prism::ConstantPathNode < ::Prism::Node - # def initialize: (parent: Node?, child: Node, delimiter_loc: Location, location: Location) -> void + # def initialize: (Node? parent, Node child, Location delimiter_loc, Location location) -> void # # @return [ConstantPathNode] a new instance of ConstantPathNode # - # source://prism//lib/prism/node.rb#4419 + # source://prism//lib/prism/node.rb#4548 sig do params( parent: T.nilable(Prism::Node), @@ -6228,50 +6354,50 @@ class Prism::ConstantPathNode < ::Prism::Node end def initialize(parent, child, delimiter_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4427 + # source://prism//lib/prism/node.rb#4556 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader child: Node # - # source://prism//lib/prism/node.rb#4413 + # source://prism//lib/prism/node.rb#4542 sig { returns(Prism::Node) } def child; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4432 + # source://prism//lib/prism/node.rb#4561 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4445 + # source://prism//lib/prism/node.rb#4574 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4437 + # source://prism//lib/prism/node.rb#4566 def compact_child_nodes; end # def copy: (**params) -> ConstantPathNode # - # source://prism//lib/prism/node.rb#4450 + # source://prism//lib/prism/node.rb#4579 sig { params(params: T.untyped).returns(Prism::ConstantPathNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4432 + # source://prism//lib/prism/node.rb#4561 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { parent: Node?, child: Node, delimiter_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#4463 + # source://prism//lib/prism/node.rb#4592 sig do params( keys: T::Array[Symbol] @@ -6281,13 +6407,13 @@ class Prism::ConstantPathNode < ::Prism::Node # def delimiter: () -> String # - # source://prism//lib/prism/node.rb#4468 + # source://prism//lib/prism/node.rb#4597 sig { returns(String) } def delimiter; end # attr_reader delimiter_loc: Location # - # source://prism//lib/prism/node.rb#4416 + # source://prism//lib/prism/node.rb#4545 sig { returns(Prism::Location) } def delimiter_loc; end @@ -6302,14 +6428,14 @@ class Prism::ConstantPathNode < ::Prism::Node # source://prism//lib/prism/node_ext.rb#112 def full_name_parts; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#4473 + # source://prism//lib/prism/node.rb#4602 def inspect(inspector = T.unsafe(nil)); end # attr_reader parent: Node? # - # source://prism//lib/prism/node.rb#4410 + # source://prism//lib/prism/node.rb#4539 sig { returns(T.nilable(Prism::Node)) } def parent; end @@ -6328,7 +6454,7 @@ class Prism::ConstantPathNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4501 + # source://prism//lib/prism/node.rb#4630 def type; end class << self @@ -6339,7 +6465,7 @@ class Prism::ConstantPathNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4511 + # source://prism//lib/prism/node.rb#4640 def type; end end end @@ -6359,13 +6485,13 @@ class Prism::ConstantPathNode::DynamicPartsInConstantPathError < ::StandardError # Parent::Child += value # ^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4521 +# source://prism//lib/prism/node.rb#4649 class Prism::ConstantPathOperatorWriteNode < ::Prism::Node - # def initialize: (target: ConstantPathNode, operator_loc: Location, value: Node, operator: Symbol, location: Location) -> void + # def initialize: (ConstantPathNode target, Location operator_loc, Node value, Symbol operator, Location location) -> void # # @return [ConstantPathOperatorWriteNode] a new instance of ConstantPathOperatorWriteNode # - # source://prism//lib/prism/node.rb#4534 + # source://prism//lib/prism/node.rb#4663 sig do params( target: Prism::ConstantPathNode, @@ -6377,44 +6503,44 @@ class Prism::ConstantPathOperatorWriteNode < ::Prism::Node end def initialize(target, operator_loc, value, operator, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4543 + # source://prism//lib/prism/node.rb#4672 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4548 + # source://prism//lib/prism/node.rb#4677 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4558 + # source://prism//lib/prism/node.rb#4687 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4553 + # source://prism//lib/prism/node.rb#4682 def compact_child_nodes; end # def copy: (**params) -> ConstantPathOperatorWriteNode # - # source://prism//lib/prism/node.rb#4563 + # source://prism//lib/prism/node.rb#4692 sig { params(params: T.untyped).returns(Prism::ConstantPathOperatorWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4548 + # source://prism//lib/prism/node.rb#4677 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { target: ConstantPathNode, operator_loc: Location, value: Node, operator: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#4577 + # source://prism//lib/prism/node.rb#4706 sig do params( keys: T::Array[Symbol] @@ -6422,26 +6548,26 @@ class Prism::ConstantPathOperatorWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#4582 + # source://prism//lib/prism/node.rb#4711 def inspect(inspector = T.unsafe(nil)); end # attr_reader operator: Symbol # - # source://prism//lib/prism/node.rb#4531 + # source://prism//lib/prism/node.rb#4660 sig { returns(Symbol) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#4525 + # source://prism//lib/prism/node.rb#4654 sig { returns(Prism::Location) } def operator_loc; end # attr_reader target: ConstantPathNode # - # source://prism//lib/prism/node.rb#4522 + # source://prism//lib/prism/node.rb#4651 sig { returns(Prism::ConstantPathNode) } def target; end @@ -6460,12 +6586,12 @@ class Prism::ConstantPathOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4607 + # source://prism//lib/prism/node.rb#4736 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#4528 + # source://prism//lib/prism/node.rb#4657 sig { returns(Prism::Node) } def value; end @@ -6477,7 +6603,7 @@ class Prism::ConstantPathOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4617 + # source://prism//lib/prism/node.rb#4746 def type; end end end @@ -6487,13 +6613,13 @@ end # Parent::Child ||= value # ^^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4627 +# source://prism//lib/prism/node.rb#4755 class Prism::ConstantPathOrWriteNode < ::Prism::Node - # def initialize: (target: ConstantPathNode, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (ConstantPathNode target, Location operator_loc, Node value, Location location) -> void # # @return [ConstantPathOrWriteNode] a new instance of ConstantPathOrWriteNode # - # source://prism//lib/prism/node.rb#4637 + # source://prism//lib/prism/node.rb#4766 sig do params( target: Prism::ConstantPathNode, @@ -6504,44 +6630,44 @@ class Prism::ConstantPathOrWriteNode < ::Prism::Node end def initialize(target, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4645 + # source://prism//lib/prism/node.rb#4774 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4650 + # source://prism//lib/prism/node.rb#4779 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4660 + # source://prism//lib/prism/node.rb#4789 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4655 + # source://prism//lib/prism/node.rb#4784 def compact_child_nodes; end # def copy: (**params) -> ConstantPathOrWriteNode # - # source://prism//lib/prism/node.rb#4665 + # source://prism//lib/prism/node.rb#4794 sig { params(params: T.untyped).returns(Prism::ConstantPathOrWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4650 + # source://prism//lib/prism/node.rb#4779 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { target: ConstantPathNode, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#4678 + # source://prism//lib/prism/node.rb#4807 sig do params( keys: T::Array[Symbol] @@ -6549,26 +6675,26 @@ class Prism::ConstantPathOrWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#4688 + # source://prism//lib/prism/node.rb#4817 def inspect(inspector = T.unsafe(nil)); end # def operator: () -> String # - # source://prism//lib/prism/node.rb#4683 + # source://prism//lib/prism/node.rb#4812 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#4631 + # source://prism//lib/prism/node.rb#4760 sig { returns(Prism::Location) } def operator_loc; end # attr_reader target: ConstantPathNode # - # source://prism//lib/prism/node.rb#4628 + # source://prism//lib/prism/node.rb#4757 sig { returns(Prism::ConstantPathNode) } def target; end @@ -6587,12 +6713,12 @@ class Prism::ConstantPathOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4712 + # source://prism//lib/prism/node.rb#4841 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#4634 + # source://prism//lib/prism/node.rb#4763 sig { returns(Prism::Node) } def value; end @@ -6604,7 +6730,7 @@ class Prism::ConstantPathOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4722 + # source://prism//lib/prism/node.rb#4851 def type; end end end @@ -6614,13 +6740,13 @@ end # Foo::Foo, Bar::Bar = baz # ^^^^^^^^ ^^^^^^^^ # -# source://prism//lib/prism/node.rb#4732 +# source://prism//lib/prism/node.rb#4860 class Prism::ConstantPathTargetNode < ::Prism::Node - # def initialize: (parent: Node?, child: Node, delimiter_loc: Location, location: Location) -> void + # def initialize: (Node? parent, Node child, Location delimiter_loc, Location location) -> void # # @return [ConstantPathTargetNode] a new instance of ConstantPathTargetNode # - # source://prism//lib/prism/node.rb#4742 + # source://prism//lib/prism/node.rb#4871 sig do params( parent: T.nilable(Prism::Node), @@ -6631,50 +6757,50 @@ class Prism::ConstantPathTargetNode < ::Prism::Node end def initialize(parent, child, delimiter_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4750 + # source://prism//lib/prism/node.rb#4879 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader child: Node # - # source://prism//lib/prism/node.rb#4736 + # source://prism//lib/prism/node.rb#4865 sig { returns(Prism::Node) } def child; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4755 + # source://prism//lib/prism/node.rb#4884 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4768 + # source://prism//lib/prism/node.rb#4897 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4760 + # source://prism//lib/prism/node.rb#4889 def compact_child_nodes; end # def copy: (**params) -> ConstantPathTargetNode # - # source://prism//lib/prism/node.rb#4773 + # source://prism//lib/prism/node.rb#4902 sig { params(params: T.untyped).returns(Prism::ConstantPathTargetNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4755 + # source://prism//lib/prism/node.rb#4884 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { parent: Node?, child: Node, delimiter_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#4786 + # source://prism//lib/prism/node.rb#4915 sig do params( keys: T::Array[Symbol] @@ -6684,13 +6810,13 @@ class Prism::ConstantPathTargetNode < ::Prism::Node # def delimiter: () -> String # - # source://prism//lib/prism/node.rb#4791 + # source://prism//lib/prism/node.rb#4920 sig { returns(String) } def delimiter; end # attr_reader delimiter_loc: Location # - # source://prism//lib/prism/node.rb#4739 + # source://prism//lib/prism/node.rb#4868 sig { returns(Prism::Location) } def delimiter_loc; end @@ -6705,14 +6831,14 @@ class Prism::ConstantPathTargetNode < ::Prism::Node # source://prism//lib/prism/node_ext.rb#137 def full_name_parts; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#4796 + # source://prism//lib/prism/node.rb#4925 def inspect(inspector = T.unsafe(nil)); end # attr_reader parent: Node? # - # source://prism//lib/prism/node.rb#4733 + # source://prism//lib/prism/node.rb#4862 sig { returns(T.nilable(Prism::Node)) } def parent; end @@ -6731,7 +6857,7 @@ class Prism::ConstantPathTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4824 + # source://prism//lib/prism/node.rb#4953 def type; end class << self @@ -6742,7 +6868,7 @@ class Prism::ConstantPathTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4834 + # source://prism//lib/prism/node.rb#4963 def type; end end end @@ -6758,13 +6884,13 @@ end # ::Foo::Bar = 1 # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4850 +# source://prism//lib/prism/node.rb#4978 class Prism::ConstantPathWriteNode < ::Prism::Node - # def initialize: (target: ConstantPathNode, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (ConstantPathNode target, Location operator_loc, Node value, Location location) -> void # # @return [ConstantPathWriteNode] a new instance of ConstantPathWriteNode # - # source://prism//lib/prism/node.rb#4860 + # source://prism//lib/prism/node.rb#4989 sig do params( target: Prism::ConstantPathNode, @@ -6775,44 +6901,44 @@ class Prism::ConstantPathWriteNode < ::Prism::Node end def initialize(target, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4868 + # source://prism//lib/prism/node.rb#4997 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4873 + # source://prism//lib/prism/node.rb#5002 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4883 + # source://prism//lib/prism/node.rb#5012 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4878 + # source://prism//lib/prism/node.rb#5007 def compact_child_nodes; end # def copy: (**params) -> ConstantPathWriteNode # - # source://prism//lib/prism/node.rb#4888 + # source://prism//lib/prism/node.rb#5017 sig { params(params: T.untyped).returns(Prism::ConstantPathWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4873 + # source://prism//lib/prism/node.rb#5002 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { target: ConstantPathNode, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#4901 + # source://prism//lib/prism/node.rb#5030 sig do params( keys: T::Array[Symbol] @@ -6820,26 +6946,26 @@ class Prism::ConstantPathWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#4911 + # source://prism//lib/prism/node.rb#5040 def inspect(inspector = T.unsafe(nil)); end # def operator: () -> String # - # source://prism//lib/prism/node.rb#4906 + # source://prism//lib/prism/node.rb#5035 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#4854 + # source://prism//lib/prism/node.rb#4983 sig { returns(Prism::Location) } def operator_loc; end # attr_reader target: ConstantPathNode # - # source://prism//lib/prism/node.rb#4851 + # source://prism//lib/prism/node.rb#4980 sig { returns(Prism::ConstantPathNode) } def target; end @@ -6858,12 +6984,12 @@ class Prism::ConstantPathWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4935 + # source://prism//lib/prism/node.rb#5064 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#4857 + # source://prism//lib/prism/node.rb#4986 sig { returns(Prism::Node) } def value; end @@ -6875,7 +7001,7 @@ class Prism::ConstantPathWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4945 + # source://prism//lib/prism/node.rb#5074 def type; end end end @@ -6885,54 +7011,54 @@ end # Foo # ^^^ # -# source://prism//lib/prism/node.rb#4955 +# source://prism//lib/prism/node.rb#5083 class Prism::ConstantReadNode < ::Prism::Node - # def initialize: (name: Symbol, location: Location) -> void + # def initialize: (Symbol name, Location location) -> void # # @return [ConstantReadNode] a new instance of ConstantReadNode # - # source://prism//lib/prism/node.rb#4959 + # source://prism//lib/prism/node.rb#5092 sig { params(name: Symbol, location: Prism::Location).void } def initialize(name, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4965 + # source://prism//lib/prism/node.rb#5098 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4970 + # source://prism//lib/prism/node.rb#5103 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4980 + # source://prism//lib/prism/node.rb#5113 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4975 + # source://prism//lib/prism/node.rb#5108 def compact_child_nodes; end # def copy: (**params) -> ConstantReadNode # - # source://prism//lib/prism/node.rb#4985 + # source://prism//lib/prism/node.rb#5118 sig { params(params: T.untyped).returns(Prism::ConstantReadNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4970 + # source://prism//lib/prism/node.rb#5103 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#4996 + # source://prism//lib/prism/node.rb#5129 sig do params( keys: T::Array[Symbol] @@ -6951,14 +7077,18 @@ class Prism::ConstantReadNode < ::Prism::Node # source://prism//lib/prism/node_ext.rb#91 def full_name_parts; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#5001 + # source://prism//lib/prism/node.rb#5134 def inspect(inspector = T.unsafe(nil)); end - # attr_reader name: Symbol + # The name of the [constant](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#constants). + # + # X # name `:X` # - # source://prism//lib/prism/node.rb#4956 + # SOME_CONSTANT # name `:SOME_CONSTANT` + # + # source://prism//lib/prism/node.rb#5089 sig { returns(Symbol) } def name; end @@ -6977,7 +7107,7 @@ class Prism::ConstantReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5021 + # source://prism//lib/prism/node.rb#5154 def type; end class << self @@ -6988,7 +7118,7 @@ class Prism::ConstantReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5031 + # source://prism//lib/prism/node.rb#5164 def type; end end end @@ -6998,54 +7128,54 @@ end # Foo, Bar = baz # ^^^ ^^^ # -# source://prism//lib/prism/node.rb#5041 +# source://prism//lib/prism/node.rb#5173 class Prism::ConstantTargetNode < ::Prism::Node - # def initialize: (name: Symbol, location: Location) -> void + # def initialize: (Symbol name, Location location) -> void # # @return [ConstantTargetNode] a new instance of ConstantTargetNode # - # source://prism//lib/prism/node.rb#5045 + # source://prism//lib/prism/node.rb#5178 sig { params(name: Symbol, location: Prism::Location).void } def initialize(name, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5051 + # source://prism//lib/prism/node.rb#5184 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5056 + # source://prism//lib/prism/node.rb#5189 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#5066 + # source://prism//lib/prism/node.rb#5199 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#5061 + # source://prism//lib/prism/node.rb#5194 def compact_child_nodes; end # def copy: (**params) -> ConstantTargetNode # - # source://prism//lib/prism/node.rb#5071 + # source://prism//lib/prism/node.rb#5204 sig { params(params: T.untyped).returns(Prism::ConstantTargetNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5056 + # source://prism//lib/prism/node.rb#5189 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#5082 + # source://prism//lib/prism/node.rb#5215 sig do params( keys: T::Array[Symbol] @@ -7053,14 +7183,14 @@ class Prism::ConstantTargetNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#5087 + # source://prism//lib/prism/node.rb#5220 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#5042 + # source://prism//lib/prism/node.rb#5175 sig { returns(Symbol) } def name; end @@ -7079,7 +7209,7 @@ class Prism::ConstantTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5107 + # source://prism//lib/prism/node.rb#5240 def type; end class << self @@ -7090,7 +7220,7 @@ class Prism::ConstantTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5117 + # source://prism//lib/prism/node.rb#5250 def type; end end end @@ -7100,13 +7230,13 @@ end # Foo = 1 # ^^^^^^^ # -# source://prism//lib/prism/node.rb#5127 +# source://prism//lib/prism/node.rb#5259 class Prism::ConstantWriteNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, value: Node, operator_loc: Location, location: Location) -> void + # def initialize: (Symbol name, Location name_loc, Node value, Location operator_loc, Location location) -> void # # @return [ConstantWriteNode] a new instance of ConstantWriteNode # - # source://prism//lib/prism/node.rb#5140 + # source://prism//lib/prism/node.rb#5273 sig do params( name: Symbol, @@ -7118,44 +7248,44 @@ class Prism::ConstantWriteNode < ::Prism::Node end def initialize(name, name_loc, value, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5149 + # source://prism//lib/prism/node.rb#5282 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5154 + # source://prism//lib/prism/node.rb#5287 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#5164 + # source://prism//lib/prism/node.rb#5297 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#5159 + # source://prism//lib/prism/node.rb#5292 def compact_child_nodes; end # def copy: (**params) -> ConstantWriteNode # - # source://prism//lib/prism/node.rb#5169 + # source://prism//lib/prism/node.rb#5302 sig { params(params: T.untyped).returns(Prism::ConstantWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5154 + # source://prism//lib/prism/node.rb#5287 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, value: Node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#5183 + # source://prism//lib/prism/node.rb#5316 sig do params( keys: T::Array[Symbol] @@ -7163,32 +7293,32 @@ class Prism::ConstantWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#5193 + # source://prism//lib/prism/node.rb#5326 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#5128 + # source://prism//lib/prism/node.rb#5261 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#5131 + # source://prism//lib/prism/node.rb#5264 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#5188 + # source://prism//lib/prism/node.rb#5321 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#5137 + # source://prism//lib/prism/node.rb#5270 sig { returns(Prism::Location) } def operator_loc; end @@ -7207,12 +7337,12 @@ class Prism::ConstantWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5217 + # source://prism//lib/prism/node.rb#5350 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#5134 + # source://prism//lib/prism/node.rb#5267 sig { returns(Prism::Node) } def value; end @@ -7224,7 +7354,7 @@ class Prism::ConstantWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5227 + # source://prism//lib/prism/node.rb#5360 def type; end end end @@ -7327,17 +7457,17 @@ module Prism::DSL # Create a new BlockLocalVariableNode node # # source://prism//lib/prism/dsl.rb#106 - def BlockLocalVariableNode(name, location = T.unsafe(nil)); end + def BlockLocalVariableNode(flags, name, location = T.unsafe(nil)); end # Create a new BlockNode node # # source://prism//lib/prism/dsl.rb#111 - def BlockNode(locals, locals_body_index, parameters, body, opening_loc, closing_loc, location = T.unsafe(nil)); end + def BlockNode(locals, parameters, body, opening_loc, closing_loc, location = T.unsafe(nil)); end # Create a new BlockParameterNode node # # source://prism//lib/prism/dsl.rb#116 - def BlockParameterNode(name, name_loc, operator_loc, location = T.unsafe(nil)); end + def BlockParameterNode(flags, name, name_loc, operator_loc, location = T.unsafe(nil)); end # Create a new BlockParametersNode node # @@ -7487,7 +7617,7 @@ module Prism::DSL # Create a new DefNode node # # source://prism//lib/prism/dsl.rb#266 - def DefNode(name, name_loc, receiver, parameters, body, locals, locals_body_index, def_keyword_loc, operator_loc, lparen_loc, rparen_loc, equal_loc, end_keyword_loc, location = T.unsafe(nil)); end + def DefNode(name, name_loc, receiver, parameters, body, locals, def_keyword_loc, operator_loc, lparen_loc, rparen_loc, equal_loc, end_keyword_loc, location = T.unsafe(nil)); end # Create a new DefinedNode node # @@ -7707,12 +7837,12 @@ module Prism::DSL # Create a new KeywordRestParameterNode node # # source://prism//lib/prism/dsl.rb#486 - def KeywordRestParameterNode(name, name_loc, operator_loc, location = T.unsafe(nil)); end + def KeywordRestParameterNode(flags, name, name_loc, operator_loc, location = T.unsafe(nil)); end # Create a new LambdaNode node # # source://prism//lib/prism/dsl.rb#491 - def LambdaNode(locals, locals_body_index, operator_loc, opening_loc, closing_loc, parameters, body, location = T.unsafe(nil)); end + def LambdaNode(locals, operator_loc, opening_loc, closing_loc, parameters, body, location = T.unsafe(nil)); end # Create a new LocalVariableAndWriteNode node # @@ -7817,12 +7947,12 @@ module Prism::DSL # Create a new OptionalKeywordParameterNode node # # source://prism//lib/prism/dsl.rb#591 - def OptionalKeywordParameterNode(name, name_loc, value, location = T.unsafe(nil)); end + def OptionalKeywordParameterNode(flags, name, name_loc, value, location = T.unsafe(nil)); end # Create a new OptionalParameterNode node # # source://prism//lib/prism/dsl.rb#596 - def OptionalParameterNode(name, name_loc, operator_loc, value, location = T.unsafe(nil)); end + def OptionalParameterNode(flags, name, name_loc, operator_loc, value, location = T.unsafe(nil)); end # Create a new OrNode node # @@ -7887,12 +8017,12 @@ module Prism::DSL # Create a new RequiredKeywordParameterNode node # # source://prism//lib/prism/dsl.rb#661 - def RequiredKeywordParameterNode(name, name_loc, location = T.unsafe(nil)); end + def RequiredKeywordParameterNode(flags, name, name_loc, location = T.unsafe(nil)); end # Create a new RequiredParameterNode node # # source://prism//lib/prism/dsl.rb#666 - def RequiredParameterNode(name, location = T.unsafe(nil)); end + def RequiredParameterNode(flags, name, location = T.unsafe(nil)); end # Create a new RescueModifierNode node # @@ -7907,7 +8037,7 @@ module Prism::DSL # Create a new RestParameterNode node # # source://prism//lib/prism/dsl.rb#681 - def RestParameterNode(name, name_loc, operator_loc, location = T.unsafe(nil)); end + def RestParameterNode(flags, name, name_loc, operator_loc, location = T.unsafe(nil)); end # Create a new RetryNode node # @@ -8025,6 +8155,7 @@ module Prism::Debug # source://prism//lib/prism/debug.rb#54 def cruby_locals(source); end + def format_errors(_arg0, _arg1); end def inspect_node(_arg0); end def memsize(_arg0); end def named_captures(_arg0); end @@ -8035,7 +8166,7 @@ module Prism::Debug # For the given source string, return the byte offsets of every newline in # the source. # - # source://prism//lib/prism/debug.rb#196 + # source://prism//lib/prism/debug.rb#202 def newlines(source); end # :call-seq: @@ -8091,13 +8222,13 @@ end # end # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#5238 +# source://prism//lib/prism/node.rb#5370 class Prism::DefNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, receiver: Node?, parameters: ParametersNode?, body: Node?, locals: Array[Symbol], locals_body_index: Integer, def_keyword_loc: Location, operator_loc: Location?, lparen_loc: Location?, rparen_loc: Location?, equal_loc: Location?, end_keyword_loc: Location?, location: Location) -> void + # def initialize: (Symbol name, Location name_loc, Node? receiver, ParametersNode? parameters, Node? body, Array[Symbol] locals, Location def_keyword_loc, Location? operator_loc, Location? lparen_loc, Location? rparen_loc, Location? equal_loc, Location? end_keyword_loc, Location location) -> void # # @return [DefNode] a new instance of DefNode # - # source://prism//lib/prism/node.rb#5278 + # source://prism//lib/prism/node.rb#5408 sig do params( name: Symbol, @@ -8106,7 +8237,6 @@ class Prism::DefNode < ::Prism::Node parameters: T.nilable(Prism::ParametersNode), body: T.nilable(Prism::Node), locals: T::Array[Symbol], - locals_body_index: Integer, def_keyword_loc: Prism::Location, operator_loc: T.nilable(Prism::Location), lparen_loc: T.nilable(Prism::Location), @@ -8116,52 +8246,52 @@ class Prism::DefNode < ::Prism::Node location: Prism::Location ).void end - def initialize(name, name_loc, receiver, parameters, body, locals, locals_body_index, def_keyword_loc, operator_loc, lparen_loc, rparen_loc, equal_loc, end_keyword_loc, location); end + def initialize(name, name_loc, receiver, parameters, body, locals, def_keyword_loc, operator_loc, lparen_loc, rparen_loc, equal_loc, end_keyword_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5296 + # source://prism//lib/prism/node.rb#5425 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader body: Node? # - # source://prism//lib/prism/node.rb#5251 + # source://prism//lib/prism/node.rb#5384 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5301 + # source://prism//lib/prism/node.rb#5430 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#5315 + # source://prism//lib/prism/node.rb#5444 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#5306 + # source://prism//lib/prism/node.rb#5435 def compact_child_nodes; end # def copy: (**params) -> DefNode # - # source://prism//lib/prism/node.rb#5320 + # source://prism//lib/prism/node.rb#5449 sig { params(params: T.untyped).returns(Prism::DefNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5301 + # source://prism//lib/prism/node.rb#5430 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, receiver: Node?, parameters: ParametersNode?, body: Node?, locals: Array[Symbol], def_keyword_loc: Location, operator_loc: Location?, lparen_loc: Location?, rparen_loc: Location?, equal_loc: Location?, end_keyword_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#5343 + # source://prism//lib/prism/node.rb#5471 sig do params( keys: T::Array[Symbol] @@ -8171,114 +8301,108 @@ class Prism::DefNode < ::Prism::Node # def def_keyword: () -> String # - # source://prism//lib/prism/node.rb#5348 + # source://prism//lib/prism/node.rb#5476 sig { returns(String) } def def_keyword; end # attr_reader def_keyword_loc: Location # - # source://prism//lib/prism/node.rb#5260 + # source://prism//lib/prism/node.rb#5390 sig { returns(Prism::Location) } def def_keyword_loc; end # def end_keyword: () -> String? # - # source://prism//lib/prism/node.rb#5373 + # source://prism//lib/prism/node.rb#5501 sig { returns(T.nilable(String)) } def end_keyword; end # attr_reader end_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#5275 + # source://prism//lib/prism/node.rb#5405 sig { returns(T.nilable(Prism::Location)) } def end_keyword_loc; end # def equal: () -> String? # - # source://prism//lib/prism/node.rb#5368 + # source://prism//lib/prism/node.rb#5496 sig { returns(T.nilable(String)) } def equal; end # attr_reader equal_loc: Location? # - # source://prism//lib/prism/node.rb#5272 + # source://prism//lib/prism/node.rb#5402 sig { returns(T.nilable(Prism::Location)) } def equal_loc; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#5378 + # source://prism//lib/prism/node.rb#5506 def inspect(inspector = T.unsafe(nil)); end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#5254 + # source://prism//lib/prism/node.rb#5387 sig { returns(T::Array[Symbol]) } def locals; end - # attr_reader locals_body_index: Integer - # - # source://prism//lib/prism/node.rb#5257 - sig { returns(Integer) } - def locals_body_index; end - # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#5358 + # source://prism//lib/prism/node.rb#5486 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#5266 + # source://prism//lib/prism/node.rb#5396 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#5239 + # source://prism//lib/prism/node.rb#5372 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#5242 + # source://prism//lib/prism/node.rb#5375 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String? # - # source://prism//lib/prism/node.rb#5353 + # source://prism//lib/prism/node.rb#5481 sig { returns(T.nilable(String)) } def operator; end # attr_reader operator_loc: Location? # - # source://prism//lib/prism/node.rb#5263 + # source://prism//lib/prism/node.rb#5393 sig { returns(T.nilable(Prism::Location)) } def operator_loc; end # attr_reader parameters: ParametersNode? # - # source://prism//lib/prism/node.rb#5248 + # source://prism//lib/prism/node.rb#5381 sig { returns(T.nilable(Prism::ParametersNode)) } def parameters; end # attr_reader receiver: Node? # - # source://prism//lib/prism/node.rb#5245 + # source://prism//lib/prism/node.rb#5378 sig { returns(T.nilable(Prism::Node)) } def receiver; end # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#5363 + # source://prism//lib/prism/node.rb#5491 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#5269 + # source://prism//lib/prism/node.rb#5399 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -8297,7 +8421,7 @@ class Prism::DefNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5425 + # source://prism//lib/prism/node.rb#5552 def type; end class << self @@ -8308,7 +8432,7 @@ class Prism::DefNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5435 + # source://prism//lib/prism/node.rb#5562 def type; end end end @@ -8318,13 +8442,13 @@ end # defined?(a) # ^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#5445 +# source://prism//lib/prism/node.rb#5571 class Prism::DefinedNode < ::Prism::Node - # def initialize: (lparen_loc: Location?, value: Node, rparen_loc: Location?, keyword_loc: Location, location: Location) -> void + # def initialize: (Location? lparen_loc, Node value, Location? rparen_loc, Location keyword_loc, Location location) -> void # # @return [DefinedNode] a new instance of DefinedNode # - # source://prism//lib/prism/node.rb#5458 + # source://prism//lib/prism/node.rb#5585 sig do params( lparen_loc: T.nilable(Prism::Location), @@ -8336,44 +8460,44 @@ class Prism::DefinedNode < ::Prism::Node end def initialize(lparen_loc, value, rparen_loc, keyword_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5467 + # source://prism//lib/prism/node.rb#5594 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5472 + # source://prism//lib/prism/node.rb#5599 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#5482 + # source://prism//lib/prism/node.rb#5609 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#5477 + # source://prism//lib/prism/node.rb#5604 def compact_child_nodes; end # def copy: (**params) -> DefinedNode # - # source://prism//lib/prism/node.rb#5487 + # source://prism//lib/prism/node.rb#5614 sig { params(params: T.untyped).returns(Prism::DefinedNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5472 + # source://prism//lib/prism/node.rb#5599 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { lparen_loc: Location?, value: Node, rparen_loc: Location?, keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#5501 + # source://prism//lib/prism/node.rb#5628 sig do params( keys: T::Array[Symbol] @@ -8381,44 +8505,44 @@ class Prism::DefinedNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#5521 + # source://prism//lib/prism/node.rb#5648 def inspect(inspector = T.unsafe(nil)); end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#5516 + # source://prism//lib/prism/node.rb#5643 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#5455 + # source://prism//lib/prism/node.rb#5582 sig { returns(Prism::Location) } def keyword_loc; end # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#5506 + # source://prism//lib/prism/node.rb#5633 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#5446 + # source://prism//lib/prism/node.rb#5573 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#5511 + # source://prism//lib/prism/node.rb#5638 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#5452 + # source://prism//lib/prism/node.rb#5579 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -8437,12 +8561,12 @@ class Prism::DefinedNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5545 + # source://prism//lib/prism/node.rb#5672 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#5449 + # source://prism//lib/prism/node.rb#5576 sig { returns(Prism::Node) } def value; end @@ -8454,7 +8578,7 @@ class Prism::DefinedNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5555 + # source://prism//lib/prism/node.rb#5682 def type; end end end @@ -8462,7 +8586,7 @@ end # DesugarCompiler is a compiler that desugars Ruby code into a more primitive # form. This is useful for consumers that want to deal with fewer node types. # -# source://prism//lib/prism/desugar_compiler.rb#11 +# source://prism//lib/prism/desugar_compiler.rb#6 class Prism::DesugarCompiler < ::Prism::MutationCompiler # @@foo &&= bar # @@ -8641,7 +8765,7 @@ end # integer = result.value.statements.body.first.receiver.receiver # dispatcher.dispatch_once(integer) # -# source://prism//lib/prism/dispatcher.rb#41 +# source://prism//lib/prism/dispatcher.rb#40 class Prism::Dispatcher < ::Prism::Visitor # Initialize a new dispatcher. # @@ -10382,702 +10506,702 @@ class Prism::DotVisitor < ::Prism::Visitor # Visit a AssocSplatNode node. # - # source://prism//lib/prism/dot_visitor.rb#376 + # source://prism//lib/prism/dot_visitor.rb#374 def visit_assoc_splat_node(node); end # Visit a BackReferenceReadNode node. # - # source://prism//lib/prism/dot_visitor.rb#399 + # source://prism//lib/prism/dot_visitor.rb#397 def visit_back_reference_read_node(node); end # Visit a BeginNode node. # - # source://prism//lib/prism/dot_visitor.rb#416 + # source://prism//lib/prism/dot_visitor.rb#414 def visit_begin_node(node); end # Visit a BlockArgumentNode node. # - # source://prism//lib/prism/dot_visitor.rb#464 + # source://prism//lib/prism/dot_visitor.rb#462 def visit_block_argument_node(node); end # Visit a BlockLocalVariableNode node. # - # source://prism//lib/prism/dot_visitor.rb#487 + # source://prism//lib/prism/dot_visitor.rb#485 def visit_block_local_variable_node(node); end # Visit a BlockNode node. # - # source://prism//lib/prism/dot_visitor.rb#504 + # source://prism//lib/prism/dot_visitor.rb#505 def visit_block_node(node); end # Visit a BlockParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#542 + # source://prism//lib/prism/dot_visitor.rb#540 def visit_block_parameter_node(node); end # Visit a BlockParametersNode node. # - # source://prism//lib/prism/dot_visitor.rb#567 + # source://prism//lib/prism/dot_visitor.rb#568 def visit_block_parameters_node(node); end # Visit a BreakNode node. # - # source://prism//lib/prism/dot_visitor.rb#610 + # source://prism//lib/prism/dot_visitor.rb#611 def visit_break_node(node); end # Visit a CallAndWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#633 + # source://prism//lib/prism/dot_visitor.rb#634 def visit_call_and_write_node(node); end # Visit a CallNode node. # - # source://prism//lib/prism/dot_visitor.rb#679 + # source://prism//lib/prism/dot_visitor.rb#680 def visit_call_node(node); end # Visit a CallOperatorWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#737 + # source://prism//lib/prism/dot_visitor.rb#738 def visit_call_operator_write_node(node); end # Visit a CallOrWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#786 + # source://prism//lib/prism/dot_visitor.rb#787 def visit_call_or_write_node(node); end # Visit a CallTargetNode node. # - # source://prism//lib/prism/dot_visitor.rb#832 + # source://prism//lib/prism/dot_visitor.rb#833 def visit_call_target_node(node); end # Visit a CapturePatternNode node. # - # source://prism//lib/prism/dot_visitor.rb#862 + # source://prism//lib/prism/dot_visitor.rb#863 def visit_capture_pattern_node(node); end # Visit a CaseMatchNode node. # - # source://prism//lib/prism/dot_visitor.rb#887 + # source://prism//lib/prism/dot_visitor.rb#888 def visit_case_match_node(node); end # Visit a CaseNode node. # - # source://prism//lib/prism/dot_visitor.rb#932 + # source://prism//lib/prism/dot_visitor.rb#933 def visit_case_node(node); end # Visit a ClassNode node. # - # source://prism//lib/prism/dot_visitor.rb#977 + # source://prism//lib/prism/dot_visitor.rb#978 def visit_class_node(node); end # Visit a ClassVariableAndWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#1024 + # source://prism//lib/prism/dot_visitor.rb#1025 def visit_class_variable_and_write_node(node); end # Visit a ClassVariableOperatorWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#1051 + # source://prism//lib/prism/dot_visitor.rb#1052 def visit_class_variable_operator_write_node(node); end # Visit a ClassVariableOrWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#1081 + # source://prism//lib/prism/dot_visitor.rb#1082 def visit_class_variable_or_write_node(node); end # Visit a ClassVariableReadNode node. # - # source://prism//lib/prism/dot_visitor.rb#1108 + # source://prism//lib/prism/dot_visitor.rb#1109 def visit_class_variable_read_node(node); end # Visit a ClassVariableTargetNode node. # - # source://prism//lib/prism/dot_visitor.rb#1125 + # source://prism//lib/prism/dot_visitor.rb#1126 def visit_class_variable_target_node(node); end # Visit a ClassVariableWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#1142 + # source://prism//lib/prism/dot_visitor.rb#1143 def visit_class_variable_write_node(node); end # Visit a ConstantAndWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#1171 + # source://prism//lib/prism/dot_visitor.rb#1172 def visit_constant_and_write_node(node); end # Visit a ConstantOperatorWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#1198 + # source://prism//lib/prism/dot_visitor.rb#1199 def visit_constant_operator_write_node(node); end # Visit a ConstantOrWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#1228 + # source://prism//lib/prism/dot_visitor.rb#1229 def visit_constant_or_write_node(node); end # Visit a ConstantPathAndWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#1255 + # source://prism//lib/prism/dot_visitor.rb#1256 def visit_constant_path_and_write_node(node); end # Visit a ConstantPathNode node. # - # source://prism//lib/prism/dot_visitor.rb#1280 + # source://prism//lib/prism/dot_visitor.rb#1281 def visit_constant_path_node(node); end # Visit a ConstantPathOperatorWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#1307 + # source://prism//lib/prism/dot_visitor.rb#1308 def visit_constant_path_operator_write_node(node); end # Visit a ConstantPathOrWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#1335 + # source://prism//lib/prism/dot_visitor.rb#1336 def visit_constant_path_or_write_node(node); end # Visit a ConstantPathTargetNode node. # - # source://prism//lib/prism/dot_visitor.rb#1360 + # source://prism//lib/prism/dot_visitor.rb#1361 def visit_constant_path_target_node(node); end # Visit a ConstantPathWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#1387 + # source://prism//lib/prism/dot_visitor.rb#1388 def visit_constant_path_write_node(node); end # Visit a ConstantReadNode node. # - # source://prism//lib/prism/dot_visitor.rb#1412 + # source://prism//lib/prism/dot_visitor.rb#1413 def visit_constant_read_node(node); end # Visit a ConstantTargetNode node. # - # source://prism//lib/prism/dot_visitor.rb#1429 + # source://prism//lib/prism/dot_visitor.rb#1430 def visit_constant_target_node(node); end # Visit a ConstantWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#1446 + # source://prism//lib/prism/dot_visitor.rb#1447 def visit_constant_write_node(node); end # Visit a DefNode node. # - # source://prism//lib/prism/dot_visitor.rb#1473 + # source://prism//lib/prism/dot_visitor.rb#1474 def visit_def_node(node); end # Visit a DefinedNode node. # - # source://prism//lib/prism/dot_visitor.rb#1545 + # source://prism//lib/prism/dot_visitor.rb#1543 def visit_defined_node(node); end # Visit a ElseNode node. # - # source://prism//lib/prism/dot_visitor.rb#1576 + # source://prism//lib/prism/dot_visitor.rb#1574 def visit_else_node(node); end # Visit a EmbeddedStatementsNode node. # - # source://prism//lib/prism/dot_visitor.rb#1604 + # source://prism//lib/prism/dot_visitor.rb#1602 def visit_embedded_statements_node(node); end # Visit a EmbeddedVariableNode node. # - # source://prism//lib/prism/dot_visitor.rb#1630 + # source://prism//lib/prism/dot_visitor.rb#1628 def visit_embedded_variable_node(node); end # Visit a EnsureNode node. # - # source://prism//lib/prism/dot_visitor.rb#1651 + # source://prism//lib/prism/dot_visitor.rb#1649 def visit_ensure_node(node); end # Visit a FalseNode node. # - # source://prism//lib/prism/dot_visitor.rb#1677 + # source://prism//lib/prism/dot_visitor.rb#1675 def visit_false_node(node); end # Visit a FindPatternNode node. # - # source://prism//lib/prism/dot_visitor.rb#1691 + # source://prism//lib/prism/dot_visitor.rb#1689 def visit_find_pattern_node(node); end # Visit a FlipFlopNode node. # - # source://prism//lib/prism/dot_visitor.rb#1742 + # source://prism//lib/prism/dot_visitor.rb#1740 def visit_flip_flop_node(node); end # Visit a FloatNode node. # - # source://prism//lib/prism/dot_visitor.rb#1774 + # source://prism//lib/prism/dot_visitor.rb#1772 def visit_float_node(node); end # Visit a ForNode node. # - # source://prism//lib/prism/dot_visitor.rb#1788 + # source://prism//lib/prism/dot_visitor.rb#1786 def visit_for_node(node); end # Visit a ForwardingArgumentsNode node. # - # source://prism//lib/prism/dot_visitor.rb#1830 + # source://prism//lib/prism/dot_visitor.rb#1828 def visit_forwarding_arguments_node(node); end # Visit a ForwardingParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#1844 + # source://prism//lib/prism/dot_visitor.rb#1842 def visit_forwarding_parameter_node(node); end # Visit a ForwardingSuperNode node. # - # source://prism//lib/prism/dot_visitor.rb#1858 + # source://prism//lib/prism/dot_visitor.rb#1856 def visit_forwarding_super_node(node); end # Visit a GlobalVariableAndWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#1878 + # source://prism//lib/prism/dot_visitor.rb#1876 def visit_global_variable_and_write_node(node); end # Visit a GlobalVariableOperatorWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#1905 + # source://prism//lib/prism/dot_visitor.rb#1903 def visit_global_variable_operator_write_node(node); end # Visit a GlobalVariableOrWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#1935 + # source://prism//lib/prism/dot_visitor.rb#1933 def visit_global_variable_or_write_node(node); end # Visit a GlobalVariableReadNode node. # - # source://prism//lib/prism/dot_visitor.rb#1962 + # source://prism//lib/prism/dot_visitor.rb#1960 def visit_global_variable_read_node(node); end # Visit a GlobalVariableTargetNode node. # - # source://prism//lib/prism/dot_visitor.rb#1979 + # source://prism//lib/prism/dot_visitor.rb#1977 def visit_global_variable_target_node(node); end # Visit a GlobalVariableWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#1996 + # source://prism//lib/prism/dot_visitor.rb#1994 def visit_global_variable_write_node(node); end # Visit a HashNode node. # - # source://prism//lib/prism/dot_visitor.rb#2023 + # source://prism//lib/prism/dot_visitor.rb#2021 def visit_hash_node(node); end # Visit a HashPatternNode node. # - # source://prism//lib/prism/dot_visitor.rb#2056 + # source://prism//lib/prism/dot_visitor.rb#2054 def visit_hash_pattern_node(node); end # Visit a IfNode node. # - # source://prism//lib/prism/dot_visitor.rb#2105 + # source://prism//lib/prism/dot_visitor.rb#2103 def visit_if_node(node); end # Visit a ImaginaryNode node. # - # source://prism//lib/prism/dot_visitor.rb#2150 + # source://prism//lib/prism/dot_visitor.rb#2148 def visit_imaginary_node(node); end # Visit a ImplicitNode node. # - # source://prism//lib/prism/dot_visitor.rb#2168 + # source://prism//lib/prism/dot_visitor.rb#2166 def visit_implicit_node(node); end # Visit a ImplicitRestNode node. # - # source://prism//lib/prism/dot_visitor.rb#2186 + # source://prism//lib/prism/dot_visitor.rb#2184 def visit_implicit_rest_node(node); end # Visit a InNode node. # - # source://prism//lib/prism/dot_visitor.rb#2200 + # source://prism//lib/prism/dot_visitor.rb#2198 def visit_in_node(node); end # Visit a IndexAndWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#2232 + # source://prism//lib/prism/dot_visitor.rb#2230 def visit_index_and_write_node(node); end # Visit a IndexOperatorWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#2285 + # source://prism//lib/prism/dot_visitor.rb#2283 def visit_index_operator_write_node(node); end # Visit a IndexOrWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#2341 + # source://prism//lib/prism/dot_visitor.rb#2339 def visit_index_or_write_node(node); end # Visit a IndexTargetNode node. # - # source://prism//lib/prism/dot_visitor.rb#2394 + # source://prism//lib/prism/dot_visitor.rb#2392 def visit_index_target_node(node); end # Visit a InstanceVariableAndWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#2433 + # source://prism//lib/prism/dot_visitor.rb#2431 def visit_instance_variable_and_write_node(node); end # Visit a InstanceVariableOperatorWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#2460 + # source://prism//lib/prism/dot_visitor.rb#2458 def visit_instance_variable_operator_write_node(node); end # Visit a InstanceVariableOrWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#2490 + # source://prism//lib/prism/dot_visitor.rb#2488 def visit_instance_variable_or_write_node(node); end # Visit a InstanceVariableReadNode node. # - # source://prism//lib/prism/dot_visitor.rb#2517 + # source://prism//lib/prism/dot_visitor.rb#2515 def visit_instance_variable_read_node(node); end # Visit a InstanceVariableTargetNode node. # - # source://prism//lib/prism/dot_visitor.rb#2534 + # source://prism//lib/prism/dot_visitor.rb#2532 def visit_instance_variable_target_node(node); end # Visit a InstanceVariableWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#2551 + # source://prism//lib/prism/dot_visitor.rb#2549 def visit_instance_variable_write_node(node); end # Visit a IntegerNode node. # - # source://prism//lib/prism/dot_visitor.rb#2578 + # source://prism//lib/prism/dot_visitor.rb#2576 def visit_integer_node(node); end # Visit a InterpolatedMatchLastLineNode node. # - # source://prism//lib/prism/dot_visitor.rb#2595 + # source://prism//lib/prism/dot_visitor.rb#2593 def visit_interpolated_match_last_line_node(node); end # Visit a InterpolatedRegularExpressionNode node. # - # source://prism//lib/prism/dot_visitor.rb#2631 + # source://prism//lib/prism/dot_visitor.rb#2629 def visit_interpolated_regular_expression_node(node); end # Visit a InterpolatedStringNode node. # - # source://prism//lib/prism/dot_visitor.rb#2667 + # source://prism//lib/prism/dot_visitor.rb#2665 def visit_interpolated_string_node(node); end # Visit a InterpolatedSymbolNode node. # - # source://prism//lib/prism/dot_visitor.rb#2704 + # source://prism//lib/prism/dot_visitor.rb#2702 def visit_interpolated_symbol_node(node); end # Visit a InterpolatedXStringNode node. # - # source://prism//lib/prism/dot_visitor.rb#2741 + # source://prism//lib/prism/dot_visitor.rb#2739 def visit_interpolated_x_string_node(node); end # Visit a KeywordHashNode node. # - # source://prism//lib/prism/dot_visitor.rb#2774 + # source://prism//lib/prism/dot_visitor.rb#2772 def visit_keyword_hash_node(node); end # Visit a KeywordRestParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#2804 + # source://prism//lib/prism/dot_visitor.rb#2802 def visit_keyword_rest_parameter_node(node); end # Visit a LambdaNode node. # - # source://prism//lib/prism/dot_visitor.rb#2829 + # source://prism//lib/prism/dot_visitor.rb#2830 def visit_lambda_node(node); end # Visit a LocalVariableAndWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#2870 + # source://prism//lib/prism/dot_visitor.rb#2868 def visit_local_variable_and_write_node(node); end # Visit a LocalVariableOperatorWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#2900 + # source://prism//lib/prism/dot_visitor.rb#2898 def visit_local_variable_operator_write_node(node); end # Visit a LocalVariableOrWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#2933 + # source://prism//lib/prism/dot_visitor.rb#2931 def visit_local_variable_or_write_node(node); end # Visit a LocalVariableReadNode node. # - # source://prism//lib/prism/dot_visitor.rb#2963 + # source://prism//lib/prism/dot_visitor.rb#2961 def visit_local_variable_read_node(node); end # Visit a LocalVariableTargetNode node. # - # source://prism//lib/prism/dot_visitor.rb#2983 + # source://prism//lib/prism/dot_visitor.rb#2981 def visit_local_variable_target_node(node); end # Visit a LocalVariableWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#3003 + # source://prism//lib/prism/dot_visitor.rb#3001 def visit_local_variable_write_node(node); end # Visit a MatchLastLineNode node. # - # source://prism//lib/prism/dot_visitor.rb#3033 + # source://prism//lib/prism/dot_visitor.rb#3031 def visit_match_last_line_node(node); end # Visit a MatchPredicateNode node. # - # source://prism//lib/prism/dot_visitor.rb#3062 + # source://prism//lib/prism/dot_visitor.rb#3060 def visit_match_predicate_node(node); end # Visit a MatchRequiredNode node. # - # source://prism//lib/prism/dot_visitor.rb#3087 + # source://prism//lib/prism/dot_visitor.rb#3085 def visit_match_required_node(node); end # Visit a MatchWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#3112 + # source://prism//lib/prism/dot_visitor.rb#3110 def visit_match_write_node(node); end # Visit a MissingNode node. # - # source://prism//lib/prism/dot_visitor.rb#3143 + # source://prism//lib/prism/dot_visitor.rb#3141 def visit_missing_node(node); end # Visit a ModuleNode node. # - # source://prism//lib/prism/dot_visitor.rb#3157 + # source://prism//lib/prism/dot_visitor.rb#3155 def visit_module_node(node); end # Visit a MultiTargetNode node. # - # source://prism//lib/prism/dot_visitor.rb#3193 + # source://prism//lib/prism/dot_visitor.rb#3191 def visit_multi_target_node(node); end # Visit a MultiWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#3249 + # source://prism//lib/prism/dot_visitor.rb#3247 def visit_multi_write_node(node); end # Visit a NextNode node. # - # source://prism//lib/prism/dot_visitor.rb#3312 + # source://prism//lib/prism/dot_visitor.rb#3310 def visit_next_node(node); end # Visit a NilNode node. # - # source://prism//lib/prism/dot_visitor.rb#3335 + # source://prism//lib/prism/dot_visitor.rb#3333 def visit_nil_node(node); end # Visit a NoKeywordsParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3349 + # source://prism//lib/prism/dot_visitor.rb#3347 def visit_no_keywords_parameter_node(node); end # Visit a NumberedParametersNode node. # - # source://prism//lib/prism/dot_visitor.rb#3369 + # source://prism//lib/prism/dot_visitor.rb#3367 def visit_numbered_parameters_node(node); end # Visit a NumberedReferenceReadNode node. # - # source://prism//lib/prism/dot_visitor.rb#3386 + # source://prism//lib/prism/dot_visitor.rb#3384 def visit_numbered_reference_read_node(node); end # Visit a OptionalKeywordParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3403 + # source://prism//lib/prism/dot_visitor.rb#3401 def visit_optional_keyword_parameter_node(node); end # Visit a OptionalParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3427 + # source://prism//lib/prism/dot_visitor.rb#3428 def visit_optional_parameter_node(node); end # Visit a OrNode node. # - # source://prism//lib/prism/dot_visitor.rb#3454 + # source://prism//lib/prism/dot_visitor.rb#3458 def visit_or_node(node); end # Visit a ParametersNode node. # - # source://prism//lib/prism/dot_visitor.rb#3479 + # source://prism//lib/prism/dot_visitor.rb#3483 def visit_parameters_node(node); end # Visit a ParenthesesNode node. # - # source://prism//lib/prism/dot_visitor.rb#3563 + # source://prism//lib/prism/dot_visitor.rb#3567 def visit_parentheses_node(node); end # Visit a PinnedExpressionNode node. # - # source://prism//lib/prism/dot_visitor.rb#3589 + # source://prism//lib/prism/dot_visitor.rb#3593 def visit_pinned_expression_node(node); end # Visit a PinnedVariableNode node. # - # source://prism//lib/prism/dot_visitor.rb#3616 + # source://prism//lib/prism/dot_visitor.rb#3620 def visit_pinned_variable_node(node); end # Visit a PostExecutionNode node. # - # source://prism//lib/prism/dot_visitor.rb#3637 + # source://prism//lib/prism/dot_visitor.rb#3641 def visit_post_execution_node(node); end # Visit a PreExecutionNode node. # - # source://prism//lib/prism/dot_visitor.rb#3666 + # source://prism//lib/prism/dot_visitor.rb#3670 def visit_pre_execution_node(node); end # Visit a ProgramNode node. # - # source://prism//lib/prism/dot_visitor.rb#3695 + # source://prism//lib/prism/dot_visitor.rb#3699 def visit_program_node(node); end # Visit a RangeNode node. # - # source://prism//lib/prism/dot_visitor.rb#3716 + # source://prism//lib/prism/dot_visitor.rb#3720 def visit_range_node(node); end # Visit a RationalNode node. # - # source://prism//lib/prism/dot_visitor.rb#3748 + # source://prism//lib/prism/dot_visitor.rb#3752 def visit_rational_node(node); end # Visit a RedoNode node. # - # source://prism//lib/prism/dot_visitor.rb#3766 + # source://prism//lib/prism/dot_visitor.rb#3770 def visit_redo_node(node); end # Visit a RegularExpressionNode node. # - # source://prism//lib/prism/dot_visitor.rb#3780 + # source://prism//lib/prism/dot_visitor.rb#3784 def visit_regular_expression_node(node); end # Visit a RequiredKeywordParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3809 + # source://prism//lib/prism/dot_visitor.rb#3813 def visit_required_keyword_parameter_node(node); end # Visit a RequiredParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3829 + # source://prism//lib/prism/dot_visitor.rb#3836 def visit_required_parameter_node(node); end # Visit a RescueModifierNode node. # - # source://prism//lib/prism/dot_visitor.rb#3846 + # source://prism//lib/prism/dot_visitor.rb#3856 def visit_rescue_modifier_node(node); end # Visit a RescueNode node. # - # source://prism//lib/prism/dot_visitor.rb#3871 + # source://prism//lib/prism/dot_visitor.rb#3881 def visit_rescue_node(node); end # Visit a RestParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3924 + # source://prism//lib/prism/dot_visitor.rb#3934 def visit_rest_parameter_node(node); end # Visit a RetryNode node. # - # source://prism//lib/prism/dot_visitor.rb#3949 + # source://prism//lib/prism/dot_visitor.rb#3962 def visit_retry_node(node); end # Visit a ReturnNode node. # - # source://prism//lib/prism/dot_visitor.rb#3963 + # source://prism//lib/prism/dot_visitor.rb#3976 def visit_return_node(node); end # Visit a SelfNode node. # - # source://prism//lib/prism/dot_visitor.rb#3986 + # source://prism//lib/prism/dot_visitor.rb#3999 def visit_self_node(node); end # Visit a SingletonClassNode node. # - # source://prism//lib/prism/dot_visitor.rb#4000 + # source://prism//lib/prism/dot_visitor.rb#4013 def visit_singleton_class_node(node); end # Visit a SourceEncodingNode node. # - # source://prism//lib/prism/dot_visitor.rb#4036 + # source://prism//lib/prism/dot_visitor.rb#4049 def visit_source_encoding_node(node); end # Visit a SourceFileNode node. # - # source://prism//lib/prism/dot_visitor.rb#4050 + # source://prism//lib/prism/dot_visitor.rb#4063 def visit_source_file_node(node); end # Visit a SourceLineNode node. # - # source://prism//lib/prism/dot_visitor.rb#4067 + # source://prism//lib/prism/dot_visitor.rb#4080 def visit_source_line_node(node); end # Visit a SplatNode node. # - # source://prism//lib/prism/dot_visitor.rb#4081 + # source://prism//lib/prism/dot_visitor.rb#4094 def visit_splat_node(node); end # Visit a StatementsNode node. # - # source://prism//lib/prism/dot_visitor.rb#4104 + # source://prism//lib/prism/dot_visitor.rb#4117 def visit_statements_node(node); end # Visit a StringNode node. # - # source://prism//lib/prism/dot_visitor.rb#4131 + # source://prism//lib/prism/dot_visitor.rb#4144 def visit_string_node(node); end # Visit a SuperNode node. # - # source://prism//lib/prism/dot_visitor.rb#4164 + # source://prism//lib/prism/dot_visitor.rb#4177 def visit_super_node(node); end # Visit a SymbolNode node. # - # source://prism//lib/prism/dot_visitor.rb#4203 + # source://prism//lib/prism/dot_visitor.rb#4216 def visit_symbol_node(node); end # Visit a TrueNode node. # - # source://prism//lib/prism/dot_visitor.rb#4238 + # source://prism//lib/prism/dot_visitor.rb#4251 def visit_true_node(node); end # Visit a UndefNode node. # - # source://prism//lib/prism/dot_visitor.rb#4252 + # source://prism//lib/prism/dot_visitor.rb#4265 def visit_undef_node(node); end # Visit a UnlessNode node. # - # source://prism//lib/prism/dot_visitor.rb#4282 + # source://prism//lib/prism/dot_visitor.rb#4295 def visit_unless_node(node); end # Visit a UntilNode node. # - # source://prism//lib/prism/dot_visitor.rb#4325 + # source://prism//lib/prism/dot_visitor.rb#4338 def visit_until_node(node); end # Visit a WhenNode node. # - # source://prism//lib/prism/dot_visitor.rb#4360 + # source://prism//lib/prism/dot_visitor.rb#4373 def visit_when_node(node); end # Visit a WhileNode node. # - # source://prism//lib/prism/dot_visitor.rb#4396 + # source://prism//lib/prism/dot_visitor.rb#4409 def visit_while_node(node); end # Visit a XStringNode node. # - # source://prism//lib/prism/dot_visitor.rb#4431 + # source://prism//lib/prism/dot_visitor.rb#4444 def visit_x_string_node(node); end # Visit a YieldNode node. # - # source://prism//lib/prism/dot_visitor.rb#4460 + # source://prism//lib/prism/dot_visitor.rb#4473 def visit_yield_node(node); end private @@ -11085,77 +11209,83 @@ class Prism::DotVisitor < ::Prism::Visitor # Inspect a node that has arguments_node_flags flags to display the flags as a # comma-separated list. # - # source://prism//lib/prism/dot_visitor.rb#4506 + # source://prism//lib/prism/dot_visitor.rb#4519 def arguments_node_flags_inspect(node); end # Inspect a node that has array_node_flags flags to display the flags as a # comma-separated list. # - # source://prism//lib/prism/dot_visitor.rb#4514 + # source://prism//lib/prism/dot_visitor.rb#4527 def array_node_flags_inspect(node); end # Inspect a node that has call_node_flags flags to display the flags as a # comma-separated list. # - # source://prism//lib/prism/dot_visitor.rb#4522 + # source://prism//lib/prism/dot_visitor.rb#4535 def call_node_flags_inspect(node); end # Inspect a node that has encoding_flags flags to display the flags as a # comma-separated list. # - # source://prism//lib/prism/dot_visitor.rb#4532 + # source://prism//lib/prism/dot_visitor.rb#4546 def encoding_flags_inspect(node); end # Inspect a node that has integer_base_flags flags to display the flags as a # comma-separated list. # - # source://prism//lib/prism/dot_visitor.rb#4541 + # source://prism//lib/prism/dot_visitor.rb#4555 def integer_base_flags_inspect(node); end # Inspect a node that has keyword_hash_node_flags flags to display the flags as a # comma-separated list. # - # source://prism//lib/prism/dot_visitor.rb#4552 + # source://prism//lib/prism/dot_visitor.rb#4566 def keyword_hash_node_flags_inspect(node); end # Inspect a location to display the start and end line and column numbers. # - # source://prism//lib/prism/dot_visitor.rb#4500 + # source://prism//lib/prism/dot_visitor.rb#4513 def location_inspect(location); end # Inspect a node that has loop_flags flags to display the flags as a # comma-separated list. # - # source://prism//lib/prism/dot_visitor.rb#4560 + # source://prism//lib/prism/dot_visitor.rb#4574 def loop_flags_inspect(node); end # Generate a unique node ID for a node throughout the digraph. # - # source://prism//lib/prism/dot_visitor.rb#4495 + # source://prism//lib/prism/dot_visitor.rb#4508 def node_id(node); end + # Inspect a node that has parameter_flags flags to display the flags as a + # comma-separated list. + # + # source://prism//lib/prism/dot_visitor.rb#4582 + def parameter_flags_inspect(node); end + # Inspect a node that has range_flags flags to display the flags as a # comma-separated list. # - # source://prism//lib/prism/dot_visitor.rb#4568 + # source://prism//lib/prism/dot_visitor.rb#4590 def range_flags_inspect(node); end # Inspect a node that has regular_expression_flags flags to display the flags as a # comma-separated list. # - # source://prism//lib/prism/dot_visitor.rb#4576 + # source://prism//lib/prism/dot_visitor.rb#4598 def regular_expression_flags_inspect(node); end # Inspect a node that has string_flags flags to display the flags as a # comma-separated list. # - # source://prism//lib/prism/dot_visitor.rb#4594 + # source://prism//lib/prism/dot_visitor.rb#4616 def string_flags_inspect(node); end # Inspect a node that has symbol_flags flags to display the flags as a # comma-separated list. # - # source://prism//lib/prism/dot_visitor.rb#4604 + # source://prism//lib/prism/dot_visitor.rb#4626 def symbol_flags_inspect(node); end end @@ -11249,13 +11379,13 @@ end # if a then b else c end # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#5565 +# source://prism//lib/prism/node.rb#5691 class Prism::ElseNode < ::Prism::Node - # def initialize: (else_keyword_loc: Location, statements: StatementsNode?, end_keyword_loc: Location?, location: Location) -> void + # def initialize: (Location else_keyword_loc, StatementsNode? statements, Location? end_keyword_loc, Location location) -> void # # @return [ElseNode] a new instance of ElseNode # - # source://prism//lib/prism/node.rb#5575 + # source://prism//lib/prism/node.rb#5702 sig do params( else_keyword_loc: Prism::Location, @@ -11266,44 +11396,44 @@ class Prism::ElseNode < ::Prism::Node end def initialize(else_keyword_loc, statements, end_keyword_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5583 + # source://prism//lib/prism/node.rb#5710 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5588 + # source://prism//lib/prism/node.rb#5715 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#5600 + # source://prism//lib/prism/node.rb#5727 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#5593 + # source://prism//lib/prism/node.rb#5720 def compact_child_nodes; end # def copy: (**params) -> ElseNode # - # source://prism//lib/prism/node.rb#5605 + # source://prism//lib/prism/node.rb#5732 sig { params(params: T.untyped).returns(Prism::ElseNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5588 + # source://prism//lib/prism/node.rb#5715 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { else_keyword_loc: Location, statements: StatementsNode?, end_keyword_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#5618 + # source://prism//lib/prism/node.rb#5745 sig do params( keys: T::Array[Symbol] @@ -11313,36 +11443,36 @@ class Prism::ElseNode < ::Prism::Node # def else_keyword: () -> String # - # source://prism//lib/prism/node.rb#5623 + # source://prism//lib/prism/node.rb#5750 sig { returns(String) } def else_keyword; end # attr_reader else_keyword_loc: Location # - # source://prism//lib/prism/node.rb#5566 + # source://prism//lib/prism/node.rb#5693 sig { returns(Prism::Location) } def else_keyword_loc; end # def end_keyword: () -> String? # - # source://prism//lib/prism/node.rb#5628 + # source://prism//lib/prism/node.rb#5755 sig { returns(T.nilable(String)) } def end_keyword; end # attr_reader end_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#5572 + # source://prism//lib/prism/node.rb#5699 sig { returns(T.nilable(Prism::Location)) } def end_keyword_loc; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#5633 + # source://prism//lib/prism/node.rb#5760 def inspect(inspector = T.unsafe(nil)); end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#5569 + # source://prism//lib/prism/node.rb#5696 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -11361,7 +11491,7 @@ class Prism::ElseNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5660 + # source://prism//lib/prism/node.rb#5787 def type; end class << self @@ -11372,7 +11502,7 @@ class Prism::ElseNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5670 + # source://prism//lib/prism/node.rb#5797 def type; end end end @@ -11380,7 +11510,7 @@ end # EmbDocComment objects correspond to comments that are surrounded by =begin # and =end. # -# source://prism//lib/prism/parse_result.rb#261 +# source://prism//lib/prism/parse_result.rb#260 class Prism::EmbDocComment < ::Prism::Comment # Returns a string representation of this comment. # @@ -11400,13 +11530,13 @@ end # "foo #{bar}" # ^^^^^^ # -# source://prism//lib/prism/node.rb#5680 +# source://prism//lib/prism/node.rb#5806 class Prism::EmbeddedStatementsNode < ::Prism::Node - # def initialize: (opening_loc: Location, statements: StatementsNode?, closing_loc: Location, location: Location) -> void + # def initialize: (Location opening_loc, StatementsNode? statements, Location closing_loc, Location location) -> void # # @return [EmbeddedStatementsNode] a new instance of EmbeddedStatementsNode # - # source://prism//lib/prism/node.rb#5690 + # source://prism//lib/prism/node.rb#5817 sig do params( opening_loc: Prism::Location, @@ -11417,56 +11547,56 @@ class Prism::EmbeddedStatementsNode < ::Prism::Node end def initialize(opening_loc, statements, closing_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5698 + # source://prism//lib/prism/node.rb#5825 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5703 + # source://prism//lib/prism/node.rb#5830 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#5743 + # source://prism//lib/prism/node.rb#5870 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#5687 + # source://prism//lib/prism/node.rb#5814 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#5715 + # source://prism//lib/prism/node.rb#5842 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#5708 + # source://prism//lib/prism/node.rb#5835 def compact_child_nodes; end # def copy: (**params) -> EmbeddedStatementsNode # - # source://prism//lib/prism/node.rb#5720 + # source://prism//lib/prism/node.rb#5847 sig { params(params: T.untyped).returns(Prism::EmbeddedStatementsNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5703 + # source://prism//lib/prism/node.rb#5830 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { opening_loc: Location, statements: StatementsNode?, closing_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#5733 + # source://prism//lib/prism/node.rb#5860 sig do params( keys: T::Array[Symbol] @@ -11474,26 +11604,26 @@ class Prism::EmbeddedStatementsNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#5748 + # source://prism//lib/prism/node.rb#5875 def inspect(inspector = T.unsafe(nil)); end # def opening: () -> String # - # source://prism//lib/prism/node.rb#5738 + # source://prism//lib/prism/node.rb#5865 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#5681 + # source://prism//lib/prism/node.rb#5808 sig { returns(Prism::Location) } def opening_loc; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#5684 + # source://prism//lib/prism/node.rb#5811 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -11512,7 +11642,7 @@ class Prism::EmbeddedStatementsNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5775 + # source://prism//lib/prism/node.rb#5902 def type; end class << self @@ -11523,7 +11653,7 @@ class Prism::EmbeddedStatementsNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5785 + # source://prism//lib/prism/node.rb#5912 def type; end end end @@ -11533,54 +11663,54 @@ end # "foo #@bar" # ^^^^^ # -# source://prism//lib/prism/node.rb#5795 +# source://prism//lib/prism/node.rb#5921 class Prism::EmbeddedVariableNode < ::Prism::Node - # def initialize: (operator_loc: Location, variable: Node, location: Location) -> void + # def initialize: (Location operator_loc, Node variable, Location location) -> void # # @return [EmbeddedVariableNode] a new instance of EmbeddedVariableNode # - # source://prism//lib/prism/node.rb#5802 + # source://prism//lib/prism/node.rb#5929 sig { params(operator_loc: Prism::Location, variable: Prism::Node, location: Prism::Location).void } def initialize(operator_loc, variable, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5809 + # source://prism//lib/prism/node.rb#5936 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5814 + # source://prism//lib/prism/node.rb#5941 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#5824 + # source://prism//lib/prism/node.rb#5951 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#5819 + # source://prism//lib/prism/node.rb#5946 def compact_child_nodes; end # def copy: (**params) -> EmbeddedVariableNode # - # source://prism//lib/prism/node.rb#5829 + # source://prism//lib/prism/node.rb#5956 sig { params(params: T.untyped).returns(Prism::EmbeddedVariableNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5814 + # source://prism//lib/prism/node.rb#5941 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { operator_loc: Location, variable: Node, location: Location } # - # source://prism//lib/prism/node.rb#5841 + # source://prism//lib/prism/node.rb#5968 sig do params( keys: T::Array[Symbol] @@ -11588,20 +11718,20 @@ class Prism::EmbeddedVariableNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#5851 + # source://prism//lib/prism/node.rb#5978 def inspect(inspector = T.unsafe(nil)); end # def operator: () -> String # - # source://prism//lib/prism/node.rb#5846 + # source://prism//lib/prism/node.rb#5973 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#5796 + # source://prism//lib/prism/node.rb#5923 sig { returns(Prism::Location) } def operator_loc; end @@ -11620,12 +11750,12 @@ class Prism::EmbeddedVariableNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5873 + # source://prism//lib/prism/node.rb#6000 def type; end # attr_reader variable: Node # - # source://prism//lib/prism/node.rb#5799 + # source://prism//lib/prism/node.rb#5926 sig { returns(Prism::Node) } def variable; end @@ -11637,24 +11767,24 @@ class Prism::EmbeddedVariableNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5883 + # source://prism//lib/prism/node.rb#6010 def type; end end end # Flags for nodes that have unescaped content. # -# source://prism//lib/prism/node.rb#17301 +# source://prism//lib/prism/node.rb#17578 module Prism::EncodingFlags; end # internal bytes forced the encoding to binary # -# source://prism//lib/prism/node.rb#17306 +# source://prism//lib/prism/node.rb#17583 Prism::EncodingFlags::FORCED_BINARY_ENCODING = T.let(T.unsafe(nil), Integer) # internal bytes forced the encoding to UTF-8 # -# source://prism//lib/prism/node.rb#17303 +# source://prism//lib/prism/node.rb#17580 Prism::EncodingFlags::FORCED_UTF8_ENCODING = T.let(T.unsafe(nil), Integer) # Represents an `ensure` clause in a `begin` statement. @@ -11666,13 +11796,13 @@ Prism::EncodingFlags::FORCED_UTF8_ENCODING = T.let(T.unsafe(nil), Integer) # bar # end # -# source://prism//lib/prism/node.rb#5897 +# source://prism//lib/prism/node.rb#6023 class Prism::EnsureNode < ::Prism::Node - # def initialize: (ensure_keyword_loc: Location, statements: StatementsNode?, end_keyword_loc: Location, location: Location) -> void + # def initialize: (Location ensure_keyword_loc, StatementsNode? statements, Location end_keyword_loc, Location location) -> void # # @return [EnsureNode] a new instance of EnsureNode # - # source://prism//lib/prism/node.rb#5907 + # source://prism//lib/prism/node.rb#6034 sig do params( ensure_keyword_loc: Prism::Location, @@ -11683,44 +11813,44 @@ class Prism::EnsureNode < ::Prism::Node end def initialize(ensure_keyword_loc, statements, end_keyword_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5915 + # source://prism//lib/prism/node.rb#6042 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5920 + # source://prism//lib/prism/node.rb#6047 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#5932 + # source://prism//lib/prism/node.rb#6059 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#5925 + # source://prism//lib/prism/node.rb#6052 def compact_child_nodes; end # def copy: (**params) -> EnsureNode # - # source://prism//lib/prism/node.rb#5937 + # source://prism//lib/prism/node.rb#6064 sig { params(params: T.untyped).returns(Prism::EnsureNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5920 + # source://prism//lib/prism/node.rb#6047 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { ensure_keyword_loc: Location, statements: StatementsNode?, end_keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#5950 + # source://prism//lib/prism/node.rb#6077 sig do params( keys: T::Array[Symbol] @@ -11730,36 +11860,36 @@ class Prism::EnsureNode < ::Prism::Node # def end_keyword: () -> String # - # source://prism//lib/prism/node.rb#5960 + # source://prism//lib/prism/node.rb#6087 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#5904 + # source://prism//lib/prism/node.rb#6031 sig { returns(Prism::Location) } def end_keyword_loc; end # def ensure_keyword: () -> String # - # source://prism//lib/prism/node.rb#5955 + # source://prism//lib/prism/node.rb#6082 sig { returns(String) } def ensure_keyword; end # attr_reader ensure_keyword_loc: Location # - # source://prism//lib/prism/node.rb#5898 + # source://prism//lib/prism/node.rb#6025 sig { returns(Prism::Location) } def ensure_keyword_loc; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#5965 + # source://prism//lib/prism/node.rb#6092 def inspect(inspector = T.unsafe(nil)); end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#5901 + # source://prism//lib/prism/node.rb#6028 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -11778,7 +11908,7 @@ class Prism::EnsureNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5992 + # source://prism//lib/prism/node.rb#6119 def type; end class << self @@ -11789,7 +11919,7 @@ class Prism::EnsureNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6002 + # source://prism//lib/prism/node.rb#6129 def type; end end end @@ -11799,54 +11929,54 @@ end # false # ^^^^^ # -# source://prism//lib/prism/node.rb#6012 +# source://prism//lib/prism/node.rb#6138 class Prism::FalseNode < ::Prism::Node - # def initialize: (location: Location) -> void + # def initialize: (Location location) -> void # # @return [FalseNode] a new instance of FalseNode # - # source://prism//lib/prism/node.rb#6013 + # source://prism//lib/prism/node.rb#6140 sig { params(location: Prism::Location).void } def initialize(location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6018 + # source://prism//lib/prism/node.rb#6145 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6023 + # source://prism//lib/prism/node.rb#6150 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6033 + # source://prism//lib/prism/node.rb#6160 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6028 + # source://prism//lib/prism/node.rb#6155 def compact_child_nodes; end # def copy: (**params) -> FalseNode # - # source://prism//lib/prism/node.rb#6038 + # source://prism//lib/prism/node.rb#6165 sig { params(params: T.untyped).returns(Prism::FalseNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6023 + # source://prism//lib/prism/node.rb#6150 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#6048 + # source://prism//lib/prism/node.rb#6175 sig do params( keys: T::Array[Symbol] @@ -11854,9 +11984,9 @@ class Prism::FalseNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#6053 + # source://prism//lib/prism/node.rb#6180 def inspect(inspector = T.unsafe(nil)); end # Sometimes you want to check an instance of a node against a list of @@ -11874,7 +12004,7 @@ class Prism::FalseNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6072 + # source://prism//lib/prism/node.rb#6199 def type; end class << self @@ -11885,7 +12015,7 @@ class Prism::FalseNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6082 + # source://prism//lib/prism/node.rb#6209 def type; end end end @@ -11901,13 +12031,13 @@ end # foo in Foo(*bar, baz, *qux) # ^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#6098 +# source://prism//lib/prism/node.rb#6224 class Prism::FindPatternNode < ::Prism::Node - # def initialize: (constant: Node?, left: Node, requireds: Array[Node], right: Node, opening_loc: Location?, closing_loc: Location?, location: Location) -> void + # def initialize: (Node? constant, Node left, Array[Node] requireds, Node right, Location? opening_loc, Location? closing_loc, Location location) -> void # # @return [FindPatternNode] a new instance of FindPatternNode # - # source://prism//lib/prism/node.rb#6117 + # source://prism//lib/prism/node.rb#6244 sig do params( constant: T.nilable(Prism::Node), @@ -11921,62 +12051,62 @@ class Prism::FindPatternNode < ::Prism::Node end def initialize(constant, left, requireds, right, opening_loc, closing_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6128 + # source://prism//lib/prism/node.rb#6255 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6133 + # source://prism//lib/prism/node.rb#6260 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#6179 + # source://prism//lib/prism/node.rb#6306 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#6114 + # source://prism//lib/prism/node.rb#6241 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6148 + # source://prism//lib/prism/node.rb#6275 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6138 + # source://prism//lib/prism/node.rb#6265 def compact_child_nodes; end # attr_reader constant: Node? # - # source://prism//lib/prism/node.rb#6099 + # source://prism//lib/prism/node.rb#6226 sig { returns(T.nilable(Prism::Node)) } def constant; end # def copy: (**params) -> FindPatternNode # - # source://prism//lib/prism/node.rb#6153 + # source://prism//lib/prism/node.rb#6280 sig { params(params: T.untyped).returns(Prism::FindPatternNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6133 + # source://prism//lib/prism/node.rb#6260 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { constant: Node?, left: Node, requireds: Array[Node], right: Node, opening_loc: Location?, closing_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#6169 + # source://prism//lib/prism/node.rb#6296 sig do params( keys: T::Array[Symbol] @@ -11984,38 +12114,38 @@ class Prism::FindPatternNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#6184 + # source://prism//lib/prism/node.rb#6311 def inspect(inspector = T.unsafe(nil)); end # attr_reader left: Node # - # source://prism//lib/prism/node.rb#6102 + # source://prism//lib/prism/node.rb#6229 sig { returns(Prism::Node) } def left; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#6174 + # source://prism//lib/prism/node.rb#6301 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#6111 + # source://prism//lib/prism/node.rb#6238 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader requireds: Array[Node] # - # source://prism//lib/prism/node.rb#6105 + # source://prism//lib/prism/node.rb#6232 sig { returns(T::Array[Prism::Node]) } def requireds; end # attr_reader right: Node # - # source://prism//lib/prism/node.rb#6108 + # source://prism//lib/prism/node.rb#6235 sig { returns(Prism::Node) } def right; end @@ -12034,7 +12164,7 @@ class Prism::FindPatternNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6216 + # source://prism//lib/prism/node.rb#6343 def type; end class << self @@ -12045,7 +12175,7 @@ class Prism::FindPatternNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6226 + # source://prism//lib/prism/node.rb#6353 def type; end end end @@ -12055,13 +12185,13 @@ end # baz if foo .. bar # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#6236 +# source://prism//lib/prism/node.rb#6362 class Prism::FlipFlopNode < ::Prism::Node - # def initialize: (flags: Integer, left: Node?, right: Node?, operator_loc: Location, location: Location) -> void + # def initialize: (Integer flags, Node? left, Node? right, Location operator_loc, Location location) -> void # # @return [FlipFlopNode] a new instance of FlipFlopNode # - # source://prism//lib/prism/node.rb#6249 + # source://prism//lib/prism/node.rb#6376 sig do params( flags: Integer, @@ -12073,44 +12203,44 @@ class Prism::FlipFlopNode < ::Prism::Node end def initialize(flags, left, right, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6258 + # source://prism//lib/prism/node.rb#6385 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6263 + # source://prism//lib/prism/node.rb#6390 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6276 + # source://prism//lib/prism/node.rb#6403 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6268 + # source://prism//lib/prism/node.rb#6395 def compact_child_nodes; end # def copy: (**params) -> FlipFlopNode # - # source://prism//lib/prism/node.rb#6281 + # source://prism//lib/prism/node.rb#6408 sig { params(params: T.untyped).returns(Prism::FlipFlopNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6263 + # source://prism//lib/prism/node.rb#6390 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, left: Node?, right: Node?, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#6295 + # source://prism//lib/prism/node.rb#6422 sig do params( keys: T::Array[Symbol] @@ -12122,36 +12252,36 @@ class Prism::FlipFlopNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#6300 + # source://prism//lib/prism/node.rb#6427 sig { returns(T::Boolean) } def exclude_end?; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#6310 + # source://prism//lib/prism/node.rb#6437 def inspect(inspector = T.unsafe(nil)); end # attr_reader left: Node? # - # source://prism//lib/prism/node.rb#6240 + # source://prism//lib/prism/node.rb#6367 sig { returns(T.nilable(Prism::Node)) } def left; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#6305 + # source://prism//lib/prism/node.rb#6432 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#6246 + # source://prism//lib/prism/node.rb#6373 sig { returns(Prism::Location) } def operator_loc; end # attr_reader right: Node? # - # source://prism//lib/prism/node.rb#6243 + # source://prism//lib/prism/node.rb#6370 sig { returns(T.nilable(Prism::Node)) } def right; end @@ -12170,14 +12300,14 @@ class Prism::FlipFlopNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6344 + # source://prism//lib/prism/node.rb#6471 def type; end private # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#6237 + # source://prism//lib/prism/node.rb#6364 sig { returns(Integer) } def flags; end @@ -12189,7 +12319,7 @@ class Prism::FlipFlopNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6354 + # source://prism//lib/prism/node.rb#6481 def type; end end end @@ -12199,54 +12329,54 @@ end # 1.0 # ^^^ # -# source://prism//lib/prism/node.rb#6364 +# source://prism//lib/prism/node.rb#6490 class Prism::FloatNode < ::Prism::Node - # def initialize: (location: Location) -> void + # def initialize: (Location location) -> void # # @return [FloatNode] a new instance of FloatNode # - # source://prism//lib/prism/node.rb#6365 + # source://prism//lib/prism/node.rb#6492 sig { params(location: Prism::Location).void } def initialize(location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6370 + # source://prism//lib/prism/node.rb#6497 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6375 + # source://prism//lib/prism/node.rb#6502 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6385 + # source://prism//lib/prism/node.rb#6512 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6380 + # source://prism//lib/prism/node.rb#6507 def compact_child_nodes; end # def copy: (**params) -> FloatNode # - # source://prism//lib/prism/node.rb#6390 + # source://prism//lib/prism/node.rb#6517 sig { params(params: T.untyped).returns(Prism::FloatNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6375 + # source://prism//lib/prism/node.rb#6502 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#6400 + # source://prism//lib/prism/node.rb#6527 sig do params( keys: T::Array[Symbol] @@ -12254,9 +12384,9 @@ class Prism::FloatNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#6405 + # source://prism//lib/prism/node.rb#6532 def inspect(inspector = T.unsafe(nil)); end # Sometimes you want to check an instance of a node against a list of @@ -12274,7 +12404,7 @@ class Prism::FloatNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6424 + # source://prism//lib/prism/node.rb#6551 def type; end # Returns the value of the node as a Ruby Float. @@ -12290,7 +12420,7 @@ class Prism::FloatNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6434 + # source://prism//lib/prism/node.rb#6561 def type; end end end @@ -12300,13 +12430,13 @@ end # for i in a end # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#6444 +# source://prism//lib/prism/node.rb#6570 class Prism::ForNode < ::Prism::Node - # def initialize: (index: Node, collection: Node, statements: StatementsNode?, for_keyword_loc: Location, in_keyword_loc: Location, do_keyword_loc: Location?, end_keyword_loc: Location, location: Location) -> void + # def initialize: (Node index, Node collection, StatementsNode? statements, Location for_keyword_loc, Location in_keyword_loc, Location? do_keyword_loc, Location end_keyword_loc, Location location) -> void # # @return [ForNode] a new instance of ForNode # - # source://prism//lib/prism/node.rb#6466 + # source://prism//lib/prism/node.rb#6593 sig do params( index: Prism::Node, @@ -12321,50 +12451,50 @@ class Prism::ForNode < ::Prism::Node end def initialize(index, collection, statements, for_keyword_loc, in_keyword_loc, do_keyword_loc, end_keyword_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6478 + # source://prism//lib/prism/node.rb#6605 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6483 + # source://prism//lib/prism/node.rb#6610 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # attr_reader collection: Node # - # source://prism//lib/prism/node.rb#6448 + # source://prism//lib/prism/node.rb#6575 sig { returns(Prism::Node) } def collection; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6497 + # source://prism//lib/prism/node.rb#6624 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6488 + # source://prism//lib/prism/node.rb#6615 def compact_child_nodes; end # def copy: (**params) -> ForNode # - # source://prism//lib/prism/node.rb#6502 + # source://prism//lib/prism/node.rb#6629 sig { params(params: T.untyped).returns(Prism::ForNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6483 + # source://prism//lib/prism/node.rb#6610 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { index: Node, collection: Node, statements: StatementsNode?, for_keyword_loc: Location, in_keyword_loc: Location, do_keyword_loc: Location?, end_keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#6519 + # source://prism//lib/prism/node.rb#6646 sig do params( keys: T::Array[Symbol] @@ -12374,66 +12504,66 @@ class Prism::ForNode < ::Prism::Node # def do_keyword: () -> String? # - # source://prism//lib/prism/node.rb#6534 + # source://prism//lib/prism/node.rb#6661 sig { returns(T.nilable(String)) } def do_keyword; end # attr_reader do_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#6460 + # source://prism//lib/prism/node.rb#6587 sig { returns(T.nilable(Prism::Location)) } def do_keyword_loc; end # def end_keyword: () -> String # - # source://prism//lib/prism/node.rb#6539 + # source://prism//lib/prism/node.rb#6666 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#6463 + # source://prism//lib/prism/node.rb#6590 sig { returns(Prism::Location) } def end_keyword_loc; end # def for_keyword: () -> String # - # source://prism//lib/prism/node.rb#6524 + # source://prism//lib/prism/node.rb#6651 sig { returns(String) } def for_keyword; end # attr_reader for_keyword_loc: Location # - # source://prism//lib/prism/node.rb#6454 + # source://prism//lib/prism/node.rb#6581 sig { returns(Prism::Location) } def for_keyword_loc; end # def in_keyword: () -> String # - # source://prism//lib/prism/node.rb#6529 + # source://prism//lib/prism/node.rb#6656 sig { returns(String) } def in_keyword; end # attr_reader in_keyword_loc: Location # - # source://prism//lib/prism/node.rb#6457 + # source://prism//lib/prism/node.rb#6584 sig { returns(Prism::Location) } def in_keyword_loc; end # attr_reader index: Node # - # source://prism//lib/prism/node.rb#6445 + # source://prism//lib/prism/node.rb#6572 sig { returns(Prism::Node) } def index; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#6544 + # source://prism//lib/prism/node.rb#6671 def inspect(inspector = T.unsafe(nil)); end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#6451 + # source://prism//lib/prism/node.rb#6578 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -12452,7 +12582,7 @@ class Prism::ForNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6577 + # source://prism//lib/prism/node.rb#6704 def type; end class << self @@ -12463,7 +12593,7 @@ class Prism::ForNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6587 + # source://prism//lib/prism/node.rb#6714 def type; end end end @@ -12475,54 +12605,54 @@ end # ^^^ # end # -# source://prism//lib/prism/node.rb#6599 +# source://prism//lib/prism/node.rb#6725 class Prism::ForwardingArgumentsNode < ::Prism::Node - # def initialize: (location: Location) -> void + # def initialize: (Location location) -> void # # @return [ForwardingArgumentsNode] a new instance of ForwardingArgumentsNode # - # source://prism//lib/prism/node.rb#6600 + # source://prism//lib/prism/node.rb#6727 sig { params(location: Prism::Location).void } def initialize(location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6605 + # source://prism//lib/prism/node.rb#6732 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6610 + # source://prism//lib/prism/node.rb#6737 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6620 + # source://prism//lib/prism/node.rb#6747 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6615 + # source://prism//lib/prism/node.rb#6742 def compact_child_nodes; end # def copy: (**params) -> ForwardingArgumentsNode # - # source://prism//lib/prism/node.rb#6625 + # source://prism//lib/prism/node.rb#6752 sig { params(params: T.untyped).returns(Prism::ForwardingArgumentsNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6610 + # source://prism//lib/prism/node.rb#6737 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#6635 + # source://prism//lib/prism/node.rb#6762 sig do params( keys: T::Array[Symbol] @@ -12530,9 +12660,9 @@ class Prism::ForwardingArgumentsNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#6640 + # source://prism//lib/prism/node.rb#6767 def inspect(inspector = T.unsafe(nil)); end # Sometimes you want to check an instance of a node against a list of @@ -12550,7 +12680,7 @@ class Prism::ForwardingArgumentsNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6659 + # source://prism//lib/prism/node.rb#6786 def type; end class << self @@ -12561,7 +12691,7 @@ class Prism::ForwardingArgumentsNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6669 + # source://prism//lib/prism/node.rb#6796 def type; end end end @@ -12572,54 +12702,54 @@ end # ^^^ # end # -# source://prism//lib/prism/node.rb#6680 +# source://prism//lib/prism/node.rb#6806 class Prism::ForwardingParameterNode < ::Prism::Node - # def initialize: (location: Location) -> void + # def initialize: (Location location) -> void # # @return [ForwardingParameterNode] a new instance of ForwardingParameterNode # - # source://prism//lib/prism/node.rb#6681 + # source://prism//lib/prism/node.rb#6808 sig { params(location: Prism::Location).void } def initialize(location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6686 + # source://prism//lib/prism/node.rb#6813 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6691 + # source://prism//lib/prism/node.rb#6818 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6701 + # source://prism//lib/prism/node.rb#6828 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6696 + # source://prism//lib/prism/node.rb#6823 def compact_child_nodes; end # def copy: (**params) -> ForwardingParameterNode # - # source://prism//lib/prism/node.rb#6706 + # source://prism//lib/prism/node.rb#6833 sig { params(params: T.untyped).returns(Prism::ForwardingParameterNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6691 + # source://prism//lib/prism/node.rb#6818 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#6716 + # source://prism//lib/prism/node.rb#6843 sig do params( keys: T::Array[Symbol] @@ -12627,9 +12757,9 @@ class Prism::ForwardingParameterNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#6721 + # source://prism//lib/prism/node.rb#6848 def inspect(inspector = T.unsafe(nil)); end # Sometimes you want to check an instance of a node against a list of @@ -12647,7 +12777,7 @@ class Prism::ForwardingParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6740 + # source://prism//lib/prism/node.rb#6867 def type; end class << self @@ -12658,7 +12788,7 @@ class Prism::ForwardingParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6750 + # source://prism//lib/prism/node.rb#6877 def type; end end end @@ -12668,60 +12798,60 @@ end # super # ^^^^^ # -# source://prism//lib/prism/node.rb#6760 +# source://prism//lib/prism/node.rb#6886 class Prism::ForwardingSuperNode < ::Prism::Node - # def initialize: (block: BlockNode?, location: Location) -> void + # def initialize: (BlockNode? block, Location location) -> void # # @return [ForwardingSuperNode] a new instance of ForwardingSuperNode # - # source://prism//lib/prism/node.rb#6764 + # source://prism//lib/prism/node.rb#6891 sig { params(block: T.nilable(Prism::BlockNode), location: Prism::Location).void } def initialize(block, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6770 + # source://prism//lib/prism/node.rb#6897 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader block: BlockNode? # - # source://prism//lib/prism/node.rb#6761 + # source://prism//lib/prism/node.rb#6888 sig { returns(T.nilable(Prism::BlockNode)) } def block; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6775 + # source://prism//lib/prism/node.rb#6902 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6787 + # source://prism//lib/prism/node.rb#6914 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6780 + # source://prism//lib/prism/node.rb#6907 def compact_child_nodes; end # def copy: (**params) -> ForwardingSuperNode # - # source://prism//lib/prism/node.rb#6792 + # source://prism//lib/prism/node.rb#6919 sig { params(params: T.untyped).returns(Prism::ForwardingSuperNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6775 + # source://prism//lib/prism/node.rb#6902 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { block: BlockNode?, location: Location } # - # source://prism//lib/prism/node.rb#6803 + # source://prism//lib/prism/node.rb#6930 sig do params( keys: T::Array[Symbol] @@ -12729,9 +12859,9 @@ class Prism::ForwardingSuperNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#6808 + # source://prism//lib/prism/node.rb#6935 def inspect(inspector = T.unsafe(nil)); end # Sometimes you want to check an instance of a node against a list of @@ -12749,7 +12879,7 @@ class Prism::ForwardingSuperNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6833 + # source://prism//lib/prism/node.rb#6960 def type; end class << self @@ -12760,7 +12890,7 @@ class Prism::ForwardingSuperNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6843 + # source://prism//lib/prism/node.rb#6970 def type; end end end @@ -12770,13 +12900,13 @@ end # $target &&= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#6853 +# source://prism//lib/prism/node.rb#6979 class Prism::GlobalVariableAndWriteNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void # # @return [GlobalVariableAndWriteNode] a new instance of GlobalVariableAndWriteNode # - # source://prism//lib/prism/node.rb#6866 + # source://prism//lib/prism/node.rb#6993 sig do params( name: Symbol, @@ -12788,44 +12918,44 @@ class Prism::GlobalVariableAndWriteNode < ::Prism::Node end def initialize(name, name_loc, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6875 + # source://prism//lib/prism/node.rb#7002 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6880 + # source://prism//lib/prism/node.rb#7007 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6890 + # source://prism//lib/prism/node.rb#7017 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6885 + # source://prism//lib/prism/node.rb#7012 def compact_child_nodes; end # def copy: (**params) -> GlobalVariableAndWriteNode # - # source://prism//lib/prism/node.rb#6895 + # source://prism//lib/prism/node.rb#7022 sig { params(params: T.untyped).returns(Prism::GlobalVariableAndWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6880 + # source://prism//lib/prism/node.rb#7007 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#6909 + # source://prism//lib/prism/node.rb#7036 sig do params( keys: T::Array[Symbol] @@ -12833,32 +12963,32 @@ class Prism::GlobalVariableAndWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#6919 + # source://prism//lib/prism/node.rb#7046 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#6854 + # source://prism//lib/prism/node.rb#6981 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#6857 + # source://prism//lib/prism/node.rb#6984 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#6914 + # source://prism//lib/prism/node.rb#7041 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#6860 + # source://prism//lib/prism/node.rb#6987 sig { returns(Prism::Location) } def operator_loc; end @@ -12877,12 +13007,12 @@ class Prism::GlobalVariableAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6943 + # source://prism//lib/prism/node.rb#7070 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#6863 + # source://prism//lib/prism/node.rb#6990 sig { returns(Prism::Node) } def value; end @@ -12894,7 +13024,7 @@ class Prism::GlobalVariableAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6953 + # source://prism//lib/prism/node.rb#7080 def type; end end end @@ -12904,13 +13034,13 @@ end # $target += value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#6963 +# source://prism//lib/prism/node.rb#7089 class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, operator: Symbol, location: Location) -> void + # def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Symbol operator, Location location) -> void # # @return [GlobalVariableOperatorWriteNode] a new instance of GlobalVariableOperatorWriteNode # - # source://prism//lib/prism/node.rb#6979 + # source://prism//lib/prism/node.rb#7106 sig do params( name: Symbol, @@ -12923,44 +13053,44 @@ class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node end def initialize(name, name_loc, operator_loc, value, operator, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6989 + # source://prism//lib/prism/node.rb#7116 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6994 + # source://prism//lib/prism/node.rb#7121 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7004 + # source://prism//lib/prism/node.rb#7131 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6999 + # source://prism//lib/prism/node.rb#7126 def compact_child_nodes; end # def copy: (**params) -> GlobalVariableOperatorWriteNode # - # source://prism//lib/prism/node.rb#7009 + # source://prism//lib/prism/node.rb#7136 sig { params(params: T.untyped).returns(Prism::GlobalVariableOperatorWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6994 + # source://prism//lib/prism/node.rb#7121 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Node, operator: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#7024 + # source://prism//lib/prism/node.rb#7151 sig do params( keys: T::Array[Symbol] @@ -12968,32 +13098,32 @@ class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#7029 + # source://prism//lib/prism/node.rb#7156 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#6964 + # source://prism//lib/prism/node.rb#7091 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#6967 + # source://prism//lib/prism/node.rb#7094 sig { returns(Prism::Location) } def name_loc; end # attr_reader operator: Symbol # - # source://prism//lib/prism/node.rb#6976 + # source://prism//lib/prism/node.rb#7103 sig { returns(Symbol) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#6970 + # source://prism//lib/prism/node.rb#7097 sig { returns(Prism::Location) } def operator_loc; end @@ -13012,12 +13142,12 @@ class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7054 + # source://prism//lib/prism/node.rb#7181 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#6973 + # source://prism//lib/prism/node.rb#7100 sig { returns(Prism::Node) } def value; end @@ -13029,7 +13159,7 @@ class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7064 + # source://prism//lib/prism/node.rb#7191 def type; end end end @@ -13039,13 +13169,13 @@ end # $target ||= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#7074 +# source://prism//lib/prism/node.rb#7200 class Prism::GlobalVariableOrWriteNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void # # @return [GlobalVariableOrWriteNode] a new instance of GlobalVariableOrWriteNode # - # source://prism//lib/prism/node.rb#7087 + # source://prism//lib/prism/node.rb#7214 sig do params( name: Symbol, @@ -13057,44 +13187,44 @@ class Prism::GlobalVariableOrWriteNode < ::Prism::Node end def initialize(name, name_loc, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7096 + # source://prism//lib/prism/node.rb#7223 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7101 + # source://prism//lib/prism/node.rb#7228 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7111 + # source://prism//lib/prism/node.rb#7238 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7106 + # source://prism//lib/prism/node.rb#7233 def compact_child_nodes; end # def copy: (**params) -> GlobalVariableOrWriteNode # - # source://prism//lib/prism/node.rb#7116 + # source://prism//lib/prism/node.rb#7243 sig { params(params: T.untyped).returns(Prism::GlobalVariableOrWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7101 + # source://prism//lib/prism/node.rb#7228 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#7130 + # source://prism//lib/prism/node.rb#7257 sig do params( keys: T::Array[Symbol] @@ -13102,32 +13232,32 @@ class Prism::GlobalVariableOrWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#7140 + # source://prism//lib/prism/node.rb#7267 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#7075 + # source://prism//lib/prism/node.rb#7202 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#7078 + # source://prism//lib/prism/node.rb#7205 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#7135 + # source://prism//lib/prism/node.rb#7262 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#7081 + # source://prism//lib/prism/node.rb#7208 sig { returns(Prism::Location) } def operator_loc; end @@ -13146,12 +13276,12 @@ class Prism::GlobalVariableOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7164 + # source://prism//lib/prism/node.rb#7291 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#7084 + # source://prism//lib/prism/node.rb#7211 sig { returns(Prism::Node) } def value; end @@ -13163,7 +13293,7 @@ class Prism::GlobalVariableOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7174 + # source://prism//lib/prism/node.rb#7301 def type; end end end @@ -13173,54 +13303,54 @@ end # $foo # ^^^^ # -# source://prism//lib/prism/node.rb#7184 +# source://prism//lib/prism/node.rb#7310 class Prism::GlobalVariableReadNode < ::Prism::Node - # def initialize: (name: Symbol, location: Location) -> void + # def initialize: (Symbol name, Location location) -> void # # @return [GlobalVariableReadNode] a new instance of GlobalVariableReadNode # - # source://prism//lib/prism/node.rb#7188 + # source://prism//lib/prism/node.rb#7319 sig { params(name: Symbol, location: Prism::Location).void } def initialize(name, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7194 + # source://prism//lib/prism/node.rb#7325 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7199 + # source://prism//lib/prism/node.rb#7330 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7209 + # source://prism//lib/prism/node.rb#7340 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7204 + # source://prism//lib/prism/node.rb#7335 def compact_child_nodes; end # def copy: (**params) -> GlobalVariableReadNode # - # source://prism//lib/prism/node.rb#7214 + # source://prism//lib/prism/node.rb#7345 sig { params(params: T.untyped).returns(Prism::GlobalVariableReadNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7199 + # source://prism//lib/prism/node.rb#7330 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#7225 + # source://prism//lib/prism/node.rb#7356 sig do params( keys: T::Array[Symbol] @@ -13228,14 +13358,18 @@ class Prism::GlobalVariableReadNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#7230 + # source://prism//lib/prism/node.rb#7361 def inspect(inspector = T.unsafe(nil)); end - # attr_reader name: Symbol + # The name of the global variable, which is a `$` followed by an [identifier](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#identifier). Alternatively, it can be one of the special global variables designated by a symbol. + # + # $foo # name `:$foo` + # + # $_Test # name `:$_Test` # - # source://prism//lib/prism/node.rb#7185 + # source://prism//lib/prism/node.rb#7316 sig { returns(Symbol) } def name; end @@ -13254,7 +13388,7 @@ class Prism::GlobalVariableReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7250 + # source://prism//lib/prism/node.rb#7381 def type; end class << self @@ -13265,7 +13399,7 @@ class Prism::GlobalVariableReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7260 + # source://prism//lib/prism/node.rb#7391 def type; end end end @@ -13275,54 +13409,54 @@ end # $foo, $bar = baz # ^^^^ ^^^^ # -# source://prism//lib/prism/node.rb#7270 +# source://prism//lib/prism/node.rb#7400 class Prism::GlobalVariableTargetNode < ::Prism::Node - # def initialize: (name: Symbol, location: Location) -> void + # def initialize: (Symbol name, Location location) -> void # # @return [GlobalVariableTargetNode] a new instance of GlobalVariableTargetNode # - # source://prism//lib/prism/node.rb#7274 + # source://prism//lib/prism/node.rb#7405 sig { params(name: Symbol, location: Prism::Location).void } def initialize(name, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7280 + # source://prism//lib/prism/node.rb#7411 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7285 + # source://prism//lib/prism/node.rb#7416 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7295 + # source://prism//lib/prism/node.rb#7426 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7290 + # source://prism//lib/prism/node.rb#7421 def compact_child_nodes; end # def copy: (**params) -> GlobalVariableTargetNode # - # source://prism//lib/prism/node.rb#7300 + # source://prism//lib/prism/node.rb#7431 sig { params(params: T.untyped).returns(Prism::GlobalVariableTargetNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7285 + # source://prism//lib/prism/node.rb#7416 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#7311 + # source://prism//lib/prism/node.rb#7442 sig do params( keys: T::Array[Symbol] @@ -13330,14 +13464,14 @@ class Prism::GlobalVariableTargetNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#7316 + # source://prism//lib/prism/node.rb#7447 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#7271 + # source://prism//lib/prism/node.rb#7402 sig { returns(Symbol) } def name; end @@ -13356,7 +13490,7 @@ class Prism::GlobalVariableTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7336 + # source://prism//lib/prism/node.rb#7467 def type; end class << self @@ -13367,7 +13501,7 @@ class Prism::GlobalVariableTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7346 + # source://prism//lib/prism/node.rb#7477 def type; end end end @@ -13377,13 +13511,13 @@ end # $foo = 1 # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#7356 +# source://prism//lib/prism/node.rb#7486 class Prism::GlobalVariableWriteNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, value: Node, operator_loc: Location, location: Location) -> void + # def initialize: (Symbol name, Location name_loc, Node value, Location operator_loc, Location location) -> void # # @return [GlobalVariableWriteNode] a new instance of GlobalVariableWriteNode # - # source://prism//lib/prism/node.rb#7369 + # source://prism//lib/prism/node.rb#7500 sig do params( name: Symbol, @@ -13395,44 +13529,44 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node end def initialize(name, name_loc, value, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7378 + # source://prism//lib/prism/node.rb#7509 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7383 + # source://prism//lib/prism/node.rb#7514 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7393 + # source://prism//lib/prism/node.rb#7524 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7388 + # source://prism//lib/prism/node.rb#7519 def compact_child_nodes; end # def copy: (**params) -> GlobalVariableWriteNode # - # source://prism//lib/prism/node.rb#7398 + # source://prism//lib/prism/node.rb#7529 sig { params(params: T.untyped).returns(Prism::GlobalVariableWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7383 + # source://prism//lib/prism/node.rb#7514 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, value: Node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#7412 + # source://prism//lib/prism/node.rb#7543 sig do params( keys: T::Array[Symbol] @@ -13440,32 +13574,32 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#7422 + # source://prism//lib/prism/node.rb#7553 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#7357 + # source://prism//lib/prism/node.rb#7488 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#7360 + # source://prism//lib/prism/node.rb#7491 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#7417 + # source://prism//lib/prism/node.rb#7548 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#7366 + # source://prism//lib/prism/node.rb#7497 sig { returns(Prism::Location) } def operator_loc; end @@ -13484,12 +13618,12 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7446 + # source://prism//lib/prism/node.rb#7577 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#7363 + # source://prism//lib/prism/node.rb#7494 sig { returns(Prism::Node) } def value; end @@ -13501,7 +13635,7 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7456 + # source://prism//lib/prism/node.rb#7587 def type; end end end @@ -13511,13 +13645,13 @@ end # { a => b } # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#7466 +# source://prism//lib/prism/node.rb#7596 class Prism::HashNode < ::Prism::Node - # def initialize: (opening_loc: Location, elements: Array[Node], closing_loc: Location, location: Location) -> void + # def initialize: (Location opening_loc, Array[Node] elements, Location closing_loc, Location location) -> void # # @return [HashNode] a new instance of HashNode # - # source://prism//lib/prism/node.rb#7476 + # source://prism//lib/prism/node.rb#7619 sig do params( opening_loc: Prism::Location, @@ -13528,56 +13662,59 @@ class Prism::HashNode < ::Prism::Node end def initialize(opening_loc, elements, closing_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7484 + # source://prism//lib/prism/node.rb#7627 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7489 + # source://prism//lib/prism/node.rb#7632 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#7527 + # source://prism//lib/prism/node.rb#7670 sig { returns(String) } def closing; end - # attr_reader closing_loc: Location + # The location of the closing brace. # - # source://prism//lib/prism/node.rb#7473 + # { a => b } + # ^ + # + # source://prism//lib/prism/node.rb#7616 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7499 + # source://prism//lib/prism/node.rb#7642 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7494 + # source://prism//lib/prism/node.rb#7637 def compact_child_nodes; end # def copy: (**params) -> HashNode # - # source://prism//lib/prism/node.rb#7504 + # source://prism//lib/prism/node.rb#7647 sig { params(params: T.untyped).returns(Prism::HashNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7489 + # source://prism//lib/prism/node.rb#7632 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { opening_loc: Location, elements: Array[Node], closing_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#7517 + # source://prism//lib/prism/node.rb#7660 sig do params( keys: T::Array[Symbol] @@ -13585,26 +13722,35 @@ class Prism::HashNode < ::Prism::Node end def deconstruct_keys(keys); end - # attr_reader elements: Array[Node] + # The elements of the hash. These can be either `AssocNode`s or `AssocSplatNode`s. + # + # { a: b } + # ^^^^ # - # source://prism//lib/prism/node.rb#7470 + # { **foo } + # ^^^^^ + # + # source://prism//lib/prism/node.rb#7610 sig { returns(T::Array[Prism::Node]) } def elements; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#7532 + # source://prism//lib/prism/node.rb#7675 def inspect(inspector = T.unsafe(nil)); end # def opening: () -> String # - # source://prism//lib/prism/node.rb#7522 + # source://prism//lib/prism/node.rb#7665 sig { returns(String) } def opening; end - # attr_reader opening_loc: Location + # The location of the opening brace. # - # source://prism//lib/prism/node.rb#7467 + # { a => b } + # ^ + # + # source://prism//lib/prism/node.rb#7601 sig { returns(Prism::Location) } def opening_loc; end @@ -13623,7 +13769,7 @@ class Prism::HashNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7554 + # source://prism//lib/prism/node.rb#7697 def type; end class << self @@ -13634,7 +13780,7 @@ class Prism::HashNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7564 + # source://prism//lib/prism/node.rb#7707 def type; end end end @@ -13647,13 +13793,13 @@ end # foo => { a: 1, b: 2, **c } # ^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#7577 +# source://prism//lib/prism/node.rb#7719 class Prism::HashPatternNode < ::Prism::Node - # def initialize: (constant: Node?, elements: Array[Node], rest: Node?, opening_loc: Location?, closing_loc: Location?, location: Location) -> void + # def initialize: (Node? constant, Array[Node] elements, Node? rest, Location? opening_loc, Location? closing_loc, Location location) -> void # # @return [HashPatternNode] a new instance of HashPatternNode # - # source://prism//lib/prism/node.rb#7593 + # source://prism//lib/prism/node.rb#7736 sig do params( constant: T.nilable(Prism::Node), @@ -13666,62 +13812,62 @@ class Prism::HashPatternNode < ::Prism::Node end def initialize(constant, elements, rest, opening_loc, closing_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7603 + # source://prism//lib/prism/node.rb#7746 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7608 + # source://prism//lib/prism/node.rb#7751 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#7652 + # source://prism//lib/prism/node.rb#7795 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#7590 + # source://prism//lib/prism/node.rb#7733 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7622 + # source://prism//lib/prism/node.rb#7765 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7613 + # source://prism//lib/prism/node.rb#7756 def compact_child_nodes; end # attr_reader constant: Node? # - # source://prism//lib/prism/node.rb#7578 + # source://prism//lib/prism/node.rb#7721 sig { returns(T.nilable(Prism::Node)) } def constant; end # def copy: (**params) -> HashPatternNode # - # source://prism//lib/prism/node.rb#7627 + # source://prism//lib/prism/node.rb#7770 sig { params(params: T.untyped).returns(Prism::HashPatternNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7608 + # source://prism//lib/prism/node.rb#7751 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { constant: Node?, elements: Array[Node], rest: Node?, opening_loc: Location?, closing_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#7642 + # source://prism//lib/prism/node.rb#7785 sig do params( keys: T::Array[Symbol] @@ -13731,30 +13877,30 @@ class Prism::HashPatternNode < ::Prism::Node # attr_reader elements: Array[Node] # - # source://prism//lib/prism/node.rb#7581 + # source://prism//lib/prism/node.rb#7724 sig { returns(T::Array[Prism::Node]) } def elements; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#7657 + # source://prism//lib/prism/node.rb#7800 def inspect(inspector = T.unsafe(nil)); end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#7647 + # source://prism//lib/prism/node.rb#7790 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#7587 + # source://prism//lib/prism/node.rb#7730 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader rest: Node? # - # source://prism//lib/prism/node.rb#7584 + # source://prism//lib/prism/node.rb#7727 sig { returns(T.nilable(Prism::Node)) } def rest; end @@ -13773,7 +13919,7 @@ class Prism::HashPatternNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7691 + # source://prism//lib/prism/node.rb#7834 def type; end class << self @@ -13784,7 +13930,7 @@ class Prism::HashPatternNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7701 + # source://prism//lib/prism/node.rb#7844 def type; end end end @@ -13807,13 +13953,13 @@ end # if foo then bar end # ^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#7714 +# source://prism//lib/prism/node.rb#7856 class Prism::IfNode < ::Prism::Node - # def initialize: (if_keyword_loc: Location?, predicate: Node, then_keyword_loc: Location?, statements: StatementsNode?, consequent: Node?, end_keyword_loc: Location?, location: Location) -> void + # def initialize: (Location? if_keyword_loc, Node predicate, Location? then_keyword_loc, StatementsNode? statements, Node? consequent, Location? end_keyword_loc, Location location) -> void # # @return [IfNode] a new instance of IfNode # - # source://prism//lib/prism/node.rb#7733 + # source://prism//lib/prism/node.rb#7876 sig do params( if_keyword_loc: T.nilable(Prism::Location), @@ -13827,50 +13973,50 @@ class Prism::IfNode < ::Prism::Node end def initialize(if_keyword_loc, predicate, then_keyword_loc, statements, consequent, end_keyword_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7744 + # source://prism//lib/prism/node.rb#7887 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7753 + # source://prism//lib/prism/node.rb#7896 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7767 + # source://prism//lib/prism/node.rb#7910 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7758 + # source://prism//lib/prism/node.rb#7901 def compact_child_nodes; end # attr_reader consequent: Node? # - # source://prism//lib/prism/node.rb#7727 + # source://prism//lib/prism/node.rb#7870 sig { returns(T.nilable(Prism::Node)) } def consequent; end # def copy: (**params) -> IfNode # - # source://prism//lib/prism/node.rb#7772 + # source://prism//lib/prism/node.rb#7915 sig { params(params: T.untyped).returns(Prism::IfNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7753 + # source://prism//lib/prism/node.rb#7896 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { if_keyword_loc: Location?, predicate: Node, then_keyword_loc: Location?, statements: StatementsNode?, consequent: Node?, end_keyword_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#7788 + # source://prism//lib/prism/node.rb#7931 sig do params( keys: T::Array[Symbol] @@ -13880,57 +14026,57 @@ class Prism::IfNode < ::Prism::Node # def end_keyword: () -> String? # - # source://prism//lib/prism/node.rb#7803 + # source://prism//lib/prism/node.rb#7946 sig { returns(T.nilable(String)) } def end_keyword; end # attr_reader end_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#7730 + # source://prism//lib/prism/node.rb#7873 sig { returns(T.nilable(Prism::Location)) } def end_keyword_loc; end # def if_keyword: () -> String? # - # source://prism//lib/prism/node.rb#7793 + # source://prism//lib/prism/node.rb#7936 sig { returns(T.nilable(String)) } def if_keyword; end # attr_reader if_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#7715 + # source://prism//lib/prism/node.rb#7858 sig { returns(T.nilable(Prism::Location)) } def if_keyword_loc; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#7808 + # source://prism//lib/prism/node.rb#7951 def inspect(inspector = T.unsafe(nil)); end # attr_reader predicate: Node # - # source://prism//lib/prism/node.rb#7718 + # source://prism//lib/prism/node.rb#7861 sig { returns(Prism::Node) } def predicate; end - # source://prism//lib/prism/node.rb#7748 + # source://prism//lib/prism/node.rb#7891 def set_newline_flag(newline_marked); end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#7724 + # source://prism//lib/prism/node.rb#7867 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end # def then_keyword: () -> String? # - # source://prism//lib/prism/node.rb#7798 + # source://prism//lib/prism/node.rb#7941 sig { returns(T.nilable(String)) } def then_keyword; end # attr_reader then_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#7721 + # source://prism//lib/prism/node.rb#7864 sig { returns(T.nilable(Prism::Location)) } def then_keyword_loc; end @@ -13949,7 +14095,7 @@ class Prism::IfNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7844 + # source://prism//lib/prism/node.rb#7987 def type; end class << self @@ -13960,7 +14106,7 @@ class Prism::IfNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7854 + # source://prism//lib/prism/node.rb#7997 def type; end end end @@ -13970,54 +14116,54 @@ end # 1.0i # ^^^^ # -# source://prism//lib/prism/node.rb#7864 +# source://prism//lib/prism/node.rb#8006 class Prism::ImaginaryNode < ::Prism::Node - # def initialize: (numeric: Node, location: Location) -> void + # def initialize: (Node numeric, Location location) -> void # # @return [ImaginaryNode] a new instance of ImaginaryNode # - # source://prism//lib/prism/node.rb#7868 + # source://prism//lib/prism/node.rb#8011 sig { params(numeric: Prism::Node, location: Prism::Location).void } def initialize(numeric, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7874 + # source://prism//lib/prism/node.rb#8017 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7879 + # source://prism//lib/prism/node.rb#8022 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7889 + # source://prism//lib/prism/node.rb#8032 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7884 + # source://prism//lib/prism/node.rb#8027 def compact_child_nodes; end # def copy: (**params) -> ImaginaryNode # - # source://prism//lib/prism/node.rb#7894 + # source://prism//lib/prism/node.rb#8037 sig { params(params: T.untyped).returns(Prism::ImaginaryNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7879 + # source://prism//lib/prism/node.rb#8022 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { numeric: Node, location: Location } # - # source://prism//lib/prism/node.rb#7905 + # source://prism//lib/prism/node.rb#8048 sig do params( keys: T::Array[Symbol] @@ -14025,14 +14171,14 @@ class Prism::ImaginaryNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#7910 + # source://prism//lib/prism/node.rb#8053 def inspect(inspector = T.unsafe(nil)); end # attr_reader numeric: Node # - # source://prism//lib/prism/node.rb#7865 + # source://prism//lib/prism/node.rb#8008 sig { returns(Prism::Node) } def numeric; end @@ -14051,7 +14197,7 @@ class Prism::ImaginaryNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7931 + # source://prism//lib/prism/node.rb#8074 def type; end # Returns the value of the node as a Ruby Complex. @@ -14067,13 +14213,12 @@ class Prism::ImaginaryNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7941 + # source://prism//lib/prism/node.rb#8084 def type; end end end -# Represents a node that is implicitly being added to the tree but doesn't -# correspond directly to a node in the source. +# Represents a node that is implicitly being added to the tree but doesn't correspond directly to a node in the source. # # { foo: } # ^^^^ @@ -14081,54 +14226,57 @@ end # { Foo: } # ^^^^ # -# source://prism//lib/prism/node.rb#7955 +# foo in { bar: } +# ^^^^ +# +# source://prism//lib/prism/node.rb#8099 class Prism::ImplicitNode < ::Prism::Node - # def initialize: (value: Node, location: Location) -> void + # def initialize: (Node value, Location location) -> void # # @return [ImplicitNode] a new instance of ImplicitNode # - # source://prism//lib/prism/node.rb#7959 + # source://prism//lib/prism/node.rb#8104 sig { params(value: Prism::Node, location: Prism::Location).void } def initialize(value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7965 + # source://prism//lib/prism/node.rb#8110 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7970 + # source://prism//lib/prism/node.rb#8115 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7980 + # source://prism//lib/prism/node.rb#8125 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7975 + # source://prism//lib/prism/node.rb#8120 def compact_child_nodes; end # def copy: (**params) -> ImplicitNode # - # source://prism//lib/prism/node.rb#7985 + # source://prism//lib/prism/node.rb#8130 sig { params(params: T.untyped).returns(Prism::ImplicitNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7970 + # source://prism//lib/prism/node.rb#8115 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { value: Node, location: Location } # - # source://prism//lib/prism/node.rb#7996 + # source://prism//lib/prism/node.rb#8141 sig do params( keys: T::Array[Symbol] @@ -14136,9 +14284,9 @@ class Prism::ImplicitNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#8001 + # source://prism//lib/prism/node.rb#8146 def inspect(inspector = T.unsafe(nil)); end # Sometimes you want to check an instance of a node against a list of @@ -14156,12 +14304,12 @@ class Prism::ImplicitNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8022 + # source://prism//lib/prism/node.rb#8167 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#7956 + # source://prism//lib/prism/node.rb#8101 sig { returns(Prism::Node) } def value; end @@ -14173,7 +14321,7 @@ class Prism::ImplicitNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8032 + # source://prism//lib/prism/node.rb#8177 def type; end end end @@ -14192,54 +14340,54 @@ end # foo, = bar # ^ # -# source://prism//lib/prism/node.rb#8051 +# source://prism//lib/prism/node.rb#8195 class Prism::ImplicitRestNode < ::Prism::Node - # def initialize: (location: Location) -> void + # def initialize: (Location location) -> void # # @return [ImplicitRestNode] a new instance of ImplicitRestNode # - # source://prism//lib/prism/node.rb#8052 + # source://prism//lib/prism/node.rb#8197 sig { params(location: Prism::Location).void } def initialize(location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8057 + # source://prism//lib/prism/node.rb#8202 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8062 + # source://prism//lib/prism/node.rb#8207 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#8072 + # source://prism//lib/prism/node.rb#8217 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#8067 + # source://prism//lib/prism/node.rb#8212 def compact_child_nodes; end # def copy: (**params) -> ImplicitRestNode # - # source://prism//lib/prism/node.rb#8077 + # source://prism//lib/prism/node.rb#8222 sig { params(params: T.untyped).returns(Prism::ImplicitRestNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8062 + # source://prism//lib/prism/node.rb#8207 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#8087 + # source://prism//lib/prism/node.rb#8232 sig do params( keys: T::Array[Symbol] @@ -14247,9 +14395,9 @@ class Prism::ImplicitRestNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#8092 + # source://prism//lib/prism/node.rb#8237 def inspect(inspector = T.unsafe(nil)); end # Sometimes you want to check an instance of a node against a list of @@ -14267,7 +14415,7 @@ class Prism::ImplicitRestNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8111 + # source://prism//lib/prism/node.rb#8256 def type; end class << self @@ -14278,7 +14426,7 @@ class Prism::ImplicitRestNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8121 + # source://prism//lib/prism/node.rb#8266 def type; end end end @@ -14288,13 +14436,13 @@ end # case a; in b then c end # ^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#8131 +# source://prism//lib/prism/node.rb#8275 class Prism::InNode < ::Prism::Node - # def initialize: (pattern: Node, statements: StatementsNode?, in_loc: Location, then_loc: Location?, location: Location) -> void + # def initialize: (Node pattern, StatementsNode? statements, Location in_loc, Location? then_loc, Location location) -> void # # @return [InNode] a new instance of InNode # - # source://prism//lib/prism/node.rb#8144 + # source://prism//lib/prism/node.rb#8289 sig do params( pattern: Prism::Node, @@ -14306,44 +14454,44 @@ class Prism::InNode < ::Prism::Node end def initialize(pattern, statements, in_loc, then_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8153 + # source://prism//lib/prism/node.rb#8298 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8158 + # source://prism//lib/prism/node.rb#8303 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#8171 + # source://prism//lib/prism/node.rb#8316 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#8163 + # source://prism//lib/prism/node.rb#8308 def compact_child_nodes; end # def copy: (**params) -> InNode # - # source://prism//lib/prism/node.rb#8176 + # source://prism//lib/prism/node.rb#8321 sig { params(params: T.untyped).returns(Prism::InNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8158 + # source://prism//lib/prism/node.rb#8303 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { pattern: Node, statements: StatementsNode?, in_loc: Location, then_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#8190 + # source://prism//lib/prism/node.rb#8335 sig do params( keys: T::Array[Symbol] @@ -14353,42 +14501,42 @@ class Prism::InNode < ::Prism::Node # def in: () -> String # - # source://prism//lib/prism/node.rb#8195 + # source://prism//lib/prism/node.rb#8340 sig { returns(String) } def in; end # attr_reader in_loc: Location # - # source://prism//lib/prism/node.rb#8138 + # source://prism//lib/prism/node.rb#8283 sig { returns(Prism::Location) } def in_loc; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#8205 + # source://prism//lib/prism/node.rb#8350 def inspect(inspector = T.unsafe(nil)); end # attr_reader pattern: Node # - # source://prism//lib/prism/node.rb#8132 + # source://prism//lib/prism/node.rb#8277 sig { returns(Prism::Node) } def pattern; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#8135 + # source://prism//lib/prism/node.rb#8280 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end # def then: () -> String? # - # source://prism//lib/prism/node.rb#8200 + # source://prism//lib/prism/node.rb#8345 sig { returns(T.nilable(String)) } def then; end # attr_reader then_loc: Location? # - # source://prism//lib/prism/node.rb#8141 + # source://prism//lib/prism/node.rb#8286 sig { returns(T.nilable(Prism::Location)) } def then_loc; end @@ -14407,7 +14555,7 @@ class Prism::InNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8234 + # source://prism//lib/prism/node.rb#8379 def type; end class << self @@ -14418,7 +14566,7 @@ class Prism::InNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8244 + # source://prism//lib/prism/node.rb#8389 def type; end end end @@ -14428,13 +14576,13 @@ end # foo.bar[baz] &&= value # ^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#8254 +# source://prism//lib/prism/node.rb#8398 class Prism::IndexAndWriteNode < ::Prism::Node - # def initialize: (flags: Integer, receiver: Node?, call_operator_loc: Location?, opening_loc: Location, arguments: ArgumentsNode?, closing_loc: Location, block: Node?, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (Integer flags, Node? receiver, Location? call_operator_loc, Location opening_loc, ArgumentsNode? arguments, Location closing_loc, Node? block, Location operator_loc, Node value, Location location) -> void # # @return [IndexAndWriteNode] a new instance of IndexAndWriteNode # - # source://prism//lib/prism/node.rb#8282 + # source://prism//lib/prism/node.rb#8427 sig do params( flags: Integer, @@ -14451,15 +14599,15 @@ class Prism::IndexAndWriteNode < ::Prism::Node end def initialize(flags, receiver, call_operator_loc, opening_loc, arguments, closing_loc, block, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8296 + # source://prism//lib/prism/node.rb#8441 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#8267 + # source://prism//lib/prism/node.rb#8412 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end @@ -14467,72 +14615,72 @@ class Prism::IndexAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#8355 + # source://prism//lib/prism/node.rb#8500 sig { returns(T::Boolean) } def attribute_write?; end # attr_reader block: Node? # - # source://prism//lib/prism/node.rb#8273 + # source://prism//lib/prism/node.rb#8418 sig { returns(T.nilable(Prism::Node)) } def block; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#8360 + # source://prism//lib/prism/node.rb#8510 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#8261 + # source://prism//lib/prism/node.rb#8406 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8301 + # source://prism//lib/prism/node.rb#8446 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#8370 + # source://prism//lib/prism/node.rb#8520 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#8270 + # source://prism//lib/prism/node.rb#8415 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#8316 + # source://prism//lib/prism/node.rb#8461 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#8306 + # source://prism//lib/prism/node.rb#8451 def compact_child_nodes; end # def copy: (**params) -> IndexAndWriteNode # - # source://prism//lib/prism/node.rb#8321 + # source://prism//lib/prism/node.rb#8466 sig { params(params: T.untyped).returns(Prism::IndexAndWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8301 + # source://prism//lib/prism/node.rb#8446 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Node?, call_operator_loc: Location?, opening_loc: Location, arguments: ArgumentsNode?, closing_loc: Location, block: Node?, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#8340 + # source://prism//lib/prism/node.rb#8485 sig do params( keys: T::Array[Symbol] @@ -14540,38 +14688,46 @@ class Prism::IndexAndWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def ignore_visibility?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#8505 + sig { returns(T::Boolean) } + def ignore_visibility?; end + + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#8380 + # source://prism//lib/prism/node.rb#8530 def inspect(inspector = T.unsafe(nil)); end # def opening: () -> String # - # source://prism//lib/prism/node.rb#8365 + # source://prism//lib/prism/node.rb#8515 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#8264 + # source://prism//lib/prism/node.rb#8409 sig { returns(Prism::Location) } def opening_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#8375 + # source://prism//lib/prism/node.rb#8525 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#8276 + # source://prism//lib/prism/node.rb#8421 sig { returns(Prism::Location) } def operator_loc; end # attr_reader receiver: Node? # - # source://prism//lib/prism/node.rb#8258 + # source://prism//lib/prism/node.rb#8403 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -14579,7 +14735,7 @@ class Prism::IndexAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#8345 + # source://prism//lib/prism/node.rb#8490 sig { returns(T::Boolean) } def safe_navigation?; end @@ -14598,12 +14754,12 @@ class Prism::IndexAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8425 + # source://prism//lib/prism/node.rb#8575 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#8279 + # source://prism//lib/prism/node.rb#8424 sig { returns(Prism::Node) } def value; end @@ -14611,7 +14767,7 @@ class Prism::IndexAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#8350 + # source://prism//lib/prism/node.rb#8495 sig { returns(T::Boolean) } def variable_call?; end @@ -14619,7 +14775,7 @@ class Prism::IndexAndWriteNode < ::Prism::Node # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#8255 + # source://prism//lib/prism/node.rb#8400 sig { returns(Integer) } def flags; end @@ -14631,7 +14787,7 @@ class Prism::IndexAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8435 + # source://prism//lib/prism/node.rb#8585 def type; end end end @@ -14641,13 +14797,13 @@ end # foo.bar[baz] += value # ^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#8445 +# source://prism//lib/prism/node.rb#8594 class Prism::IndexOperatorWriteNode < ::Prism::Node - # def initialize: (flags: Integer, receiver: Node?, call_operator_loc: Location?, opening_loc: Location, arguments: ArgumentsNode?, closing_loc: Location, block: Node?, operator: Symbol, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (Integer flags, Node? receiver, Location? call_operator_loc, Location opening_loc, ArgumentsNode? arguments, Location closing_loc, Node? block, Symbol operator, Location operator_loc, Node value, Location location) -> void # # @return [IndexOperatorWriteNode] a new instance of IndexOperatorWriteNode # - # source://prism//lib/prism/node.rb#8476 + # source://prism//lib/prism/node.rb#8626 sig do params( flags: Integer, @@ -14665,15 +14821,15 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node end def initialize(flags, receiver, call_operator_loc, opening_loc, arguments, closing_loc, block, operator, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8491 + # source://prism//lib/prism/node.rb#8641 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#8458 + # source://prism//lib/prism/node.rb#8608 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end @@ -14681,72 +14837,72 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#8551 + # source://prism//lib/prism/node.rb#8701 sig { returns(T::Boolean) } def attribute_write?; end # attr_reader block: Node? # - # source://prism//lib/prism/node.rb#8464 + # source://prism//lib/prism/node.rb#8614 sig { returns(T.nilable(Prism::Node)) } def block; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#8556 + # source://prism//lib/prism/node.rb#8711 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#8452 + # source://prism//lib/prism/node.rb#8602 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8496 + # source://prism//lib/prism/node.rb#8646 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#8566 + # source://prism//lib/prism/node.rb#8721 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#8461 + # source://prism//lib/prism/node.rb#8611 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#8511 + # source://prism//lib/prism/node.rb#8661 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#8501 + # source://prism//lib/prism/node.rb#8651 def compact_child_nodes; end # def copy: (**params) -> IndexOperatorWriteNode # - # source://prism//lib/prism/node.rb#8516 + # source://prism//lib/prism/node.rb#8666 sig { params(params: T.untyped).returns(Prism::IndexOperatorWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8496 + # source://prism//lib/prism/node.rb#8646 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Node?, call_operator_loc: Location?, opening_loc: Location, arguments: ArgumentsNode?, closing_loc: Location, block: Node?, operator: Symbol, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#8536 + # source://prism//lib/prism/node.rb#8686 sig do params( keys: T::Array[Symbol] @@ -14754,38 +14910,46 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def ignore_visibility?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#8706 + sig { returns(T::Boolean) } + def ignore_visibility?; end + + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#8571 + # source://prism//lib/prism/node.rb#8726 def inspect(inspector = T.unsafe(nil)); end # def opening: () -> String # - # source://prism//lib/prism/node.rb#8561 + # source://prism//lib/prism/node.rb#8716 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#8455 + # source://prism//lib/prism/node.rb#8605 sig { returns(Prism::Location) } def opening_loc; end # attr_reader operator: Symbol # - # source://prism//lib/prism/node.rb#8467 + # source://prism//lib/prism/node.rb#8617 sig { returns(Symbol) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#8470 + # source://prism//lib/prism/node.rb#8620 sig { returns(Prism::Location) } def operator_loc; end # attr_reader receiver: Node? # - # source://prism//lib/prism/node.rb#8449 + # source://prism//lib/prism/node.rb#8599 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -14793,7 +14957,7 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#8541 + # source://prism//lib/prism/node.rb#8691 sig { returns(T::Boolean) } def safe_navigation?; end @@ -14812,12 +14976,12 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8617 + # source://prism//lib/prism/node.rb#8772 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#8473 + # source://prism//lib/prism/node.rb#8623 sig { returns(Prism::Node) } def value; end @@ -14825,7 +14989,7 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#8546 + # source://prism//lib/prism/node.rb#8696 sig { returns(T::Boolean) } def variable_call?; end @@ -14833,7 +14997,7 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#8446 + # source://prism//lib/prism/node.rb#8596 sig { returns(Integer) } def flags; end @@ -14845,7 +15009,7 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8627 + # source://prism//lib/prism/node.rb#8782 def type; end end end @@ -14855,13 +15019,13 @@ end # foo.bar[baz] ||= value # ^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#8637 +# source://prism//lib/prism/node.rb#8791 class Prism::IndexOrWriteNode < ::Prism::Node - # def initialize: (flags: Integer, receiver: Node?, call_operator_loc: Location?, opening_loc: Location, arguments: ArgumentsNode?, closing_loc: Location, block: Node?, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (Integer flags, Node? receiver, Location? call_operator_loc, Location opening_loc, ArgumentsNode? arguments, Location closing_loc, Node? block, Location operator_loc, Node value, Location location) -> void # # @return [IndexOrWriteNode] a new instance of IndexOrWriteNode # - # source://prism//lib/prism/node.rb#8665 + # source://prism//lib/prism/node.rb#8820 sig do params( flags: Integer, @@ -14878,15 +15042,15 @@ class Prism::IndexOrWriteNode < ::Prism::Node end def initialize(flags, receiver, call_operator_loc, opening_loc, arguments, closing_loc, block, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8679 + # source://prism//lib/prism/node.rb#8834 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#8650 + # source://prism//lib/prism/node.rb#8805 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end @@ -14894,72 +15058,72 @@ class Prism::IndexOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#8738 + # source://prism//lib/prism/node.rb#8893 sig { returns(T::Boolean) } def attribute_write?; end # attr_reader block: Node? # - # source://prism//lib/prism/node.rb#8656 + # source://prism//lib/prism/node.rb#8811 sig { returns(T.nilable(Prism::Node)) } def block; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#8743 + # source://prism//lib/prism/node.rb#8903 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#8644 + # source://prism//lib/prism/node.rb#8799 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8684 + # source://prism//lib/prism/node.rb#8839 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#8753 + # source://prism//lib/prism/node.rb#8913 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#8653 + # source://prism//lib/prism/node.rb#8808 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#8699 + # source://prism//lib/prism/node.rb#8854 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#8689 + # source://prism//lib/prism/node.rb#8844 def compact_child_nodes; end # def copy: (**params) -> IndexOrWriteNode # - # source://prism//lib/prism/node.rb#8704 + # source://prism//lib/prism/node.rb#8859 sig { params(params: T.untyped).returns(Prism::IndexOrWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8684 + # source://prism//lib/prism/node.rb#8839 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Node?, call_operator_loc: Location?, opening_loc: Location, arguments: ArgumentsNode?, closing_loc: Location, block: Node?, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#8723 + # source://prism//lib/prism/node.rb#8878 sig do params( keys: T::Array[Symbol] @@ -14967,38 +15131,46 @@ class Prism::IndexOrWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def ignore_visibility?: () -> bool # - # source://prism//lib/prism/node.rb#8763 + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#8898 + sig { returns(T::Boolean) } + def ignore_visibility?; end + + # def inspect(NodeInspector inspector) -> String + # + # source://prism//lib/prism/node.rb#8923 def inspect(inspector = T.unsafe(nil)); end # def opening: () -> String # - # source://prism//lib/prism/node.rb#8748 + # source://prism//lib/prism/node.rb#8908 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#8647 + # source://prism//lib/prism/node.rb#8802 sig { returns(Prism::Location) } def opening_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#8758 + # source://prism//lib/prism/node.rb#8918 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#8659 + # source://prism//lib/prism/node.rb#8814 sig { returns(Prism::Location) } def operator_loc; end # attr_reader receiver: Node? # - # source://prism//lib/prism/node.rb#8641 + # source://prism//lib/prism/node.rb#8796 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -15006,7 +15178,7 @@ class Prism::IndexOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#8728 + # source://prism//lib/prism/node.rb#8883 sig { returns(T::Boolean) } def safe_navigation?; end @@ -15025,12 +15197,12 @@ class Prism::IndexOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8808 + # source://prism//lib/prism/node.rb#8968 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#8662 + # source://prism//lib/prism/node.rb#8817 sig { returns(Prism::Node) } def value; end @@ -15038,7 +15210,7 @@ class Prism::IndexOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#8733 + # source://prism//lib/prism/node.rb#8888 sig { returns(T::Boolean) } def variable_call?; end @@ -15046,7 +15218,7 @@ class Prism::IndexOrWriteNode < ::Prism::Node # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#8638 + # source://prism//lib/prism/node.rb#8793 sig { returns(Integer) } def flags; end @@ -15058,7 +15230,7 @@ class Prism::IndexOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8818 + # source://prism//lib/prism/node.rb#8978 def type; end end end @@ -15076,13 +15248,13 @@ end # for foo[bar] in baz do end # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#8836 +# source://prism//lib/prism/node.rb#8995 class Prism::IndexTargetNode < ::Prism::Node - # def initialize: (flags: Integer, receiver: Node, opening_loc: Location, arguments: ArgumentsNode?, closing_loc: Location, block: Node?, location: Location) -> void + # def initialize: (Integer flags, Node receiver, Location opening_loc, ArgumentsNode? arguments, Location closing_loc, Node? block, Location location) -> void # # @return [IndexTargetNode] a new instance of IndexTargetNode # - # source://prism//lib/prism/node.rb#8855 + # source://prism//lib/prism/node.rb#9015 sig do params( flags: Integer, @@ -15096,15 +15268,15 @@ class Prism::IndexTargetNode < ::Prism::Node end def initialize(flags, receiver, opening_loc, arguments, closing_loc, block, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8866 + # source://prism//lib/prism/node.rb#9026 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#8846 + # source://prism//lib/prism/node.rb#9006 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end @@ -15112,60 +15284,60 @@ class Prism::IndexTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#8921 + # source://prism//lib/prism/node.rb#9081 sig { returns(T::Boolean) } def attribute_write?; end # attr_reader block: Node? # - # source://prism//lib/prism/node.rb#8852 + # source://prism//lib/prism/node.rb#9012 sig { returns(T.nilable(Prism::Node)) } def block; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8871 + # source://prism//lib/prism/node.rb#9031 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#8931 + # source://prism//lib/prism/node.rb#9096 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#8849 + # source://prism//lib/prism/node.rb#9009 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#8885 + # source://prism//lib/prism/node.rb#9045 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#8876 + # source://prism//lib/prism/node.rb#9036 def compact_child_nodes; end # def copy: (**params) -> IndexTargetNode # - # source://prism//lib/prism/node.rb#8890 + # source://prism//lib/prism/node.rb#9050 sig { params(params: T.untyped).returns(Prism::IndexTargetNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8871 + # source://prism//lib/prism/node.rb#9031 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Node, opening_loc: Location, arguments: ArgumentsNode?, closing_loc: Location, block: Node?, location: Location } # - # source://prism//lib/prism/node.rb#8906 + # source://prism//lib/prism/node.rb#9066 sig do params( keys: T::Array[Symbol] @@ -15173,26 +15345,34 @@ class Prism::IndexTargetNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def ignore_visibility?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#9086 + sig { returns(T::Boolean) } + def ignore_visibility?; end + + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#8936 + # source://prism//lib/prism/node.rb#9101 def inspect(inspector = T.unsafe(nil)); end # def opening: () -> String # - # source://prism//lib/prism/node.rb#8926 + # source://prism//lib/prism/node.rb#9091 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#8843 + # source://prism//lib/prism/node.rb#9003 sig { returns(Prism::Location) } def opening_loc; end # attr_reader receiver: Node # - # source://prism//lib/prism/node.rb#8840 + # source://prism//lib/prism/node.rb#9000 sig { returns(Prism::Node) } def receiver; end @@ -15200,7 +15380,7 @@ class Prism::IndexTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#8911 + # source://prism//lib/prism/node.rb#9071 sig { returns(T::Boolean) } def safe_navigation?; end @@ -15219,14 +15399,14 @@ class Prism::IndexTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8973 + # source://prism//lib/prism/node.rb#9138 def type; end # def variable_call?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#8916 + # source://prism//lib/prism/node.rb#9076 sig { returns(T::Boolean) } def variable_call?; end @@ -15234,7 +15414,7 @@ class Prism::IndexTargetNode < ::Prism::Node # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#8837 + # source://prism//lib/prism/node.rb#8997 sig { returns(Integer) } def flags; end @@ -15246,7 +15426,7 @@ class Prism::IndexTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8983 + # source://prism//lib/prism/node.rb#9148 def type; end end end @@ -15254,7 +15434,7 @@ end # InlineComment objects are the most common. They correspond to comments in # the source file like this one that start with #. # -# source://prism//lib/prism/parse_result.rb#247 +# source://prism//lib/prism/parse_result.rb#245 class Prism::InlineComment < ::Prism::Comment # Returns a string representation of this comment. # @@ -15276,13 +15456,13 @@ end # @target &&= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#8993 +# source://prism//lib/prism/node.rb#9157 class Prism::InstanceVariableAndWriteNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void # # @return [InstanceVariableAndWriteNode] a new instance of InstanceVariableAndWriteNode # - # source://prism//lib/prism/node.rb#9006 + # source://prism//lib/prism/node.rb#9171 sig do params( name: Symbol, @@ -15294,44 +15474,44 @@ class Prism::InstanceVariableAndWriteNode < ::Prism::Node end def initialize(name, name_loc, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9015 + # source://prism//lib/prism/node.rb#9180 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9020 + # source://prism//lib/prism/node.rb#9185 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9030 + # source://prism//lib/prism/node.rb#9195 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#9025 + # source://prism//lib/prism/node.rb#9190 def compact_child_nodes; end # def copy: (**params) -> InstanceVariableAndWriteNode # - # source://prism//lib/prism/node.rb#9035 + # source://prism//lib/prism/node.rb#9200 sig { params(params: T.untyped).returns(Prism::InstanceVariableAndWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9020 + # source://prism//lib/prism/node.rb#9185 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#9049 + # source://prism//lib/prism/node.rb#9214 sig do params( keys: T::Array[Symbol] @@ -15339,32 +15519,32 @@ class Prism::InstanceVariableAndWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#9059 + # source://prism//lib/prism/node.rb#9224 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#8994 + # source://prism//lib/prism/node.rb#9159 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#8997 + # source://prism//lib/prism/node.rb#9162 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#9054 + # source://prism//lib/prism/node.rb#9219 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#9000 + # source://prism//lib/prism/node.rb#9165 sig { returns(Prism::Location) } def operator_loc; end @@ -15383,12 +15563,12 @@ class Prism::InstanceVariableAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9083 + # source://prism//lib/prism/node.rb#9248 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#9003 + # source://prism//lib/prism/node.rb#9168 sig { returns(Prism::Node) } def value; end @@ -15400,7 +15580,7 @@ class Prism::InstanceVariableAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9093 + # source://prism//lib/prism/node.rb#9258 def type; end end end @@ -15410,13 +15590,13 @@ end # @target += value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#9103 +# source://prism//lib/prism/node.rb#9267 class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, operator: Symbol, location: Location) -> void + # def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Symbol operator, Location location) -> void # # @return [InstanceVariableOperatorWriteNode] a new instance of InstanceVariableOperatorWriteNode # - # source://prism//lib/prism/node.rb#9119 + # source://prism//lib/prism/node.rb#9284 sig do params( name: Symbol, @@ -15429,44 +15609,44 @@ class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node end def initialize(name, name_loc, operator_loc, value, operator, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9129 + # source://prism//lib/prism/node.rb#9294 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9134 + # source://prism//lib/prism/node.rb#9299 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9144 + # source://prism//lib/prism/node.rb#9309 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#9139 + # source://prism//lib/prism/node.rb#9304 def compact_child_nodes; end # def copy: (**params) -> InstanceVariableOperatorWriteNode # - # source://prism//lib/prism/node.rb#9149 + # source://prism//lib/prism/node.rb#9314 sig { params(params: T.untyped).returns(Prism::InstanceVariableOperatorWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9134 + # source://prism//lib/prism/node.rb#9299 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Node, operator: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#9164 + # source://prism//lib/prism/node.rb#9329 sig do params( keys: T::Array[Symbol] @@ -15474,32 +15654,32 @@ class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#9169 + # source://prism//lib/prism/node.rb#9334 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#9104 + # source://prism//lib/prism/node.rb#9269 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#9107 + # source://prism//lib/prism/node.rb#9272 sig { returns(Prism::Location) } def name_loc; end # attr_reader operator: Symbol # - # source://prism//lib/prism/node.rb#9116 + # source://prism//lib/prism/node.rb#9281 sig { returns(Symbol) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#9110 + # source://prism//lib/prism/node.rb#9275 sig { returns(Prism::Location) } def operator_loc; end @@ -15518,12 +15698,12 @@ class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9194 + # source://prism//lib/prism/node.rb#9359 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#9113 + # source://prism//lib/prism/node.rb#9278 sig { returns(Prism::Node) } def value; end @@ -15535,7 +15715,7 @@ class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9204 + # source://prism//lib/prism/node.rb#9369 def type; end end end @@ -15545,13 +15725,13 @@ end # @target ||= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#9214 +# source://prism//lib/prism/node.rb#9378 class Prism::InstanceVariableOrWriteNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void # # @return [InstanceVariableOrWriteNode] a new instance of InstanceVariableOrWriteNode # - # source://prism//lib/prism/node.rb#9227 + # source://prism//lib/prism/node.rb#9392 sig do params( name: Symbol, @@ -15563,44 +15743,44 @@ class Prism::InstanceVariableOrWriteNode < ::Prism::Node end def initialize(name, name_loc, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9236 + # source://prism//lib/prism/node.rb#9401 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9241 + # source://prism//lib/prism/node.rb#9406 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9251 + # source://prism//lib/prism/node.rb#9416 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#9246 + # source://prism//lib/prism/node.rb#9411 def compact_child_nodes; end # def copy: (**params) -> InstanceVariableOrWriteNode # - # source://prism//lib/prism/node.rb#9256 + # source://prism//lib/prism/node.rb#9421 sig { params(params: T.untyped).returns(Prism::InstanceVariableOrWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9241 + # source://prism//lib/prism/node.rb#9406 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#9270 + # source://prism//lib/prism/node.rb#9435 sig do params( keys: T::Array[Symbol] @@ -15608,32 +15788,32 @@ class Prism::InstanceVariableOrWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#9280 + # source://prism//lib/prism/node.rb#9445 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#9215 + # source://prism//lib/prism/node.rb#9380 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#9218 + # source://prism//lib/prism/node.rb#9383 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#9275 + # source://prism//lib/prism/node.rb#9440 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#9221 + # source://prism//lib/prism/node.rb#9386 sig { returns(Prism::Location) } def operator_loc; end @@ -15652,12 +15832,12 @@ class Prism::InstanceVariableOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9304 + # source://prism//lib/prism/node.rb#9469 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#9224 + # source://prism//lib/prism/node.rb#9389 sig { returns(Prism::Node) } def value; end @@ -15669,7 +15849,7 @@ class Prism::InstanceVariableOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9314 + # source://prism//lib/prism/node.rb#9479 def type; end end end @@ -15679,54 +15859,54 @@ end # @foo # ^^^^ # -# source://prism//lib/prism/node.rb#9324 +# source://prism//lib/prism/node.rb#9488 class Prism::InstanceVariableReadNode < ::Prism::Node - # def initialize: (name: Symbol, location: Location) -> void + # def initialize: (Symbol name, Location location) -> void # # @return [InstanceVariableReadNode] a new instance of InstanceVariableReadNode # - # source://prism//lib/prism/node.rb#9328 + # source://prism//lib/prism/node.rb#9497 sig { params(name: Symbol, location: Prism::Location).void } def initialize(name, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9334 + # source://prism//lib/prism/node.rb#9503 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9339 + # source://prism//lib/prism/node.rb#9508 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9349 + # source://prism//lib/prism/node.rb#9518 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#9344 + # source://prism//lib/prism/node.rb#9513 def compact_child_nodes; end # def copy: (**params) -> InstanceVariableReadNode # - # source://prism//lib/prism/node.rb#9354 + # source://prism//lib/prism/node.rb#9523 sig { params(params: T.untyped).returns(Prism::InstanceVariableReadNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9339 + # source://prism//lib/prism/node.rb#9508 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#9365 + # source://prism//lib/prism/node.rb#9534 sig do params( keys: T::Array[Symbol] @@ -15734,14 +15914,18 @@ class Prism::InstanceVariableReadNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#9370 + # source://prism//lib/prism/node.rb#9539 def inspect(inspector = T.unsafe(nil)); end - # attr_reader name: Symbol + # The name of the instance variable, which is a `@` followed by an [identifier](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#identifiers). + # + # @x # name `:@x` + # + # @_test # name `:@_test` # - # source://prism//lib/prism/node.rb#9325 + # source://prism//lib/prism/node.rb#9494 sig { returns(Symbol) } def name; end @@ -15760,7 +15944,7 @@ class Prism::InstanceVariableReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9390 + # source://prism//lib/prism/node.rb#9559 def type; end class << self @@ -15771,7 +15955,7 @@ class Prism::InstanceVariableReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9400 + # source://prism//lib/prism/node.rb#9569 def type; end end end @@ -15781,54 +15965,54 @@ end # @foo, @bar = baz # ^^^^ ^^^^ # -# source://prism//lib/prism/node.rb#9410 +# source://prism//lib/prism/node.rb#9578 class Prism::InstanceVariableTargetNode < ::Prism::Node - # def initialize: (name: Symbol, location: Location) -> void + # def initialize: (Symbol name, Location location) -> void # # @return [InstanceVariableTargetNode] a new instance of InstanceVariableTargetNode # - # source://prism//lib/prism/node.rb#9414 + # source://prism//lib/prism/node.rb#9583 sig { params(name: Symbol, location: Prism::Location).void } def initialize(name, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9420 + # source://prism//lib/prism/node.rb#9589 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9425 + # source://prism//lib/prism/node.rb#9594 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9435 + # source://prism//lib/prism/node.rb#9604 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#9430 + # source://prism//lib/prism/node.rb#9599 def compact_child_nodes; end # def copy: (**params) -> InstanceVariableTargetNode # - # source://prism//lib/prism/node.rb#9440 + # source://prism//lib/prism/node.rb#9609 sig { params(params: T.untyped).returns(Prism::InstanceVariableTargetNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9425 + # source://prism//lib/prism/node.rb#9594 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#9451 + # source://prism//lib/prism/node.rb#9620 sig do params( keys: T::Array[Symbol] @@ -15836,14 +16020,14 @@ class Prism::InstanceVariableTargetNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#9456 + # source://prism//lib/prism/node.rb#9625 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#9411 + # source://prism//lib/prism/node.rb#9580 sig { returns(Symbol) } def name; end @@ -15862,7 +16046,7 @@ class Prism::InstanceVariableTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9476 + # source://prism//lib/prism/node.rb#9645 def type; end class << self @@ -15873,7 +16057,7 @@ class Prism::InstanceVariableTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9486 + # source://prism//lib/prism/node.rb#9655 def type; end end end @@ -15883,13 +16067,13 @@ end # @foo = 1 # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#9496 +# source://prism//lib/prism/node.rb#9664 class Prism::InstanceVariableWriteNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, value: Node, operator_loc: Location, location: Location) -> void + # def initialize: (Symbol name, Location name_loc, Node value, Location operator_loc, Location location) -> void # # @return [InstanceVariableWriteNode] a new instance of InstanceVariableWriteNode # - # source://prism//lib/prism/node.rb#9509 + # source://prism//lib/prism/node.rb#9678 sig do params( name: Symbol, @@ -15901,44 +16085,44 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node end def initialize(name, name_loc, value, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9518 + # source://prism//lib/prism/node.rb#9687 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9523 + # source://prism//lib/prism/node.rb#9692 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9533 + # source://prism//lib/prism/node.rb#9702 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#9528 + # source://prism//lib/prism/node.rb#9697 def compact_child_nodes; end # def copy: (**params) -> InstanceVariableWriteNode # - # source://prism//lib/prism/node.rb#9538 + # source://prism//lib/prism/node.rb#9707 sig { params(params: T.untyped).returns(Prism::InstanceVariableWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9523 + # source://prism//lib/prism/node.rb#9692 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, value: Node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#9552 + # source://prism//lib/prism/node.rb#9721 sig do params( keys: T::Array[Symbol] @@ -15946,32 +16130,32 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#9562 + # source://prism//lib/prism/node.rb#9731 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#9497 + # source://prism//lib/prism/node.rb#9666 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#9500 + # source://prism//lib/prism/node.rb#9669 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#9557 + # source://prism//lib/prism/node.rb#9726 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#9506 + # source://prism//lib/prism/node.rb#9675 sig { returns(Prism::Location) } def operator_loc; end @@ -15990,12 +16174,12 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9586 + # source://prism//lib/prism/node.rb#9755 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#9503 + # source://prism//lib/prism/node.rb#9672 sig { returns(Prism::Node) } def value; end @@ -16007,34 +16191,34 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9596 + # source://prism//lib/prism/node.rb#9765 def type; end end end # Flags for integer nodes that correspond to the base of the integer. # -# source://prism//lib/prism/node.rb#17310 +# source://prism//lib/prism/node.rb#17587 module Prism::IntegerBaseFlags; end # 0b prefix # -# source://prism//lib/prism/node.rb#17312 +# source://prism//lib/prism/node.rb#17589 Prism::IntegerBaseFlags::BINARY = T.let(T.unsafe(nil), Integer) # 0d or no prefix # -# source://prism//lib/prism/node.rb#17315 +# source://prism//lib/prism/node.rb#17592 Prism::IntegerBaseFlags::DECIMAL = T.let(T.unsafe(nil), Integer) # 0x prefix # -# source://prism//lib/prism/node.rb#17321 +# source://prism//lib/prism/node.rb#17598 Prism::IntegerBaseFlags::HEXADECIMAL = T.let(T.unsafe(nil), Integer) # 0o or 0 prefix # -# source://prism//lib/prism/node.rb#17318 +# source://prism//lib/prism/node.rb#17595 Prism::IntegerBaseFlags::OCTAL = T.let(T.unsafe(nil), Integer) # Represents an integer number literal. @@ -16042,19 +16226,19 @@ Prism::IntegerBaseFlags::OCTAL = T.let(T.unsafe(nil), Integer) # 1 # ^ # -# source://prism//lib/prism/node.rb#9606 +# source://prism//lib/prism/node.rb#9774 class Prism::IntegerNode < ::Prism::Node - # def initialize: (flags: Integer, location: Location) -> void + # def initialize: (Integer flags, Location location) -> void # # @return [IntegerNode] a new instance of IntegerNode # - # source://prism//lib/prism/node.rb#9610 + # source://prism//lib/prism/node.rb#9779 sig { params(flags: Integer, location: Prism::Location).void } def initialize(flags, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9616 + # source://prism//lib/prism/node.rb#9785 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end @@ -16062,29 +16246,29 @@ class Prism::IntegerNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9652 + # source://prism//lib/prism/node.rb#9821 sig { returns(T::Boolean) } def binary?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9621 + # source://prism//lib/prism/node.rb#9790 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9631 + # source://prism//lib/prism/node.rb#9800 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#9626 + # source://prism//lib/prism/node.rb#9795 def compact_child_nodes; end # def copy: (**params) -> IntegerNode # - # source://prism//lib/prism/node.rb#9636 + # source://prism//lib/prism/node.rb#9805 sig { params(params: T.untyped).returns(Prism::IntegerNode) } def copy(**params); end @@ -16092,20 +16276,20 @@ class Prism::IntegerNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9657 + # source://prism//lib/prism/node.rb#9826 sig { returns(T::Boolean) } def decimal?; end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9621 + # source://prism//lib/prism/node.rb#9790 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, location: Location } # - # source://prism//lib/prism/node.rb#9647 + # source://prism//lib/prism/node.rb#9816 sig do params( keys: T::Array[Symbol] @@ -16117,20 +16301,20 @@ class Prism::IntegerNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9667 + # source://prism//lib/prism/node.rb#9836 sig { returns(T::Boolean) } def hexadecimal?; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#9672 + # source://prism//lib/prism/node.rb#9841 def inspect(inspector = T.unsafe(nil)); end # def octal?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9662 + # source://prism//lib/prism/node.rb#9831 sig { returns(T::Boolean) } def octal?; end @@ -16149,7 +16333,7 @@ class Prism::IntegerNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9693 + # source://prism//lib/prism/node.rb#9862 def type; end # Returns the value of the node as a Ruby Integer. @@ -16161,7 +16345,7 @@ class Prism::IntegerNode < ::Prism::Node # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#9607 + # source://prism//lib/prism/node.rb#9776 sig { returns(Integer) } def flags; end @@ -16173,27 +16357,25 @@ class Prism::IntegerNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9703 + # source://prism//lib/prism/node.rb#9872 def type; end end end -# Represents a regular expression literal that contains interpolation that -# is being used in the predicate of a conditional to implicitly match -# against the last line read by an IO object. +# Represents a regular expression literal that contains interpolation that is being used in the predicate of a conditional to implicitly match against the last line read by an IO object. # # if /foo #{bar} baz/ then end # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#9715 +# source://prism//lib/prism/node.rb#9881 class Prism::InterpolatedMatchLastLineNode < ::Prism::Node include ::Prism::RegularExpressionOptions - # def initialize: (flags: Integer, opening_loc: Location, parts: Array[Node], closing_loc: Location, location: Location) -> void + # def initialize: (Integer flags, Location opening_loc, Array[Node] parts, Location closing_loc, Location location) -> void # # @return [InterpolatedMatchLastLineNode] a new instance of InterpolatedMatchLastLineNode # - # source://prism//lib/prism/node.rb#9728 + # source://prism//lib/prism/node.rb#9895 sig do params( flags: Integer, @@ -16205,9 +16387,9 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node end def initialize(flags, opening_loc, parts, closing_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9737 + # source://prism//lib/prism/node.rb#9904 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end @@ -16215,54 +16397,54 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9806 + # source://prism//lib/prism/node.rb#9973 sig { returns(T::Boolean) } def ascii_8bit?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9747 + # source://prism//lib/prism/node.rb#9914 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#9841 + # source://prism//lib/prism/node.rb#10008 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#9725 + # source://prism//lib/prism/node.rb#9892 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9757 + # source://prism//lib/prism/node.rb#9924 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#9752 + # source://prism//lib/prism/node.rb#9919 def compact_child_nodes; end # def copy: (**params) -> InterpolatedMatchLastLineNode # - # source://prism//lib/prism/node.rb#9762 + # source://prism//lib/prism/node.rb#9929 sig { params(params: T.untyped).returns(Prism::InterpolatedMatchLastLineNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9747 + # source://prism//lib/prism/node.rb#9914 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, opening_loc: Location, parts: Array[Node], closing_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#9776 + # source://prism//lib/prism/node.rb#9943 sig do params( keys: T::Array[Symbol] @@ -16274,7 +16456,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9801 + # source://prism//lib/prism/node.rb#9968 sig { returns(T::Boolean) } def euc_jp?; end @@ -16282,7 +16464,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9786 + # source://prism//lib/prism/node.rb#9953 sig { returns(T::Boolean) } def extended?; end @@ -16290,7 +16472,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9826 + # source://prism//lib/prism/node.rb#9993 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -16298,7 +16480,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9831 + # source://prism//lib/prism/node.rb#9998 sig { returns(T::Boolean) } def forced_us_ascii_encoding?; end @@ -16306,7 +16488,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9821 + # source://prism//lib/prism/node.rb#9988 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -16314,20 +16496,20 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9781 + # source://prism//lib/prism/node.rb#9948 sig { returns(T::Boolean) } def ignore_case?; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#9846 + # source://prism//lib/prism/node.rb#10013 def inspect(inspector = T.unsafe(nil)); end # def multi_line?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9791 + # source://prism//lib/prism/node.rb#9958 sig { returns(T::Boolean) } def multi_line?; end @@ -16335,29 +16517,29 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9796 + # source://prism//lib/prism/node.rb#9963 sig { returns(T::Boolean) } def once?; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#9836 + # source://prism//lib/prism/node.rb#10003 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#9719 + # source://prism//lib/prism/node.rb#9886 sig { returns(Prism::Location) } def opening_loc; end # attr_reader parts: Array[Node] # - # source://prism//lib/prism/node.rb#9722 + # source://prism//lib/prism/node.rb#9889 sig { returns(T::Array[Prism::Node]) } def parts; end - # source://prism//lib/prism/node.rb#9741 + # source://prism//lib/prism/node.rb#9908 def set_newline_flag(newline_marked); end # Sometimes you want to check an instance of a node against a list of @@ -16375,14 +16557,14 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9870 + # source://prism//lib/prism/node.rb#10037 def type; end # def utf_8?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9816 + # source://prism//lib/prism/node.rb#9983 sig { returns(T::Boolean) } def utf_8?; end @@ -16390,7 +16572,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9811 + # source://prism//lib/prism/node.rb#9978 sig { returns(T::Boolean) } def windows_31j?; end @@ -16398,7 +16580,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#9716 + # source://prism//lib/prism/node.rb#9883 sig { returns(Integer) } def flags; end @@ -16410,7 +16592,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9880 + # source://prism//lib/prism/node.rb#10047 def type; end end end @@ -16420,15 +16602,15 @@ end # /foo #{bar} baz/ # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#9890 +# source://prism//lib/prism/node.rb#10056 class Prism::InterpolatedRegularExpressionNode < ::Prism::Node include ::Prism::RegularExpressionOptions - # def initialize: (flags: Integer, opening_loc: Location, parts: Array[Node], closing_loc: Location, location: Location) -> void + # def initialize: (Integer flags, Location opening_loc, Array[Node] parts, Location closing_loc, Location location) -> void # # @return [InterpolatedRegularExpressionNode] a new instance of InterpolatedRegularExpressionNode # - # source://prism//lib/prism/node.rb#9903 + # source://prism//lib/prism/node.rb#10070 sig do params( flags: Integer, @@ -16440,9 +16622,9 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node end def initialize(flags, opening_loc, parts, closing_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9912 + # source://prism//lib/prism/node.rb#10079 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end @@ -16450,54 +16632,54 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9981 + # source://prism//lib/prism/node.rb#10148 sig { returns(T::Boolean) } def ascii_8bit?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9922 + # source://prism//lib/prism/node.rb#10089 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#10016 + # source://prism//lib/prism/node.rb#10183 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#9900 + # source://prism//lib/prism/node.rb#10067 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9932 + # source://prism//lib/prism/node.rb#10099 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#9927 + # source://prism//lib/prism/node.rb#10094 def compact_child_nodes; end # def copy: (**params) -> InterpolatedRegularExpressionNode # - # source://prism//lib/prism/node.rb#9937 + # source://prism//lib/prism/node.rb#10104 sig { params(params: T.untyped).returns(Prism::InterpolatedRegularExpressionNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9922 + # source://prism//lib/prism/node.rb#10089 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, opening_loc: Location, parts: Array[Node], closing_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#9951 + # source://prism//lib/prism/node.rb#10118 sig do params( keys: T::Array[Symbol] @@ -16509,7 +16691,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9976 + # source://prism//lib/prism/node.rb#10143 sig { returns(T::Boolean) } def euc_jp?; end @@ -16517,7 +16699,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9961 + # source://prism//lib/prism/node.rb#10128 sig { returns(T::Boolean) } def extended?; end @@ -16525,7 +16707,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10001 + # source://prism//lib/prism/node.rb#10168 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -16533,7 +16715,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10006 + # source://prism//lib/prism/node.rb#10173 sig { returns(T::Boolean) } def forced_us_ascii_encoding?; end @@ -16541,7 +16723,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9996 + # source://prism//lib/prism/node.rb#10163 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -16549,20 +16731,20 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9956 + # source://prism//lib/prism/node.rb#10123 sig { returns(T::Boolean) } def ignore_case?; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#10021 + # source://prism//lib/prism/node.rb#10188 def inspect(inspector = T.unsafe(nil)); end # def multi_line?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9966 + # source://prism//lib/prism/node.rb#10133 sig { returns(T::Boolean) } def multi_line?; end @@ -16570,29 +16752,29 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9971 + # source://prism//lib/prism/node.rb#10138 sig { returns(T::Boolean) } def once?; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#10011 + # source://prism//lib/prism/node.rb#10178 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#9894 + # source://prism//lib/prism/node.rb#10061 sig { returns(Prism::Location) } def opening_loc; end # attr_reader parts: Array[Node] # - # source://prism//lib/prism/node.rb#9897 + # source://prism//lib/prism/node.rb#10064 sig { returns(T::Array[Prism::Node]) } def parts; end - # source://prism//lib/prism/node.rb#9916 + # source://prism//lib/prism/node.rb#10083 def set_newline_flag(newline_marked); end # Sometimes you want to check an instance of a node against a list of @@ -16610,14 +16792,14 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10045 + # source://prism//lib/prism/node.rb#10212 def type; end # def utf_8?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9991 + # source://prism//lib/prism/node.rb#10158 sig { returns(T::Boolean) } def utf_8?; end @@ -16625,7 +16807,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9986 + # source://prism//lib/prism/node.rb#10153 sig { returns(T::Boolean) } def windows_31j?; end @@ -16633,7 +16815,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#9891 + # source://prism//lib/prism/node.rb#10058 sig { returns(Integer) } def flags; end @@ -16645,7 +16827,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10055 + # source://prism//lib/prism/node.rb#10222 def type; end end end @@ -16655,15 +16837,15 @@ end # "foo #{bar} baz" # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#10065 +# source://prism//lib/prism/node.rb#10231 class Prism::InterpolatedStringNode < ::Prism::Node include ::Prism::HeredocQuery - # def initialize: (opening_loc: Location?, parts: Array[Node], closing_loc: Location?, location: Location) -> void + # def initialize: (Location? opening_loc, Array[Node] parts, Location? closing_loc, Location location) -> void # # @return [InterpolatedStringNode] a new instance of InterpolatedStringNode # - # source://prism//lib/prism/node.rb#10075 + # source://prism//lib/prism/node.rb#10242 sig do params( opening_loc: T.nilable(Prism::Location), @@ -16674,56 +16856,56 @@ class Prism::InterpolatedStringNode < ::Prism::Node end def initialize(opening_loc, parts, closing_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10083 + # source://prism//lib/prism/node.rb#10250 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10093 + # source://prism//lib/prism/node.rb#10260 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#10131 + # source://prism//lib/prism/node.rb#10298 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#10072 + # source://prism//lib/prism/node.rb#10239 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10103 + # source://prism//lib/prism/node.rb#10270 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#10098 + # source://prism//lib/prism/node.rb#10265 def compact_child_nodes; end # def copy: (**params) -> InterpolatedStringNode # - # source://prism//lib/prism/node.rb#10108 + # source://prism//lib/prism/node.rb#10275 sig { params(params: T.untyped).returns(Prism::InterpolatedStringNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10093 + # source://prism//lib/prism/node.rb#10260 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { opening_loc: Location?, parts: Array[Node], closing_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#10121 + # source://prism//lib/prism/node.rb#10288 sig do params( keys: T::Array[Symbol] @@ -16731,30 +16913,30 @@ class Prism::InterpolatedStringNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#10136 + # source://prism//lib/prism/node.rb#10303 def inspect(inspector = T.unsafe(nil)); end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#10126 + # source://prism//lib/prism/node.rb#10293 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#10066 + # source://prism//lib/prism/node.rb#10233 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader parts: Array[Node] # - # source://prism//lib/prism/node.rb#10069 + # source://prism//lib/prism/node.rb#10236 sig { returns(T::Array[Prism::Node]) } def parts; end - # source://prism//lib/prism/node.rb#10087 + # source://prism//lib/prism/node.rb#10254 def set_newline_flag(newline_marked); end # Sometimes you want to check an instance of a node against a list of @@ -16772,7 +16954,7 @@ class Prism::InterpolatedStringNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10158 + # source://prism//lib/prism/node.rb#10325 def type; end class << self @@ -16783,7 +16965,7 @@ class Prism::InterpolatedStringNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10168 + # source://prism//lib/prism/node.rb#10335 def type; end end end @@ -16793,13 +16975,13 @@ end # :"foo #{bar} baz" # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#10178 +# source://prism//lib/prism/node.rb#10344 class Prism::InterpolatedSymbolNode < ::Prism::Node - # def initialize: (opening_loc: Location?, parts: Array[Node], closing_loc: Location?, location: Location) -> void + # def initialize: (Location? opening_loc, Array[Node] parts, Location? closing_loc, Location location) -> void # # @return [InterpolatedSymbolNode] a new instance of InterpolatedSymbolNode # - # source://prism//lib/prism/node.rb#10188 + # source://prism//lib/prism/node.rb#10355 sig do params( opening_loc: T.nilable(Prism::Location), @@ -16810,56 +16992,56 @@ class Prism::InterpolatedSymbolNode < ::Prism::Node end def initialize(opening_loc, parts, closing_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10196 + # source://prism//lib/prism/node.rb#10363 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10206 + # source://prism//lib/prism/node.rb#10373 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#10244 + # source://prism//lib/prism/node.rb#10411 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#10185 + # source://prism//lib/prism/node.rb#10352 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10216 + # source://prism//lib/prism/node.rb#10383 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#10211 + # source://prism//lib/prism/node.rb#10378 def compact_child_nodes; end # def copy: (**params) -> InterpolatedSymbolNode # - # source://prism//lib/prism/node.rb#10221 + # source://prism//lib/prism/node.rb#10388 sig { params(params: T.untyped).returns(Prism::InterpolatedSymbolNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10206 + # source://prism//lib/prism/node.rb#10373 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { opening_loc: Location?, parts: Array[Node], closing_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#10234 + # source://prism//lib/prism/node.rb#10401 sig do params( keys: T::Array[Symbol] @@ -16867,30 +17049,30 @@ class Prism::InterpolatedSymbolNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#10249 + # source://prism//lib/prism/node.rb#10416 def inspect(inspector = T.unsafe(nil)); end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#10239 + # source://prism//lib/prism/node.rb#10406 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#10179 + # source://prism//lib/prism/node.rb#10346 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader parts: Array[Node] # - # source://prism//lib/prism/node.rb#10182 + # source://prism//lib/prism/node.rb#10349 sig { returns(T::Array[Prism::Node]) } def parts; end - # source://prism//lib/prism/node.rb#10200 + # source://prism//lib/prism/node.rb#10367 def set_newline_flag(newline_marked); end # Sometimes you want to check an instance of a node against a list of @@ -16908,7 +17090,7 @@ class Prism::InterpolatedSymbolNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10271 + # source://prism//lib/prism/node.rb#10438 def type; end class << self @@ -16919,7 +17101,7 @@ class Prism::InterpolatedSymbolNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10281 + # source://prism//lib/prism/node.rb#10448 def type; end end end @@ -16929,15 +17111,15 @@ end # `foo #{bar} baz` # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#10291 +# source://prism//lib/prism/node.rb#10457 class Prism::InterpolatedXStringNode < ::Prism::Node include ::Prism::HeredocQuery - # def initialize: (opening_loc: Location, parts: Array[Node], closing_loc: Location, location: Location) -> void + # def initialize: (Location opening_loc, Array[Node] parts, Location closing_loc, Location location) -> void # # @return [InterpolatedXStringNode] a new instance of InterpolatedXStringNode # - # source://prism//lib/prism/node.rb#10301 + # source://prism//lib/prism/node.rb#10468 sig do params( opening_loc: Prism::Location, @@ -16948,56 +17130,56 @@ class Prism::InterpolatedXStringNode < ::Prism::Node end def initialize(opening_loc, parts, closing_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10309 + # source://prism//lib/prism/node.rb#10476 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10319 + # source://prism//lib/prism/node.rb#10486 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#10357 + # source://prism//lib/prism/node.rb#10524 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#10298 + # source://prism//lib/prism/node.rb#10465 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10329 + # source://prism//lib/prism/node.rb#10496 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#10324 + # source://prism//lib/prism/node.rb#10491 def compact_child_nodes; end # def copy: (**params) -> InterpolatedXStringNode # - # source://prism//lib/prism/node.rb#10334 + # source://prism//lib/prism/node.rb#10501 sig { params(params: T.untyped).returns(Prism::InterpolatedXStringNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10319 + # source://prism//lib/prism/node.rb#10486 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { opening_loc: Location, parts: Array[Node], closing_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#10347 + # source://prism//lib/prism/node.rb#10514 sig do params( keys: T::Array[Symbol] @@ -17005,30 +17187,30 @@ class Prism::InterpolatedXStringNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#10362 + # source://prism//lib/prism/node.rb#10529 def inspect(inspector = T.unsafe(nil)); end # def opening: () -> String # - # source://prism//lib/prism/node.rb#10352 + # source://prism//lib/prism/node.rb#10519 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#10292 + # source://prism//lib/prism/node.rb#10459 sig { returns(Prism::Location) } def opening_loc; end # attr_reader parts: Array[Node] # - # source://prism//lib/prism/node.rb#10295 + # source://prism//lib/prism/node.rb#10462 sig { returns(T::Array[Prism::Node]) } def parts; end - # source://prism//lib/prism/node.rb#10313 + # source://prism//lib/prism/node.rb#10480 def set_newline_flag(newline_marked); end # Sometimes you want to check an instance of a node against a list of @@ -17046,7 +17228,7 @@ class Prism::InterpolatedXStringNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10384 + # source://prism//lib/prism/node.rb#10551 def type; end class << self @@ -17057,7 +17239,7 @@ class Prism::InterpolatedXStringNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10394 + # source://prism//lib/prism/node.rb#10561 def type; end end end @@ -17067,54 +17249,54 @@ end # foo(a: b) # ^^^^ # -# source://prism//lib/prism/node.rb#10404 +# source://prism//lib/prism/node.rb#10570 class Prism::KeywordHashNode < ::Prism::Node - # def initialize: (flags: Integer, elements: Array[Node], location: Location) -> void + # def initialize: (Integer flags, Array[Node] elements, Location location) -> void # # @return [KeywordHashNode] a new instance of KeywordHashNode # - # source://prism//lib/prism/node.rb#10411 + # source://prism//lib/prism/node.rb#10578 sig { params(flags: Integer, elements: T::Array[Prism::Node], location: Prism::Location).void } def initialize(flags, elements, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10418 + # source://prism//lib/prism/node.rb#10585 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10423 + # source://prism//lib/prism/node.rb#10590 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10433 + # source://prism//lib/prism/node.rb#10600 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#10428 + # source://prism//lib/prism/node.rb#10595 def compact_child_nodes; end # def copy: (**params) -> KeywordHashNode # - # source://prism//lib/prism/node.rb#10438 + # source://prism//lib/prism/node.rb#10605 sig { params(params: T.untyped).returns(Prism::KeywordHashNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10423 + # source://prism//lib/prism/node.rb#10590 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, elements: Array[Node], location: Location } # - # source://prism//lib/prism/node.rb#10450 + # source://prism//lib/prism/node.rb#10617 sig do params( keys: T::Array[Symbol] @@ -17124,22 +17306,22 @@ class Prism::KeywordHashNode < ::Prism::Node # attr_reader elements: Array[Node] # - # source://prism//lib/prism/node.rb#10408 + # source://prism//lib/prism/node.rb#10575 sig { returns(T::Array[Prism::Node]) } def elements; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#10460 + # source://prism//lib/prism/node.rb#10627 def inspect(inspector = T.unsafe(nil)); end - # def static_keys?: () -> bool + # def symbol_keys?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10455 + # source://prism//lib/prism/node.rb#10622 sig { returns(T::Boolean) } - def static_keys?; end + def symbol_keys?; end # Sometimes you want to check an instance of a node against a list of # classes to see what kind of behavior to perform. Usually this is done by @@ -17156,14 +17338,14 @@ class Prism::KeywordHashNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10482 + # source://prism//lib/prism/node.rb#10649 def type; end private # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#10405 + # source://prism//lib/prism/node.rb#10572 sig { returns(Integer) } def flags; end @@ -17175,20 +17357,20 @@ class Prism::KeywordHashNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10492 + # source://prism//lib/prism/node.rb#10659 def type; end end end # Flags for keyword hash nodes. # -# source://prism//lib/prism/node.rb#17325 +# source://prism//lib/prism/node.rb#17602 module Prism::KeywordHashNodeFlags; end -# a keyword hash which only has `AssocNode` elements all with static literal keys, which means the elements can be treated as keyword arguments +# a keyword hash which only has `AssocNode` elements all with symbol keys, which means the elements can be treated as keyword arguments # -# source://prism//lib/prism/node.rb#17327 -Prism::KeywordHashNodeFlags::STATIC_KEYS = T.let(T.unsafe(nil), Integer) +# source://prism//lib/prism/node.rb#17604 +Prism::KeywordHashNodeFlags::SYMBOL_KEYS = T.let(T.unsafe(nil), Integer) # Represents a keyword rest parameter to a method, block, or lambda definition. # @@ -17196,61 +17378,62 @@ Prism::KeywordHashNodeFlags::STATIC_KEYS = T.let(T.unsafe(nil), Integer) # ^^^ # end # -# source://prism//lib/prism/node.rb#10503 +# source://prism//lib/prism/node.rb#10669 class Prism::KeywordRestParameterNode < ::Prism::Node - # def initialize: (name: Symbol?, name_loc: Location?, operator_loc: Location, location: Location) -> void + # def initialize: (Integer flags, Symbol? name, Location? name_loc, Location operator_loc, Location location) -> void # # @return [KeywordRestParameterNode] a new instance of KeywordRestParameterNode # - # source://prism//lib/prism/node.rb#10513 + # source://prism//lib/prism/node.rb#10683 sig do params( + flags: Integer, name: T.nilable(Symbol), name_loc: T.nilable(Prism::Location), operator_loc: Prism::Location, location: Prism::Location ).void end - def initialize(name, name_loc, operator_loc, location); end + def initialize(flags, name, name_loc, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10521 + # source://prism//lib/prism/node.rb#10692 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10526 + # source://prism//lib/prism/node.rb#10697 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10536 + # source://prism//lib/prism/node.rb#10707 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#10531 + # source://prism//lib/prism/node.rb#10702 def compact_child_nodes; end # def copy: (**params) -> KeywordRestParameterNode # - # source://prism//lib/prism/node.rb#10541 + # source://prism//lib/prism/node.rb#10712 sig { params(params: T.untyped).returns(Prism::KeywordRestParameterNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10526 + # source://prism//lib/prism/node.rb#10697 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, name: Symbol?, name_loc: Location?, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#10554 + # source://prism//lib/prism/node.rb#10726 sig do params( keys: T::Array[Symbol] @@ -17258,35 +17441,43 @@ class Prism::KeywordRestParameterNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#10564 + # source://prism//lib/prism/node.rb#10741 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol? # - # source://prism//lib/prism/node.rb#10504 + # source://prism//lib/prism/node.rb#10674 sig { returns(T.nilable(Symbol)) } def name; end # attr_reader name_loc: Location? # - # source://prism//lib/prism/node.rb#10507 + # source://prism//lib/prism/node.rb#10677 sig { returns(T.nilable(Prism::Location)) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#10559 + # source://prism//lib/prism/node.rb#10736 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#10510 + # source://prism//lib/prism/node.rb#10680 sig { returns(Prism::Location) } def operator_loc; end + # def repeated_parameter?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#10731 + sig { returns(T::Boolean) } + def repeated_parameter?; end + # Sometimes you want to check an instance of a node against a list of # classes to see what kind of behavior to perform. Usually this is done by # calling `[cls1, cls2].include?(node.class)` or putting the node into a @@ -17302,9 +17493,17 @@ class Prism::KeywordRestParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10590 + # source://prism//lib/prism/node.rb#10769 def type; end + private + + # Returns the value of attribute flags. + # + # source://prism//lib/prism/node.rb#10671 + sig { returns(Integer) } + def flags; end + class << self # Similar to #type, this method returns a symbol that you can use for # splitting on the type of the node without having to do a long === chain. @@ -17313,7 +17512,7 @@ class Prism::KeywordRestParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10600 + # source://prism//lib/prism/node.rb#10779 def type; end end end @@ -17323,17 +17522,16 @@ end # ->(value) { value * 2 } # ^^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#10610 +# source://prism//lib/prism/node.rb#10788 class Prism::LambdaNode < ::Prism::Node - # def initialize: (locals: Array[Symbol], locals_body_index: Integer, operator_loc: Location, opening_loc: Location, closing_loc: Location, parameters: Node?, body: Node?, location: Location) -> void + # def initialize: (Array[Symbol] locals, Location operator_loc, Location opening_loc, Location closing_loc, Node? parameters, Node? body, Location location) -> void # # @return [LambdaNode] a new instance of LambdaNode # - # source://prism//lib/prism/node.rb#10632 + # source://prism//lib/prism/node.rb#10808 sig do params( locals: T::Array[Symbol], - locals_body_index: Integer, operator_loc: Prism::Location, opening_loc: Prism::Location, closing_loc: Prism::Location, @@ -17342,64 +17540,64 @@ class Prism::LambdaNode < ::Prism::Node location: Prism::Location ).void end - def initialize(locals, locals_body_index, operator_loc, opening_loc, closing_loc, parameters, body, location); end + def initialize(locals, operator_loc, opening_loc, closing_loc, parameters, body, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10644 + # source://prism//lib/prism/node.rb#10819 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader body: Node? # - # source://prism//lib/prism/node.rb#10629 + # source://prism//lib/prism/node.rb#10805 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10649 + # source://prism//lib/prism/node.rb#10824 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#10699 + # source://prism//lib/prism/node.rb#10873 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#10623 + # source://prism//lib/prism/node.rb#10799 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10662 + # source://prism//lib/prism/node.rb#10837 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#10654 + # source://prism//lib/prism/node.rb#10829 def compact_child_nodes; end # def copy: (**params) -> LambdaNode # - # source://prism//lib/prism/node.rb#10667 + # source://prism//lib/prism/node.rb#10842 sig { params(params: T.untyped).returns(Prism::LambdaNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10649 + # source://prism//lib/prism/node.rb#10824 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { locals: Array[Symbol], operator_loc: Location, opening_loc: Location, closing_loc: Location, parameters: Node?, body: Node?, location: Location } # - # source://prism//lib/prism/node.rb#10684 + # source://prism//lib/prism/node.rb#10858 sig do params( keys: T::Array[Symbol] @@ -17407,50 +17605,44 @@ class Prism::LambdaNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#10704 + # source://prism//lib/prism/node.rb#10878 def inspect(inspector = T.unsafe(nil)); end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#10611 + # source://prism//lib/prism/node.rb#10790 sig { returns(T::Array[Symbol]) } def locals; end - # attr_reader locals_body_index: Integer - # - # source://prism//lib/prism/node.rb#10614 - sig { returns(Integer) } - def locals_body_index; end - # def opening: () -> String # - # source://prism//lib/prism/node.rb#10694 + # source://prism//lib/prism/node.rb#10868 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#10620 + # source://prism//lib/prism/node.rb#10796 sig { returns(Prism::Location) } def opening_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#10689 + # source://prism//lib/prism/node.rb#10863 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#10617 + # source://prism//lib/prism/node.rb#10793 sig { returns(Prism::Location) } def operator_loc; end # attr_reader parameters: Node? # - # source://prism//lib/prism/node.rb#10626 + # source://prism//lib/prism/node.rb#10802 sig { returns(T.nilable(Prism::Node)) } def parameters; end @@ -17469,7 +17661,7 @@ class Prism::LambdaNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10740 + # source://prism//lib/prism/node.rb#10913 def type; end class << self @@ -17480,7 +17672,7 @@ class Prism::LambdaNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10750 + # source://prism//lib/prism/node.rb#10923 def type; end end end @@ -17689,7 +17881,7 @@ Prism::LexCompat::RIPPER = T.let(T.unsafe(nil), Hash) # However, we add a couple of convenience methods onto them to make them a # little easier to work with. We delegate all other methods to the array. # -# source://prism//lib/prism/lex_compat.rb#187 +# source://prism//lib/prism/lex_compat.rb#186 class Prism::LexCompat::Token < ::SimpleDelegator # The type of the token. # @@ -17734,13 +17926,13 @@ end # target &&= value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#10760 +# source://prism//lib/prism/node.rb#10932 class Prism::LocalVariableAndWriteNode < ::Prism::Node - # def initialize: (name_loc: Location, operator_loc: Location, value: Node, name: Symbol, depth: Integer, location: Location) -> void + # def initialize: (Location name_loc, Location operator_loc, Node value, Symbol name, Integer depth, Location location) -> void # # @return [LocalVariableAndWriteNode] a new instance of LocalVariableAndWriteNode # - # source://prism//lib/prism/node.rb#10776 + # source://prism//lib/prism/node.rb#10949 sig do params( name_loc: Prism::Location, @@ -17753,44 +17945,44 @@ class Prism::LocalVariableAndWriteNode < ::Prism::Node end def initialize(name_loc, operator_loc, value, name, depth, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10786 + # source://prism//lib/prism/node.rb#10959 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10791 + # source://prism//lib/prism/node.rb#10964 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10801 + # source://prism//lib/prism/node.rb#10974 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#10796 + # source://prism//lib/prism/node.rb#10969 def compact_child_nodes; end # def copy: (**params) -> LocalVariableAndWriteNode # - # source://prism//lib/prism/node.rb#10806 + # source://prism//lib/prism/node.rb#10979 sig { params(params: T.untyped).returns(Prism::LocalVariableAndWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10791 + # source://prism//lib/prism/node.rb#10964 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name_loc: Location, operator_loc: Location, value: Node, name: Symbol, depth: Integer, location: Location } # - # source://prism//lib/prism/node.rb#10821 + # source://prism//lib/prism/node.rb#10994 sig do params( keys: T::Array[Symbol] @@ -17800,36 +17992,36 @@ class Prism::LocalVariableAndWriteNode < ::Prism::Node # attr_reader depth: Integer # - # source://prism//lib/prism/node.rb#10773 + # source://prism//lib/prism/node.rb#10946 sig { returns(Integer) } def depth; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#10831 + # source://prism//lib/prism/node.rb#11004 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#10770 + # source://prism//lib/prism/node.rb#10943 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#10761 + # source://prism//lib/prism/node.rb#10934 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#10826 + # source://prism//lib/prism/node.rb#10999 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#10764 + # source://prism//lib/prism/node.rb#10937 sig { returns(Prism::Location) } def operator_loc; end @@ -17848,12 +18040,12 @@ class Prism::LocalVariableAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10856 + # source://prism//lib/prism/node.rb#11029 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#10767 + # source://prism//lib/prism/node.rb#10940 sig { returns(Prism::Node) } def value; end @@ -17865,7 +18057,7 @@ class Prism::LocalVariableAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10866 + # source://prism//lib/prism/node.rb#11039 def type; end end end @@ -17875,13 +18067,13 @@ end # target += value # ^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#10876 +# source://prism//lib/prism/node.rb#11048 class Prism::LocalVariableOperatorWriteNode < ::Prism::Node - # def initialize: (name_loc: Location, operator_loc: Location, value: Node, name: Symbol, operator: Symbol, depth: Integer, location: Location) -> void + # def initialize: (Location name_loc, Location operator_loc, Node value, Symbol name, Symbol operator, Integer depth, Location location) -> void # # @return [LocalVariableOperatorWriteNode] a new instance of LocalVariableOperatorWriteNode # - # source://prism//lib/prism/node.rb#10895 + # source://prism//lib/prism/node.rb#11068 sig do params( name_loc: Prism::Location, @@ -17895,44 +18087,44 @@ class Prism::LocalVariableOperatorWriteNode < ::Prism::Node end def initialize(name_loc, operator_loc, value, name, operator, depth, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10906 + # source://prism//lib/prism/node.rb#11079 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10911 + # source://prism//lib/prism/node.rb#11084 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10921 + # source://prism//lib/prism/node.rb#11094 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#10916 + # source://prism//lib/prism/node.rb#11089 def compact_child_nodes; end # def copy: (**params) -> LocalVariableOperatorWriteNode # - # source://prism//lib/prism/node.rb#10926 + # source://prism//lib/prism/node.rb#11099 sig { params(params: T.untyped).returns(Prism::LocalVariableOperatorWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10911 + # source://prism//lib/prism/node.rb#11084 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name_loc: Location, operator_loc: Location, value: Node, name: Symbol, operator: Symbol, depth: Integer, location: Location } # - # source://prism//lib/prism/node.rb#10942 + # source://prism//lib/prism/node.rb#11115 sig do params( keys: T::Array[Symbol] @@ -17942,36 +18134,36 @@ class Prism::LocalVariableOperatorWriteNode < ::Prism::Node # attr_reader depth: Integer # - # source://prism//lib/prism/node.rb#10892 + # source://prism//lib/prism/node.rb#11065 sig { returns(Integer) } def depth; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#10947 + # source://prism//lib/prism/node.rb#11120 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#10886 + # source://prism//lib/prism/node.rb#11059 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#10877 + # source://prism//lib/prism/node.rb#11050 sig { returns(Prism::Location) } def name_loc; end # attr_reader operator: Symbol # - # source://prism//lib/prism/node.rb#10889 + # source://prism//lib/prism/node.rb#11062 sig { returns(Symbol) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#10880 + # source://prism//lib/prism/node.rb#11053 sig { returns(Prism::Location) } def operator_loc; end @@ -17990,12 +18182,12 @@ class Prism::LocalVariableOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10973 + # source://prism//lib/prism/node.rb#11146 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#10883 + # source://prism//lib/prism/node.rb#11056 sig { returns(Prism::Node) } def value; end @@ -18007,7 +18199,7 @@ class Prism::LocalVariableOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10983 + # source://prism//lib/prism/node.rb#11156 def type; end end end @@ -18017,13 +18209,13 @@ end # target ||= value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#10993 +# source://prism//lib/prism/node.rb#11165 class Prism::LocalVariableOrWriteNode < ::Prism::Node - # def initialize: (name_loc: Location, operator_loc: Location, value: Node, name: Symbol, depth: Integer, location: Location) -> void + # def initialize: (Location name_loc, Location operator_loc, Node value, Symbol name, Integer depth, Location location) -> void # # @return [LocalVariableOrWriteNode] a new instance of LocalVariableOrWriteNode # - # source://prism//lib/prism/node.rb#11009 + # source://prism//lib/prism/node.rb#11182 sig do params( name_loc: Prism::Location, @@ -18036,44 +18228,44 @@ class Prism::LocalVariableOrWriteNode < ::Prism::Node end def initialize(name_loc, operator_loc, value, name, depth, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11019 + # source://prism//lib/prism/node.rb#11192 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11024 + # source://prism//lib/prism/node.rb#11197 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11034 + # source://prism//lib/prism/node.rb#11207 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#11029 + # source://prism//lib/prism/node.rb#11202 def compact_child_nodes; end # def copy: (**params) -> LocalVariableOrWriteNode # - # source://prism//lib/prism/node.rb#11039 + # source://prism//lib/prism/node.rb#11212 sig { params(params: T.untyped).returns(Prism::LocalVariableOrWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11024 + # source://prism//lib/prism/node.rb#11197 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name_loc: Location, operator_loc: Location, value: Node, name: Symbol, depth: Integer, location: Location } # - # source://prism//lib/prism/node.rb#11054 + # source://prism//lib/prism/node.rb#11227 sig do params( keys: T::Array[Symbol] @@ -18083,36 +18275,36 @@ class Prism::LocalVariableOrWriteNode < ::Prism::Node # attr_reader depth: Integer # - # source://prism//lib/prism/node.rb#11006 + # source://prism//lib/prism/node.rb#11179 sig { returns(Integer) } def depth; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#11064 + # source://prism//lib/prism/node.rb#11237 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#11003 + # source://prism//lib/prism/node.rb#11176 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#10994 + # source://prism//lib/prism/node.rb#11167 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#11059 + # source://prism//lib/prism/node.rb#11232 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#10997 + # source://prism//lib/prism/node.rb#11170 sig { returns(Prism::Location) } def operator_loc; end @@ -18131,12 +18323,12 @@ class Prism::LocalVariableOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11089 + # source://prism//lib/prism/node.rb#11262 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#11000 + # source://prism//lib/prism/node.rb#11173 sig { returns(Prism::Node) } def value; end @@ -18148,66 +18340,64 @@ class Prism::LocalVariableOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11099 + # source://prism//lib/prism/node.rb#11272 def type; end end end -# Represents reading a local variable. Note that this requires that a local -# variable of the same name has already been written to in the same scope, -# otherwise it is parsed as a method call. +# Represents reading a local variable. Note that this requires that a local variable of the same name has already been written to in the same scope, otherwise it is parsed as a method call. # # foo # ^^^ # -# source://prism//lib/prism/node.rb#11111 +# source://prism//lib/prism/node.rb#11281 class Prism::LocalVariableReadNode < ::Prism::Node - # def initialize: (name: Symbol, depth: Integer, location: Location) -> void + # def initialize: (Symbol name, Integer depth, Location location) -> void # # @return [LocalVariableReadNode] a new instance of LocalVariableReadNode # - # source://prism//lib/prism/node.rb#11118 + # source://prism//lib/prism/node.rb#11307 sig { params(name: Symbol, depth: Integer, location: Prism::Location).void } def initialize(name, depth, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11125 + # source://prism//lib/prism/node.rb#11314 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11130 + # source://prism//lib/prism/node.rb#11319 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11140 + # source://prism//lib/prism/node.rb#11329 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#11135 + # source://prism//lib/prism/node.rb#11324 def compact_child_nodes; end # def copy: (**params) -> LocalVariableReadNode # - # source://prism//lib/prism/node.rb#11145 + # source://prism//lib/prism/node.rb#11334 sig { params(params: T.untyped).returns(Prism::LocalVariableReadNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11130 + # source://prism//lib/prism/node.rb#11319 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, depth: Integer, location: Location } # - # source://prism//lib/prism/node.rb#11157 + # source://prism//lib/prism/node.rb#11346 sig do params( keys: T::Array[Symbol] @@ -18215,20 +18405,38 @@ class Prism::LocalVariableReadNode < ::Prism::Node end def deconstruct_keys(keys); end - # attr_reader depth: Integer + # The number of visible scopes that should be searched to find the origin of this local variable. # - # source://prism//lib/prism/node.rb#11115 + # foo = 1; foo # depth 0 + # + # bar = 2; tap { bar } # depth 1 + # + # The specific rules for calculating the depth may differ from individual Ruby implementations, as they are not specified by the language. For more information, see [the Prism documentation](https://github.com/ruby/prism/blob/main/docs/local_variable_depth.md). + # + # source://prism//lib/prism/node.rb#11304 sig { returns(Integer) } def depth; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#11162 + # source://prism//lib/prism/node.rb#11351 def inspect(inspector = T.unsafe(nil)); end - # attr_reader name: Symbol + # The name of the local variable, which is an [identifier](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#identifiers). + # + # x # name `:x` + # + # _Test # name `:_Test` + # + # Note that this can also be an underscore followed by a number for the default block parameters. # - # source://prism//lib/prism/node.rb#11112 + # _1 # name `:_1` + # + # Finally, for the default `it` block parameter, the name is `0it`. This is to distinguish it from an `it` local variable that is explicitly declared. + # + # it # name `:0it` + # + # source://prism//lib/prism/node.rb#11295 sig { returns(Symbol) } def name; end @@ -18247,7 +18455,7 @@ class Prism::LocalVariableReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11183 + # source://prism//lib/prism/node.rb#11372 def type; end class << self @@ -18258,7 +18466,7 @@ class Prism::LocalVariableReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11193 + # source://prism//lib/prism/node.rb#11382 def type; end end end @@ -18268,54 +18476,54 @@ end # foo, bar = baz # ^^^ ^^^ # -# source://prism//lib/prism/node.rb#11203 +# source://prism//lib/prism/node.rb#11391 class Prism::LocalVariableTargetNode < ::Prism::Node - # def initialize: (name: Symbol, depth: Integer, location: Location) -> void + # def initialize: (Symbol name, Integer depth, Location location) -> void # # @return [LocalVariableTargetNode] a new instance of LocalVariableTargetNode # - # source://prism//lib/prism/node.rb#11210 + # source://prism//lib/prism/node.rb#11399 sig { params(name: Symbol, depth: Integer, location: Prism::Location).void } def initialize(name, depth, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11217 + # source://prism//lib/prism/node.rb#11406 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11222 + # source://prism//lib/prism/node.rb#11411 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11232 + # source://prism//lib/prism/node.rb#11421 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#11227 + # source://prism//lib/prism/node.rb#11416 def compact_child_nodes; end # def copy: (**params) -> LocalVariableTargetNode # - # source://prism//lib/prism/node.rb#11237 + # source://prism//lib/prism/node.rb#11426 sig { params(params: T.untyped).returns(Prism::LocalVariableTargetNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11222 + # source://prism//lib/prism/node.rb#11411 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, depth: Integer, location: Location } # - # source://prism//lib/prism/node.rb#11249 + # source://prism//lib/prism/node.rb#11438 sig do params( keys: T::Array[Symbol] @@ -18325,18 +18533,18 @@ class Prism::LocalVariableTargetNode < ::Prism::Node # attr_reader depth: Integer # - # source://prism//lib/prism/node.rb#11207 + # source://prism//lib/prism/node.rb#11396 sig { returns(Integer) } def depth; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#11254 + # source://prism//lib/prism/node.rb#11443 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#11204 + # source://prism//lib/prism/node.rb#11393 sig { returns(Symbol) } def name; end @@ -18355,7 +18563,7 @@ class Prism::LocalVariableTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11275 + # source://prism//lib/prism/node.rb#11464 def type; end class << self @@ -18366,7 +18574,7 @@ class Prism::LocalVariableTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11285 + # source://prism//lib/prism/node.rb#11474 def type; end end end @@ -18376,13 +18584,13 @@ end # foo = 1 # ^^^^^^^ # -# source://prism//lib/prism/node.rb#11295 +# source://prism//lib/prism/node.rb#11483 class Prism::LocalVariableWriteNode < ::Prism::Node - # def initialize: (name: Symbol, depth: Integer, name_loc: Location, value: Node, operator_loc: Location, location: Location) -> void + # def initialize: (Symbol name, Integer depth, Location name_loc, Node value, Location operator_loc, Location location) -> void # # @return [LocalVariableWriteNode] a new instance of LocalVariableWriteNode # - # source://prism//lib/prism/node.rb#11311 + # source://prism//lib/prism/node.rb#11500 sig do params( name: Symbol, @@ -18395,44 +18603,44 @@ class Prism::LocalVariableWriteNode < ::Prism::Node end def initialize(name, depth, name_loc, value, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11321 + # source://prism//lib/prism/node.rb#11510 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11326 + # source://prism//lib/prism/node.rb#11515 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11336 + # source://prism//lib/prism/node.rb#11525 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#11331 + # source://prism//lib/prism/node.rb#11520 def compact_child_nodes; end # def copy: (**params) -> LocalVariableWriteNode # - # source://prism//lib/prism/node.rb#11341 + # source://prism//lib/prism/node.rb#11530 sig { params(params: T.untyped).returns(Prism::LocalVariableWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11326 + # source://prism//lib/prism/node.rb#11515 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, depth: Integer, name_loc: Location, value: Node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#11356 + # source://prism//lib/prism/node.rb#11545 sig do params( keys: T::Array[Symbol] @@ -18442,36 +18650,36 @@ class Prism::LocalVariableWriteNode < ::Prism::Node # attr_reader depth: Integer # - # source://prism//lib/prism/node.rb#11299 + # source://prism//lib/prism/node.rb#11488 sig { returns(Integer) } def depth; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#11366 + # source://prism//lib/prism/node.rb#11555 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#11296 + # source://prism//lib/prism/node.rb#11485 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#11302 + # source://prism//lib/prism/node.rb#11491 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#11361 + # source://prism//lib/prism/node.rb#11550 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#11308 + # source://prism//lib/prism/node.rb#11497 sig { returns(Prism::Location) } def operator_loc; end @@ -18490,12 +18698,12 @@ class Prism::LocalVariableWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11391 + # source://prism//lib/prism/node.rb#11580 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#11305 + # source://prism//lib/prism/node.rb#11494 sig { returns(Prism::Node) } def value; end @@ -18507,7 +18715,7 @@ class Prism::LocalVariableWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11401 + # source://prism//lib/prism/node.rb#11590 def type; end end end @@ -18662,12 +18870,12 @@ end # Flags for while and until loop nodes. # -# source://prism//lib/prism/node.rb#17331 +# source://prism//lib/prism/node.rb#17608 module Prism::LoopFlags; end # a loop after a begin statement, so the body is executed first before the condition # -# source://prism//lib/prism/node.rb#17333 +# source://prism//lib/prism/node.rb#17610 Prism::LoopFlags::BEGIN_MODIFIER = T.let(T.unsafe(nil), Integer) # This represents a magic comment that was encountered during parsing. @@ -18712,22 +18920,20 @@ class Prism::MagicComment def value_loc; end end -# Represents a regular expression literal used in the predicate of a -# conditional to implicitly match against the last line read by an IO -# object. +# Represents a regular expression literal used in the predicate of a conditional to implicitly match against the last line read by an IO object. # # if /foo/i then end # ^^^^^^ # -# source://prism//lib/prism/node.rb#11413 +# source://prism//lib/prism/node.rb#11599 class Prism::MatchLastLineNode < ::Prism::Node include ::Prism::RegularExpressionOptions - # def initialize: (flags: Integer, opening_loc: Location, content_loc: Location, closing_loc: Location, unescaped: String, location: Location) -> void + # def initialize: (Integer flags, Location opening_loc, Location content_loc, Location closing_loc, String unescaped, Location location) -> void # # @return [MatchLastLineNode] a new instance of MatchLastLineNode # - # source://prism//lib/prism/node.rb#11429 + # source://prism//lib/prism/node.rb#11616 sig do params( flags: Integer, @@ -18740,9 +18946,9 @@ class Prism::MatchLastLineNode < ::Prism::Node end def initialize(flags, opening_loc, content_loc, closing_loc, unescaped, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11439 + # source://prism//lib/prism/node.rb#11626 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end @@ -18750,66 +18956,66 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11504 + # source://prism//lib/prism/node.rb#11691 sig { returns(T::Boolean) } def ascii_8bit?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11444 + # source://prism//lib/prism/node.rb#11631 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#11544 + # source://prism//lib/prism/node.rb#11731 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#11423 + # source://prism//lib/prism/node.rb#11610 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11454 + # source://prism//lib/prism/node.rb#11641 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#11449 + # source://prism//lib/prism/node.rb#11636 def compact_child_nodes; end # def content: () -> String # - # source://prism//lib/prism/node.rb#11539 + # source://prism//lib/prism/node.rb#11726 sig { returns(String) } def content; end # attr_reader content_loc: Location # - # source://prism//lib/prism/node.rb#11420 + # source://prism//lib/prism/node.rb#11607 sig { returns(Prism::Location) } def content_loc; end # def copy: (**params) -> MatchLastLineNode # - # source://prism//lib/prism/node.rb#11459 + # source://prism//lib/prism/node.rb#11646 sig { params(params: T.untyped).returns(Prism::MatchLastLineNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11444 + # source://prism//lib/prism/node.rb#11631 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, opening_loc: Location, content_loc: Location, closing_loc: Location, unescaped: String, location: Location } # - # source://prism//lib/prism/node.rb#11474 + # source://prism//lib/prism/node.rb#11661 sig do params( keys: T::Array[Symbol] @@ -18821,7 +19027,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11499 + # source://prism//lib/prism/node.rb#11686 sig { returns(T::Boolean) } def euc_jp?; end @@ -18829,7 +19035,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11484 + # source://prism//lib/prism/node.rb#11671 sig { returns(T::Boolean) } def extended?; end @@ -18837,7 +19043,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11524 + # source://prism//lib/prism/node.rb#11711 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -18845,7 +19051,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11529 + # source://prism//lib/prism/node.rb#11716 sig { returns(T::Boolean) } def forced_us_ascii_encoding?; end @@ -18853,7 +19059,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11519 + # source://prism//lib/prism/node.rb#11706 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -18861,20 +19067,20 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11479 + # source://prism//lib/prism/node.rb#11666 sig { returns(T::Boolean) } def ignore_case?; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#11549 + # source://prism//lib/prism/node.rb#11736 def inspect(inspector = T.unsafe(nil)); end # def multi_line?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11489 + # source://prism//lib/prism/node.rb#11676 sig { returns(T::Boolean) } def multi_line?; end @@ -18882,19 +19088,19 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11494 + # source://prism//lib/prism/node.rb#11681 sig { returns(T::Boolean) } def once?; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#11534 + # source://prism//lib/prism/node.rb#11721 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#11417 + # source://prism//lib/prism/node.rb#11604 sig { returns(Prism::Location) } def opening_loc; end @@ -18913,12 +19119,12 @@ class Prism::MatchLastLineNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11574 + # source://prism//lib/prism/node.rb#11761 def type; end # attr_reader unescaped: String # - # source://prism//lib/prism/node.rb#11426 + # source://prism//lib/prism/node.rb#11613 sig { returns(String) } def unescaped; end @@ -18926,7 +19132,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11514 + # source://prism//lib/prism/node.rb#11701 sig { returns(T::Boolean) } def utf_8?; end @@ -18934,7 +19140,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11509 + # source://prism//lib/prism/node.rb#11696 sig { returns(T::Boolean) } def windows_31j?; end @@ -18942,7 +19148,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#11414 + # source://prism//lib/prism/node.rb#11601 sig { returns(Integer) } def flags; end @@ -18954,7 +19160,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11584 + # source://prism//lib/prism/node.rb#11771 def type; end end end @@ -18964,13 +19170,13 @@ end # foo in bar # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#11594 +# source://prism//lib/prism/node.rb#11780 class Prism::MatchPredicateNode < ::Prism::Node - # def initialize: (value: Node, pattern: Node, operator_loc: Location, location: Location) -> void + # def initialize: (Node value, Node pattern, Location operator_loc, Location location) -> void # # @return [MatchPredicateNode] a new instance of MatchPredicateNode # - # source://prism//lib/prism/node.rb#11604 + # source://prism//lib/prism/node.rb#11791 sig do params( value: Prism::Node, @@ -18981,44 +19187,44 @@ class Prism::MatchPredicateNode < ::Prism::Node end def initialize(value, pattern, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11612 + # source://prism//lib/prism/node.rb#11799 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11617 + # source://prism//lib/prism/node.rb#11804 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11627 + # source://prism//lib/prism/node.rb#11814 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#11622 + # source://prism//lib/prism/node.rb#11809 def compact_child_nodes; end # def copy: (**params) -> MatchPredicateNode # - # source://prism//lib/prism/node.rb#11632 + # source://prism//lib/prism/node.rb#11819 sig { params(params: T.untyped).returns(Prism::MatchPredicateNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11617 + # source://prism//lib/prism/node.rb#11804 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { value: Node, pattern: Node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#11645 + # source://prism//lib/prism/node.rb#11832 sig do params( keys: T::Array[Symbol] @@ -19026,26 +19232,26 @@ class Prism::MatchPredicateNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#11655 + # source://prism//lib/prism/node.rb#11842 def inspect(inspector = T.unsafe(nil)); end # def operator: () -> String # - # source://prism//lib/prism/node.rb#11650 + # source://prism//lib/prism/node.rb#11837 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#11601 + # source://prism//lib/prism/node.rb#11788 sig { returns(Prism::Location) } def operator_loc; end # attr_reader pattern: Node # - # source://prism//lib/prism/node.rb#11598 + # source://prism//lib/prism/node.rb#11785 sig { returns(Prism::Node) } def pattern; end @@ -19064,12 +19270,12 @@ class Prism::MatchPredicateNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11679 + # source://prism//lib/prism/node.rb#11866 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#11595 + # source://prism//lib/prism/node.rb#11782 sig { returns(Prism::Node) } def value; end @@ -19081,7 +19287,7 @@ class Prism::MatchPredicateNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11689 + # source://prism//lib/prism/node.rb#11876 def type; end end end @@ -19091,13 +19297,13 @@ end # foo => bar # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#11699 +# source://prism//lib/prism/node.rb#11885 class Prism::MatchRequiredNode < ::Prism::Node - # def initialize: (value: Node, pattern: Node, operator_loc: Location, location: Location) -> void + # def initialize: (Node value, Node pattern, Location operator_loc, Location location) -> void # # @return [MatchRequiredNode] a new instance of MatchRequiredNode # - # source://prism//lib/prism/node.rb#11709 + # source://prism//lib/prism/node.rb#11896 sig do params( value: Prism::Node, @@ -19108,44 +19314,44 @@ class Prism::MatchRequiredNode < ::Prism::Node end def initialize(value, pattern, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11717 + # source://prism//lib/prism/node.rb#11904 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11722 + # source://prism//lib/prism/node.rb#11909 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11732 + # source://prism//lib/prism/node.rb#11919 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#11727 + # source://prism//lib/prism/node.rb#11914 def compact_child_nodes; end # def copy: (**params) -> MatchRequiredNode # - # source://prism//lib/prism/node.rb#11737 + # source://prism//lib/prism/node.rb#11924 sig { params(params: T.untyped).returns(Prism::MatchRequiredNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11722 + # source://prism//lib/prism/node.rb#11909 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { value: Node, pattern: Node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#11750 + # source://prism//lib/prism/node.rb#11937 sig do params( keys: T::Array[Symbol] @@ -19153,26 +19359,26 @@ class Prism::MatchRequiredNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#11760 + # source://prism//lib/prism/node.rb#11947 def inspect(inspector = T.unsafe(nil)); end # def operator: () -> String # - # source://prism//lib/prism/node.rb#11755 + # source://prism//lib/prism/node.rb#11942 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#11706 + # source://prism//lib/prism/node.rb#11893 sig { returns(Prism::Location) } def operator_loc; end # attr_reader pattern: Node # - # source://prism//lib/prism/node.rb#11703 + # source://prism//lib/prism/node.rb#11890 sig { returns(Prism::Node) } def pattern; end @@ -19191,12 +19397,12 @@ class Prism::MatchRequiredNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11784 + # source://prism//lib/prism/node.rb#11971 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#11700 + # source://prism//lib/prism/node.rb#11887 sig { returns(Prism::Node) } def value; end @@ -19208,71 +19414,70 @@ class Prism::MatchRequiredNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11794 + # source://prism//lib/prism/node.rb#11981 def type; end end end -# Represents writing local variables using a regular expression match with -# named capture groups. +# Represents writing local variables using a regular expression match with named capture groups. # # /(?bar)/ =~ baz # ^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#11805 +# source://prism//lib/prism/node.rb#11990 class Prism::MatchWriteNode < ::Prism::Node - # def initialize: (call: CallNode, targets: Array[Node], location: Location) -> void + # def initialize: (CallNode call, Array[Node] targets, Location location) -> void # # @return [MatchWriteNode] a new instance of MatchWriteNode # - # source://prism//lib/prism/node.rb#11812 + # source://prism//lib/prism/node.rb#11998 sig { params(call: Prism::CallNode, targets: T::Array[Prism::Node], location: Prism::Location).void } def initialize(call, targets, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11819 + # source://prism//lib/prism/node.rb#12005 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader call: CallNode # - # source://prism//lib/prism/node.rb#11806 + # source://prism//lib/prism/node.rb#11992 sig { returns(Prism::CallNode) } def call; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11824 + # source://prism//lib/prism/node.rb#12010 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11834 + # source://prism//lib/prism/node.rb#12020 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#11829 + # source://prism//lib/prism/node.rb#12015 def compact_child_nodes; end # def copy: (**params) -> MatchWriteNode # - # source://prism//lib/prism/node.rb#11839 + # source://prism//lib/prism/node.rb#12025 sig { params(params: T.untyped).returns(Prism::MatchWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11824 + # source://prism//lib/prism/node.rb#12010 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { call: CallNode, targets: Array[Node], location: Location } # - # source://prism//lib/prism/node.rb#11851 + # source://prism//lib/prism/node.rb#12037 sig do params( keys: T::Array[Symbol] @@ -19280,14 +19485,14 @@ class Prism::MatchWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#11856 + # source://prism//lib/prism/node.rb#12042 def inspect(inspector = T.unsafe(nil)); end # attr_reader targets: Array[Node] # - # source://prism//lib/prism/node.rb#11809 + # source://prism//lib/prism/node.rb#11995 sig { returns(T::Array[Prism::Node]) } def targets; end @@ -19306,7 +19511,7 @@ class Prism::MatchWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11878 + # source://prism//lib/prism/node.rb#12064 def type; end class << self @@ -19317,62 +19522,61 @@ class Prism::MatchWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11888 + # source://prism//lib/prism/node.rb#12074 def type; end end end -# Represents a node that is missing from the source and results in a syntax -# error. +# Represents a node that is missing from the source and results in a syntax error. # -# source://prism//lib/prism/node.rb#11896 +# source://prism//lib/prism/node.rb#12080 class Prism::MissingNode < ::Prism::Node - # def initialize: (location: Location) -> void + # def initialize: (Location location) -> void # # @return [MissingNode] a new instance of MissingNode # - # source://prism//lib/prism/node.rb#11897 + # source://prism//lib/prism/node.rb#12082 sig { params(location: Prism::Location).void } def initialize(location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11902 + # source://prism//lib/prism/node.rb#12087 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11907 + # source://prism//lib/prism/node.rb#12092 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11917 + # source://prism//lib/prism/node.rb#12102 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#11912 + # source://prism//lib/prism/node.rb#12097 def compact_child_nodes; end # def copy: (**params) -> MissingNode # - # source://prism//lib/prism/node.rb#11922 + # source://prism//lib/prism/node.rb#12107 sig { params(params: T.untyped).returns(Prism::MissingNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11907 + # source://prism//lib/prism/node.rb#12092 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#11932 + # source://prism//lib/prism/node.rb#12117 sig do params( keys: T::Array[Symbol] @@ -19380,9 +19584,9 @@ class Prism::MissingNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#11937 + # source://prism//lib/prism/node.rb#12122 def inspect(inspector = T.unsafe(nil)); end # Sometimes you want to check an instance of a node against a list of @@ -19400,7 +19604,7 @@ class Prism::MissingNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11956 + # source://prism//lib/prism/node.rb#12141 def type; end class << self @@ -19411,7 +19615,7 @@ class Prism::MissingNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11966 + # source://prism//lib/prism/node.rb#12151 def type; end end end @@ -19421,13 +19625,13 @@ end # module Foo end # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#11976 +# source://prism//lib/prism/node.rb#12160 class Prism::ModuleNode < ::Prism::Node - # def initialize: (locals: Array[Symbol], module_keyword_loc: Location, constant_path: Node, body: Node?, end_keyword_loc: Location, name: Symbol, location: Location) -> void + # def initialize: (Array[Symbol] locals, Location module_keyword_loc, Node constant_path, Node? body, Location end_keyword_loc, Symbol name, Location location) -> void # # @return [ModuleNode] a new instance of ModuleNode # - # source://prism//lib/prism/node.rb#11995 + # source://prism//lib/prism/node.rb#12180 sig do params( locals: T::Array[Symbol], @@ -19441,56 +19645,56 @@ class Prism::ModuleNode < ::Prism::Node end def initialize(locals, module_keyword_loc, constant_path, body, end_keyword_loc, name, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12006 + # source://prism//lib/prism/node.rb#12191 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader body: Node? # - # source://prism//lib/prism/node.rb#11986 + # source://prism//lib/prism/node.rb#12171 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12011 + # source://prism//lib/prism/node.rb#12196 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12024 + # source://prism//lib/prism/node.rb#12209 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12016 + # source://prism//lib/prism/node.rb#12201 def compact_child_nodes; end # attr_reader constant_path: Node # - # source://prism//lib/prism/node.rb#11983 + # source://prism//lib/prism/node.rb#12168 sig { returns(Prism::Node) } def constant_path; end # def copy: (**params) -> ModuleNode # - # source://prism//lib/prism/node.rb#12029 + # source://prism//lib/prism/node.rb#12214 sig { params(params: T.untyped).returns(Prism::ModuleNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12011 + # source://prism//lib/prism/node.rb#12196 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { locals: Array[Symbol], module_keyword_loc: Location, constant_path: Node, body: Node?, end_keyword_loc: Location, name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#12045 + # source://prism//lib/prism/node.rb#12230 sig do params( keys: T::Array[Symbol] @@ -19500,42 +19704,42 @@ class Prism::ModuleNode < ::Prism::Node # def end_keyword: () -> String # - # source://prism//lib/prism/node.rb#12055 + # source://prism//lib/prism/node.rb#12240 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#11989 + # source://prism//lib/prism/node.rb#12174 sig { returns(Prism::Location) } def end_keyword_loc; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#12060 + # source://prism//lib/prism/node.rb#12245 def inspect(inspector = T.unsafe(nil)); end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#11977 + # source://prism//lib/prism/node.rb#12162 sig { returns(T::Array[Symbol]) } def locals; end # def module_keyword: () -> String # - # source://prism//lib/prism/node.rb#12050 + # source://prism//lib/prism/node.rb#12235 sig { returns(String) } def module_keyword; end # attr_reader module_keyword_loc: Location # - # source://prism//lib/prism/node.rb#11980 + # source://prism//lib/prism/node.rb#12165 sig { returns(Prism::Location) } def module_keyword_loc; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#11992 + # source://prism//lib/prism/node.rb#12177 sig { returns(Symbol) } def name; end @@ -19554,7 +19758,7 @@ class Prism::ModuleNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12091 + # source://prism//lib/prism/node.rb#12276 def type; end class << self @@ -19565,7 +19769,7 @@ class Prism::ModuleNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12101 + # source://prism//lib/prism/node.rb#12286 def type; end end end @@ -19575,13 +19779,13 @@ end # a, (b, c) = 1, 2, 3 # ^^^^^^ # -# source://prism//lib/prism/node.rb#12111 +# source://prism//lib/prism/node.rb#12295 class Prism::MultiTargetNode < ::Prism::Node - # def initialize: (lefts: Array[Node], rest: Node?, rights: Array[Node], lparen_loc: Location?, rparen_loc: Location?, location: Location) -> void + # def initialize: (Array[Node] lefts, Node? rest, Array[Node] rights, Location? lparen_loc, Location? rparen_loc, Location location) -> void # # @return [MultiTargetNode] a new instance of MultiTargetNode # - # source://prism//lib/prism/node.rb#12127 + # source://prism//lib/prism/node.rb#12312 sig do params( lefts: T::Array[Prism::Node], @@ -19594,44 +19798,44 @@ class Prism::MultiTargetNode < ::Prism::Node end def initialize(lefts, rest, rights, lparen_loc, rparen_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12137 + # source://prism//lib/prism/node.rb#12322 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12142 + # source://prism//lib/prism/node.rb#12327 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12156 + # source://prism//lib/prism/node.rb#12341 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12147 + # source://prism//lib/prism/node.rb#12332 def compact_child_nodes; end # def copy: (**params) -> MultiTargetNode # - # source://prism//lib/prism/node.rb#12161 + # source://prism//lib/prism/node.rb#12346 sig { params(params: T.untyped).returns(Prism::MultiTargetNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12142 + # source://prism//lib/prism/node.rb#12327 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { lefts: Array[Node], rest: Node?, rights: Array[Node], lparen_loc: Location?, rparen_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#12176 + # source://prism//lib/prism/node.rb#12361 sig do params( keys: T::Array[Symbol] @@ -19639,50 +19843,50 @@ class Prism::MultiTargetNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#12191 + # source://prism//lib/prism/node.rb#12376 def inspect(inspector = T.unsafe(nil)); end # attr_reader lefts: Array[Node] # - # source://prism//lib/prism/node.rb#12112 + # source://prism//lib/prism/node.rb#12297 sig { returns(T::Array[Prism::Node]) } def lefts; end # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#12181 + # source://prism//lib/prism/node.rb#12366 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#12121 + # source://prism//lib/prism/node.rb#12306 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # attr_reader rest: Node? # - # source://prism//lib/prism/node.rb#12115 + # source://prism//lib/prism/node.rb#12300 sig { returns(T.nilable(Prism::Node)) } def rest; end # attr_reader rights: Array[Node] # - # source://prism//lib/prism/node.rb#12118 + # source://prism//lib/prism/node.rb#12303 sig { returns(T::Array[Prism::Node]) } def rights; end # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#12186 + # source://prism//lib/prism/node.rb#12371 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#12124 + # source://prism//lib/prism/node.rb#12309 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -19701,7 +19905,7 @@ class Prism::MultiTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12220 + # source://prism//lib/prism/node.rb#12405 def type; end class << self @@ -19712,7 +19916,7 @@ class Prism::MultiTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12230 + # source://prism//lib/prism/node.rb#12415 def type; end end end @@ -19722,13 +19926,13 @@ end # a, b, c = 1, 2, 3 # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#12240 +# source://prism//lib/prism/node.rb#12424 class Prism::MultiWriteNode < ::Prism::Node - # def initialize: (lefts: Array[Node], rest: Node?, rights: Array[Node], lparen_loc: Location?, rparen_loc: Location?, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (Array[Node] lefts, Node? rest, Array[Node] rights, Location? lparen_loc, Location? rparen_loc, Location operator_loc, Node value, Location location) -> void # # @return [MultiWriteNode] a new instance of MultiWriteNode # - # source://prism//lib/prism/node.rb#12262 + # source://prism//lib/prism/node.rb#12447 sig do params( lefts: T::Array[Prism::Node], @@ -19743,44 +19947,44 @@ class Prism::MultiWriteNode < ::Prism::Node end def initialize(lefts, rest, rights, lparen_loc, rparen_loc, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12274 + # source://prism//lib/prism/node.rb#12459 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12279 + # source://prism//lib/prism/node.rb#12464 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12294 + # source://prism//lib/prism/node.rb#12479 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12284 + # source://prism//lib/prism/node.rb#12469 def compact_child_nodes; end # def copy: (**params) -> MultiWriteNode # - # source://prism//lib/prism/node.rb#12299 + # source://prism//lib/prism/node.rb#12484 sig { params(params: T.untyped).returns(Prism::MultiWriteNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12279 + # source://prism//lib/prism/node.rb#12464 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { lefts: Array[Node], rest: Node?, rights: Array[Node], lparen_loc: Location?, rparen_loc: Location?, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#12316 + # source://prism//lib/prism/node.rb#12501 sig do params( keys: T::Array[Symbol] @@ -19788,62 +19992,62 @@ class Prism::MultiWriteNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#12336 + # source://prism//lib/prism/node.rb#12521 def inspect(inspector = T.unsafe(nil)); end # attr_reader lefts: Array[Node] # - # source://prism//lib/prism/node.rb#12241 + # source://prism//lib/prism/node.rb#12426 sig { returns(T::Array[Prism::Node]) } def lefts; end # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#12321 + # source://prism//lib/prism/node.rb#12506 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#12250 + # source://prism//lib/prism/node.rb#12435 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#12331 + # source://prism//lib/prism/node.rb#12516 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#12256 + # source://prism//lib/prism/node.rb#12441 sig { returns(Prism::Location) } def operator_loc; end # attr_reader rest: Node? # - # source://prism//lib/prism/node.rb#12244 + # source://prism//lib/prism/node.rb#12429 sig { returns(T.nilable(Prism::Node)) } def rest; end # attr_reader rights: Array[Node] # - # source://prism//lib/prism/node.rb#12247 + # source://prism//lib/prism/node.rb#12432 sig { returns(T::Array[Prism::Node]) } def rights; end # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#12326 + # source://prism//lib/prism/node.rb#12511 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#12253 + # source://prism//lib/prism/node.rb#12438 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -19862,12 +20066,12 @@ class Prism::MultiWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12368 + # source://prism//lib/prism/node.rb#12553 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#12259 + # source://prism//lib/prism/node.rb#12444 sig { returns(Prism::Node) } def value; end @@ -19879,7 +20083,7 @@ class Prism::MultiWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12378 + # source://prism//lib/prism/node.rb#12563 def type; end end end @@ -19888,7 +20092,7 @@ end # visited. This is useful for consumers that want to mutate the tree, as you # can change subtrees in place without effecting the rest of the tree. # -# source://prism//lib/prism/mutation_compiler.rb#13 +# source://prism//lib/prism/mutation_compiler.rb#12 class Prism::MutationCompiler < ::Prism::Compiler # Copy a AliasGlobalVariableNode node # @@ -20636,13 +20840,13 @@ end # next 1 # ^^^^^^ # -# source://prism//lib/prism/node.rb#12388 +# source://prism//lib/prism/node.rb#12572 class Prism::NextNode < ::Prism::Node - # def initialize: (arguments: ArgumentsNode?, keyword_loc: Location, location: Location) -> void + # def initialize: (ArgumentsNode? arguments, Location keyword_loc, Location location) -> void # # @return [NextNode] a new instance of NextNode # - # source://prism//lib/prism/node.rb#12395 + # source://prism//lib/prism/node.rb#12580 sig do params( arguments: T.nilable(Prism::ArgumentsNode), @@ -20652,50 +20856,50 @@ class Prism::NextNode < ::Prism::Node end def initialize(arguments, keyword_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12402 + # source://prism//lib/prism/node.rb#12587 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#12389 + # source://prism//lib/prism/node.rb#12574 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12407 + # source://prism//lib/prism/node.rb#12592 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12419 + # source://prism//lib/prism/node.rb#12604 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12412 + # source://prism//lib/prism/node.rb#12597 def compact_child_nodes; end # def copy: (**params) -> NextNode # - # source://prism//lib/prism/node.rb#12424 + # source://prism//lib/prism/node.rb#12609 sig { params(params: T.untyped).returns(Prism::NextNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12407 + # source://prism//lib/prism/node.rb#12592 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { arguments: ArgumentsNode?, keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#12436 + # source://prism//lib/prism/node.rb#12621 sig do params( keys: T::Array[Symbol] @@ -20703,20 +20907,20 @@ class Prism::NextNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#12446 + # source://prism//lib/prism/node.rb#12631 def inspect(inspector = T.unsafe(nil)); end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#12441 + # source://prism//lib/prism/node.rb#12626 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#12392 + # source://prism//lib/prism/node.rb#12577 sig { returns(Prism::Location) } def keyword_loc; end @@ -20735,7 +20939,7 @@ class Prism::NextNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12472 + # source://prism//lib/prism/node.rb#12657 def type; end class << self @@ -20746,7 +20950,7 @@ class Prism::NextNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12482 + # source://prism//lib/prism/node.rb#12667 def type; end end end @@ -20756,54 +20960,54 @@ end # nil # ^^^ # -# source://prism//lib/prism/node.rb#12492 +# source://prism//lib/prism/node.rb#12676 class Prism::NilNode < ::Prism::Node - # def initialize: (location: Location) -> void + # def initialize: (Location location) -> void # # @return [NilNode] a new instance of NilNode # - # source://prism//lib/prism/node.rb#12493 + # source://prism//lib/prism/node.rb#12678 sig { params(location: Prism::Location).void } def initialize(location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12498 + # source://prism//lib/prism/node.rb#12683 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12503 + # source://prism//lib/prism/node.rb#12688 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12513 + # source://prism//lib/prism/node.rb#12698 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12508 + # source://prism//lib/prism/node.rb#12693 def compact_child_nodes; end # def copy: (**params) -> NilNode # - # source://prism//lib/prism/node.rb#12518 + # source://prism//lib/prism/node.rb#12703 sig { params(params: T.untyped).returns(Prism::NilNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12503 + # source://prism//lib/prism/node.rb#12688 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#12528 + # source://prism//lib/prism/node.rb#12713 sig do params( keys: T::Array[Symbol] @@ -20811,9 +21015,9 @@ class Prism::NilNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#12533 + # source://prism//lib/prism/node.rb#12718 def inspect(inspector = T.unsafe(nil)); end # Sometimes you want to check an instance of a node against a list of @@ -20831,7 +21035,7 @@ class Prism::NilNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12552 + # source://prism//lib/prism/node.rb#12737 def type; end class << self @@ -20842,7 +21046,7 @@ class Prism::NilNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12562 + # source://prism//lib/prism/node.rb#12747 def type; end end end @@ -20853,54 +21057,54 @@ end # ^^^^^ # end # -# source://prism//lib/prism/node.rb#12573 +# source://prism//lib/prism/node.rb#12757 class Prism::NoKeywordsParameterNode < ::Prism::Node - # def initialize: (operator_loc: Location, keyword_loc: Location, location: Location) -> void + # def initialize: (Location operator_loc, Location keyword_loc, Location location) -> void # # @return [NoKeywordsParameterNode] a new instance of NoKeywordsParameterNode # - # source://prism//lib/prism/node.rb#12580 + # source://prism//lib/prism/node.rb#12765 sig { params(operator_loc: Prism::Location, keyword_loc: Prism::Location, location: Prism::Location).void } def initialize(operator_loc, keyword_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12587 + # source://prism//lib/prism/node.rb#12772 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12592 + # source://prism//lib/prism/node.rb#12777 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12602 + # source://prism//lib/prism/node.rb#12787 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12597 + # source://prism//lib/prism/node.rb#12782 def compact_child_nodes; end # def copy: (**params) -> NoKeywordsParameterNode # - # source://prism//lib/prism/node.rb#12607 + # source://prism//lib/prism/node.rb#12792 sig { params(params: T.untyped).returns(Prism::NoKeywordsParameterNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12592 + # source://prism//lib/prism/node.rb#12777 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { operator_loc: Location, keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#12619 + # source://prism//lib/prism/node.rb#12804 sig do params( keys: T::Array[Symbol] @@ -20908,32 +21112,32 @@ class Prism::NoKeywordsParameterNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#12634 + # source://prism//lib/prism/node.rb#12819 def inspect(inspector = T.unsafe(nil)); end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#12629 + # source://prism//lib/prism/node.rb#12814 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#12577 + # source://prism//lib/prism/node.rb#12762 sig { returns(Prism::Location) } def keyword_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#12624 + # source://prism//lib/prism/node.rb#12809 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#12574 + # source://prism//lib/prism/node.rb#12759 sig { returns(Prism::Location) } def operator_loc; end @@ -20952,7 +21156,7 @@ class Prism::NoKeywordsParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12655 + # source://prism//lib/prism/node.rb#12840 def type; end class << self @@ -20963,7 +21167,7 @@ class Prism::NoKeywordsParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12665 + # source://prism//lib/prism/node.rb#12850 def type; end end end @@ -20973,9 +21177,49 @@ end # # source://prism//lib/prism/node.rb#11 class Prism::Node + # Accepts a visitor and calls back into the specialized visit function. + # + # @raise [NoMethodError] + # + # source://prism//lib/prism/node.rb#55 + sig { params(visitor: Prism::Visitor).void } + def accept(visitor); end + + # Returns an array of child nodes, including `nil`s in the place of optional + # nodes that were not present. + # + # @raise [NoMethodError] + # + # source://prism//lib/prism/node.rb#61 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end + # Returns an array of child nodes and locations that could potentially have + # comments attached to them. + # + # @raise [NoMethodError] + # + # source://prism//lib/prism/node.rb#75 + def comment_targets; end + + # Returns an array of child nodes, excluding any `nil`s in the place of + # optional nodes that were not present. + # + # @raise [NoMethodError] + # + # source://prism//lib/prism/node.rb#69 + sig { returns(T::Array[Prism::Node]) } + def compact_child_nodes; end + + # Returns an array of child nodes, including `nil`s in the place of optional + # nodes that were not present. + # + # @raise [NoMethodError] + # + # source://prism//lib/prism/node.rb#61 + sig { returns(T::Array[T.nilable(Prism::Node)]) } + def deconstruct; end + # A Location instance that represents the location of this node in the # source. # @@ -21008,6 +21252,15 @@ class Prism::Node # source://prism//lib/prism/node.rb#43 sig { returns(String) } def to_dot; end + + # Returns a symbol symbolizing the type of node that this represents. This + # is particularly useful for case statements and array comparisons. + # + # @raise [NoMethodError] + # + # source://prism//lib/prism/node.rb#81 + sig { returns(Symbol) } + def type; end end # This object is responsible for generating the output for the inspect method @@ -21075,60 +21328,59 @@ class Prism::NodeInspector def to_str; end end -# Represents an implicit set of parameters through the use of numbered -# parameters within a block or lambda. +# Represents an implicit set of parameters through the use of numbered parameters within a block or lambda. # # -> { _1 + _2 } # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#12676 +# source://prism//lib/prism/node.rb#12859 class Prism::NumberedParametersNode < ::Prism::Node - # def initialize: (maximum: Integer, location: Location) -> void + # def initialize: (Integer maximum, Location location) -> void # # @return [NumberedParametersNode] a new instance of NumberedParametersNode # - # source://prism//lib/prism/node.rb#12680 + # source://prism//lib/prism/node.rb#12864 sig { params(maximum: Integer, location: Prism::Location).void } def initialize(maximum, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12686 + # source://prism//lib/prism/node.rb#12870 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12691 + # source://prism//lib/prism/node.rb#12875 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12701 + # source://prism//lib/prism/node.rb#12885 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12696 + # source://prism//lib/prism/node.rb#12880 def compact_child_nodes; end # def copy: (**params) -> NumberedParametersNode # - # source://prism//lib/prism/node.rb#12706 + # source://prism//lib/prism/node.rb#12890 sig { params(params: T.untyped).returns(Prism::NumberedParametersNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12691 + # source://prism//lib/prism/node.rb#12875 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { maximum: Integer, location: Location } # - # source://prism//lib/prism/node.rb#12717 + # source://prism//lib/prism/node.rb#12901 sig do params( keys: T::Array[Symbol] @@ -21136,14 +21388,14 @@ class Prism::NumberedParametersNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#12722 + # source://prism//lib/prism/node.rb#12906 def inspect(inspector = T.unsafe(nil)); end # attr_reader maximum: Integer # - # source://prism//lib/prism/node.rb#12677 + # source://prism//lib/prism/node.rb#12861 sig { returns(Integer) } def maximum; end @@ -21162,7 +21414,7 @@ class Prism::NumberedParametersNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12742 + # source://prism//lib/prism/node.rb#12926 def type; end class << self @@ -21173,7 +21425,7 @@ class Prism::NumberedParametersNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12752 + # source://prism//lib/prism/node.rb#12936 def type; end end end @@ -21183,54 +21435,54 @@ end # $1 # ^^ # -# source://prism//lib/prism/node.rb#12762 +# source://prism//lib/prism/node.rb#12945 class Prism::NumberedReferenceReadNode < ::Prism::Node - # def initialize: (number: Integer, location: Location) -> void + # def initialize: (Integer number, Location location) -> void # # @return [NumberedReferenceReadNode] a new instance of NumberedReferenceReadNode # - # source://prism//lib/prism/node.rb#12766 + # source://prism//lib/prism/node.rb#12956 sig { params(number: Integer, location: Prism::Location).void } def initialize(number, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12772 + # source://prism//lib/prism/node.rb#12962 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12777 + # source://prism//lib/prism/node.rb#12967 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12787 + # source://prism//lib/prism/node.rb#12977 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12782 + # source://prism//lib/prism/node.rb#12972 def compact_child_nodes; end # def copy: (**params) -> NumberedReferenceReadNode # - # source://prism//lib/prism/node.rb#12792 + # source://prism//lib/prism/node.rb#12982 sig { params(params: T.untyped).returns(Prism::NumberedReferenceReadNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12777 + # source://prism//lib/prism/node.rb#12967 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { number: Integer, location: Location } # - # source://prism//lib/prism/node.rb#12803 + # source://prism//lib/prism/node.rb#12993 sig do params( keys: T::Array[Symbol] @@ -21238,14 +21490,20 @@ class Prism::NumberedReferenceReadNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#12808 + # source://prism//lib/prism/node.rb#12998 def inspect(inspector = T.unsafe(nil)); end - # attr_reader number: Integer + # The (1-indexed, from the left) number of the capture group. Numbered references that would overflow a `uint32` result in a `number` of exactly `2**32 - 1`. # - # source://prism//lib/prism/node.rb#12763 + # $1 # number `1` + # + # $5432 # number `5432` + # + # $4294967296 # number `4294967295` + # + # source://prism//lib/prism/node.rb#12953 sig { returns(Integer) } def number; end @@ -21264,7 +21522,7 @@ class Prism::NumberedReferenceReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12828 + # source://prism//lib/prism/node.rb#13018 def type; end class << self @@ -21275,7 +21533,7 @@ class Prism::NumberedReferenceReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12838 + # source://prism//lib/prism/node.rb#13028 def type; end end end @@ -21286,54 +21544,62 @@ end # ^^^^ # end # -# source://prism//lib/prism/node.rb#12849 +# source://prism//lib/prism/node.rb#13038 class Prism::OptionalKeywordParameterNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, value: Node, location: Location) -> void + # def initialize: (Integer flags, Symbol name, Location name_loc, Node value, Location location) -> void # # @return [OptionalKeywordParameterNode] a new instance of OptionalKeywordParameterNode # - # source://prism//lib/prism/node.rb#12859 - sig { params(name: Symbol, name_loc: Prism::Location, value: Prism::Node, location: Prism::Location).void } - def initialize(name, name_loc, value, location); end + # source://prism//lib/prism/node.rb#13052 + sig do + params( + flags: Integer, + name: Symbol, + name_loc: Prism::Location, + value: Prism::Node, + location: Prism::Location + ).void + end + def initialize(flags, name, name_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12867 + # source://prism//lib/prism/node.rb#13061 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12872 + # source://prism//lib/prism/node.rb#13066 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12882 + # source://prism//lib/prism/node.rb#13076 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12877 + # source://prism//lib/prism/node.rb#13071 def compact_child_nodes; end # def copy: (**params) -> OptionalKeywordParameterNode # - # source://prism//lib/prism/node.rb#12887 + # source://prism//lib/prism/node.rb#13081 sig { params(params: T.untyped).returns(Prism::OptionalKeywordParameterNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12872 + # source://prism//lib/prism/node.rb#13066 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, name: Symbol, name_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#12900 + # source://prism//lib/prism/node.rb#13095 sig do params( keys: T::Array[Symbol] @@ -21341,23 +21607,31 @@ class Prism::OptionalKeywordParameterNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#12905 + # source://prism//lib/prism/node.rb#13105 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#12850 + # source://prism//lib/prism/node.rb#13043 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#12853 + # source://prism//lib/prism/node.rb#13046 sig { returns(Prism::Location) } def name_loc; end + # def repeated_parameter?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#13100 + sig { returns(T::Boolean) } + def repeated_parameter?; end + # Sometimes you want to check an instance of a node against a list of # classes to see what kind of behavior to perform. Usually this is done by # calling `[cls1, cls2].include?(node.class)` or putting the node into a @@ -21373,15 +21647,23 @@ class Prism::OptionalKeywordParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12928 + # source://prism//lib/prism/node.rb#13130 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#12856 + # source://prism//lib/prism/node.rb#13049 sig { returns(Prism::Node) } def value; end + private + + # Returns the value of attribute flags. + # + # source://prism//lib/prism/node.rb#13040 + sig { returns(Integer) } + def flags; end + class << self # Similar to #type, this method returns a symbol that you can use for # splitting on the type of the node without having to do a long === chain. @@ -21390,7 +21672,7 @@ class Prism::OptionalKeywordParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12938 + # source://prism//lib/prism/node.rb#13140 def type; end end end @@ -21401,15 +21683,16 @@ end # ^^^^^ # end # -# source://prism//lib/prism/node.rb#12949 +# source://prism//lib/prism/node.rb#13150 class Prism::OptionalParameterNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # def initialize: (Integer flags, Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void # # @return [OptionalParameterNode] a new instance of OptionalParameterNode # - # source://prism//lib/prism/node.rb#12962 + # source://prism//lib/prism/node.rb#13167 sig do params( + flags: Integer, name: Symbol, name_loc: Prism::Location, operator_loc: Prism::Location, @@ -21417,46 +21700,46 @@ class Prism::OptionalParameterNode < ::Prism::Node location: Prism::Location ).void end - def initialize(name, name_loc, operator_loc, value, location); end + def initialize(flags, name, name_loc, operator_loc, value, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12971 + # source://prism//lib/prism/node.rb#13177 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12976 + # source://prism//lib/prism/node.rb#13182 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12986 + # source://prism//lib/prism/node.rb#13192 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12981 + # source://prism//lib/prism/node.rb#13187 def compact_child_nodes; end # def copy: (**params) -> OptionalParameterNode # - # source://prism//lib/prism/node.rb#12991 + # source://prism//lib/prism/node.rb#13197 sig { params(params: T.untyped).returns(Prism::OptionalParameterNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12976 + # source://prism//lib/prism/node.rb#13182 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location } # - # source://prism//lib/prism/node.rb#13005 + # source://prism//lib/prism/node.rb#13212 sig do params( keys: T::Array[Symbol] @@ -21464,35 +21747,43 @@ class Prism::OptionalParameterNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#13015 + # source://prism//lib/prism/node.rb#13227 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#12950 + # source://prism//lib/prism/node.rb#13155 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#12953 + # source://prism//lib/prism/node.rb#13158 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#13010 + # source://prism//lib/prism/node.rb#13222 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#12956 + # source://prism//lib/prism/node.rb#13161 sig { returns(Prism::Location) } def operator_loc; end + # def repeated_parameter?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#13217 + sig { returns(T::Boolean) } + def repeated_parameter?; end + # Sometimes you want to check an instance of a node against a list of # classes to see what kind of behavior to perform. Usually this is done by # calling `[cls1, cls2].include?(node.class)` or putting the node into a @@ -21508,15 +21799,23 @@ class Prism::OptionalParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13039 + # source://prism//lib/prism/node.rb#13253 def type; end # attr_reader value: Node # - # source://prism//lib/prism/node.rb#12959 + # source://prism//lib/prism/node.rb#13164 sig { returns(Prism::Node) } def value; end + private + + # Returns the value of attribute flags. + # + # source://prism//lib/prism/node.rb#13152 + sig { returns(Integer) } + def flags; end + class << self # Similar to #type, this method returns a symbol that you can use for # splitting on the type of the node without having to do a long === chain. @@ -21525,7 +21824,7 @@ class Prism::OptionalParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13049 + # source://prism//lib/prism/node.rb#13263 def type; end end end @@ -21535,54 +21834,54 @@ end # left or right # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#13059 +# source://prism//lib/prism/node.rb#13272 class Prism::OrNode < ::Prism::Node - # def initialize: (left: Node, right: Node, operator_loc: Location, location: Location) -> void + # def initialize: (Node left, Node right, Location operator_loc, Location location) -> void # # @return [OrNode] a new instance of OrNode # - # source://prism//lib/prism/node.rb#13069 + # source://prism//lib/prism/node.rb#13298 sig { params(left: Prism::Node, right: Prism::Node, operator_loc: Prism::Location, location: Prism::Location).void } def initialize(left, right, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13077 + # source://prism//lib/prism/node.rb#13306 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13082 + # source://prism//lib/prism/node.rb#13311 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#13092 + # source://prism//lib/prism/node.rb#13321 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#13087 + # source://prism//lib/prism/node.rb#13316 def compact_child_nodes; end # def copy: (**params) -> OrNode # - # source://prism//lib/prism/node.rb#13097 + # source://prism//lib/prism/node.rb#13326 sig { params(params: T.untyped).returns(Prism::OrNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13082 + # source://prism//lib/prism/node.rb#13311 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { left: Node, right: Node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#13110 + # source://prism//lib/prism/node.rb#13339 sig do params( keys: T::Array[Symbol] @@ -21590,32 +21889,47 @@ class Prism::OrNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#13120 + # source://prism//lib/prism/node.rb#13349 def inspect(inspector = T.unsafe(nil)); end - # attr_reader left: Node + # Represents the left side of the expression. It can be any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression). + # + # left or right + # ^^^^ # - # source://prism//lib/prism/node.rb#13060 + # 1 || 2 + # ^ + # + # source://prism//lib/prism/node.rb#13280 sig { returns(Prism::Node) } def left; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#13115 + # source://prism//lib/prism/node.rb#13344 sig { returns(String) } def operator; end - # attr_reader operator_loc: Location + # The location of the `or` keyword or the `||` operator. # - # source://prism//lib/prism/node.rb#13066 + # left or right + # ^^ + # + # source://prism//lib/prism/node.rb#13295 sig { returns(Prism::Location) } def operator_loc; end - # attr_reader right: Node + # Represents the right side of the expression. It can be any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression). + # + # left || right + # ^^^^^ # - # source://prism//lib/prism/node.rb#13063 + # 1 or 2 + # ^ + # + # source://prism//lib/prism/node.rb#13289 sig { returns(Prism::Node) } def right; end @@ -21634,7 +21948,7 @@ class Prism::OrNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13144 + # source://prism//lib/prism/node.rb#13373 def type; end class << self @@ -21645,7 +21959,7 @@ class Prism::OrNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13154 + # source://prism//lib/prism/node.rb#13383 def type; end end end @@ -21892,19 +22206,29 @@ Prism::Pack::UNSIGNED = T.let(T.unsafe(nil), Symbol) # source://prism//lib/prism/pack.rb#55 Prism::Pack::UTF8 = T.let(T.unsafe(nil), Symbol) +# Flags for parameter nodes. +# +# source://prism//lib/prism/node.rb#17614 +module Prism::ParameterFlags; end + +# a parameter name that has been repeated in the method signature +# +# source://prism//lib/prism/node.rb#17616 +Prism::ParameterFlags::REPEATED_PARAMETER = T.let(T.unsafe(nil), Integer) + # Represents the list of parameters on a method, block, or lambda definition. # # def a(b, c, d) # ^^^^^^^ # end # -# source://prism//lib/prism/node.rb#13165 +# source://prism//lib/prism/node.rb#13393 class Prism::ParametersNode < ::Prism::Node - # def initialize: (requireds: Array[Node], optionals: Array[Node], rest: Node?, posts: Array[Node], keywords: Array[Node], keyword_rest: Node?, block: BlockParameterNode?, location: Location) -> void + # def initialize: (Array[Node] requireds, Array[Node] optionals, Node? rest, Array[Node] posts, Array[Node] keywords, Node? keyword_rest, BlockParameterNode? block, Location location) -> void # # @return [ParametersNode] a new instance of ParametersNode # - # source://prism//lib/prism/node.rb#13187 + # source://prism//lib/prism/node.rb#13416 sig do params( requireds: T::Array[Prism::Node], @@ -21919,50 +22243,50 @@ class Prism::ParametersNode < ::Prism::Node end def initialize(requireds, optionals, rest, posts, keywords, keyword_rest, block, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13199 + # source://prism//lib/prism/node.rb#13428 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader block: BlockParameterNode? # - # source://prism//lib/prism/node.rb#13184 + # source://prism//lib/prism/node.rb#13413 sig { returns(T.nilable(Prism::BlockParameterNode)) } def block; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13204 + # source://prism//lib/prism/node.rb#13433 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#13222 + # source://prism//lib/prism/node.rb#13451 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#13209 + # source://prism//lib/prism/node.rb#13438 def compact_child_nodes; end # def copy: (**params) -> ParametersNode # - # source://prism//lib/prism/node.rb#13227 + # source://prism//lib/prism/node.rb#13456 sig { params(params: T.untyped).returns(Prism::ParametersNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13204 + # source://prism//lib/prism/node.rb#13433 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { requireds: Array[Node], optionals: Array[Node], rest: Node?, posts: Array[Node], keywords: Array[Node], keyword_rest: Node?, block: BlockParameterNode?, location: Location } # - # source://prism//lib/prism/node.rb#13244 + # source://prism//lib/prism/node.rb#13473 sig do params( keys: T::Array[Symbol] @@ -21970,44 +22294,44 @@ class Prism::ParametersNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#13249 + # source://prism//lib/prism/node.rb#13478 def inspect(inspector = T.unsafe(nil)); end # attr_reader keyword_rest: Node? # - # source://prism//lib/prism/node.rb#13181 + # source://prism//lib/prism/node.rb#13410 sig { returns(T.nilable(Prism::Node)) } def keyword_rest; end # attr_reader keywords: Array[Node] # - # source://prism//lib/prism/node.rb#13178 + # source://prism//lib/prism/node.rb#13407 sig { returns(T::Array[Prism::Node]) } def keywords; end # attr_reader optionals: Array[Node] # - # source://prism//lib/prism/node.rb#13169 + # source://prism//lib/prism/node.rb#13398 sig { returns(T::Array[Prism::Node]) } def optionals; end # attr_reader posts: Array[Node] # - # source://prism//lib/prism/node.rb#13175 + # source://prism//lib/prism/node.rb#13404 sig { returns(T::Array[Prism::Node]) } def posts; end # attr_reader requireds: Array[Node] # - # source://prism//lib/prism/node.rb#13166 + # source://prism//lib/prism/node.rb#13395 sig { returns(T::Array[Prism::Node]) } def requireds; end # attr_reader rest: Node? # - # source://prism//lib/prism/node.rb#13172 + # source://prism//lib/prism/node.rb#13401 sig { returns(T.nilable(Prism::Node)) } def rest; end @@ -22031,7 +22355,7 @@ class Prism::ParametersNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13290 + # source://prism//lib/prism/node.rb#13519 def type; end class << self @@ -22042,7 +22366,7 @@ class Prism::ParametersNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13300 + # source://prism//lib/prism/node.rb#13529 def type; end end end @@ -22052,13 +22376,13 @@ end # (10 + 34) # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#13310 +# source://prism//lib/prism/node.rb#13538 class Prism::ParenthesesNode < ::Prism::Node - # def initialize: (body: Node?, opening_loc: Location, closing_loc: Location, location: Location) -> void + # def initialize: (Node? body, Location opening_loc, Location closing_loc, Location location) -> void # # @return [ParenthesesNode] a new instance of ParenthesesNode # - # source://prism//lib/prism/node.rb#13320 + # source://prism//lib/prism/node.rb#13549 sig do params( body: T.nilable(Prism::Node), @@ -22069,62 +22393,62 @@ class Prism::ParenthesesNode < ::Prism::Node end def initialize(body, opening_loc, closing_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13328 + # source://prism//lib/prism/node.rb#13557 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader body: Node? # - # source://prism//lib/prism/node.rb#13311 + # source://prism//lib/prism/node.rb#13540 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13337 + # source://prism//lib/prism/node.rb#13566 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#13377 + # source://prism//lib/prism/node.rb#13606 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#13317 + # source://prism//lib/prism/node.rb#13546 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#13349 + # source://prism//lib/prism/node.rb#13578 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#13342 + # source://prism//lib/prism/node.rb#13571 def compact_child_nodes; end # def copy: (**params) -> ParenthesesNode # - # source://prism//lib/prism/node.rb#13354 + # source://prism//lib/prism/node.rb#13583 sig { params(params: T.untyped).returns(Prism::ParenthesesNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13337 + # source://prism//lib/prism/node.rb#13566 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { body: Node?, opening_loc: Location, closing_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#13367 + # source://prism//lib/prism/node.rb#13596 sig do params( keys: T::Array[Symbol] @@ -22132,24 +22456,24 @@ class Prism::ParenthesesNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#13382 + # source://prism//lib/prism/node.rb#13611 def inspect(inspector = T.unsafe(nil)); end # def opening: () -> String # - # source://prism//lib/prism/node.rb#13372 + # source://prism//lib/prism/node.rb#13601 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#13314 + # source://prism//lib/prism/node.rb#13543 sig { returns(Prism::Location) } def opening_loc; end - # source://prism//lib/prism/node.rb#13332 + # source://prism//lib/prism/node.rb#13561 def set_newline_flag(newline_marked); end # Sometimes you want to check an instance of a node against a list of @@ -22167,7 +22491,7 @@ class Prism::ParenthesesNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13409 + # source://prism//lib/prism/node.rb#13638 def type; end class << self @@ -22178,7 +22502,7 @@ class Prism::ParenthesesNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13419 + # source://prism//lib/prism/node.rb#13648 def type; end end end @@ -22191,19 +22515,24 @@ class Prism::ParseError # # @return [ParseError] a new instance of ParseError # - # source://prism//lib/prism/parse_result.rb#316 - def initialize(message, location); end + # source://prism//lib/prism/parse_result.rb#319 + def initialize(message, location, level); end # Implement the hash pattern matching interface for ParseError. # - # source://prism//lib/prism/parse_result.rb#322 + # source://prism//lib/prism/parse_result.rb#326 def deconstruct_keys(keys); end # Returns a string representation of this error. # - # source://prism//lib/prism/parse_result.rb#327 + # source://prism//lib/prism/parse_result.rb#331 def inspect; end + # The level of this error. + # + # source://prism//lib/prism/parse_result.rb#316 + def level; end + # A Location object representing the location of this error in the source. # # source://prism//lib/prism/parse_result.rb#313 @@ -22221,13 +22550,13 @@ end # the AST, any comments that were encounters, and any errors that were # encountered. # -# source://prism//lib/prism/parse_result.rb#360 +# source://prism//lib/prism/parse_result.rb#368 class Prism::ParseResult # Create a new parse result object with the given values. # # @return [ParseResult] a new instance of ParseResult # - # source://prism//lib/prism/parse_result.rb#387 + # source://prism//lib/prism/parse_result.rb#395 def initialize(value, comments, magic_comments, data_loc, errors, warnings, source); end # Attach the list of comments to their respective locations in the tree. @@ -22237,25 +22566,25 @@ class Prism::ParseResult # The list of comments that were encountered during parsing. # - # source://prism//lib/prism/parse_result.rb#367 + # source://prism//lib/prism/parse_result.rb#375 sig { returns(T::Array[Prism::Comment]) } def comments; end - # An optional location that represents the location of the content after the - # __END__ marker. This content is loaded into the DATA constant when the - # file being parsed is the main file being executed. + # An optional location that represents the location of the __END__ marker + # and the rest of the content of the file. This content is loaded into the + # DATA constant when the file being parsed is the main file being executed. # - # source://prism//lib/prism/parse_result.rb#375 + # source://prism//lib/prism/parse_result.rb#383 def data_loc; end # Implement the hash pattern matching interface for ParseResult. # - # source://prism//lib/prism/parse_result.rb#398 + # source://prism//lib/prism/parse_result.rb#406 def deconstruct_keys(keys); end # The list of errors that were generated during parsing. # - # source://prism//lib/prism/parse_result.rb#378 + # source://prism//lib/prism/parse_result.rb#386 sig { returns(T::Array[Prism::ParseError]) } def errors; end @@ -22264,12 +22593,12 @@ class Prism::ParseResult # # @return [Boolean] # - # source://prism//lib/prism/parse_result.rb#410 + # source://prism//lib/prism/parse_result.rb#418 def failure?; end # The list of magic comments that were encountered during parsing. # - # source://prism//lib/prism/parse_result.rb#370 + # source://prism//lib/prism/parse_result.rb#378 def magic_comments; end # Walk the tree and mark nodes that are on a new line. @@ -22279,7 +22608,7 @@ class Prism::ParseResult # A Source instance that represents the source code that was parsed. # - # source://prism//lib/prism/parse_result.rb#384 + # source://prism//lib/prism/parse_result.rb#392 sig { returns(Prism::Source) } def source; end @@ -22288,20 +22617,20 @@ class Prism::ParseResult # # @return [Boolean] # - # source://prism//lib/prism/parse_result.rb#404 + # source://prism//lib/prism/parse_result.rb#412 def success?; end # The value that was generated by parsing. Normally this holds the AST, but # it can sometimes how a list of tokens or other results passed back from # the parser. # - # source://prism//lib/prism/parse_result.rb#364 + # source://prism//lib/prism/parse_result.rb#372 sig { returns(Prism::ProgramNode) } def value; end # The list of warnings that were generated during parsing. # - # source://prism//lib/prism/parse_result.rb#381 + # source://prism//lib/prism/parse_result.rb#389 sig { returns(T::Array[Prism::ParseWarning]) } def warnings; end end @@ -22423,7 +22752,7 @@ end # MarkNewlinesVisitor, since that visitor is responsible for marking the # newlines for JRuby/TruffleRuby. # -# source://prism//lib/prism/parse_result/newlines.rb#21 +# source://prism//lib/prism/parse_result/newlines.rb#20 class Prism::ParseResult::Newlines < ::Prism::Visitor # Create a new Newlines visitor with the given newline offsets. # @@ -22460,34 +22789,39 @@ end # This represents a warning that was encountered during parsing. # -# source://prism//lib/prism/parse_result.rb#333 +# source://prism//lib/prism/parse_result.rb#337 class Prism::ParseWarning # Create a new warning object with the given message and location. # # @return [ParseWarning] a new instance of ParseWarning # - # source://prism//lib/prism/parse_result.rb#341 - def initialize(message, location); end + # source://prism//lib/prism/parse_result.rb#348 + def initialize(message, location, level); end # Implement the hash pattern matching interface for ParseWarning. # - # source://prism//lib/prism/parse_result.rb#347 + # source://prism//lib/prism/parse_result.rb#355 def deconstruct_keys(keys); end # Returns a string representation of this warning. # - # source://prism//lib/prism/parse_result.rb#352 + # source://prism//lib/prism/parse_result.rb#360 def inspect; end + # The level of this warning. + # + # source://prism//lib/prism/parse_result.rb#345 + def level; end + # A Location object representing the location of this warning in the source. # - # source://prism//lib/prism/parse_result.rb#338 + # source://prism//lib/prism/parse_result.rb#342 sig { returns(Prism::Location) } def location; end # The message associated with this warning. # - # source://prism//lib/prism/parse_result.rb#335 + # source://prism//lib/prism/parse_result.rb#339 sig { returns(String) } def message; end end @@ -22635,7 +22969,7 @@ end # Raised when the query given to a pattern is either invalid Ruby syntax or # is using syntax that we don't yet support. # -# source://prism//lib/prism/pattern.rb#42 +# source://prism//lib/prism/pattern.rb#40 class Prism::Pattern::CompilationError < ::StandardError # Create a new CompilationError with the given representation of the node # that caused the error. @@ -22646,19 +22980,18 @@ class Prism::Pattern::CompilationError < ::StandardError def initialize(repr); end end -# Represents the use of the `^` operator for pinning an expression in a -# pattern matching expression. +# Represents the use of the `^` operator for pinning an expression in a pattern matching expression. # # foo in ^(bar) # ^^^^^^ # -# source://prism//lib/prism/node.rb#13430 +# source://prism//lib/prism/node.rb#13657 class Prism::PinnedExpressionNode < ::Prism::Node - # def initialize: (expression: Node, operator_loc: Location, lparen_loc: Location, rparen_loc: Location, location: Location) -> void + # def initialize: (Node expression, Location operator_loc, Location lparen_loc, Location rparen_loc, Location location) -> void # # @return [PinnedExpressionNode] a new instance of PinnedExpressionNode # - # source://prism//lib/prism/node.rb#13443 + # source://prism//lib/prism/node.rb#13671 sig do params( expression: Prism::Node, @@ -22670,44 +23003,44 @@ class Prism::PinnedExpressionNode < ::Prism::Node end def initialize(expression, operator_loc, lparen_loc, rparen_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13452 + # source://prism//lib/prism/node.rb#13680 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13457 + # source://prism//lib/prism/node.rb#13685 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#13467 + # source://prism//lib/prism/node.rb#13695 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#13462 + # source://prism//lib/prism/node.rb#13690 def compact_child_nodes; end # def copy: (**params) -> PinnedExpressionNode # - # source://prism//lib/prism/node.rb#13472 + # source://prism//lib/prism/node.rb#13700 sig { params(params: T.untyped).returns(Prism::PinnedExpressionNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13457 + # source://prism//lib/prism/node.rb#13685 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { expression: Node, operator_loc: Location, lparen_loc: Location, rparen_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#13486 + # source://prism//lib/prism/node.rb#13714 sig do params( keys: T::Array[Symbol] @@ -22717,48 +23050,48 @@ class Prism::PinnedExpressionNode < ::Prism::Node # attr_reader expression: Node # - # source://prism//lib/prism/node.rb#13431 + # source://prism//lib/prism/node.rb#13659 sig { returns(Prism::Node) } def expression; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#13506 + # source://prism//lib/prism/node.rb#13734 def inspect(inspector = T.unsafe(nil)); end # def lparen: () -> String # - # source://prism//lib/prism/node.rb#13496 + # source://prism//lib/prism/node.rb#13724 sig { returns(String) } def lparen; end # attr_reader lparen_loc: Location # - # source://prism//lib/prism/node.rb#13437 + # source://prism//lib/prism/node.rb#13665 sig { returns(Prism::Location) } def lparen_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#13491 + # source://prism//lib/prism/node.rb#13719 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#13434 + # source://prism//lib/prism/node.rb#13662 sig { returns(Prism::Location) } def operator_loc; end # def rparen: () -> String # - # source://prism//lib/prism/node.rb#13501 + # source://prism//lib/prism/node.rb#13729 sig { returns(String) } def rparen; end # attr_reader rparen_loc: Location # - # source://prism//lib/prism/node.rb#13440 + # source://prism//lib/prism/node.rb#13668 sig { returns(Prism::Location) } def rparen_loc; end @@ -22777,7 +23110,7 @@ class Prism::PinnedExpressionNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13530 + # source://prism//lib/prism/node.rb#13758 def type; end class << self @@ -22788,65 +23121,64 @@ class Prism::PinnedExpressionNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13540 + # source://prism//lib/prism/node.rb#13768 def type; end end end -# Represents the use of the `^` operator for pinning a variable in a pattern -# matching expression. +# Represents the use of the `^` operator for pinning a variable in a pattern matching expression. # # foo in ^bar # ^^^^ # -# source://prism//lib/prism/node.rb#13551 +# source://prism//lib/prism/node.rb#13777 class Prism::PinnedVariableNode < ::Prism::Node - # def initialize: (variable: Node, operator_loc: Location, location: Location) -> void + # def initialize: (Node variable, Location operator_loc, Location location) -> void # # @return [PinnedVariableNode] a new instance of PinnedVariableNode # - # source://prism//lib/prism/node.rb#13558 + # source://prism//lib/prism/node.rb#13785 sig { params(variable: Prism::Node, operator_loc: Prism::Location, location: Prism::Location).void } def initialize(variable, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13565 + # source://prism//lib/prism/node.rb#13792 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13570 + # source://prism//lib/prism/node.rb#13797 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#13580 + # source://prism//lib/prism/node.rb#13807 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#13575 + # source://prism//lib/prism/node.rb#13802 def compact_child_nodes; end # def copy: (**params) -> PinnedVariableNode # - # source://prism//lib/prism/node.rb#13585 + # source://prism//lib/prism/node.rb#13812 sig { params(params: T.untyped).returns(Prism::PinnedVariableNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13570 + # source://prism//lib/prism/node.rb#13797 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { variable: Node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#13597 + # source://prism//lib/prism/node.rb#13824 sig do params( keys: T::Array[Symbol] @@ -22854,20 +23186,20 @@ class Prism::PinnedVariableNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#13607 + # source://prism//lib/prism/node.rb#13834 def inspect(inspector = T.unsafe(nil)); end # def operator: () -> String # - # source://prism//lib/prism/node.rb#13602 + # source://prism//lib/prism/node.rb#13829 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#13555 + # source://prism//lib/prism/node.rb#13782 sig { returns(Prism::Location) } def operator_loc; end @@ -22886,12 +23218,12 @@ class Prism::PinnedVariableNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13629 + # source://prism//lib/prism/node.rb#13856 def type; end # attr_reader variable: Node # - # source://prism//lib/prism/node.rb#13552 + # source://prism//lib/prism/node.rb#13779 sig { returns(Prism::Node) } def variable; end @@ -22903,7 +23235,7 @@ class Prism::PinnedVariableNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13639 + # source://prism//lib/prism/node.rb#13866 def type; end end end @@ -22913,13 +23245,13 @@ end # END { foo } # ^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#13649 +# source://prism//lib/prism/node.rb#13875 class Prism::PostExecutionNode < ::Prism::Node - # def initialize: (statements: StatementsNode?, keyword_loc: Location, opening_loc: Location, closing_loc: Location, location: Location) -> void + # def initialize: (StatementsNode? statements, Location keyword_loc, Location opening_loc, Location closing_loc, Location location) -> void # # @return [PostExecutionNode] a new instance of PostExecutionNode # - # source://prism//lib/prism/node.rb#13662 + # source://prism//lib/prism/node.rb#13889 sig do params( statements: T.nilable(Prism::StatementsNode), @@ -22931,56 +23263,56 @@ class Prism::PostExecutionNode < ::Prism::Node end def initialize(statements, keyword_loc, opening_loc, closing_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13671 + # source://prism//lib/prism/node.rb#13898 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13676 + # source://prism//lib/prism/node.rb#13903 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#13722 + # source://prism//lib/prism/node.rb#13949 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#13659 + # source://prism//lib/prism/node.rb#13886 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#13688 + # source://prism//lib/prism/node.rb#13915 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#13681 + # source://prism//lib/prism/node.rb#13908 def compact_child_nodes; end # def copy: (**params) -> PostExecutionNode # - # source://prism//lib/prism/node.rb#13693 + # source://prism//lib/prism/node.rb#13920 sig { params(params: T.untyped).returns(Prism::PostExecutionNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13676 + # source://prism//lib/prism/node.rb#13903 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { statements: StatementsNode?, keyword_loc: Location, opening_loc: Location, closing_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#13707 + # source://prism//lib/prism/node.rb#13934 sig do params( keys: T::Array[Symbol] @@ -22988,38 +23320,38 @@ class Prism::PostExecutionNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#13727 + # source://prism//lib/prism/node.rb#13954 def inspect(inspector = T.unsafe(nil)); end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#13712 + # source://prism//lib/prism/node.rb#13939 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#13653 + # source://prism//lib/prism/node.rb#13880 sig { returns(Prism::Location) } def keyword_loc; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#13717 + # source://prism//lib/prism/node.rb#13944 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#13656 + # source://prism//lib/prism/node.rb#13883 sig { returns(Prism::Location) } def opening_loc; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#13650 + # source://prism//lib/prism/node.rb#13877 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -23038,7 +23370,7 @@ class Prism::PostExecutionNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13755 + # source://prism//lib/prism/node.rb#13982 def type; end class << self @@ -23049,7 +23381,7 @@ class Prism::PostExecutionNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13765 + # source://prism//lib/prism/node.rb#13992 def type; end end end @@ -23059,13 +23391,13 @@ end # BEGIN { foo } # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#13775 +# source://prism//lib/prism/node.rb#14001 class Prism::PreExecutionNode < ::Prism::Node - # def initialize: (statements: StatementsNode?, keyword_loc: Location, opening_loc: Location, closing_loc: Location, location: Location) -> void + # def initialize: (StatementsNode? statements, Location keyword_loc, Location opening_loc, Location closing_loc, Location location) -> void # # @return [PreExecutionNode] a new instance of PreExecutionNode # - # source://prism//lib/prism/node.rb#13788 + # source://prism//lib/prism/node.rb#14015 sig do params( statements: T.nilable(Prism::StatementsNode), @@ -23077,56 +23409,56 @@ class Prism::PreExecutionNode < ::Prism::Node end def initialize(statements, keyword_loc, opening_loc, closing_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13797 + # source://prism//lib/prism/node.rb#14024 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13802 + # source://prism//lib/prism/node.rb#14029 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#13848 + # source://prism//lib/prism/node.rb#14075 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#13785 + # source://prism//lib/prism/node.rb#14012 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#13814 + # source://prism//lib/prism/node.rb#14041 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#13807 + # source://prism//lib/prism/node.rb#14034 def compact_child_nodes; end # def copy: (**params) -> PreExecutionNode # - # source://prism//lib/prism/node.rb#13819 + # source://prism//lib/prism/node.rb#14046 sig { params(params: T.untyped).returns(Prism::PreExecutionNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13802 + # source://prism//lib/prism/node.rb#14029 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { statements: StatementsNode?, keyword_loc: Location, opening_loc: Location, closing_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#13833 + # source://prism//lib/prism/node.rb#14060 sig do params( keys: T::Array[Symbol] @@ -23134,38 +23466,38 @@ class Prism::PreExecutionNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#13853 + # source://prism//lib/prism/node.rb#14080 def inspect(inspector = T.unsafe(nil)); end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#13838 + # source://prism//lib/prism/node.rb#14065 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#13779 + # source://prism//lib/prism/node.rb#14006 sig { returns(Prism::Location) } def keyword_loc; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#13843 + # source://prism//lib/prism/node.rb#14070 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#13782 + # source://prism//lib/prism/node.rb#14009 sig { returns(Prism::Location) } def opening_loc; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#13776 + # source://prism//lib/prism/node.rb#14003 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -23184,7 +23516,7 @@ class Prism::PreExecutionNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13881 + # source://prism//lib/prism/node.rb#14108 def type; end class << self @@ -23195,61 +23527,61 @@ class Prism::PreExecutionNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13891 + # source://prism//lib/prism/node.rb#14118 def type; end end end # The top level node of any parse tree. # -# source://prism//lib/prism/node.rb#13898 +# source://prism//lib/prism/node.rb#14124 class Prism::ProgramNode < ::Prism::Node - # def initialize: (locals: Array[Symbol], statements: StatementsNode, location: Location) -> void + # def initialize: (Array[Symbol] locals, StatementsNode statements, Location location) -> void # # @return [ProgramNode] a new instance of ProgramNode # - # source://prism//lib/prism/node.rb#13905 + # source://prism//lib/prism/node.rb#14132 sig { params(locals: T::Array[Symbol], statements: Prism::StatementsNode, location: Prism::Location).void } def initialize(locals, statements, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13912 + # source://prism//lib/prism/node.rb#14139 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13917 + # source://prism//lib/prism/node.rb#14144 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#13927 + # source://prism//lib/prism/node.rb#14154 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#13922 + # source://prism//lib/prism/node.rb#14149 def compact_child_nodes; end # def copy: (**params) -> ProgramNode # - # source://prism//lib/prism/node.rb#13932 + # source://prism//lib/prism/node.rb#14159 sig { params(params: T.untyped).returns(Prism::ProgramNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13917 + # source://prism//lib/prism/node.rb#14144 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { locals: Array[Symbol], statements: StatementsNode, location: Location } # - # source://prism//lib/prism/node.rb#13944 + # source://prism//lib/prism/node.rb#14171 sig do params( keys: T::Array[Symbol] @@ -23257,20 +23589,20 @@ class Prism::ProgramNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#13949 + # source://prism//lib/prism/node.rb#14176 def inspect(inspector = T.unsafe(nil)); end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#13899 + # source://prism//lib/prism/node.rb#14126 sig { returns(T::Array[Symbol]) } def locals; end # attr_reader statements: StatementsNode # - # source://prism//lib/prism/node.rb#13902 + # source://prism//lib/prism/node.rb#14129 sig { returns(Prism::StatementsNode) } def statements; end @@ -23289,7 +23621,7 @@ class Prism::ProgramNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13971 + # source://prism//lib/prism/node.rb#14198 def type; end class << self @@ -23300,19 +23632,19 @@ class Prism::ProgramNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13981 + # source://prism//lib/prism/node.rb#14208 def type; end end end # Flags for range and flip-flop nodes. # -# source://prism//lib/prism/node.rb#17337 +# source://prism//lib/prism/node.rb#17620 module Prism::RangeFlags; end # ... operator # -# source://prism//lib/prism/node.rb#17339 +# source://prism//lib/prism/node.rb#17622 Prism::RangeFlags::EXCLUDE_END = T.let(T.unsafe(nil), Integer) # Represents the use of the `..` or `...` operators. @@ -23323,13 +23655,13 @@ Prism::RangeFlags::EXCLUDE_END = T.let(T.unsafe(nil), Integer) # c if a =~ /left/ ... b =~ /right/ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#13994 +# source://prism//lib/prism/node.rb#14220 class Prism::RangeNode < ::Prism::Node - # def initialize: (flags: Integer, left: Node?, right: Node?, operator_loc: Location, location: Location) -> void + # def initialize: (Integer flags, Node? left, Node? right, Location operator_loc, Location location) -> void # # @return [RangeNode] a new instance of RangeNode # - # source://prism//lib/prism/node.rb#14007 + # source://prism//lib/prism/node.rb#14247 sig do params( flags: Integer, @@ -23341,44 +23673,44 @@ class Prism::RangeNode < ::Prism::Node end def initialize(flags, left, right, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14016 + # source://prism//lib/prism/node.rb#14256 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14021 + # source://prism//lib/prism/node.rb#14261 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14034 + # source://prism//lib/prism/node.rb#14274 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#14026 + # source://prism//lib/prism/node.rb#14266 def compact_child_nodes; end # def copy: (**params) -> RangeNode # - # source://prism//lib/prism/node.rb#14039 + # source://prism//lib/prism/node.rb#14279 sig { params(params: T.untyped).returns(Prism::RangeNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14021 + # source://prism//lib/prism/node.rb#14261 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, left: Node?, right: Node?, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#14053 + # source://prism//lib/prism/node.rb#14293 sig do params( keys: T::Array[Symbol] @@ -23390,36 +23722,49 @@ class Prism::RangeNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#14058 + # source://prism//lib/prism/node.rb#14298 sig { returns(T::Boolean) } def exclude_end?; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#14068 + # source://prism//lib/prism/node.rb#14308 def inspect(inspector = T.unsafe(nil)); end - # attr_reader left: Node? + # The left-hand side of the range, if present. It can be either `nil` or any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression). + # + # 1... + # ^ # - # source://prism//lib/prism/node.rb#13998 + # hello...goodbye + # ^^^^^ + # + # source://prism//lib/prism/node.rb#14231 sig { returns(T.nilable(Prism::Node)) } def left; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#14063 + # source://prism//lib/prism/node.rb#14303 sig { returns(String) } def operator; end - # attr_reader operator_loc: Location + # The location of the `..` or `...` operator. # - # source://prism//lib/prism/node.rb#14004 + # source://prism//lib/prism/node.rb#14244 sig { returns(Prism::Location) } def operator_loc; end - # attr_reader right: Node? + # The right-hand side of the range, if present. It can be either `nil` or any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression). + # + # ..5 + # ^ # - # source://prism//lib/prism/node.rb#14001 + # 1...foo + # ^^^ + # If neither right-hand or left-hand side was included, this will be a MissingNode. + # + # source://prism//lib/prism/node.rb#14241 sig { returns(T.nilable(Prism::Node)) } def right; end @@ -23438,14 +23783,14 @@ class Prism::RangeNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14102 + # source://prism//lib/prism/node.rb#14342 def type; end private # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#13995 + # source://prism//lib/prism/node.rb#14222 sig { returns(Integer) } def flags; end @@ -23457,7 +23802,7 @@ class Prism::RangeNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14112 + # source://prism//lib/prism/node.rb#14352 def type; end end end @@ -23467,54 +23812,54 @@ end # 1.0r # ^^^^ # -# source://prism//lib/prism/node.rb#14122 +# source://prism//lib/prism/node.rb#14361 class Prism::RationalNode < ::Prism::Node - # def initialize: (numeric: Node, location: Location) -> void + # def initialize: (Node numeric, Location location) -> void # # @return [RationalNode] a new instance of RationalNode # - # source://prism//lib/prism/node.rb#14126 + # source://prism//lib/prism/node.rb#14366 sig { params(numeric: Prism::Node, location: Prism::Location).void } def initialize(numeric, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14132 + # source://prism//lib/prism/node.rb#14372 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14137 + # source://prism//lib/prism/node.rb#14377 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14147 + # source://prism//lib/prism/node.rb#14387 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#14142 + # source://prism//lib/prism/node.rb#14382 def compact_child_nodes; end # def copy: (**params) -> RationalNode # - # source://prism//lib/prism/node.rb#14152 + # source://prism//lib/prism/node.rb#14392 sig { params(params: T.untyped).returns(Prism::RationalNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14137 + # source://prism//lib/prism/node.rb#14377 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { numeric: Node, location: Location } # - # source://prism//lib/prism/node.rb#14163 + # source://prism//lib/prism/node.rb#14403 sig do params( keys: T::Array[Symbol] @@ -23522,14 +23867,14 @@ class Prism::RationalNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#14168 + # source://prism//lib/prism/node.rb#14408 def inspect(inspector = T.unsafe(nil)); end # attr_reader numeric: Node # - # source://prism//lib/prism/node.rb#14123 + # source://prism//lib/prism/node.rb#14363 sig { returns(Prism::Node) } def numeric; end @@ -23548,7 +23893,7 @@ class Prism::RationalNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14189 + # source://prism//lib/prism/node.rb#14429 def type; end # Returns the value of the node as a Ruby Rational. @@ -23564,7 +23909,7 @@ class Prism::RationalNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14199 + # source://prism//lib/prism/node.rb#14439 def type; end end end @@ -23574,54 +23919,54 @@ end # redo # ^^^^ # -# source://prism//lib/prism/node.rb#14209 +# source://prism//lib/prism/node.rb#14448 class Prism::RedoNode < ::Prism::Node - # def initialize: (location: Location) -> void + # def initialize: (Location location) -> void # # @return [RedoNode] a new instance of RedoNode # - # source://prism//lib/prism/node.rb#14210 + # source://prism//lib/prism/node.rb#14450 sig { params(location: Prism::Location).void } def initialize(location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14215 + # source://prism//lib/prism/node.rb#14455 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14220 + # source://prism//lib/prism/node.rb#14460 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14230 + # source://prism//lib/prism/node.rb#14470 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#14225 + # source://prism//lib/prism/node.rb#14465 def compact_child_nodes; end # def copy: (**params) -> RedoNode # - # source://prism//lib/prism/node.rb#14235 + # source://prism//lib/prism/node.rb#14475 sig { params(params: T.untyped).returns(Prism::RedoNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14220 + # source://prism//lib/prism/node.rb#14460 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#14245 + # source://prism//lib/prism/node.rb#14485 sig do params( keys: T::Array[Symbol] @@ -23629,9 +23974,9 @@ class Prism::RedoNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#14250 + # source://prism//lib/prism/node.rb#14490 def inspect(inspector = T.unsafe(nil)); end # Sometimes you want to check an instance of a node against a list of @@ -23649,7 +23994,7 @@ class Prism::RedoNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14269 + # source://prism//lib/prism/node.rb#14509 def type; end class << self @@ -23660,69 +24005,69 @@ class Prism::RedoNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14279 + # source://prism//lib/prism/node.rb#14519 def type; end end end # Flags for regular expression and match last line nodes. # -# source://prism//lib/prism/node.rb#17343 +# source://prism//lib/prism/node.rb#17626 module Prism::RegularExpressionFlags; end # n - forces the ASCII-8BIT encoding # -# source://prism//lib/prism/node.rb#17360 +# source://prism//lib/prism/node.rb#17643 Prism::RegularExpressionFlags::ASCII_8BIT = T.let(T.unsafe(nil), Integer) # e - forces the EUC-JP encoding # -# source://prism//lib/prism/node.rb#17357 +# source://prism//lib/prism/node.rb#17640 Prism::RegularExpressionFlags::EUC_JP = T.let(T.unsafe(nil), Integer) # x - ignores whitespace and allows comments in regular expressions # -# source://prism//lib/prism/node.rb#17348 +# source://prism//lib/prism/node.rb#17631 Prism::RegularExpressionFlags::EXTENDED = T.let(T.unsafe(nil), Integer) # internal bytes forced the encoding to binary # -# source://prism//lib/prism/node.rb#17372 +# source://prism//lib/prism/node.rb#17655 Prism::RegularExpressionFlags::FORCED_BINARY_ENCODING = T.let(T.unsafe(nil), Integer) # internal bytes forced the encoding to US-ASCII # -# source://prism//lib/prism/node.rb#17375 +# source://prism//lib/prism/node.rb#17658 Prism::RegularExpressionFlags::FORCED_US_ASCII_ENCODING = T.let(T.unsafe(nil), Integer) # internal bytes forced the encoding to UTF-8 # -# source://prism//lib/prism/node.rb#17369 +# source://prism//lib/prism/node.rb#17652 Prism::RegularExpressionFlags::FORCED_UTF8_ENCODING = T.let(T.unsafe(nil), Integer) # i - ignores the case of characters when matching # -# source://prism//lib/prism/node.rb#17345 +# source://prism//lib/prism/node.rb#17628 Prism::RegularExpressionFlags::IGNORE_CASE = T.let(T.unsafe(nil), Integer) # m - allows $ to match the end of lines within strings # -# source://prism//lib/prism/node.rb#17351 +# source://prism//lib/prism/node.rb#17634 Prism::RegularExpressionFlags::MULTI_LINE = T.let(T.unsafe(nil), Integer) # o - only interpolates values into the regular expression once # -# source://prism//lib/prism/node.rb#17354 +# source://prism//lib/prism/node.rb#17637 Prism::RegularExpressionFlags::ONCE = T.let(T.unsafe(nil), Integer) # u - forces the UTF-8 encoding # -# source://prism//lib/prism/node.rb#17366 +# source://prism//lib/prism/node.rb#17649 Prism::RegularExpressionFlags::UTF_8 = T.let(T.unsafe(nil), Integer) # s - forces the Windows-31J encoding # -# source://prism//lib/prism/node.rb#17363 +# source://prism//lib/prism/node.rb#17646 Prism::RegularExpressionFlags::WINDOWS_31J = T.let(T.unsafe(nil), Integer) # Represents a regular expression literal with no interpolation. @@ -23730,15 +24075,15 @@ Prism::RegularExpressionFlags::WINDOWS_31J = T.let(T.unsafe(nil), Integer) # /foo/i # ^^^^^^ # -# source://prism//lib/prism/node.rb#14289 +# source://prism//lib/prism/node.rb#14528 class Prism::RegularExpressionNode < ::Prism::Node include ::Prism::RegularExpressionOptions - # def initialize: (flags: Integer, opening_loc: Location, content_loc: Location, closing_loc: Location, unescaped: String, location: Location) -> void + # def initialize: (Integer flags, Location opening_loc, Location content_loc, Location closing_loc, String unescaped, Location location) -> void # # @return [RegularExpressionNode] a new instance of RegularExpressionNode # - # source://prism//lib/prism/node.rb#14305 + # source://prism//lib/prism/node.rb#14545 sig do params( flags: Integer, @@ -23751,9 +24096,9 @@ class Prism::RegularExpressionNode < ::Prism::Node end def initialize(flags, opening_loc, content_loc, closing_loc, unescaped, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14315 + # source://prism//lib/prism/node.rb#14555 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end @@ -23761,66 +24106,66 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#14380 + # source://prism//lib/prism/node.rb#14620 sig { returns(T::Boolean) } def ascii_8bit?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14320 + # source://prism//lib/prism/node.rb#14560 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#14420 + # source://prism//lib/prism/node.rb#14660 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#14299 + # source://prism//lib/prism/node.rb#14539 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14330 + # source://prism//lib/prism/node.rb#14570 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#14325 + # source://prism//lib/prism/node.rb#14565 def compact_child_nodes; end # def content: () -> String # - # source://prism//lib/prism/node.rb#14415 + # source://prism//lib/prism/node.rb#14655 sig { returns(String) } def content; end # attr_reader content_loc: Location # - # source://prism//lib/prism/node.rb#14296 + # source://prism//lib/prism/node.rb#14536 sig { returns(Prism::Location) } def content_loc; end # def copy: (**params) -> RegularExpressionNode # - # source://prism//lib/prism/node.rb#14335 + # source://prism//lib/prism/node.rb#14575 sig { params(params: T.untyped).returns(Prism::RegularExpressionNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14320 + # source://prism//lib/prism/node.rb#14560 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, opening_loc: Location, content_loc: Location, closing_loc: Location, unescaped: String, location: Location } # - # source://prism//lib/prism/node.rb#14350 + # source://prism//lib/prism/node.rb#14590 sig do params( keys: T::Array[Symbol] @@ -23832,7 +24177,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#14375 + # source://prism//lib/prism/node.rb#14615 sig { returns(T::Boolean) } def euc_jp?; end @@ -23840,7 +24185,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#14360 + # source://prism//lib/prism/node.rb#14600 sig { returns(T::Boolean) } def extended?; end @@ -23848,7 +24193,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#14400 + # source://prism//lib/prism/node.rb#14640 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -23856,7 +24201,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#14405 + # source://prism//lib/prism/node.rb#14645 sig { returns(T::Boolean) } def forced_us_ascii_encoding?; end @@ -23864,7 +24209,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#14395 + # source://prism//lib/prism/node.rb#14635 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -23872,20 +24217,20 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#14355 + # source://prism//lib/prism/node.rb#14595 sig { returns(T::Boolean) } def ignore_case?; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#14425 + # source://prism//lib/prism/node.rb#14665 def inspect(inspector = T.unsafe(nil)); end # def multi_line?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#14365 + # source://prism//lib/prism/node.rb#14605 sig { returns(T::Boolean) } def multi_line?; end @@ -23893,19 +24238,19 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#14370 + # source://prism//lib/prism/node.rb#14610 sig { returns(T::Boolean) } def once?; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#14410 + # source://prism//lib/prism/node.rb#14650 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#14293 + # source://prism//lib/prism/node.rb#14533 sig { returns(Prism::Location) } def opening_loc; end @@ -23924,12 +24269,12 @@ class Prism::RegularExpressionNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14450 + # source://prism//lib/prism/node.rb#14690 def type; end # attr_reader unescaped: String # - # source://prism//lib/prism/node.rb#14302 + # source://prism//lib/prism/node.rb#14542 sig { returns(String) } def unescaped; end @@ -23937,7 +24282,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#14390 + # source://prism//lib/prism/node.rb#14630 sig { returns(T::Boolean) } def utf_8?; end @@ -23945,7 +24290,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#14385 + # source://prism//lib/prism/node.rb#14625 sig { returns(T::Boolean) } def windows_31j?; end @@ -23953,7 +24298,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#14290 + # source://prism//lib/prism/node.rb#14530 sig { returns(Integer) } def flags; end @@ -23965,7 +24310,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14460 + # source://prism//lib/prism/node.rb#14700 def type; end end end @@ -23985,54 +24330,54 @@ end # ^^ # end # -# source://prism//lib/prism/node.rb#14471 +# source://prism//lib/prism/node.rb#14710 class Prism::RequiredKeywordParameterNode < ::Prism::Node - # def initialize: (name: Symbol, name_loc: Location, location: Location) -> void + # def initialize: (Integer flags, Symbol name, Location name_loc, Location location) -> void # # @return [RequiredKeywordParameterNode] a new instance of RequiredKeywordParameterNode # - # source://prism//lib/prism/node.rb#14478 - sig { params(name: Symbol, name_loc: Prism::Location, location: Prism::Location).void } - def initialize(name, name_loc, location); end + # source://prism//lib/prism/node.rb#14721 + sig { params(flags: Integer, name: Symbol, name_loc: Prism::Location, location: Prism::Location).void } + def initialize(flags, name, name_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14485 + # source://prism//lib/prism/node.rb#14729 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14490 + # source://prism//lib/prism/node.rb#14734 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14500 + # source://prism//lib/prism/node.rb#14744 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#14495 + # source://prism//lib/prism/node.rb#14739 def compact_child_nodes; end # def copy: (**params) -> RequiredKeywordParameterNode # - # source://prism//lib/prism/node.rb#14505 + # source://prism//lib/prism/node.rb#14749 sig { params(params: T.untyped).returns(Prism::RequiredKeywordParameterNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14490 + # source://prism//lib/prism/node.rb#14734 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, name: Symbol, name_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#14517 + # source://prism//lib/prism/node.rb#14762 sig do params( keys: T::Array[Symbol] @@ -24040,23 +24385,31 @@ class Prism::RequiredKeywordParameterNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#14522 + # source://prism//lib/prism/node.rb#14772 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#14472 + # source://prism//lib/prism/node.rb#14715 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#14475 + # source://prism//lib/prism/node.rb#14718 sig { returns(Prism::Location) } def name_loc; end + # def repeated_parameter?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#14767 + sig { returns(T::Boolean) } + def repeated_parameter?; end + # Sometimes you want to check an instance of a node against a list of # classes to see what kind of behavior to perform. Usually this is done by # calling `[cls1, cls2].include?(node.class)` or putting the node into a @@ -24072,9 +24425,17 @@ class Prism::RequiredKeywordParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14543 + # source://prism//lib/prism/node.rb#14795 def type; end + private + + # Returns the value of attribute flags. + # + # source://prism//lib/prism/node.rb#14712 + sig { returns(Integer) } + def flags; end + class << self # Similar to #type, this method returns a symbol that you can use for # splitting on the type of the node without having to do a long === chain. @@ -24083,7 +24444,7 @@ class Prism::RequiredKeywordParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14553 + # source://prism//lib/prism/node.rb#14805 def type; end end end @@ -24094,54 +24455,54 @@ end # ^ # end # -# source://prism//lib/prism/node.rb#14564 +# source://prism//lib/prism/node.rb#14815 class Prism::RequiredParameterNode < ::Prism::Node - # def initialize: (name: Symbol, location: Location) -> void + # def initialize: (Integer flags, Symbol name, Location location) -> void # # @return [RequiredParameterNode] a new instance of RequiredParameterNode # - # source://prism//lib/prism/node.rb#14568 - sig { params(name: Symbol, location: Prism::Location).void } - def initialize(name, location); end + # source://prism//lib/prism/node.rb#14823 + sig { params(flags: Integer, name: Symbol, location: Prism::Location).void } + def initialize(flags, name, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14574 + # source://prism//lib/prism/node.rb#14830 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14579 + # source://prism//lib/prism/node.rb#14835 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14589 + # source://prism//lib/prism/node.rb#14845 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#14584 + # source://prism//lib/prism/node.rb#14840 def compact_child_nodes; end # def copy: (**params) -> RequiredParameterNode # - # source://prism//lib/prism/node.rb#14594 + # source://prism//lib/prism/node.rb#14850 sig { params(params: T.untyped).returns(Prism::RequiredParameterNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14579 + # source://prism//lib/prism/node.rb#14835 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#14605 + # source://prism//lib/prism/node.rb#14862 sig do params( keys: T::Array[Symbol] @@ -24149,17 +24510,25 @@ class Prism::RequiredParameterNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#14610 + # source://prism//lib/prism/node.rb#14872 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#14565 + # source://prism//lib/prism/node.rb#14820 sig { returns(Symbol) } def name; end + # def repeated_parameter?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#14867 + sig { returns(T::Boolean) } + def repeated_parameter?; end + # Sometimes you want to check an instance of a node against a list of # classes to see what kind of behavior to perform. Usually this is done by # calling `[cls1, cls2].include?(node.class)` or putting the node into a @@ -24175,9 +24544,17 @@ class Prism::RequiredParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14630 + # source://prism//lib/prism/node.rb#14894 def type; end + private + + # Returns the value of attribute flags. + # + # source://prism//lib/prism/node.rb#14817 + sig { returns(Integer) } + def flags; end + class << self # Similar to #type, this method returns a symbol that you can use for # splitting on the type of the node without having to do a long === chain. @@ -24186,7 +24563,7 @@ class Prism::RequiredParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14640 + # source://prism//lib/prism/node.rb#14904 def type; end end end @@ -24196,13 +24573,13 @@ end # foo rescue nil # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#14650 +# source://prism//lib/prism/node.rb#14913 class Prism::RescueModifierNode < ::Prism::Node - # def initialize: (expression: Node, keyword_loc: Location, rescue_expression: Node, location: Location) -> void + # def initialize: (Node expression, Location keyword_loc, Node rescue_expression, Location location) -> void # # @return [RescueModifierNode] a new instance of RescueModifierNode # - # source://prism//lib/prism/node.rb#14660 + # source://prism//lib/prism/node.rb#14924 sig do params( expression: Prism::Node, @@ -24213,44 +24590,44 @@ class Prism::RescueModifierNode < ::Prism::Node end def initialize(expression, keyword_loc, rescue_expression, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14668 + # source://prism//lib/prism/node.rb#14932 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14677 + # source://prism//lib/prism/node.rb#14941 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14687 + # source://prism//lib/prism/node.rb#14951 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#14682 + # source://prism//lib/prism/node.rb#14946 def compact_child_nodes; end # def copy: (**params) -> RescueModifierNode # - # source://prism//lib/prism/node.rb#14692 + # source://prism//lib/prism/node.rb#14956 sig { params(params: T.untyped).returns(Prism::RescueModifierNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14677 + # source://prism//lib/prism/node.rb#14941 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { expression: Node, keyword_loc: Location, rescue_expression: Node, location: Location } # - # source://prism//lib/prism/node.rb#14705 + # source://prism//lib/prism/node.rb#14969 sig do params( keys: T::Array[Symbol] @@ -24260,34 +24637,34 @@ class Prism::RescueModifierNode < ::Prism::Node # attr_reader expression: Node # - # source://prism//lib/prism/node.rb#14651 + # source://prism//lib/prism/node.rb#14915 sig { returns(Prism::Node) } def expression; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#14715 + # source://prism//lib/prism/node.rb#14979 def inspect(inspector = T.unsafe(nil)); end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#14710 + # source://prism//lib/prism/node.rb#14974 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#14654 + # source://prism//lib/prism/node.rb#14918 sig { returns(Prism::Location) } def keyword_loc; end # attr_reader rescue_expression: Node # - # source://prism//lib/prism/node.rb#14657 + # source://prism//lib/prism/node.rb#14921 sig { returns(Prism::Node) } def rescue_expression; end - # source://prism//lib/prism/node.rb#14672 + # source://prism//lib/prism/node.rb#14936 def set_newline_flag(newline_marked); end # Sometimes you want to check an instance of a node against a list of @@ -24305,7 +24682,7 @@ class Prism::RescueModifierNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14739 + # source://prism//lib/prism/node.rb#15003 def type; end class << self @@ -24316,7 +24693,7 @@ class Prism::RescueModifierNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14749 + # source://prism//lib/prism/node.rb#15013 def type; end end end @@ -24329,16 +24706,15 @@ end # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # end # -# `Foo, *splat, Bar` are in the `exceptions` field. -# `ex` is in the `exception` field. +# `Foo, *splat, Bar` are in the `exceptions` field. `ex` is in the `exception` field. # -# source://prism//lib/prism/node.rb#14765 +# source://prism//lib/prism/node.rb#15027 class Prism::RescueNode < ::Prism::Node - # def initialize: (keyword_loc: Location, exceptions: Array[Node], operator_loc: Location?, reference: Node?, statements: StatementsNode?, consequent: RescueNode?, location: Location) -> void + # def initialize: (Location keyword_loc, Array[Node] exceptions, Location? operator_loc, Node? reference, StatementsNode? statements, RescueNode? consequent, Location location) -> void # # @return [RescueNode] a new instance of RescueNode # - # source://prism//lib/prism/node.rb#14784 + # source://prism//lib/prism/node.rb#15047 sig do params( keyword_loc: Prism::Location, @@ -24352,50 +24728,50 @@ class Prism::RescueNode < ::Prism::Node end def initialize(keyword_loc, exceptions, operator_loc, reference, statements, consequent, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14795 + # source://prism//lib/prism/node.rb#15058 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14800 + # source://prism//lib/prism/node.rb#15063 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14815 + # source://prism//lib/prism/node.rb#15078 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#14805 + # source://prism//lib/prism/node.rb#15068 def compact_child_nodes; end # attr_reader consequent: RescueNode? # - # source://prism//lib/prism/node.rb#14781 + # source://prism//lib/prism/node.rb#15044 sig { returns(T.nilable(Prism::RescueNode)) } def consequent; end # def copy: (**params) -> RescueNode # - # source://prism//lib/prism/node.rb#14820 + # source://prism//lib/prism/node.rb#15083 sig { params(params: T.untyped).returns(Prism::RescueNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14800 + # source://prism//lib/prism/node.rb#15063 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { keyword_loc: Location, exceptions: Array[Node], operator_loc: Location?, reference: Node?, statements: StatementsNode?, consequent: RescueNode?, location: Location } # - # source://prism//lib/prism/node.rb#14836 + # source://prism//lib/prism/node.rb#15099 sig do params( keys: T::Array[Symbol] @@ -24405,48 +24781,48 @@ class Prism::RescueNode < ::Prism::Node # attr_reader exceptions: Array[Node] # - # source://prism//lib/prism/node.rb#14769 + # source://prism//lib/prism/node.rb#15032 sig { returns(T::Array[Prism::Node]) } def exceptions; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#14851 + # source://prism//lib/prism/node.rb#15114 def inspect(inspector = T.unsafe(nil)); end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#14841 + # source://prism//lib/prism/node.rb#15104 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#14766 + # source://prism//lib/prism/node.rb#15029 sig { returns(Prism::Location) } def keyword_loc; end # def operator: () -> String? # - # source://prism//lib/prism/node.rb#14846 + # source://prism//lib/prism/node.rb#15109 sig { returns(T.nilable(String)) } def operator; end # attr_reader operator_loc: Location? # - # source://prism//lib/prism/node.rb#14772 + # source://prism//lib/prism/node.rb#15035 sig { returns(T.nilable(Prism::Location)) } def operator_loc; end # attr_reader reference: Node? # - # source://prism//lib/prism/node.rb#14775 + # source://prism//lib/prism/node.rb#15038 sig { returns(T.nilable(Prism::Node)) } def reference; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#14778 + # source://prism//lib/prism/node.rb#15041 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -24465,7 +24841,7 @@ class Prism::RescueNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14891 + # source://prism//lib/prism/node.rb#15154 def type; end class << self @@ -24476,7 +24852,7 @@ class Prism::RescueNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14901 + # source://prism//lib/prism/node.rb#15164 def type; end end end @@ -24487,61 +24863,62 @@ end # ^^ # end # -# source://prism//lib/prism/node.rb#14912 +# source://prism//lib/prism/node.rb#15174 class Prism::RestParameterNode < ::Prism::Node - # def initialize: (name: Symbol?, name_loc: Location?, operator_loc: Location, location: Location) -> void + # def initialize: (Integer flags, Symbol? name, Location? name_loc, Location operator_loc, Location location) -> void # # @return [RestParameterNode] a new instance of RestParameterNode # - # source://prism//lib/prism/node.rb#14922 + # source://prism//lib/prism/node.rb#15188 sig do params( + flags: Integer, name: T.nilable(Symbol), name_loc: T.nilable(Prism::Location), operator_loc: Prism::Location, location: Prism::Location ).void end - def initialize(name, name_loc, operator_loc, location); end + def initialize(flags, name, name_loc, operator_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14930 + # source://prism//lib/prism/node.rb#15197 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14935 + # source://prism//lib/prism/node.rb#15202 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14945 + # source://prism//lib/prism/node.rb#15212 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#14940 + # source://prism//lib/prism/node.rb#15207 def compact_child_nodes; end # def copy: (**params) -> RestParameterNode # - # source://prism//lib/prism/node.rb#14950 + # source://prism//lib/prism/node.rb#15217 sig { params(params: T.untyped).returns(Prism::RestParameterNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14935 + # source://prism//lib/prism/node.rb#15202 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, name: Symbol?, name_loc: Location?, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#14963 + # source://prism//lib/prism/node.rb#15231 sig do params( keys: T::Array[Symbol] @@ -24549,35 +24926,43 @@ class Prism::RestParameterNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#14973 + # source://prism//lib/prism/node.rb#15246 def inspect(inspector = T.unsafe(nil)); end # attr_reader name: Symbol? # - # source://prism//lib/prism/node.rb#14913 + # source://prism//lib/prism/node.rb#15179 sig { returns(T.nilable(Symbol)) } def name; end # attr_reader name_loc: Location? # - # source://prism//lib/prism/node.rb#14916 + # source://prism//lib/prism/node.rb#15182 sig { returns(T.nilable(Prism::Location)) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#14968 + # source://prism//lib/prism/node.rb#15241 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#14919 + # source://prism//lib/prism/node.rb#15185 sig { returns(Prism::Location) } def operator_loc; end + # def repeated_parameter?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#15236 + sig { returns(T::Boolean) } + def repeated_parameter?; end + # Sometimes you want to check an instance of a node against a list of # classes to see what kind of behavior to perform. Usually this is done by # calling `[cls1, cls2].include?(node.class)` or putting the node into a @@ -24593,9 +24978,17 @@ class Prism::RestParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14999 + # source://prism//lib/prism/node.rb#15274 def type; end + private + + # Returns the value of attribute flags. + # + # source://prism//lib/prism/node.rb#15176 + sig { returns(Integer) } + def flags; end + class << self # Similar to #type, this method returns a symbol that you can use for # splitting on the type of the node without having to do a long === chain. @@ -24604,7 +24997,7 @@ class Prism::RestParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15009 + # source://prism//lib/prism/node.rb#15284 def type; end end end @@ -24614,54 +25007,54 @@ end # retry # ^^^^^ # -# source://prism//lib/prism/node.rb#15019 +# source://prism//lib/prism/node.rb#15293 class Prism::RetryNode < ::Prism::Node - # def initialize: (location: Location) -> void + # def initialize: (Location location) -> void # # @return [RetryNode] a new instance of RetryNode # - # source://prism//lib/prism/node.rb#15020 + # source://prism//lib/prism/node.rb#15295 sig { params(location: Prism::Location).void } def initialize(location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15025 + # source://prism//lib/prism/node.rb#15300 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15030 + # source://prism//lib/prism/node.rb#15305 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15040 + # source://prism//lib/prism/node.rb#15315 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15035 + # source://prism//lib/prism/node.rb#15310 def compact_child_nodes; end # def copy: (**params) -> RetryNode # - # source://prism//lib/prism/node.rb#15045 + # source://prism//lib/prism/node.rb#15320 sig { params(params: T.untyped).returns(Prism::RetryNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15030 + # source://prism//lib/prism/node.rb#15305 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#15055 + # source://prism//lib/prism/node.rb#15330 sig do params( keys: T::Array[Symbol] @@ -24669,9 +25062,9 @@ class Prism::RetryNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#15060 + # source://prism//lib/prism/node.rb#15335 def inspect(inspector = T.unsafe(nil)); end # Sometimes you want to check an instance of a node against a list of @@ -24689,7 +25082,7 @@ class Prism::RetryNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15079 + # source://prism//lib/prism/node.rb#15354 def type; end class << self @@ -24700,7 +25093,7 @@ class Prism::RetryNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15089 + # source://prism//lib/prism/node.rb#15364 def type; end end end @@ -24710,13 +25103,13 @@ end # return 1 # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#15099 +# source://prism//lib/prism/node.rb#15373 class Prism::ReturnNode < ::Prism::Node - # def initialize: (keyword_loc: Location, arguments: ArgumentsNode?, location: Location) -> void + # def initialize: (Location keyword_loc, ArgumentsNode? arguments, Location location) -> void # # @return [ReturnNode] a new instance of ReturnNode # - # source://prism//lib/prism/node.rb#15106 + # source://prism//lib/prism/node.rb#15381 sig do params( keyword_loc: Prism::Location, @@ -24726,50 +25119,50 @@ class Prism::ReturnNode < ::Prism::Node end def initialize(keyword_loc, arguments, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15113 + # source://prism//lib/prism/node.rb#15388 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#15103 + # source://prism//lib/prism/node.rb#15378 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15118 + # source://prism//lib/prism/node.rb#15393 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15130 + # source://prism//lib/prism/node.rb#15405 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15123 + # source://prism//lib/prism/node.rb#15398 def compact_child_nodes; end # def copy: (**params) -> ReturnNode # - # source://prism//lib/prism/node.rb#15135 + # source://prism//lib/prism/node.rb#15410 sig { params(params: T.untyped).returns(Prism::ReturnNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15118 + # source://prism//lib/prism/node.rb#15393 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { keyword_loc: Location, arguments: ArgumentsNode?, location: Location } # - # source://prism//lib/prism/node.rb#15147 + # source://prism//lib/prism/node.rb#15422 sig do params( keys: T::Array[Symbol] @@ -24777,20 +25170,20 @@ class Prism::ReturnNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#15157 + # source://prism//lib/prism/node.rb#15432 def inspect(inspector = T.unsafe(nil)); end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#15152 + # source://prism//lib/prism/node.rb#15427 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#15100 + # source://prism//lib/prism/node.rb#15375 sig { returns(Prism::Location) } def keyword_loc; end @@ -24809,7 +25202,7 @@ class Prism::ReturnNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15183 + # source://prism//lib/prism/node.rb#15458 def type; end class << self @@ -24820,7 +25213,7 @@ class Prism::ReturnNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15193 + # source://prism//lib/prism/node.rb#15468 def type; end end end @@ -24840,7 +25233,7 @@ end # To use this class, you treat `Prism::RipperCompat` effectively as you would # treat the `Ripper` class. # -# source://prism//lib/prism/ripper_compat.rb#22 +# source://prism//lib/prism/ripper_compat.rb#20 class Prism::RipperCompat < ::Prism::Visitor # Create a new RipperCompat object with the given source. # @@ -26198,54 +26591,54 @@ end # self # ^^^^ # -# source://prism//lib/prism/node.rb#15203 +# source://prism//lib/prism/node.rb#15477 class Prism::SelfNode < ::Prism::Node - # def initialize: (location: Location) -> void + # def initialize: (Location location) -> void # # @return [SelfNode] a new instance of SelfNode # - # source://prism//lib/prism/node.rb#15204 + # source://prism//lib/prism/node.rb#15479 sig { params(location: Prism::Location).void } def initialize(location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15209 + # source://prism//lib/prism/node.rb#15484 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15214 + # source://prism//lib/prism/node.rb#15489 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15224 + # source://prism//lib/prism/node.rb#15499 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15219 + # source://prism//lib/prism/node.rb#15494 def compact_child_nodes; end # def copy: (**params) -> SelfNode # - # source://prism//lib/prism/node.rb#15229 + # source://prism//lib/prism/node.rb#15504 sig { params(params: T.untyped).returns(Prism::SelfNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15214 + # source://prism//lib/prism/node.rb#15489 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#15239 + # source://prism//lib/prism/node.rb#15514 sig do params( keys: T::Array[Symbol] @@ -26253,9 +26646,9 @@ class Prism::SelfNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#15244 + # source://prism//lib/prism/node.rb#15519 def inspect(inspector = T.unsafe(nil)); end # Sometimes you want to check an instance of a node against a list of @@ -26273,7 +26666,7 @@ class Prism::SelfNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15263 + # source://prism//lib/prism/node.rb#15538 def type; end class << self @@ -26284,7 +26677,7 @@ class Prism::SelfNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15273 + # source://prism//lib/prism/node.rb#15548 def type; end end end @@ -26389,10 +26782,13 @@ class Prism::Serialize::Loader # source://prism//lib/prism/serialize.rb#187 def load_embedded_string; end + # source://prism//lib/prism/serialize.rb#241 + def load_error_level; end + # source://prism//lib/prism/serialize.rb#203 def load_location; end - # source://prism//lib/prism/serialize.rb#242 + # source://prism//lib/prism/serialize.rb#266 def load_node; end # source://prism//lib/prism/serialize.rb#236 @@ -26421,6 +26817,9 @@ class Prism::Serialize::Loader # # source://prism//lib/prism/serialize.rb#157 def load_varuint; end + + # source://prism//lib/prism/serialize.rb#252 + def load_warning_level; end end # The major version of prism that we are expecting to find in the serialized @@ -26443,7 +26842,7 @@ Prism::Serialize::PATCH_VERSION = T.let(T.unsafe(nil), Integer) # The token types that can be indexed by their enum values. # -# source://prism//lib/prism/serialize.rb#1154 +# source://prism//lib/prism/serialize.rb#1178 Prism::Serialize::TOKEN_TYPES = T.let(T.unsafe(nil), Array) # Represents a singleton class declaration involving the `class` keyword. @@ -26451,13 +26850,13 @@ Prism::Serialize::TOKEN_TYPES = T.let(T.unsafe(nil), Array) # class << self end # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#15283 +# source://prism//lib/prism/node.rb#15557 class Prism::SingletonClassNode < ::Prism::Node - # def initialize: (locals: Array[Symbol], class_keyword_loc: Location, operator_loc: Location, expression: Node, body: Node?, end_keyword_loc: Location, location: Location) -> void + # def initialize: (Array[Symbol] locals, Location class_keyword_loc, Location operator_loc, Node expression, Node? body, Location end_keyword_loc, Location location) -> void # # @return [SingletonClassNode] a new instance of SingletonClassNode # - # source://prism//lib/prism/node.rb#15302 + # source://prism//lib/prism/node.rb#15577 sig do params( locals: T::Array[Symbol], @@ -26471,62 +26870,62 @@ class Prism::SingletonClassNode < ::Prism::Node end def initialize(locals, class_keyword_loc, operator_loc, expression, body, end_keyword_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15313 + # source://prism//lib/prism/node.rb#15588 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader body: Node? # - # source://prism//lib/prism/node.rb#15296 + # source://prism//lib/prism/node.rb#15571 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15318 + # source://prism//lib/prism/node.rb#15593 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def class_keyword: () -> String # - # source://prism//lib/prism/node.rb#15357 + # source://prism//lib/prism/node.rb#15632 sig { returns(String) } def class_keyword; end # attr_reader class_keyword_loc: Location # - # source://prism//lib/prism/node.rb#15287 + # source://prism//lib/prism/node.rb#15562 sig { returns(Prism::Location) } def class_keyword_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15331 + # source://prism//lib/prism/node.rb#15606 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15323 + # source://prism//lib/prism/node.rb#15598 def compact_child_nodes; end # def copy: (**params) -> SingletonClassNode # - # source://prism//lib/prism/node.rb#15336 + # source://prism//lib/prism/node.rb#15611 sig { params(params: T.untyped).returns(Prism::SingletonClassNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15318 + # source://prism//lib/prism/node.rb#15593 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { locals: Array[Symbol], class_keyword_loc: Location, operator_loc: Location, expression: Node, body: Node?, end_keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#15352 + # source://prism//lib/prism/node.rb#15627 sig do params( keys: T::Array[Symbol] @@ -26536,42 +26935,42 @@ class Prism::SingletonClassNode < ::Prism::Node # def end_keyword: () -> String # - # source://prism//lib/prism/node.rb#15367 + # source://prism//lib/prism/node.rb#15642 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#15299 + # source://prism//lib/prism/node.rb#15574 sig { returns(Prism::Location) } def end_keyword_loc; end # attr_reader expression: Node # - # source://prism//lib/prism/node.rb#15293 + # source://prism//lib/prism/node.rb#15568 sig { returns(Prism::Node) } def expression; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#15372 + # source://prism//lib/prism/node.rb#15647 def inspect(inspector = T.unsafe(nil)); end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#15284 + # source://prism//lib/prism/node.rb#15559 sig { returns(T::Array[Symbol]) } def locals; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#15362 + # source://prism//lib/prism/node.rb#15637 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#15290 + # source://prism//lib/prism/node.rb#15565 sig { returns(Prism::Location) } def operator_loc; end @@ -26590,7 +26989,7 @@ class Prism::SingletonClassNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15403 + # source://prism//lib/prism/node.rb#15678 def type; end class << self @@ -26601,7 +27000,7 @@ class Prism::SingletonClassNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15413 + # source://prism//lib/prism/node.rb#15688 def type; end end end @@ -26699,54 +27098,54 @@ end # __ENCODING__ # ^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#15423 +# source://prism//lib/prism/node.rb#15697 class Prism::SourceEncodingNode < ::Prism::Node - # def initialize: (location: Location) -> void + # def initialize: (Location location) -> void # # @return [SourceEncodingNode] a new instance of SourceEncodingNode # - # source://prism//lib/prism/node.rb#15424 + # source://prism//lib/prism/node.rb#15699 sig { params(location: Prism::Location).void } def initialize(location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15429 + # source://prism//lib/prism/node.rb#15704 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15434 + # source://prism//lib/prism/node.rb#15709 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15444 + # source://prism//lib/prism/node.rb#15719 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15439 + # source://prism//lib/prism/node.rb#15714 def compact_child_nodes; end # def copy: (**params) -> SourceEncodingNode # - # source://prism//lib/prism/node.rb#15449 + # source://prism//lib/prism/node.rb#15724 sig { params(params: T.untyped).returns(Prism::SourceEncodingNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15434 + # source://prism//lib/prism/node.rb#15709 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#15459 + # source://prism//lib/prism/node.rb#15734 sig do params( keys: T::Array[Symbol] @@ -26754,9 +27153,9 @@ class Prism::SourceEncodingNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#15464 + # source://prism//lib/prism/node.rb#15739 def inspect(inspector = T.unsafe(nil)); end # Sometimes you want to check an instance of a node against a list of @@ -26774,7 +27173,7 @@ class Prism::SourceEncodingNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15483 + # source://prism//lib/prism/node.rb#15758 def type; end class << self @@ -26785,7 +27184,7 @@ class Prism::SourceEncodingNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15493 + # source://prism//lib/prism/node.rb#15768 def type; end end end @@ -26795,54 +27194,54 @@ end # __FILE__ # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#15503 +# source://prism//lib/prism/node.rb#15777 class Prism::SourceFileNode < ::Prism::Node - # def initialize: (filepath: String, location: Location) -> void + # def initialize: (String filepath, Location location) -> void # # @return [SourceFileNode] a new instance of SourceFileNode # - # source://prism//lib/prism/node.rb#15507 + # source://prism//lib/prism/node.rb#15782 sig { params(filepath: String, location: Prism::Location).void } def initialize(filepath, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15513 + # source://prism//lib/prism/node.rb#15788 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15518 + # source://prism//lib/prism/node.rb#15793 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15528 + # source://prism//lib/prism/node.rb#15803 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15523 + # source://prism//lib/prism/node.rb#15798 def compact_child_nodes; end # def copy: (**params) -> SourceFileNode # - # source://prism//lib/prism/node.rb#15533 + # source://prism//lib/prism/node.rb#15808 sig { params(params: T.untyped).returns(Prism::SourceFileNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15518 + # source://prism//lib/prism/node.rb#15793 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { filepath: String, location: Location } # - # source://prism//lib/prism/node.rb#15544 + # source://prism//lib/prism/node.rb#15819 sig do params( keys: T::Array[Symbol] @@ -26852,13 +27251,13 @@ class Prism::SourceFileNode < ::Prism::Node # attr_reader filepath: String # - # source://prism//lib/prism/node.rb#15504 + # source://prism//lib/prism/node.rb#15779 sig { returns(String) } def filepath; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#15549 + # source://prism//lib/prism/node.rb#15824 def inspect(inspector = T.unsafe(nil)); end # Sometimes you want to check an instance of a node against a list of @@ -26876,7 +27275,7 @@ class Prism::SourceFileNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15569 + # source://prism//lib/prism/node.rb#15844 def type; end class << self @@ -26887,7 +27286,7 @@ class Prism::SourceFileNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15579 + # source://prism//lib/prism/node.rb#15854 def type; end end end @@ -26897,54 +27296,54 @@ end # __LINE__ # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#15589 +# source://prism//lib/prism/node.rb#15863 class Prism::SourceLineNode < ::Prism::Node - # def initialize: (location: Location) -> void + # def initialize: (Location location) -> void # # @return [SourceLineNode] a new instance of SourceLineNode # - # source://prism//lib/prism/node.rb#15590 + # source://prism//lib/prism/node.rb#15865 sig { params(location: Prism::Location).void } def initialize(location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15595 + # source://prism//lib/prism/node.rb#15870 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15600 + # source://prism//lib/prism/node.rb#15875 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15610 + # source://prism//lib/prism/node.rb#15885 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15605 + # source://prism//lib/prism/node.rb#15880 def compact_child_nodes; end # def copy: (**params) -> SourceLineNode # - # source://prism//lib/prism/node.rb#15615 + # source://prism//lib/prism/node.rb#15890 sig { params(params: T.untyped).returns(Prism::SourceLineNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15600 + # source://prism//lib/prism/node.rb#15875 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#15625 + # source://prism//lib/prism/node.rb#15900 sig do params( keys: T::Array[Symbol] @@ -26952,9 +27351,9 @@ class Prism::SourceLineNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#15630 + # source://prism//lib/prism/node.rb#15905 def inspect(inspector = T.unsafe(nil)); end # Sometimes you want to check an instance of a node against a list of @@ -26972,7 +27371,7 @@ class Prism::SourceLineNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15649 + # source://prism//lib/prism/node.rb#15924 def type; end class << self @@ -26983,7 +27382,7 @@ class Prism::SourceLineNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15659 + # source://prism//lib/prism/node.rb#15934 def type; end end end @@ -26993,54 +27392,54 @@ end # [*a] # ^^ # -# source://prism//lib/prism/node.rb#15669 +# source://prism//lib/prism/node.rb#15943 class Prism::SplatNode < ::Prism::Node - # def initialize: (operator_loc: Location, expression: Node?, location: Location) -> void + # def initialize: (Location operator_loc, Node? expression, Location location) -> void # # @return [SplatNode] a new instance of SplatNode # - # source://prism//lib/prism/node.rb#15676 + # source://prism//lib/prism/node.rb#15951 sig { params(operator_loc: Prism::Location, expression: T.nilable(Prism::Node), location: Prism::Location).void } def initialize(operator_loc, expression, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15683 + # source://prism//lib/prism/node.rb#15958 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15688 + # source://prism//lib/prism/node.rb#15963 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15700 + # source://prism//lib/prism/node.rb#15975 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15693 + # source://prism//lib/prism/node.rb#15968 def compact_child_nodes; end # def copy: (**params) -> SplatNode # - # source://prism//lib/prism/node.rb#15705 + # source://prism//lib/prism/node.rb#15980 sig { params(params: T.untyped).returns(Prism::SplatNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15688 + # source://prism//lib/prism/node.rb#15963 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { operator_loc: Location, expression: Node?, location: Location } # - # source://prism//lib/prism/node.rb#15717 + # source://prism//lib/prism/node.rb#15992 sig do params( keys: T::Array[Symbol] @@ -27050,24 +27449,24 @@ class Prism::SplatNode < ::Prism::Node # attr_reader expression: Node? # - # source://prism//lib/prism/node.rb#15673 + # source://prism//lib/prism/node.rb#15948 sig { returns(T.nilable(Prism::Node)) } def expression; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#15727 + # source://prism//lib/prism/node.rb#16002 def inspect(inspector = T.unsafe(nil)); end # def operator: () -> String # - # source://prism//lib/prism/node.rb#15722 + # source://prism//lib/prism/node.rb#15997 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#15670 + # source://prism//lib/prism/node.rb#15945 sig { returns(Prism::Location) } def operator_loc; end @@ -27086,7 +27485,7 @@ class Prism::SplatNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15753 + # source://prism//lib/prism/node.rb#16028 def type; end class << self @@ -27097,7 +27496,7 @@ class Prism::SplatNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15763 + # source://prism//lib/prism/node.rb#16038 def type; end end end @@ -27107,60 +27506,60 @@ end # foo; bar; baz # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#15773 +# source://prism//lib/prism/node.rb#16047 class Prism::StatementsNode < ::Prism::Node - # def initialize: (body: Array[Node], location: Location) -> void + # def initialize: (Array[Node] body, Location location) -> void # # @return [StatementsNode] a new instance of StatementsNode # - # source://prism//lib/prism/node.rb#15777 + # source://prism//lib/prism/node.rb#16052 sig { params(body: T::Array[Prism::Node], location: Prism::Location).void } def initialize(body, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15783 + # source://prism//lib/prism/node.rb#16058 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader body: Array[Node] # - # source://prism//lib/prism/node.rb#15774 + # source://prism//lib/prism/node.rb#16049 sig { returns(T::Array[Prism::Node]) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15788 + # source://prism//lib/prism/node.rb#16063 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15798 + # source://prism//lib/prism/node.rb#16073 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15793 + # source://prism//lib/prism/node.rb#16068 def compact_child_nodes; end # def copy: (**params) -> StatementsNode # - # source://prism//lib/prism/node.rb#15803 + # source://prism//lib/prism/node.rb#16078 sig { params(params: T.untyped).returns(Prism::StatementsNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15788 + # source://prism//lib/prism/node.rb#16063 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { body: Array[Node], location: Location } # - # source://prism//lib/prism/node.rb#15814 + # source://prism//lib/prism/node.rb#16089 sig do params( keys: T::Array[Symbol] @@ -27168,9 +27567,9 @@ class Prism::StatementsNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#15819 + # source://prism//lib/prism/node.rb#16094 def inspect(inspector = T.unsafe(nil)); end # Sometimes you want to check an instance of a node against a list of @@ -27188,7 +27587,7 @@ class Prism::StatementsNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15839 + # source://prism//lib/prism/node.rb#16114 def type; end class << self @@ -27199,33 +27598,32 @@ class Prism::StatementsNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15849 + # source://prism//lib/prism/node.rb#16124 def type; end end end # Flags for string nodes. # -# source://prism//lib/prism/node.rb#17379 +# source://prism//lib/prism/node.rb#17662 module Prism::StringFlags; end # internal bytes forced the encoding to binary # -# source://prism//lib/prism/node.rb#17384 +# source://prism//lib/prism/node.rb#17667 Prism::StringFlags::FORCED_BINARY_ENCODING = T.let(T.unsafe(nil), Integer) # internal bytes forced the encoding to UTF-8 # -# source://prism//lib/prism/node.rb#17381 +# source://prism//lib/prism/node.rb#17664 Prism::StringFlags::FORCED_UTF8_ENCODING = T.let(T.unsafe(nil), Integer) # frozen by virtue of a `frozen_string_literal` comment # -# source://prism//lib/prism/node.rb#17387 +# source://prism//lib/prism/node.rb#17670 Prism::StringFlags::FROZEN = T.let(T.unsafe(nil), Integer) -# Represents a string literal, a string contained within a `%w` list, or -# plain string content within an interpolated string. +# Represents a string literal, a string contained within a `%w` list, or plain string content within an interpolated string. # # "foo" # ^^^^^ @@ -27236,15 +27634,15 @@ Prism::StringFlags::FROZEN = T.let(T.unsafe(nil), Integer) # "foo #{bar} baz" # ^^^^ ^^^^ # -# source://prism//lib/prism/node.rb#15866 +# source://prism//lib/prism/node.rb#16139 class Prism::StringNode < ::Prism::Node include ::Prism::HeredocQuery - # def initialize: (flags: Integer, opening_loc: Location?, content_loc: Location, closing_loc: Location?, unescaped: String, location: Location) -> void + # def initialize: (Integer flags, Location? opening_loc, Location content_loc, Location? closing_loc, String unescaped, Location location) -> void # # @return [StringNode] a new instance of StringNode # - # source://prism//lib/prism/node.rb#15882 + # source://prism//lib/prism/node.rb#16156 sig do params( flags: Integer, @@ -27257,68 +27655,68 @@ class Prism::StringNode < ::Prism::Node end def initialize(flags, opening_loc, content_loc, closing_loc, unescaped, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15892 + # source://prism//lib/prism/node.rb#16166 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15897 + # source://prism//lib/prism/node.rb#16171 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#15957 + # source://prism//lib/prism/node.rb#16231 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#15876 + # source://prism//lib/prism/node.rb#16150 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15907 + # source://prism//lib/prism/node.rb#16181 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15902 + # source://prism//lib/prism/node.rb#16176 def compact_child_nodes; end # def content: () -> String # - # source://prism//lib/prism/node.rb#15952 + # source://prism//lib/prism/node.rb#16226 sig { returns(String) } def content; end # attr_reader content_loc: Location # - # source://prism//lib/prism/node.rb#15873 + # source://prism//lib/prism/node.rb#16147 sig { returns(Prism::Location) } def content_loc; end # def copy: (**params) -> StringNode # - # source://prism//lib/prism/node.rb#15912 + # source://prism//lib/prism/node.rb#16186 sig { params(params: T.untyped).returns(Prism::StringNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15897 + # source://prism//lib/prism/node.rb#16171 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, opening_loc: Location?, content_loc: Location, closing_loc: Location?, unescaped: String, location: Location } # - # source://prism//lib/prism/node.rb#15927 + # source://prism//lib/prism/node.rb#16201 sig do params( keys: T::Array[Symbol] @@ -27330,7 +27728,7 @@ class Prism::StringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15937 + # source://prism//lib/prism/node.rb#16211 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -27338,7 +27736,7 @@ class Prism::StringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15932 + # source://prism//lib/prism/node.rb#16206 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -27346,24 +27744,24 @@ class Prism::StringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15942 + # source://prism//lib/prism/node.rb#16216 sig { returns(T::Boolean) } def frozen?; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#15962 + # source://prism//lib/prism/node.rb#16236 def inspect(inspector = T.unsafe(nil)); end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#15947 + # source://prism//lib/prism/node.rb#16221 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#15870 + # source://prism//lib/prism/node.rb#16144 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end @@ -27382,12 +27780,12 @@ class Prism::StringNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15987 + # source://prism//lib/prism/node.rb#16261 def type; end # attr_reader unescaped: String # - # source://prism//lib/prism/node.rb#15879 + # source://prism//lib/prism/node.rb#16153 sig { returns(String) } def unescaped; end @@ -27395,7 +27793,7 @@ class Prism::StringNode < ::Prism::Node # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#15867 + # source://prism//lib/prism/node.rb#16141 sig { returns(Integer) } def flags; end @@ -27407,7 +27805,7 @@ class Prism::StringNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15997 + # source://prism//lib/prism/node.rb#16271 def type; end end end @@ -27420,13 +27818,13 @@ end # super foo, bar # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#16010 +# source://prism//lib/prism/node.rb#16283 class Prism::SuperNode < ::Prism::Node - # def initialize: (keyword_loc: Location, lparen_loc: Location?, arguments: ArgumentsNode?, rparen_loc: Location?, block: Node?, location: Location) -> void + # def initialize: (Location keyword_loc, Location? lparen_loc, ArgumentsNode? arguments, Location? rparen_loc, Node? block, Location location) -> void # # @return [SuperNode] a new instance of SuperNode # - # source://prism//lib/prism/node.rb#16026 + # source://prism//lib/prism/node.rb#16300 sig do params( keyword_loc: Prism::Location, @@ -27439,56 +27837,56 @@ class Prism::SuperNode < ::Prism::Node end def initialize(keyword_loc, lparen_loc, arguments, rparen_loc, block, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16036 + # source://prism//lib/prism/node.rb#16310 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#16017 + # source://prism//lib/prism/node.rb#16291 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end # attr_reader block: Node? # - # source://prism//lib/prism/node.rb#16023 + # source://prism//lib/prism/node.rb#16297 sig { returns(T.nilable(Prism::Node)) } def block; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16041 + # source://prism//lib/prism/node.rb#16315 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#16054 + # source://prism//lib/prism/node.rb#16328 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#16046 + # source://prism//lib/prism/node.rb#16320 def compact_child_nodes; end # def copy: (**params) -> SuperNode # - # source://prism//lib/prism/node.rb#16059 + # source://prism//lib/prism/node.rb#16333 sig { params(params: T.untyped).returns(Prism::SuperNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16041 + # source://prism//lib/prism/node.rb#16315 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { keyword_loc: Location, lparen_loc: Location?, arguments: ArgumentsNode?, rparen_loc: Location?, block: Node?, location: Location } # - # source://prism//lib/prism/node.rb#16074 + # source://prism//lib/prism/node.rb#16348 sig do params( keys: T::Array[Symbol] @@ -27496,44 +27894,44 @@ class Prism::SuperNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#16094 + # source://prism//lib/prism/node.rb#16368 def inspect(inspector = T.unsafe(nil)); end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#16079 + # source://prism//lib/prism/node.rb#16353 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#16011 + # source://prism//lib/prism/node.rb#16285 sig { returns(Prism::Location) } def keyword_loc; end # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#16084 + # source://prism//lib/prism/node.rb#16358 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#16014 + # source://prism//lib/prism/node.rb#16288 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#16089 + # source://prism//lib/prism/node.rb#16363 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#16020 + # source://prism//lib/prism/node.rb#16294 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -27552,7 +27950,7 @@ class Prism::SuperNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16128 + # source://prism//lib/prism/node.rb#16402 def type; end class << self @@ -27563,29 +27961,29 @@ class Prism::SuperNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16138 + # source://prism//lib/prism/node.rb#16412 def type; end end end # Flags for symbol nodes. # -# source://prism//lib/prism/node.rb#17391 +# source://prism//lib/prism/node.rb#17674 module Prism::SymbolFlags; end # internal bytes forced the encoding to binary # -# source://prism//lib/prism/node.rb#17396 +# source://prism//lib/prism/node.rb#17679 Prism::SymbolFlags::FORCED_BINARY_ENCODING = T.let(T.unsafe(nil), Integer) # internal bytes forced the encoding to US-ASCII # -# source://prism//lib/prism/node.rb#17399 +# source://prism//lib/prism/node.rb#17682 Prism::SymbolFlags::FORCED_US_ASCII_ENCODING = T.let(T.unsafe(nil), Integer) # internal bytes forced the encoding to UTF-8 # -# source://prism//lib/prism/node.rb#17393 +# source://prism//lib/prism/node.rb#17676 Prism::SymbolFlags::FORCED_UTF8_ENCODING = T.let(T.unsafe(nil), Integer) # Represents a symbol literal or a symbol contained within a `%i` list. @@ -27596,13 +27994,13 @@ Prism::SymbolFlags::FORCED_UTF8_ENCODING = T.let(T.unsafe(nil), Integer) # %i[foo] # ^^^ # -# source://prism//lib/prism/node.rb#16151 +# source://prism//lib/prism/node.rb#16424 class Prism::SymbolNode < ::Prism::Node - # def initialize: (flags: Integer, opening_loc: Location?, value_loc: Location?, closing_loc: Location?, unescaped: String, location: Location) -> void + # def initialize: (Integer flags, Location? opening_loc, Location? value_loc, Location? closing_loc, String unescaped, Location location) -> void # # @return [SymbolNode] a new instance of SymbolNode # - # source://prism//lib/prism/node.rb#16167 + # source://prism//lib/prism/node.rb#16441 sig do params( flags: Integer, @@ -27615,56 +28013,56 @@ class Prism::SymbolNode < ::Prism::Node end def initialize(flags, opening_loc, value_loc, closing_loc, unescaped, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16177 + # source://prism//lib/prism/node.rb#16451 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16182 + # source://prism//lib/prism/node.rb#16456 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#16242 + # source://prism//lib/prism/node.rb#16516 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#16161 + # source://prism//lib/prism/node.rb#16435 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#16192 + # source://prism//lib/prism/node.rb#16466 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#16187 + # source://prism//lib/prism/node.rb#16461 def compact_child_nodes; end # def copy: (**params) -> SymbolNode # - # source://prism//lib/prism/node.rb#16197 + # source://prism//lib/prism/node.rb#16471 sig { params(params: T.untyped).returns(Prism::SymbolNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16182 + # source://prism//lib/prism/node.rb#16456 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, opening_loc: Location?, value_loc: Location?, closing_loc: Location?, unescaped: String, location: Location } # - # source://prism//lib/prism/node.rb#16212 + # source://prism//lib/prism/node.rb#16486 sig do params( keys: T::Array[Symbol] @@ -27676,7 +28074,7 @@ class Prism::SymbolNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16222 + # source://prism//lib/prism/node.rb#16496 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -27684,7 +28082,7 @@ class Prism::SymbolNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16227 + # source://prism//lib/prism/node.rb#16501 sig { returns(T::Boolean) } def forced_us_ascii_encoding?; end @@ -27692,24 +28090,24 @@ class Prism::SymbolNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16217 + # source://prism//lib/prism/node.rb#16491 sig { returns(T::Boolean) } def forced_utf8_encoding?; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#16247 + # source://prism//lib/prism/node.rb#16521 def inspect(inspector = T.unsafe(nil)); end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#16232 + # source://prism//lib/prism/node.rb#16506 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#16155 + # source://prism//lib/prism/node.rb#16429 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end @@ -27728,24 +28126,24 @@ class Prism::SymbolNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16272 + # source://prism//lib/prism/node.rb#16546 def type; end # attr_reader unescaped: String # - # source://prism//lib/prism/node.rb#16164 + # source://prism//lib/prism/node.rb#16438 sig { returns(String) } def unescaped; end # def value: () -> String? # - # source://prism//lib/prism/node.rb#16237 + # source://prism//lib/prism/node.rb#16511 sig { returns(T.nilable(String)) } def value; end # attr_reader value_loc: Location? # - # source://prism//lib/prism/node.rb#16158 + # source://prism//lib/prism/node.rb#16432 sig { returns(T.nilable(Prism::Location)) } def value_loc; end @@ -27753,7 +28151,7 @@ class Prism::SymbolNode < ::Prism::Node # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#16152 + # source://prism//lib/prism/node.rb#16426 sig { returns(Integer) } def flags; end @@ -27765,402 +28163,1709 @@ class Prism::SymbolNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16282 + # source://prism//lib/prism/node.rb#16556 def type; end end end # This represents a token from the Ruby source. # -# source://prism//lib/prism/parse_result.rb#416 +# source://prism//lib/prism/parse_result.rb#424 class Prism::Token # Create a new token object with the given type, value, and location. # # @return [Token] a new instance of Token # - # source://prism//lib/prism/parse_result.rb#427 + # source://prism//lib/prism/parse_result.rb#435 sig { params(type: T.untyped, value: String, location: Prism::Location).void } def initialize(type, value, location); end # Returns true if the given other token is equal to this token. # - # source://prism//lib/prism/parse_result.rb#454 + # source://prism//lib/prism/parse_result.rb#462 sig { params(other: T.untyped).returns(T::Boolean) } def ==(other); end # Implement the hash pattern matching interface for Token. # - # source://prism//lib/prism/parse_result.rb#434 + # source://prism//lib/prism/parse_result.rb#442 sig { params(keys: T.untyped).returns(T.untyped) } def deconstruct_keys(keys); end # A Location object representing the location of this token in the source. # - # source://prism//lib/prism/parse_result.rb#424 + # source://prism//lib/prism/parse_result.rb#432 sig { returns(Prism::Location) } def location; end # Implement the pretty print interface for Token. # - # source://prism//lib/prism/parse_result.rb#439 + # source://prism//lib/prism/parse_result.rb#447 sig { params(q: T.untyped).returns(T.untyped) } def pretty_print(q); end # The type of token that this token is. # - # source://prism//lib/prism/parse_result.rb#418 + # source://prism//lib/prism/parse_result.rb#426 sig { returns(T.untyped) } def type; end # A byteslice of the source that this token represents. # - # source://prism//lib/prism/parse_result.rb#421 + # source://prism//lib/prism/parse_result.rb#429 sig { returns(String) } def value; end end -# Represents the use of the literal `true` keyword. +# This module is responsible for converting the prism syntax tree into other +# syntax trees. At the moment it only supports converting to the +# whitequark/parser gem's syntax tree, but support is planned for the +# seattlerb/ruby_parser gem's syntax tree as well. # -# true -# ^^^^ +# source://prism//lib/prism/translation.rb#8 +module Prism::Translation; end + +# This class is the entry-point for converting a prism syntax tree into the +# whitequark/parser gem's syntax tree. It inherits from the base parser for +# the parser gem, and overrides the parse* methods to parse with prism and +# then translate. # -# source://prism//lib/prism/node.rb#16292 -class Prism::TrueNode < ::Prism::Node - # def initialize: (location: Location) -> void +# source://prism//lib/prism/translation/parser.rb#11 +class Prism::Translation::Parser < ::Parser::Base + # The default encoding for Ruby files is UTF-8. # - # @return [TrueNode] a new instance of TrueNode + # source://prism//lib/prism/translation/parser.rb#33 + def default_encoding; end + + # Parses a source buffer and returns the AST. # - # source://prism//lib/prism/node.rb#16293 - sig { params(location: Prism::Location).void } - def initialize(location); end + # source://prism//lib/prism/translation/parser.rb#41 + def parse(source_buffer); end - # def accept: (visitor: Visitor) -> void + # Parses a source buffer and returns the AST and the source code comments. # - # source://prism//lib/prism/node.rb#16298 - sig { params(visitor: Prism::Visitor).void } - def accept(visitor); end + # source://prism//lib/prism/translation/parser.rb#54 + def parse_with_comments(source_buffer); end - # def child_nodes: () -> Array[nil | Node] + # Parses a source buffer and returns the AST, the source code comments, + # and the tokens emitted by the lexer. # - # source://prism//lib/prism/node.rb#16303 - sig { returns(T::Array[T.nilable(Prism::Node)]) } - def child_nodes; end + # source://prism//lib/prism/translation/parser.rb#71 + def tokenize(source_buffer, _recover = T.unsafe(nil)); end - # def comment_targets: () -> Array[Node | Location] + # Since prism resolves num params for us, we don't need to support this + # kind of logic here. # - # source://prism//lib/prism/node.rb#16313 - def comment_targets; end + # source://prism//lib/prism/translation/parser.rb#91 + def try_declare_numparam(node); end - # def compact_child_nodes: () -> Array[Node] + # source://prism//lib/prism/translation/parser.rb#28 + def version; end + + # source://prism//lib/prism/translation/parser.rb#37 + def yyerror; end + + private + + # Build the parser gem AST from the prism AST. # - # source://prism//lib/prism/node.rb#16308 - def compact_child_nodes; end + # source://prism//lib/prism/translation/parser.rb#139 + def build_ast(program, offset_cache); end - # def copy: (**params) -> TrueNode + # Build the parser gem comments from the prism comments. # - # source://prism//lib/prism/node.rb#16318 - sig { params(params: T.untyped).returns(Prism::TrueNode) } - def copy(**params); end + # source://prism//lib/prism/translation/parser.rb#144 + def build_comments(comments, offset_cache); end - # def child_nodes: () -> Array[nil | Node] - # def deconstruct: () -> Array[nil | Node] + # Prism deals with offsets in bytes, while the parser gem deals with + # offsets in characters. We need to handle this conversion in order to + # build the parser gem AST. # - # source://prism//lib/prism/node.rb#16303 - sig { returns(T::Array[T.nilable(Prism::Node)]) } - def deconstruct; end + # If the bytesize of the source is the same as the length, then we can + # just use the offset directly. Otherwise, we build a hash that functions + # as a cache for the conversion. + # + # This is a good opportunity for some optimizations. If the source file + # has any multi-byte characters, this can tank the performance of the + # translator. We could make this significantly faster by using a + # different data structure for the cache. + # + # source://prism//lib/prism/translation/parser.rb#128 + def build_offset_cache(source); end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # Build a range from a prism location. # - # source://prism//lib/prism/node.rb#16328 - sig do - params( - keys: T::Array[Symbol] - ).returns(T::Hash[Symbol, T.nilable(T.any(Prism::Node, T::Array[Prism::Node], String, Prism::Token, T::Array[Prism::Token], Prism::Location))]) - end - def deconstruct_keys(keys); end + # source://prism//lib/prism/translation/parser.rb#156 + def build_range(location, offset_cache); end - # def inspect(inspector: NodeInspector) -> String + # Build the parser gem tokens from the prism tokens. # - # source://prism//lib/prism/node.rb#16333 - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/translation/parser.rb#151 + def build_tokens(tokens, offset_cache); end - # Sometimes you want to check an instance of a node against a list of - # classes to see what kind of behavior to perform. Usually this is done by - # calling `[cls1, cls2].include?(node.class)` or putting the node into a - # case statement and doing `case node; when cls1; when cls2; end`. Both of - # these approaches are relatively slow because of the constant lookups, - # method calls, and/or array allocations. + # If there was a error generated during the parse, then raise an + # appropriate syntax error. Otherwise return the result. # - # Instead, you can call #type, which will return to you a symbol that you - # can use for comparison. This is faster than the other approaches because - # it uses a single integer comparison, but also because if you're on CRuby - # you can take advantage of the fact that case statements with all symbol - # keys will use a jump table. + # source://prism//lib/prism/translation/parser.rb#105 + def unwrap(result, offset_cache); end + + # This is a hook to allow consumers to disable some errors if they don't + # want them to block creating the syntax tree. # - # def type: () -> Symbol + # @return [Boolean] # - # source://prism//lib/prism/node.rb#16352 - def type; end - - class << self - # Similar to #type, this method returns a symbol that you can use for - # splitting on the type of the node without having to do a long === chain. - # Note that like #type, it will still be slower than using == for a single - # class, but should be faster in a case statement or an array comparison. - # - # def self.type: () -> Symbol - # - # source://prism//lib/prism/node.rb#16362 - def type; end - end + # source://prism//lib/prism/translation/parser.rb#99 + def valid_error?(error); end end -# Represents the use of the `undef` keyword. +# A visitor that knows how to convert a prism syntax tree into the +# whitequark/parser gem's syntax tree. # -# undef :foo, :bar, :baz -# ^^^^^^^^^^^^^^^^^^^^^^ -# -# source://prism//lib/prism/node.rb#16372 -class Prism::UndefNode < ::Prism::Node - # def initialize: (names: Array[Node], keyword_loc: Location, location: Location) -> void +# source://prism//lib/prism/translation/parser/compiler.rb#8 +class Prism::Translation::Parser::Compiler < ::Prism::Compiler + # Initialize a new compiler with the given parser, offset cache, and + # options. # - # @return [UndefNode] a new instance of UndefNode + # @return [Compiler] a new instance of Compiler # - # source://prism//lib/prism/node.rb#16379 - sig { params(names: T::Array[Prism::Node], keyword_loc: Prism::Location, location: Prism::Location).void } - def initialize(names, keyword_loc, location); end + # source://prism//lib/prism/translation/parser/compiler.rb#39 + def initialize(parser, offset_cache, forwarding: T.unsafe(nil), in_destructure: T.unsafe(nil), in_pattern: T.unsafe(nil)); end - # def accept: (visitor: Visitor) -> void + # The Parser::Builders::Default instance that is being used to build the + # AST. # - # source://prism//lib/prism/node.rb#16386 - sig { params(visitor: Prism::Visitor).void } - def accept(visitor); end + # source://prism//lib/prism/translation/parser/compiler.rb#18 + def builder; end - # def child_nodes: () -> Array[nil | Node] + # The types of values that can be forwarded in the current scope. # - # source://prism//lib/prism/node.rb#16391 - sig { returns(T::Array[T.nilable(Prism::Node)]) } - def child_nodes; end + # source://prism//lib/prism/translation/parser/compiler.rb#29 + def forwarding; end - # def comment_targets: () -> Array[Node | Location] + # Whether or not the current node is in a destructure. # - # source://prism//lib/prism/node.rb#16401 - def comment_targets; end + # source://prism//lib/prism/translation/parser/compiler.rb#32 + def in_destructure; end - # def compact_child_nodes: () -> Array[Node] + # Whether or not the current node is in a pattern. # - # source://prism//lib/prism/node.rb#16396 - def compact_child_nodes; end + # source://prism//lib/prism/translation/parser/compiler.rb#35 + def in_pattern; end - # def copy: (**params) -> UndefNode + # The offset cache that is used to map between byte and character + # offsets in the file. # - # source://prism//lib/prism/node.rb#16406 - sig { params(params: T.untyped).returns(Prism::UndefNode) } - def copy(**params); end + # source://prism//lib/prism/translation/parser/compiler.rb#26 + def offset_cache; end - # def child_nodes: () -> Array[nil | Node] - # def deconstruct: () -> Array[nil | Node] + # The Parser::Base instance that is being used to build the AST. # - # source://prism//lib/prism/node.rb#16391 - sig { returns(T::Array[T.nilable(Prism::Node)]) } - def deconstruct; end + # source://prism//lib/prism/translation/parser/compiler.rb#14 + def parser; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # The Parser::Source::Buffer instance that is holding a reference to the + # source code. # - # source://prism//lib/prism/node.rb#16418 - sig do - params( - keys: T::Array[Symbol] - ).returns(T::Hash[Symbol, T.nilable(T.any(Prism::Node, T::Array[Prism::Node], String, Prism::Token, T::Array[Prism::Token], Prism::Location))]) - end - def deconstruct_keys(keys); end + # source://prism//lib/prism/translation/parser/compiler.rb#22 + def source_buffer; end - # def inspect(inspector: NodeInspector) -> String + # alias $foo $bar + # ^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/node.rb#16428 - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/translation/parser/compiler.rb#58 + def visit_alias_global_variable_node(node); end - # def keyword: () -> String + # alias foo bar + # ^^^^^^^^^^^^^ # - # source://prism//lib/prism/node.rb#16423 - sig { returns(String) } - def keyword; end + # source://prism//lib/prism/translation/parser/compiler.rb#52 + def visit_alias_method_node(node); end - # attr_reader keyword_loc: Location + # foo => bar | baz + # ^^^^^^^^^ # - # source://prism//lib/prism/node.rb#16376 - sig { returns(Prism::Location) } - def keyword_loc; end + # source://prism//lib/prism/translation/parser/compiler.rb#64 + def visit_alternation_pattern_node(node); end - # attr_reader names: Array[Node] + # a and b + # ^^^^^^^ # - # source://prism//lib/prism/node.rb#16373 - sig { returns(T::Array[Prism::Node]) } - def names; end + # source://prism//lib/prism/translation/parser/compiler.rb#70 + def visit_and_node(node); end - # Sometimes you want to check an instance of a node against a list of - # classes to see what kind of behavior to perform. Usually this is done by - # calling `[cls1, cls2].include?(node.class)` or putting the node into a - # case statement and doing `case node; when cls1; when cls2; end`. Both of - # these approaches are relatively slow because of the constant lookups, - # method calls, and/or array allocations. + # foo(bar) + # ^^^ # - # Instead, you can call #type, which will return to you a symbol that you - # can use for comparison. This is faster than the other approaches because - # it uses a single integer comparison, but also because if you're on CRuby - # you can take advantage of the fact that case statements with all symbol - # keys will use a jump table. + # source://prism//lib/prism/translation/parser/compiler.rb#101 + def visit_arguments_node(node); end + + # [] + # ^^ # - # def type: () -> Symbol + # source://prism//lib/prism/translation/parser/compiler.rb#76 + def visit_array_node(node); end + + # foo => [bar] + # ^^^^^ # - # source://prism//lib/prism/node.rb#16449 - def type; end + # source://prism//lib/prism/translation/parser/compiler.rb#82 + def visit_array_pattern_node(node); end - class << self - # Similar to #type, this method returns a symbol that you can use for - # splitting on the type of the node without having to do a long === chain. - # Note that like #type, it will still be slower than using == for a single - # class, but should be faster in a case statement or an array comparison. - # - # def self.type: () -> Symbol - # - # source://prism//lib/prism/node.rb#16459 - def type; end - end -end + # { a: 1 } + # ^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#107 + def visit_assoc_node(node); end -# Represents the use of the `unless` keyword, either in the block form or the modifier form. -# -# bar unless foo -# ^^^^^^^^^^^^^^ -# -# unless foo then bar end -# ^^^^^^^^^^^^^^^^^^^^^^^ -# -# source://prism//lib/prism/node.rb#16472 -class Prism::UnlessNode < ::Prism::Node - # def initialize: (keyword_loc: Location, predicate: Node, then_keyword_loc: Location?, statements: StatementsNode?, consequent: ElseNode?, end_keyword_loc: Location?, location: Location) -> void + # def foo(**); bar(**); end + # ^^ # - # @return [UnlessNode] a new instance of UnlessNode + # { **foo } + # ^^^^^ # - # source://prism//lib/prism/node.rb#16491 - sig do - params( - keyword_loc: Prism::Location, - predicate: Prism::Node, - then_keyword_loc: T.nilable(Prism::Location), - statements: T.nilable(Prism::StatementsNode), - consequent: T.nilable(Prism::ElseNode), - end_keyword_loc: T.nilable(Prism::Location), - location: Prism::Location - ).void - end - def initialize(keyword_loc, predicate, then_keyword_loc, statements, consequent, end_keyword_loc, location); end + # source://prism//lib/prism/translation/parser/compiler.rb#141 + def visit_assoc_splat_node(node); end - # def accept: (visitor: Visitor) -> void + # $+ + # ^^ # - # source://prism//lib/prism/node.rb#16502 - sig { params(visitor: Prism::Visitor).void } - def accept(visitor); end + # source://prism//lib/prism/translation/parser/compiler.rb#151 + def visit_back_reference_read_node(node); end - # def child_nodes: () -> Array[nil | Node] + # begin end + # ^^^^^^^^^ # - # source://prism//lib/prism/node.rb#16511 - sig { returns(T::Array[T.nilable(Prism::Node)]) } - def child_nodes; end + # source://prism//lib/prism/translation/parser/compiler.rb#157 + def visit_begin_node(node); end - # def comment_targets: () -> Array[Node | Location] + # foo(&bar) + # ^^^^ # - # source://prism//lib/prism/node.rb#16525 - def comment_targets; end + # source://prism//lib/prism/translation/parser/compiler.rb#195 + def visit_block_argument_node(node); end - # def compact_child_nodes: () -> Array[Node] + # foo { |; bar| } + # ^^^ # - # source://prism//lib/prism/node.rb#16516 - def compact_child_nodes; end + # source://prism//lib/prism/translation/parser/compiler.rb#201 + def visit_block_local_variable_node(node); end - # attr_reader consequent: ElseNode? + # A block on a keyword or method call. # - # source://prism//lib/prism/node.rb#16485 - sig { returns(T.nilable(Prism::ElseNode)) } - def consequent; end - - # def copy: (**params) -> UnlessNode + # @raise [CompilationError] # - # source://prism//lib/prism/node.rb#16530 - sig { params(params: T.untyped).returns(Prism::UnlessNode) } - def copy(**params); end + # source://prism//lib/prism/translation/parser/compiler.rb#206 + def visit_block_node(node); end - # def child_nodes: () -> Array[nil | Node] - # def deconstruct: () -> Array[nil | Node] + # def foo(&bar); end + # ^^^^ # - # source://prism//lib/prism/node.rb#16511 - sig { returns(T::Array[T.nilable(Prism::Node)]) } - def deconstruct; end + # source://prism//lib/prism/translation/parser/compiler.rb#212 + def visit_block_parameter_node(node); end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # A block's parameters. # - # source://prism//lib/prism/node.rb#16546 - sig do - params( - keys: T::Array[Symbol] - ).returns(T::Hash[Symbol, T.nilable(T.any(Prism::Node, T::Array[Prism::Node], String, Prism::Token, T::Array[Prism::Token], Prism::Location))]) - end - def deconstruct_keys(keys); end + # source://prism//lib/prism/translation/parser/compiler.rb#217 + def visit_block_parameters_node(node); end - # def end_keyword: () -> String? + # break + # ^^^^^ # - # source://prism//lib/prism/node.rb#16561 - sig { returns(T.nilable(String)) } - def end_keyword; end - - # attr_reader end_keyword_loc: Location? + # break foo + # ^^^^^^^^^ # - # source://prism//lib/prism/node.rb#16488 - sig { returns(T.nilable(Prism::Location)) } - def end_keyword_loc; end + # source://prism//lib/prism/translation/parser/compiler.rb#226 + def visit_break_node(node); end - # def inspect(inspector: NodeInspector) -> String + # foo.bar += baz + # ^^^^^^^^^^^^^^^ + # foo.bar &&= baz + # ^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/node.rb#16566 + # source://prism//lib/prism/translation/parser/compiler.rb#300 + def visit_call_and_write_node(node); end + + # foo + # ^^^ + # + # foo.bar + # ^^^^^^^ + # + # foo.bar() {} + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#238 + def visit_call_node(node); end + + # foo.bar += baz + # ^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#300 + def visit_call_operator_write_node(node); end + + # foo.bar += baz + # ^^^^^^^^^^^^^^^ + # foo.bar ||= baz + # ^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#300 + def visit_call_or_write_node(node); end + + # foo.bar, = 1 + # ^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#327 + def visit_call_target_node(node); end + + # foo => bar => baz + # ^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#339 + def visit_capture_pattern_node(node); end + + # case foo; in bar; end + # ^^^^^^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#358 + def visit_case_match_node(node); end + + # case foo; when bar; end + # ^^^^^^^^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#345 + def visit_case_node(node); end + + # class Foo; end + # ^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#371 + def visit_class_node(node); end + + # @@foo += bar + # ^^^^^^^^^^^^ + # @@foo &&= bar + # ^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#403 + def visit_class_variable_and_write_node(node); end + + # @@foo += bar + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#403 + def visit_class_variable_operator_write_node(node); end + + # @@foo += bar + # ^^^^^^^^^^^^ + # @@foo ||= bar + # ^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#403 + def visit_class_variable_or_write_node(node); end + + # @@foo + # ^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#384 + def visit_class_variable_read_node(node); end + + # @@foo, = bar + # ^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#421 + def visit_class_variable_target_node(node); end + + # @@foo = 1 + # ^^^^^^^^^ + # + # @@foo, @@bar = 1 + # ^^^^^ ^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#393 + def visit_class_variable_write_node(node); end + + # Foo += bar + # ^^^^^^^^^^^ + # Foo &&= bar + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#442 + def visit_constant_and_write_node(node); end + + # Foo += bar + # ^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#442 + def visit_constant_operator_write_node(node); end + + # Foo += bar + # ^^^^^^^^^^^ + # Foo ||= bar + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#442 + def visit_constant_or_write_node(node); end + + # Foo::Bar += baz + # ^^^^^^^^^^^^^^^ + # Foo::Bar &&= baz + # ^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#496 + def visit_constant_path_and_write_node(node); end + + # Foo::Bar + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#466 + def visit_constant_path_node(node); end + + # Foo::Bar += baz + # ^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#496 + def visit_constant_path_operator_write_node(node); end + + # Foo::Bar += baz + # ^^^^^^^^^^^^^^^ + # Foo::Bar ||= baz + # ^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#496 + def visit_constant_path_or_write_node(node); end + + # Foo::Bar, = baz + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#514 + def visit_constant_path_target_node(node); end + + # Foo::Bar = 1 + # ^^^^^^^^^^^^ + # + # Foo::Foo, Bar::Bar = 1 + # ^^^^^^^^ ^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#486 + def visit_constant_path_write_node(node); end + + # Foo + # ^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#427 + def visit_constant_read_node(node); end + + # Foo, = bar + # ^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#460 + def visit_constant_target_node(node); end + + # Foo = 1 + # ^^^^^^^ + # + # Foo, Bar = 1 + # ^^^ ^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#436 + def visit_constant_write_node(node); end + + # def foo; end + # ^^^^^^^^^^^^ + # + # def self.foo; end + # ^^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#523 + def visit_def_node(node); end + + # defined? a + # ^^^^^^^^^^ + # + # defined?(a) + # ^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#570 + def visit_defined_node(node); end + + # if foo then bar else baz end + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#582 + def visit_else_node(node); end + + # "foo #{bar}" + # ^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#588 + def visit_embedded_statements_node(node); end + + # "foo #@bar" + # ^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#598 + def visit_embedded_variable_node(node); end + + # begin; foo; ensure; bar; end + # ^^^^^^^^^^^^ + # + # @raise [CompilationError] + # + # source://prism//lib/prism/translation/parser/compiler.rb#604 + def visit_ensure_node(node); end + + # false + # ^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#610 + def visit_false_node(node); end + + # foo => [*, bar, *] + # ^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#616 + def visit_find_pattern_node(node); end + + # 0..5 + # ^^^^ + # if foo .. bar; end + # ^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1292 + def visit_flip_flop_node(node); end + + # 1.0 + # ^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#628 + def visit_float_node(node); end + + # for foo in bar do end + # ^^^^^^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#634 + def visit_for_node(node); end + + # def foo(...); bar(...); end + # ^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#652 + def visit_forwarding_arguments_node(node); end + + # def foo(...); end + # ^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#658 + def visit_forwarding_parameter_node(node); end + + # super + # ^^^^^ + # + # super {} + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#667 + def visit_forwarding_super_node(node); end + + # $foo += bar + # ^^^^^^^^^^^ + # $foo &&= bar + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#698 + def visit_global_variable_and_write_node(node); end + + # $foo += bar + # ^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#698 + def visit_global_variable_operator_write_node(node); end + + # $foo += bar + # ^^^^^^^^^^^ + # $foo ||= bar + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#698 + def visit_global_variable_or_write_node(node); end + + # $foo + # ^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#679 + def visit_global_variable_read_node(node); end + + # $foo, = bar + # ^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#716 + def visit_global_variable_target_node(node); end + + # $foo = 1 + # ^^^^^^^^ + # + # $foo, $bar = 1 + # ^^^^ ^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#688 + def visit_global_variable_write_node(node); end + + # {} + # ^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#722 + def visit_hash_node(node); end + + # foo => {} + # ^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#732 + def visit_hash_pattern_node(node); end + + # if foo then bar end + # ^^^^^^^^^^^^^^^^^^^ + # + # bar if foo + # ^^^^^^^^^^ + # + # foo ? bar : baz + # ^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#750 + def visit_if_node(node); end + + # 1i + # + # source://prism//lib/prism/translation/parser/compiler.rb#791 + def visit_imaginary_node(node); end + + # { foo: } + # ^^^^ + # + # @raise [CompilationError] + # + # source://prism//lib/prism/translation/parser/compiler.rb#797 + def visit_implicit_node(node); end + + # foo { |bar,| } + # ^ + # + # @raise [CompilationError] + # + # source://prism//lib/prism/translation/parser/compiler.rb#803 + def visit_implicit_rest_node(node); end + + # case foo; in bar; end + # ^^^^^^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#809 + def visit_in_node(node); end + + # foo[bar] += baz + # ^^^^^^^^^^^^^^^ + # foo[bar] &&= baz + # ^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#835 + def visit_index_and_write_node(node); end + + # foo[bar] += baz + # ^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#835 + def visit_index_operator_write_node(node); end + + # foo[bar] += baz + # ^^^^^^^^^^^^^^^ + # foo[bar] ||= baz + # ^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#835 + def visit_index_or_write_node(node); end + + # foo[bar], = 1 + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#861 + def visit_index_target_node(node); end + + # ^^^^^^^^^^^ + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#891 + def visit_instance_variable_and_write_node(node); end + + # ^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#891 + def visit_instance_variable_operator_write_node(node); end + + # ^^^^^^^^^^^ + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#891 + def visit_instance_variable_or_write_node(node); end + + # ^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#872 + def visit_instance_variable_read_node(node); end + + # @foo, = bar + # ^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#909 + def visit_instance_variable_target_node(node); end + + # ^^^^^^^^ + # + # @foo, @bar = 1 + # ^^^^ ^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#881 + def visit_instance_variable_write_node(node); end + + # 1 + # ^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#915 + def visit_integer_node(node); end + + # /foo #{bar}/ + # ^^^^^^^^^^^^ + # if /foo #{bar}/ then end + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#921 + def visit_interpolated_match_last_line_node(node); end + + # /foo #{bar}/ + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#921 + def visit_interpolated_regular_expression_node(node); end + + # "foo #{bar}" + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#936 + def visit_interpolated_string_node(node); end + + # :"foo #{bar}" + # ^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#951 + def visit_interpolated_symbol_node(node); end + + # `foo #{bar}` + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#961 + def visit_interpolated_x_string_node(node); end + + # foo(bar: baz) + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#976 + def visit_keyword_hash_node(node); end + + # def foo(**bar); end + # ^^^^^ + # + # def foo(**); end + # ^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#985 + def visit_keyword_rest_parameter_node(node); end + + # -> {} + # + # source://prism//lib/prism/translation/parser/compiler.rb#993 + def visit_lambda_node(node); end + + # foo += bar + # ^^^^^^^^^^ + # foo &&= bar + # ^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1037 + def visit_local_variable_and_write_node(node); end + + # foo += bar + # ^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1037 + def visit_local_variable_operator_write_node(node); end + + # foo += bar + # ^^^^^^^^^^ + # foo ||= bar + # ^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1037 + def visit_local_variable_or_write_node(node); end + + # foo + # ^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1018 + def visit_local_variable_read_node(node); end + + # foo, = bar + # ^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1055 + def visit_local_variable_target_node(node); end + + # foo = 1 + # ^^^^^^^ + # + # foo, bar = 1 + # ^^^ ^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1027 + def visit_local_variable_write_node(node); end + + # /foo/ + # ^^^^^ + # if /foo/ then end + # ^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1326 + def visit_match_last_line_node(node); end + + # foo in bar + # ^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1065 + def visit_match_predicate_node(node); end + + # foo => bar + # ^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1075 + def visit_match_required_node(node); end + + # /(?foo)/ =~ bar + # ^^^^^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1085 + def visit_match_write_node(node); end + + # A node that is missing from the syntax tree. This is only used in the + # case of a syntax error. The parser gem doesn't have such a concept, so + # we invent our own here. + # + # source://prism//lib/prism/translation/parser/compiler.rb#1096 + def visit_missing_node(node); end + + # module Foo; end + # ^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1102 + def visit_module_node(node); end + + # foo, bar = baz + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1113 + def visit_multi_target_node(node); end + + # foo, bar = baz + # ^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1127 + def visit_multi_write_node(node); end + + # next + # ^^^^ + # + # next foo + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1148 + def visit_next_node(node); end + + # nil + # ^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1160 + def visit_nil_node(node); end + + # def foo(**nil); end + # ^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1166 + def visit_no_keywords_parameter_node(node); end + + # -> { _1 + _2 } + # ^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1176 + def visit_numbered_parameters_node(node); end + + # $1 + # ^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1182 + def visit_numbered_reference_read_node(node); end + + # def foo(bar: baz); end + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1188 + def visit_optional_keyword_parameter_node(node); end + + # def foo(bar = 1); end + # ^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1194 + def visit_optional_parameter_node(node); end + + # a or b + # ^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1200 + def visit_or_node(node); end + + # def foo(bar, *baz); end + # ^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1206 + def visit_parameters_node(node); end + + # () + # ^^ + # + # (1) + # ^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1245 + def visit_parentheses_node(node); end + + # foo => ^(bar) + # ^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1255 + def visit_pinned_expression_node(node); end + + # foo = 1 and bar => ^foo + # ^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1261 + def visit_pinned_variable_node(node); end + + # END {} + # + # source://prism//lib/prism/translation/parser/compiler.rb#1266 + def visit_post_execution_node(node); end + + # BEGIN {} + # + # source://prism//lib/prism/translation/parser/compiler.rb#1276 + def visit_pre_execution_node(node); end + + # The top-level program node. + # + # source://prism//lib/prism/translation/parser/compiler.rb#1286 + def visit_program_node(node); end + + # 0..5 + # ^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1292 + def visit_range_node(node); end + + # 1r + # ^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1314 + def visit_rational_node(node); end + + # redo + # ^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1320 + def visit_redo_node(node); end + + # /foo/ + # ^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1326 + def visit_regular_expression_node(node); end + + # def foo(bar:); end + # ^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1341 + def visit_required_keyword_parameter_node(node); end + + # def foo(bar); end + # ^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1347 + def visit_required_parameter_node(node); end + + # foo rescue bar + # ^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1353 + def visit_rescue_modifier_node(node); end + + # begin; rescue; end + # ^^^^^^^ + # + # @raise [CompilationError] + # + # source://prism//lib/prism/translation/parser/compiler.rb#1371 + def visit_rescue_node(node); end + + # def foo(*bar); end + # ^^^^ + # + # def foo(*); end + # ^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1380 + def visit_rest_parameter_node(node); end + + # retry + # ^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1386 + def visit_retry_node(node); end + + # return + # ^^^^^^ + # + # return 1 + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1395 + def visit_return_node(node); end + + # self + # ^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1407 + def visit_self_node(node); end + + # class << self; end + # ^^^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1413 + def visit_singleton_class_node(node); end + + # __ENCODING__ + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1425 + def visit_source_encoding_node(node); end + + # __FILE__ + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1431 + def visit_source_file_node(node); end + + # __LINE__ + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1437 + def visit_source_line_node(node); end + + # foo(*bar) + # ^^^^ + # + # def foo((bar, *baz)); end + # ^^^^ + # + # def foo(*); bar(*); end + # ^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1449 + def visit_splat_node(node); end + + # A list of statements. + # + # source://prism//lib/prism/translation/parser/compiler.rb#1462 + def visit_statements_node(node); end + + # "foo" + # ^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1468 + def visit_string_node(node); end + + # super(foo) + # ^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1485 + def visit_super_node(node); end + + # :foo + # ^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1508 + def visit_symbol_node(node); end + + # true + # ^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1526 + def visit_true_node(node); end + + # undef foo + # ^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1532 + def visit_undef_node(node); end + + # unless foo; bar end + # ^^^^^^^^^^^^^^^^^^^ + # + # bar unless foo + # ^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1541 + def visit_unless_node(node); end + + # until foo; bar end + # ^^^^^^^^^^^^^^^^^ + # + # bar until foo + # ^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1571 + def visit_until_node(node); end + + # case foo; when bar; end + # ^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1593 + def visit_when_node(node); end + + # while foo; bar end + # ^^^^^^^^^^^^^^^^^^ + # + # bar while foo + # ^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1607 + def visit_while_node(node); end + + # `foo` + # ^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1629 + def visit_x_string_node(node); end + + # yield + # ^^^^^ + # + # yield 1 + # ^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1647 + def visit_yield_node(node); end + + private + + # Initialize a new compiler with the given option overrides, used to + # visit a subtree with the given options. + # + # source://prism//lib/prism/translation/parser/compiler.rb#1661 + def copy_compiler(forwarding: T.unsafe(nil), in_destructure: T.unsafe(nil), in_pattern: T.unsafe(nil)); end + + # When *, **, &, or ... are used as an argument in a method call, we + # check if they were allowed by the current context. To determine that + # we build this lookup table. + # + # source://prism//lib/prism/translation/parser/compiler.rb#1668 + def find_forwarding(node); end + + # Blocks can have a special set of parameters that automatically expand + # when given arrays if they have a single required parameter and no + # other parameters. + # + # @return [Boolean] + # + # source://prism//lib/prism/translation/parser/compiler.rb#1683 + def procarg0?(parameters); end + + # Constructs a new source range from the given start and end offsets. + # + # source://prism//lib/prism/translation/parser/compiler.rb#1700 + def srange(location); end + + # Constructs a new source range by finding the given tokens between the + # given start offset and end offset. If the needle is not found, it + # returns nil. + # + # source://prism//lib/prism/translation/parser/compiler.rb#1712 + def srange_find(start_offset, end_offset, tokens); end + + # Constructs a new source range from the given start and end offsets. + # + # source://prism//lib/prism/translation/parser/compiler.rb#1705 + def srange_offsets(start_offset, end_offset); end + + # Transform a location into a token that the parser gem expects. + # + # source://prism//lib/prism/translation/parser/compiler.rb#1721 + def token(location); end + + # Visit a block node on a call. + # + # source://prism//lib/prism/translation/parser/compiler.rb#1726 + def visit_block(call, block); end + + # Visit a heredoc that can be either a string or an xstring. + # + # source://prism//lib/prism/translation/parser/compiler.rb#1759 + def visit_heredoc(node); end + + # Visit a numeric node and account for the optional sign. + # + # source://prism//lib/prism/translation/parser/compiler.rb#1805 + def visit_numeric(node, value); end + + # Within the given block, track that we're within a pattern. + # + # source://prism//lib/prism/translation/parser/compiler.rb#1817 + def within_pattern; end +end + +# Raised when the tree is malformed or there is a bug in the compiler. +# +# source://prism//lib/prism/translation/parser/compiler.rb#10 +class Prism::Translation::Parser::Compiler::CompilationError < ::StandardError; end + +# Locations in the parser gem AST are generated using this class. We +# store a reference to its constant to make it slightly faster to look +# up. +# +# source://prism//lib/prism/translation/parser/compiler.rb#1697 +Prism::Translation::Parser::Compiler::Range = Parser::Source::Range + +# The parser gem has a list of diagnostics with a hard-coded set of error +# messages. We create our own diagnostic class in order to set our own +# error messages. +# +# source://prism//lib/prism/translation/parser.rb#15 +class Prism::Translation::Parser::Diagnostic < ::Parser::Diagnostic + # Initialize a new diagnostic with the given message and location. + # + # @return [Diagnostic] a new instance of Diagnostic + # + # source://prism//lib/prism/translation/parser.rb#20 + def initialize(message, location); end + + # The message generated by prism. + # + # source://prism//lib/prism/translation/parser.rb#17 + def message; end +end + +# Accepts a list of prism tokens and converts them into the expected +# format for the parser gem. +# +# source://prism//lib/prism/translation/parser/lexer.rb#8 +class Prism::Translation::Parser::Lexer + # Initialize the lexer with the given source buffer, prism tokens, and + # offset cache. + # + # @return [Lexer] a new instance of Lexer + # + # source://prism//lib/prism/translation/parser/lexer.rb#193 + def initialize(source_buffer, lexed, offset_cache); end + + # An array of prism tokens that we lexed. + # + # source://prism//lib/prism/translation/parser/lexer.rb#186 + def lexed; end + + # A hash that maps offsets in bytes to offsets in characters. + # + # source://prism//lib/prism/translation/parser/lexer.rb#189 + def offset_cache; end + + # The Parser::Source::Buffer that the tokens were lexed from. + # + # source://prism//lib/prism/translation/parser/lexer.rb#183 + def source_buffer; end + + # Convert the prism tokens into the expected format for the parser gem. + # + # source://prism//lib/prism/translation/parser/lexer.rb#203 + def to_a; end + + private + + # Parse a complex from the string representation. + # + # source://prism//lib/prism/translation/parser/lexer.rb#310 + def parse_complex(value); end + + # Parse a rational from the string representation. + # + # source://prism//lib/prism/translation/parser/lexer.rb#323 + def parse_rational(value); end +end + +# source://prism//lib/prism/translation/parser/lexer.rb#199 +Prism::Translation::Parser::Lexer::Range = Parser::Source::Range + +# The direct translating of types between the two lexers. +# +# source://prism//lib/prism/translation/parser/lexer.rb#10 +Prism::Translation::Parser::Lexer::TYPES = T.let(T.unsafe(nil), Hash) + +# source://prism//lib/prism/translation/parser.rb#26 +Prism::Translation::Parser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass) + +# Represents the use of the literal `true` keyword. +# +# true +# ^^^^ +# +# source://prism//lib/prism/node.rb#16565 +class Prism::TrueNode < ::Prism::Node + # def initialize: (Location location) -> void + # + # @return [TrueNode] a new instance of TrueNode + # + # source://prism//lib/prism/node.rb#16567 + sig { params(location: Prism::Location).void } + def initialize(location); end + + # def accept: (Visitor visitor) -> void + # + # source://prism//lib/prism/node.rb#16572 + sig { params(visitor: Prism::Visitor).void } + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://prism//lib/prism/node.rb#16577 + sig { returns(T::Array[T.nilable(Prism::Node)]) } + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://prism//lib/prism/node.rb#16587 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://prism//lib/prism/node.rb#16582 + def compact_child_nodes; end + + # def copy: (**params) -> TrueNode + # + # source://prism//lib/prism/node.rb#16592 + sig { params(params: T.untyped).returns(Prism::TrueNode) } + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://prism//lib/prism/node.rb#16577 + sig { returns(T::Array[T.nilable(Prism::Node)]) } + def deconstruct; end + + # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } + # + # source://prism//lib/prism/node.rb#16602 + sig do + params( + keys: T::Array[Symbol] + ).returns(T::Hash[Symbol, T.nilable(T.any(Prism::Node, T::Array[Prism::Node], String, Prism::Token, T::Array[Prism::Token], Prism::Location))]) + end + def deconstruct_keys(keys); end + + # def inspect(NodeInspector inspector) -> String + # + # source://prism//lib/prism/node.rb#16607 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://prism//lib/prism/node.rb#16626 + def type; end + + class << self + # Similar to #type, this method returns a symbol that you can use for + # splitting on the type of the node without having to do a long === chain. + # Note that like #type, it will still be slower than using == for a single + # class, but should be faster in a case statement or an array comparison. + # + # def self.type: () -> Symbol + # + # source://prism//lib/prism/node.rb#16636 + def type; end + end +end + +# Represents the use of the `undef` keyword. +# +# undef :foo, :bar, :baz +# ^^^^^^^^^^^^^^^^^^^^^^ +# +# source://prism//lib/prism/node.rb#16645 +class Prism::UndefNode < ::Prism::Node + # def initialize: (Array[Node] names, Location keyword_loc, Location location) -> void + # + # @return [UndefNode] a new instance of UndefNode + # + # source://prism//lib/prism/node.rb#16653 + sig { params(names: T::Array[Prism::Node], keyword_loc: Prism::Location, location: Prism::Location).void } + def initialize(names, keyword_loc, location); end + + # def accept: (Visitor visitor) -> void + # + # source://prism//lib/prism/node.rb#16660 + sig { params(visitor: Prism::Visitor).void } + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://prism//lib/prism/node.rb#16665 + sig { returns(T::Array[T.nilable(Prism::Node)]) } + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://prism//lib/prism/node.rb#16675 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://prism//lib/prism/node.rb#16670 + def compact_child_nodes; end + + # def copy: (**params) -> UndefNode + # + # source://prism//lib/prism/node.rb#16680 + sig { params(params: T.untyped).returns(Prism::UndefNode) } + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://prism//lib/prism/node.rb#16665 + sig { returns(T::Array[T.nilable(Prism::Node)]) } + def deconstruct; end + + # def deconstruct_keys: (Array[Symbol] keys) -> { names: Array[Node], keyword_loc: Location, location: Location } + # + # source://prism//lib/prism/node.rb#16692 + sig do + params( + keys: T::Array[Symbol] + ).returns(T::Hash[Symbol, T.nilable(T.any(Prism::Node, T::Array[Prism::Node], String, Prism::Token, T::Array[Prism::Token], Prism::Location))]) + end + def deconstruct_keys(keys); end + + # def inspect(NodeInspector inspector) -> String + # + # source://prism//lib/prism/node.rb#16702 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://prism//lib/prism/node.rb#16697 + sig { returns(String) } + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://prism//lib/prism/node.rb#16650 + sig { returns(Prism::Location) } + def keyword_loc; end + + # attr_reader names: Array[Node] + # + # source://prism//lib/prism/node.rb#16647 + sig { returns(T::Array[Prism::Node]) } + def names; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://prism//lib/prism/node.rb#16723 + def type; end + + class << self + # Similar to #type, this method returns a symbol that you can use for + # splitting on the type of the node without having to do a long === chain. + # Note that like #type, it will still be slower than using == for a single + # class, but should be faster in a case statement or an array comparison. + # + # def self.type: () -> Symbol + # + # source://prism//lib/prism/node.rb#16733 + def type; end + end +end + +# Represents the use of the `unless` keyword, either in the block form or the modifier form. +# +# bar unless foo +# ^^^^^^^^^^^^^^ +# +# unless foo then bar end +# ^^^^^^^^^^^^^^^^^^^^^^^ +# +# source://prism//lib/prism/node.rb#16745 +class Prism::UnlessNode < ::Prism::Node + # def initialize: (Location keyword_loc, Node predicate, Location? then_keyword_loc, StatementsNode? statements, ElseNode? consequent, Location? end_keyword_loc, Location location) -> void + # + # @return [UnlessNode] a new instance of UnlessNode + # + # source://prism//lib/prism/node.rb#16765 + sig do + params( + keyword_loc: Prism::Location, + predicate: Prism::Node, + then_keyword_loc: T.nilable(Prism::Location), + statements: T.nilable(Prism::StatementsNode), + consequent: T.nilable(Prism::ElseNode), + end_keyword_loc: T.nilable(Prism::Location), + location: Prism::Location + ).void + end + def initialize(keyword_loc, predicate, then_keyword_loc, statements, consequent, end_keyword_loc, location); end + + # def accept: (Visitor visitor) -> void + # + # source://prism//lib/prism/node.rb#16776 + sig { params(visitor: Prism::Visitor).void } + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://prism//lib/prism/node.rb#16785 + sig { returns(T::Array[T.nilable(Prism::Node)]) } + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://prism//lib/prism/node.rb#16799 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://prism//lib/prism/node.rb#16790 + def compact_child_nodes; end + + # attr_reader consequent: ElseNode? + # + # source://prism//lib/prism/node.rb#16759 + sig { returns(T.nilable(Prism::ElseNode)) } + def consequent; end + + # def copy: (**params) -> UnlessNode + # + # source://prism//lib/prism/node.rb#16804 + sig { params(params: T.untyped).returns(Prism::UnlessNode) } + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://prism//lib/prism/node.rb#16785 + sig { returns(T::Array[T.nilable(Prism::Node)]) } + def deconstruct; end + + # def deconstruct_keys: (Array[Symbol] keys) -> { keyword_loc: Location, predicate: Node, then_keyword_loc: Location?, statements: StatementsNode?, consequent: ElseNode?, end_keyword_loc: Location?, location: Location } + # + # source://prism//lib/prism/node.rb#16820 + sig do + params( + keys: T::Array[Symbol] + ).returns(T::Hash[Symbol, T.nilable(T.any(Prism::Node, T::Array[Prism::Node], String, Prism::Token, T::Array[Prism::Token], Prism::Location))]) + end + def deconstruct_keys(keys); end + + # def end_keyword: () -> String? + # + # source://prism//lib/prism/node.rb#16835 + sig { returns(T.nilable(String)) } + def end_keyword; end + + # attr_reader end_keyword_loc: Location? + # + # source://prism//lib/prism/node.rb#16762 + sig { returns(T.nilable(Prism::Location)) } + def end_keyword_loc; end + + # def inspect(NodeInspector inspector) -> String + # + # source://prism//lib/prism/node.rb#16840 def inspect(inspector = T.unsafe(nil)); end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#16551 + # source://prism//lib/prism/node.rb#16825 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#16473 + # source://prism//lib/prism/node.rb#16747 sig { returns(Prism::Location) } def keyword_loc; end # attr_reader predicate: Node # - # source://prism//lib/prism/node.rb#16476 + # source://prism//lib/prism/node.rb#16750 sig { returns(Prism::Node) } def predicate; end - # source://prism//lib/prism/node.rb#16506 + # source://prism//lib/prism/node.rb#16780 def set_newline_flag(newline_marked); end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#16482 + # source://prism//lib/prism/node.rb#16756 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end # def then_keyword: () -> String? # - # source://prism//lib/prism/node.rb#16556 + # source://prism//lib/prism/node.rb#16830 sig { returns(T.nilable(String)) } def then_keyword; end # attr_reader then_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#16479 + # source://prism//lib/prism/node.rb#16753 sig { returns(T.nilable(Prism::Location)) } def then_keyword_loc; end @@ -28179,7 +29884,7 @@ class Prism::UnlessNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16602 + # source://prism//lib/prism/node.rb#16876 def type; end class << self @@ -28190,7 +29895,7 @@ class Prism::UnlessNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16612 + # source://prism//lib/prism/node.rb#16886 def type; end end end @@ -28203,13 +29908,13 @@ end # until foo do bar end # ^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#16625 +# source://prism//lib/prism/node.rb#16898 class Prism::UntilNode < ::Prism::Node - # def initialize: (flags: Integer, keyword_loc: Location, closing_loc: Location?, predicate: Node, statements: StatementsNode?, location: Location) -> void + # def initialize: (Integer flags, Location keyword_loc, Location? closing_loc, Node predicate, StatementsNode? statements, Location location) -> void # # @return [UntilNode] a new instance of UntilNode # - # source://prism//lib/prism/node.rb#16641 + # source://prism//lib/prism/node.rb#16915 sig do params( flags: Integer, @@ -28222,9 +29927,9 @@ class Prism::UntilNode < ::Prism::Node end def initialize(flags, keyword_loc, closing_loc, predicate, statements, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16651 + # source://prism//lib/prism/node.rb#16925 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end @@ -28232,54 +29937,54 @@ class Prism::UntilNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16698 + # source://prism//lib/prism/node.rb#16972 sig { returns(T::Boolean) } def begin_modifier?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16660 + # source://prism//lib/prism/node.rb#16934 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#16708 + # source://prism//lib/prism/node.rb#16982 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#16632 + # source://prism//lib/prism/node.rb#16906 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#16673 + # source://prism//lib/prism/node.rb#16947 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#16665 + # source://prism//lib/prism/node.rb#16939 def compact_child_nodes; end # def copy: (**params) -> UntilNode # - # source://prism//lib/prism/node.rb#16678 + # source://prism//lib/prism/node.rb#16952 sig { params(params: T.untyped).returns(Prism::UntilNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16660 + # source://prism//lib/prism/node.rb#16934 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, keyword_loc: Location, closing_loc: Location?, predicate: Node, statements: StatementsNode?, location: Location } # - # source://prism//lib/prism/node.rb#16693 + # source://prism//lib/prism/node.rb#16967 sig do params( keys: T::Array[Symbol] @@ -28287,35 +29992,35 @@ class Prism::UntilNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#16713 + # source://prism//lib/prism/node.rb#16987 def inspect(inspector = T.unsafe(nil)); end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#16703 + # source://prism//lib/prism/node.rb#16977 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#16629 + # source://prism//lib/prism/node.rb#16903 sig { returns(Prism::Location) } def keyword_loc; end # attr_reader predicate: Node # - # source://prism//lib/prism/node.rb#16635 + # source://prism//lib/prism/node.rb#16909 sig { returns(Prism::Node) } def predicate; end - # source://prism//lib/prism/node.rb#16655 + # source://prism//lib/prism/node.rb#16929 def set_newline_flag(newline_marked); end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#16638 + # source://prism//lib/prism/node.rb#16912 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -28334,14 +30039,14 @@ class Prism::UntilNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16744 + # source://prism//lib/prism/node.rb#17018 def type; end private # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#16626 + # source://prism//lib/prism/node.rb#16900 sig { returns(Integer) } def flags; end @@ -28353,7 +30058,7 @@ class Prism::UntilNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16754 + # source://prism//lib/prism/node.rb#17028 def type; end end end @@ -28380,7 +30085,7 @@ Prism::VERSION = T.let(T.unsafe(nil), String) # end # end # -# source://prism//lib/prism/visitor.rb#51 +# source://prism//lib/prism/visitor.rb#50 class Prism::Visitor < ::Prism::BasicVisitor # Visit a AliasGlobalVariableNode node # @@ -29278,13 +30983,13 @@ end # ^^^^^^^^^ # end # -# source://prism//lib/prism/node.rb#16766 +# source://prism//lib/prism/node.rb#17039 class Prism::WhenNode < ::Prism::Node - # def initialize: (keyword_loc: Location, conditions: Array[Node], statements: StatementsNode?, location: Location) -> void + # def initialize: (Location keyword_loc, Array[Node] conditions, StatementsNode? statements, Location location) -> void # # @return [WhenNode] a new instance of WhenNode # - # source://prism//lib/prism/node.rb#16776 + # source://prism//lib/prism/node.rb#17050 sig do params( keyword_loc: Prism::Location, @@ -29295,50 +31000,50 @@ class Prism::WhenNode < ::Prism::Node end def initialize(keyword_loc, conditions, statements, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16784 + # source://prism//lib/prism/node.rb#17058 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16789 + # source://prism//lib/prism/node.rb#17063 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#16802 + # source://prism//lib/prism/node.rb#17076 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#16794 + # source://prism//lib/prism/node.rb#17068 def compact_child_nodes; end # attr_reader conditions: Array[Node] # - # source://prism//lib/prism/node.rb#16770 + # source://prism//lib/prism/node.rb#17044 sig { returns(T::Array[Prism::Node]) } def conditions; end # def copy: (**params) -> WhenNode # - # source://prism//lib/prism/node.rb#16807 + # source://prism//lib/prism/node.rb#17081 sig { params(params: T.untyped).returns(Prism::WhenNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16789 + # source://prism//lib/prism/node.rb#17063 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { keyword_loc: Location, conditions: Array[Node], statements: StatementsNode?, location: Location } # - # source://prism//lib/prism/node.rb#16820 + # source://prism//lib/prism/node.rb#17094 sig do params( keys: T::Array[Symbol] @@ -29346,26 +31051,26 @@ class Prism::WhenNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#16830 + # source://prism//lib/prism/node.rb#17104 def inspect(inspector = T.unsafe(nil)); end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#16825 + # source://prism//lib/prism/node.rb#17099 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#16767 + # source://prism//lib/prism/node.rb#17041 sig { returns(Prism::Location) } def keyword_loc; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#16773 + # source://prism//lib/prism/node.rb#17047 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -29384,7 +31089,7 @@ class Prism::WhenNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16857 + # source://prism//lib/prism/node.rb#17131 def type; end class << self @@ -29395,7 +31100,7 @@ class Prism::WhenNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16867 + # source://prism//lib/prism/node.rb#17141 def type; end end end @@ -29408,13 +31113,13 @@ end # while foo do bar end # ^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#16880 +# source://prism//lib/prism/node.rb#17153 class Prism::WhileNode < ::Prism::Node - # def initialize: (flags: Integer, keyword_loc: Location, closing_loc: Location?, predicate: Node, statements: StatementsNode?, location: Location) -> void + # def initialize: (Integer flags, Location keyword_loc, Location? closing_loc, Node predicate, StatementsNode? statements, Location location) -> void # # @return [WhileNode] a new instance of WhileNode # - # source://prism//lib/prism/node.rb#16896 + # source://prism//lib/prism/node.rb#17170 sig do params( flags: Integer, @@ -29427,9 +31132,9 @@ class Prism::WhileNode < ::Prism::Node end def initialize(flags, keyword_loc, closing_loc, predicate, statements, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16906 + # source://prism//lib/prism/node.rb#17180 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end @@ -29437,54 +31142,54 @@ class Prism::WhileNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16953 + # source://prism//lib/prism/node.rb#17227 sig { returns(T::Boolean) } def begin_modifier?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16915 + # source://prism//lib/prism/node.rb#17189 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#16963 + # source://prism//lib/prism/node.rb#17237 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#16887 + # source://prism//lib/prism/node.rb#17161 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#16928 + # source://prism//lib/prism/node.rb#17202 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#16920 + # source://prism//lib/prism/node.rb#17194 def compact_child_nodes; end # def copy: (**params) -> WhileNode # - # source://prism//lib/prism/node.rb#16933 + # source://prism//lib/prism/node.rb#17207 sig { params(params: T.untyped).returns(Prism::WhileNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16915 + # source://prism//lib/prism/node.rb#17189 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, keyword_loc: Location, closing_loc: Location?, predicate: Node, statements: StatementsNode?, location: Location } # - # source://prism//lib/prism/node.rb#16948 + # source://prism//lib/prism/node.rb#17222 sig do params( keys: T::Array[Symbol] @@ -29492,35 +31197,35 @@ class Prism::WhileNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#16968 + # source://prism//lib/prism/node.rb#17242 def inspect(inspector = T.unsafe(nil)); end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#16958 + # source://prism//lib/prism/node.rb#17232 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#16884 + # source://prism//lib/prism/node.rb#17158 sig { returns(Prism::Location) } def keyword_loc; end # attr_reader predicate: Node # - # source://prism//lib/prism/node.rb#16890 + # source://prism//lib/prism/node.rb#17164 sig { returns(Prism::Node) } def predicate; end - # source://prism//lib/prism/node.rb#16910 + # source://prism//lib/prism/node.rb#17184 def set_newline_flag(newline_marked); end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#16893 + # source://prism//lib/prism/node.rb#17167 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -29539,14 +31244,14 @@ class Prism::WhileNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16999 + # source://prism//lib/prism/node.rb#17273 def type; end private # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#16881 + # source://prism//lib/prism/node.rb#17155 sig { returns(Integer) } def flags; end @@ -29558,7 +31263,7 @@ class Prism::WhileNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17009 + # source://prism//lib/prism/node.rb#17283 def type; end end end @@ -29568,15 +31273,15 @@ end # `foo` # ^^^^^ # -# source://prism//lib/prism/node.rb#17019 +# source://prism//lib/prism/node.rb#17292 class Prism::XStringNode < ::Prism::Node include ::Prism::HeredocQuery - # def initialize: (flags: Integer, opening_loc: Location, content_loc: Location, closing_loc: Location, unescaped: String, location: Location) -> void + # def initialize: (Integer flags, Location opening_loc, Location content_loc, Location closing_loc, String unescaped, Location location) -> void # # @return [XStringNode] a new instance of XStringNode # - # source://prism//lib/prism/node.rb#17035 + # source://prism//lib/prism/node.rb#17309 sig do params( flags: Integer, @@ -29589,68 +31294,68 @@ class Prism::XStringNode < ::Prism::Node end def initialize(flags, opening_loc, content_loc, closing_loc, unescaped, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17045 + # source://prism//lib/prism/node.rb#17319 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17050 + # source://prism//lib/prism/node.rb#17324 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#17105 + # source://prism//lib/prism/node.rb#17379 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#17029 + # source://prism//lib/prism/node.rb#17303 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#17060 + # source://prism//lib/prism/node.rb#17334 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#17055 + # source://prism//lib/prism/node.rb#17329 def compact_child_nodes; end # def content: () -> String # - # source://prism//lib/prism/node.rb#17100 + # source://prism//lib/prism/node.rb#17374 sig { returns(String) } def content; end # attr_reader content_loc: Location # - # source://prism//lib/prism/node.rb#17026 + # source://prism//lib/prism/node.rb#17300 sig { returns(Prism::Location) } def content_loc; end # def copy: (**params) -> XStringNode # - # source://prism//lib/prism/node.rb#17065 + # source://prism//lib/prism/node.rb#17339 sig { params(params: T.untyped).returns(Prism::XStringNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17050 + # source://prism//lib/prism/node.rb#17324 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, opening_loc: Location, content_loc: Location, closing_loc: Location, unescaped: String, location: Location } # - # source://prism//lib/prism/node.rb#17080 + # source://prism//lib/prism/node.rb#17354 sig do params( keys: T::Array[Symbol] @@ -29662,7 +31367,7 @@ class Prism::XStringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#17090 + # source://prism//lib/prism/node.rb#17364 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -29670,24 +31375,24 @@ class Prism::XStringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#17085 + # source://prism//lib/prism/node.rb#17359 sig { returns(T::Boolean) } def forced_utf8_encoding?; end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#17110 + # source://prism//lib/prism/node.rb#17384 def inspect(inspector = T.unsafe(nil)); end # def opening: () -> String # - # source://prism//lib/prism/node.rb#17095 + # source://prism//lib/prism/node.rb#17369 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#17023 + # source://prism//lib/prism/node.rb#17297 sig { returns(Prism::Location) } def opening_loc; end @@ -29706,12 +31411,12 @@ class Prism::XStringNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17135 + # source://prism//lib/prism/node.rb#17409 def type; end # attr_reader unescaped: String # - # source://prism//lib/prism/node.rb#17032 + # source://prism//lib/prism/node.rb#17306 sig { returns(String) } def unescaped; end @@ -29719,7 +31424,7 @@ class Prism::XStringNode < ::Prism::Node # Returns the value of attribute flags. # - # source://prism//lib/prism/node.rb#17020 + # source://prism//lib/prism/node.rb#17294 sig { returns(Integer) } def flags; end @@ -29731,7 +31436,7 @@ class Prism::XStringNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17145 + # source://prism//lib/prism/node.rb#17419 def type; end end end @@ -29741,13 +31446,13 @@ end # yield 1 # ^^^^^^^ # -# source://prism//lib/prism/node.rb#17155 +# source://prism//lib/prism/node.rb#17428 class Prism::YieldNode < ::Prism::Node - # def initialize: (keyword_loc: Location, lparen_loc: Location?, arguments: ArgumentsNode?, rparen_loc: Location?, location: Location) -> void + # def initialize: (Location keyword_loc, Location? lparen_loc, ArgumentsNode? arguments, Location? rparen_loc, Location location) -> void # # @return [YieldNode] a new instance of YieldNode # - # source://prism//lib/prism/node.rb#17168 + # source://prism//lib/prism/node.rb#17442 sig do params( keyword_loc: Prism::Location, @@ -29759,50 +31464,50 @@ class Prism::YieldNode < ::Prism::Node end def initialize(keyword_loc, lparen_loc, arguments, rparen_loc, location); end - # def accept: (visitor: Visitor) -> void + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17177 + # source://prism//lib/prism/node.rb#17451 sig { params(visitor: Prism::Visitor).void } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#17162 + # source://prism//lib/prism/node.rb#17436 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17182 + # source://prism//lib/prism/node.rb#17456 sig { returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#17194 + # source://prism//lib/prism/node.rb#17468 def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#17187 + # source://prism//lib/prism/node.rb#17461 def compact_child_nodes; end # def copy: (**params) -> YieldNode # - # source://prism//lib/prism/node.rb#17199 + # source://prism//lib/prism/node.rb#17473 sig { params(params: T.untyped).returns(Prism::YieldNode) } def copy(**params); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17182 + # source://prism//lib/prism/node.rb#17456 sig { returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # def deconstruct_keys: (Array[Symbol] keys) -> { keyword_loc: Location, lparen_loc: Location?, arguments: ArgumentsNode?, rparen_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#17213 + # source://prism//lib/prism/node.rb#17487 sig do params( keys: T::Array[Symbol] @@ -29810,44 +31515,44 @@ class Prism::YieldNode < ::Prism::Node end def deconstruct_keys(keys); end - # def inspect(inspector: NodeInspector) -> String + # def inspect(NodeInspector inspector) -> String # - # source://prism//lib/prism/node.rb#17233 + # source://prism//lib/prism/node.rb#17507 def inspect(inspector = T.unsafe(nil)); end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#17218 + # source://prism//lib/prism/node.rb#17492 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#17156 + # source://prism//lib/prism/node.rb#17430 sig { returns(Prism::Location) } def keyword_loc; end # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#17223 + # source://prism//lib/prism/node.rb#17497 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#17159 + # source://prism//lib/prism/node.rb#17433 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#17228 + # source://prism//lib/prism/node.rb#17502 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#17165 + # source://prism//lib/prism/node.rb#17439 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -29866,7 +31571,7 @@ class Prism::YieldNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17261 + # source://prism//lib/prism/node.rb#17535 def type; end class << self @@ -29877,7 +31582,7 @@ class Prism::YieldNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17271 + # source://prism//lib/prism/node.rb#17545 def type; end end end diff --git a/sorbet/rbi/gems/pry-byebug@3.10.1.rbi b/sorbet/rbi/gems/pry-byebug@3.10.1.rbi index 12ca278b6..c6ec0371e 100644 --- a/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +++ b/sorbet/rbi/gems/pry-byebug@3.10.1.rbi @@ -165,11 +165,11 @@ class Byebug::PryProcessor < ::Byebug::CommandProcessor # source://pry-byebug//lib/byebug/processors/pry_processor.rb#71 def at_return(_return_value); end - # source://forwardable/1.3.1/forwardable.rb#226 - def bold(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def bold(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def output(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def output(*args, **_arg1, &block); end # Set up a number of navigational commands to be performed by Byebug. # @@ -254,17 +254,17 @@ class Pry # source://pry/0.14.2/lib/pry/pry_instance.rb#32 def binding_stack=(_arg0); end - # source://forwardable/1.3.1/forwardable.rb#226 - def color(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def color(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def color=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def color=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def commands(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def commands(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def commands=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def commands=(*args, **_arg1, &block); end # source://pry/0.14.2/lib/pry/pry_instance.rb#145 def complete(str); end @@ -284,11 +284,11 @@ class Pry # source://pry/0.14.2/lib/pry/pry_instance.rb#33 def custom_completions=(_arg0); end - # source://forwardable/1.3.1/forwardable.rb#226 - def editor(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def editor(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def editor=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def editor=(*args, **_arg1, &block); end # source://pry/0.14.2/lib/pry/pry_instance.rb#255 def eval(line, options = T.unsafe(nil)); end @@ -302,11 +302,11 @@ class Pry # source://pry/0.14.2/lib/pry/pry_instance.rb#286 def evaluate_ruby(code); end - # source://forwardable/1.3.1/forwardable.rb#226 - def exception_handler(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def exception_handler(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def exception_handler=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def exception_handler=(*args, **_arg1, &block); end # source://pry/0.14.2/lib/pry/pry_instance.rb#394 def exec_hook(name, *args, &block); end @@ -314,17 +314,17 @@ class Pry # source://pry/0.14.2/lib/pry/pry_instance.rb#42 def exit_value; end - # source://forwardable/1.3.1/forwardable.rb#226 - def extra_sticky_locals(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def extra_sticky_locals(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def extra_sticky_locals=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def extra_sticky_locals=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def hooks(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def hooks(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def hooks=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def hooks=(*args, **_arg1, &block); end # source://pry/0.14.2/lib/pry/pry_instance.rb#173 def inject_local(name, value, binding); end @@ -332,11 +332,11 @@ class Pry # source://pry/0.14.2/lib/pry/pry_instance.rb#201 def inject_sticky_locals!; end - # source://forwardable/1.3.1/forwardable.rb#226 - def input(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def input(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def input=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def input=(*args, **_arg1, &block); end # source://pry/0.14.2/lib/pry/pry_instance.rb#45 def input_ring; end @@ -377,8 +377,8 @@ class Pry # source://pry/0.14.2/lib/pry/pry_instance.rb#538 def output; end - # source://forwardable/1.3.1/forwardable.rb#226 - def output=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def output=(*args, **_arg1, &block); end # source://pry/0.14.2/lib/pry/pry_instance.rb#48 def output_ring; end @@ -386,17 +386,17 @@ class Pry # source://pry/0.14.2/lib/pry/pry_instance.rb#530 def pager; end - # source://forwardable/1.3.1/forwardable.rb#226 - def pager=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def pager=(*args, **_arg1, &block); end # source://pry/0.14.2/lib/pry/pry_instance.rb#522 def pop_prompt; end - # source://forwardable/1.3.1/forwardable.rb#226 - def print(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def print(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def print=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def print=(*args, **_arg1, &block); end # source://pry/0.14.2/lib/pry/pry_instance.rb#325 def process_command(val); end @@ -500,17 +500,17 @@ class Pry # source://pry/0.14.2/lib/pry/pry_class.rb#22 def cli=(_arg0); end - # source://forwardable/1.3.1/forwardable.rb#226 - def color(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def color(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def color=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def color=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def commands(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def commands(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def commands=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def commands=(*args, **_arg1, &block); end # source://pry/0.14.2/lib/pry/pry_class.rb#25 def config; end @@ -539,11 +539,11 @@ class Pry # source://pry/0.14.2/lib/pry/pry_class.rb#18 def custom_completions=(_arg0); end - # source://forwardable/1.3.1/forwardable.rb#226 - def editor(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def editor(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def editor=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def editor=(*args, **_arg1, &block); end # source://pry/0.14.2/lib/pry/pry_class.rb#21 def eval_path; end @@ -551,32 +551,32 @@ class Pry # source://pry/0.14.2/lib/pry/pry_class.rb#21 def eval_path=(_arg0); end - # source://forwardable/1.3.1/forwardable.rb#226 - def exception_handler(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def exception_handler(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def exception_handler=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def exception_handler=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def extra_sticky_locals(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def extra_sticky_locals(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def extra_sticky_locals=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def extra_sticky_locals=(*args, **_arg1, &block); end # source://pry/0.14.2/lib/pry/pry_class.rb#139 def final_session_setup; end - # source://forwardable/1.3.1/forwardable.rb#226 - def history(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def history(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def history=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def history=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def hooks(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def hooks(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def hooks=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def hooks=(*args, **_arg1, &block); end # source://pry/0.14.2/lib/pry/pry_class.rb#375 def in_critical_section?; end @@ -590,11 +590,11 @@ class Pry # source://pry/0.14.2/lib/pry/pry_class.rb#129 def initial_session_setup; end - # source://forwardable/1.3.1/forwardable.rb#226 - def input(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def input(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def input=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def input=(*args, **_arg1, &block); end # source://pry/0.14.2/lib/pry/pry_class.rb#24 def last_internal_error; end @@ -632,35 +632,35 @@ class Pry # source://pry/0.14.2/lib/pry/pry_class.rb#55 def main; end - # source://forwardable/1.3.1/forwardable.rb#226 - def memory_size(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def memory_size(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def memory_size=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def memory_size=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def output(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def output(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def output=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def output=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def pager(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def pager(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def pager=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def pager=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def print(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def print(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def print=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def print=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def prompt(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def prompt(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def prompt=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def prompt=(*args, **_arg1, &block); end # source://pry/0.14.2/lib/pry/pry_class.rb#23 def quiet; end @@ -816,11 +816,11 @@ class Pry::REPL # source://pry/0.14.2/lib/pry/repl.rb#22 def initialize(pry, options = T.unsafe(nil)); end - # source://forwardable/1.3.1/forwardable.rb#226 - def input(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def input(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def output(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def output(*args, **_arg1, &block); end # source://pry/0.14.2/lib/pry/repl.rb#9 def pry; end diff --git a/sorbet/rbi/gems/pry@0.14.2.rbi b/sorbet/rbi/gems/pry@0.14.2.rbi index f32629c9b..667f00a46 100644 --- a/sorbet/rbi/gems/pry@0.14.2.rbi +++ b/sorbet/rbi/gems/pry@0.14.2.rbi @@ -71,13 +71,6 @@ class Object < ::BasicObject def pry(object = T.unsafe(nil), hash = T.unsafe(nil)); end end -# {Pry::LastException} is a proxy class who wraps an Exception object for -# {Pry#last_exception}. it extends the exception object with methods that -# help pry commands be useful. -# -# the original exception object is not modified and method calls are forwarded -# to the wrapped exception object. -# # source://pry//lib/pry/version.rb#3 class Pry extend ::Forwardable @@ -134,17 +127,17 @@ class Pry # source://pry//lib/pry/pry_instance.rb#32 def binding_stack=(_arg0); end - # source://forwardable/1.3.1/forwardable.rb#226 - def color(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def color(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def color=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def color=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def commands(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def commands(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def commands=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def commands=(*args, **_arg1, &block); end # Generate completions. # @@ -186,11 +179,11 @@ class Pry # source://pry//lib/pry/pry_instance.rb#33 def custom_completions=(_arg0); end - # source://forwardable/1.3.1/forwardable.rb#226 - def editor(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def editor(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def editor=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def editor=(*args, **_arg1, &block); end # Pass a line of input to Pry. # @@ -231,11 +224,11 @@ class Pry # source://pry//lib/pry/pry_instance.rb#286 def evaluate_ruby(code); end - # source://forwardable/1.3.1/forwardable.rb#226 - def exception_handler(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def exception_handler(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def exception_handler=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def exception_handler=(*args, **_arg1, &block); end # Execute the specified hook. # If executing a hook raises an exception, we log that and then continue sucessfully. @@ -254,17 +247,17 @@ class Pry # source://pry//lib/pry/pry_instance.rb#42 def exit_value; end - # source://forwardable/1.3.1/forwardable.rb#226 - def extra_sticky_locals(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def extra_sticky_locals(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def extra_sticky_locals=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def extra_sticky_locals=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def hooks(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def hooks(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def hooks=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def hooks=(*args, **_arg1, &block); end # Injects a local variable into the provided binding. # @@ -281,11 +274,11 @@ class Pry # source://pry//lib/pry/pry_instance.rb#201 def inject_sticky_locals!; end - # source://forwardable/1.3.1/forwardable.rb#226 - def input(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def input(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def input=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def input=(*args, **_arg1, &block); end # @since v0.12.0 # @@ -364,8 +357,8 @@ class Pry # source://pry//lib/pry/pry_instance.rb#538 def output; end - # source://forwardable/1.3.1/forwardable.rb#226 - def output=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def output=(*args, **_arg1, &block); end # @since v0.12.0 # @@ -380,8 +373,8 @@ class Pry # source://pry//lib/pry/pry_instance.rb#530 def pager; end - # source://forwardable/1.3.1/forwardable.rb#226 - def pager=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def pager=(*args, **_arg1, &block); end # Pops the current prompt off of the prompt stack. If the prompt you are # popping is the last prompt, it will not be popped. Use this to restore the @@ -398,11 +391,11 @@ class Pry # source://pry//lib/pry/pry_instance.rb#522 def pop_prompt; end - # source://forwardable/1.3.1/forwardable.rb#226 - def print(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def print(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def print=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def print=(*args, **_arg1, &block); end # If the given line is a valid command, process it in the context of the # current `eval_string` and binding. @@ -629,17 +622,17 @@ class Pry # source://pry//lib/pry/pry_class.rb#22 def cli=(_arg0); end - # source://forwardable/1.3.1/forwardable.rb#226 - def color(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def color(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def color=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def color=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def commands(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def commands(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def commands=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def commands=(*args, **_arg1, &block); end # Returns the value of attribute config. # @@ -696,11 +689,11 @@ class Pry # source://pry//lib/pry/pry_class.rb#18 def custom_completions=(_arg0); end - # source://forwardable/1.3.1/forwardable.rb#226 - def editor(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def editor(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def editor=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def editor=(*args, **_arg1, &block); end # Returns the value of attribute eval_path. # @@ -714,32 +707,32 @@ class Pry # source://pry//lib/pry/pry_class.rb#21 def eval_path=(_arg0); end - # source://forwardable/1.3.1/forwardable.rb#226 - def exception_handler(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def exception_handler(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def exception_handler=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def exception_handler=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def extra_sticky_locals(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def extra_sticky_locals(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def extra_sticky_locals=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def extra_sticky_locals=(*args, **_arg1, &block); end # source://pry//lib/pry/pry_class.rb#139 def final_session_setup; end - # source://forwardable/1.3.1/forwardable.rb#226 - def history(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def history(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def history=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def history=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def hooks(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def hooks(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def hooks=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def hooks=(*args, **_arg1, &block); end # @return [Boolean] # @@ -763,11 +756,11 @@ class Pry # source://pry//lib/pry/pry_class.rb#129 def initial_session_setup; end - # source://forwardable/1.3.1/forwardable.rb#226 - def input(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def input(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def input=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def input=(*args, **_arg1, &block); end # Returns the value of attribute last_internal_error. # @@ -837,35 +830,35 @@ class Pry # source://pry//lib/pry/pry_class.rb#55 def main; end - # source://forwardable/1.3.1/forwardable.rb#226 - def memory_size(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def memory_size(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def memory_size=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def memory_size=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def output(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def output(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def output=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def output=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def pager(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def pager(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def pager=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def pager=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def print(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def print(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def print=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def print=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def prompt(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def prompt(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def prompt=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def prompt=(*args, **_arg1, &block); end # Returns the value of attribute quiet. # @@ -1002,7 +995,7 @@ Pry::BasicObject::Pry = Pry # # Create subclasses using {Pry::CommandSet#command}. # -# source://pry//lib/pry/block_command.rb#13 +# source://pry//lib/pry/block_command.rb#10 class Pry::BlockCommand < ::Pry::Command # Call the block that was registered with this command. # @@ -2025,10 +2018,7 @@ class Pry::ColorPrinter < ::PP end end -# The super-class of all commands, new commands should be created by calling -# {Pry::CommandSet#command} which creates a BlockCommand or -# {Pry::CommandSet#create_command} which creates a ClassCommand. Please don't -# use this class directly. +# N.B. using a regular expresion here so that "raise-up 'foo'" does the right thing. # # source://pry//lib/pry/command.rb#11 class Pry::Command @@ -3539,7 +3529,7 @@ class Pry::Command::Ls::Formatter def output_self; end end -# source://pry//lib/pry/commands/ls/globals.rb#7 +# source://pry//lib/pry/commands/ls/globals.rb#6 class Pry::Command::Ls::Globals < ::Pry::Command::Ls::Formatter # @return [Globals] a new instance of Globals # @@ -7286,19 +7276,19 @@ class Pry::Method # source://pry//lib/pry/method.rb#429 def original_name; end - # source://forwardable/1.3.1/forwardable.rb#226 - def owner(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def owner(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def parameters(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def parameters(*args, **_arg1, &block); end # @return [Boolean] Was the method defined within the Pry REPL? # # source://pry//lib/pry/method.rb#456 def pry_method?; end - # source://forwardable/1.3.1/forwardable.rb#226 - def receiver(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def receiver(*args, **_arg1, &block); end # Update the live copy of the method's source. # @@ -8377,11 +8367,11 @@ class Pry::REPL # source://pry//lib/pry/repl.rb#22 def initialize(pry, options = T.unsafe(nil)); end - # source://forwardable/1.3.1/forwardable.rb#226 - def input(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def input(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def output(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def output(*args, **_arg1, &block); end # @return [Pry] The instance of {Pry} that the user is controlling. # @@ -9972,8 +9962,8 @@ class Pry::WrappedModule::Candidate # source://pry//lib/pry/wrapped_module/candidate.rb#38 def initialize(wrapper, rank); end - # source://forwardable/1.3.1/forwardable.rb#226 - def class?(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def class?(*args, **_arg1, &block); end # @raise [Pry::CommandError] If documentation cannot be found. # @return [String] The documentation for the candidate. @@ -9991,14 +9981,14 @@ class Pry::WrappedModule::Candidate # source://pry//lib/pry/wrapped_module/candidate.rb#18 def line; end - # source://forwardable/1.3.1/forwardable.rb#226 - def module?(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def module?(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def nonblank_name(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def nonblank_name(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def number_of_candidates(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def number_of_candidates(*args, **_arg1, &block); end # @raise [Pry::CommandError] If source code cannot be found. # @return [String] The source for the candidate, i.e the @@ -10024,8 +10014,8 @@ class Pry::WrappedModule::Candidate # source://pry//lib/pry/wrapped_module/candidate.rb#79 def source_location; end - # source://forwardable/1.3.1/forwardable.rb#226 - def wrapped(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def wrapped(*args, **_arg1, &block); end private diff --git a/sorbet/rbi/gems/public_suffix@5.0.4.rbi b/sorbet/rbi/gems/public_suffix@5.0.4.rbi index 97ed626ea..49c81c106 100644 --- a/sorbet/rbi/gems/public_suffix@5.0.4.rbi +++ b/sorbet/rbi/gems/public_suffix@5.0.4.rbi @@ -4,6 +4,15 @@ # This is an autogenerated file for types exported from the `public_suffix` gem. # Please instead update this file by running `bin/tapioca gem public_suffix`. +# PublicSuffix is a Ruby domain name parser based on the Public Suffix List. +# +# The [Public Suffix List](https://publicsuffix.org) is a cross-vendor initiative +# to provide an accurate list of domain name suffixes. +# +# The Public Suffix List is an initiative of the Mozilla Project, +# but is maintained as a community resource. It is available for use in any software, +# but was originally created to meet the needs of browser manufacturers. +# # source://public_suffix//lib/public_suffix/domain.rb#9 module PublicSuffix class << self @@ -765,8 +774,6 @@ class PublicSuffix::Rule::Entry < ::Struct # # @param value [Object] the value to set the attribute length to. # @return [Object] the newly set value - # - # source://public_suffix//lib/public_suffix/rule.rb#25 def length=(_); end # Returns the value of attribute private @@ -778,8 +785,6 @@ class PublicSuffix::Rule::Entry < ::Struct # # @param value [Object] the value to set the attribute private to. # @return [Object] the newly set value - # - # source://public_suffix//lib/public_suffix/rule.rb#25 def private=(_); end # Returns the value of attribute type @@ -791,13 +796,12 @@ class PublicSuffix::Rule::Entry < ::Struct # # @param value [Object] the value to set the attribute type to. # @return [Object] the newly set value - # - # source://public_suffix//lib/public_suffix/rule.rb#25 def type=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end diff --git a/sorbet/rbi/gems/racc@1.7.3.rbi b/sorbet/rbi/gems/racc@1.7.3.rbi index 3e58f8119..ef9b9bf5d 100644 --- a/sorbet/rbi/gems/racc@1.7.3.rbi +++ b/sorbet/rbi/gems/racc@1.7.3.rbi @@ -132,13 +132,9 @@ end # source://racc//lib/racc/parser.rb#209 Racc::Parser::Racc_Main_Parsing_Routine = T.let(T.unsafe(nil), Symbol) -Racc::Parser::Racc_Runtime_Core_Id_C = T.let(T.unsafe(nil), String) - # source://racc//lib/racc/parser.rb#211 Racc::Parser::Racc_Runtime_Core_Version = T.let(T.unsafe(nil), String) -Racc::Parser::Racc_Runtime_Core_Version_C = T.let(T.unsafe(nil), String) - # source://racc//lib/racc/parser.rb#191 Racc::Parser::Racc_Runtime_Core_Version_R = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/rack@3.0.8.rbi b/sorbet/rbi/gems/rack@3.0.9.rbi similarity index 98% rename from sorbet/rbi/gems/rack@3.0.8.rbi rename to sorbet/rbi/gems/rack@3.0.9.rbi index 80fa3a830..ef2475b4c 100644 --- a/sorbet/rbi/gems/rack@3.0.8.rbi +++ b/sorbet/rbi/gems/rack@3.0.9.rbi @@ -402,7 +402,7 @@ class Rack::BodyProxy # Delegate missing methods to the wrapped body. # # source://rack//lib/rack/body_proxy.rb#40 - def method_missing(method_name, *args, &block); end + def method_missing(method_name, *args, **_arg2, &block); end private @@ -563,7 +563,7 @@ class Rack::Builder # referenced in the application if required. # # source://rack//lib/rack/builder.rb#146 - def use(middleware, *args, &block); end + def use(middleware, *args, **_arg2, &block); end # Takes a lambda or block that is used to warm-up the application. This block is called # before the Rack application is returned by to_app. @@ -1152,7 +1152,7 @@ Rack::Directory::DIR_PAGE_HEADER = T.let(T.unsafe(nil), String) # Body class for directory entries, showing an index page with links # to each file. # -# source://rack//lib/rack/directory.rb#52 +# source://rack//lib/rack/directory.rb#51 class Rack::Directory::DirectoryBody < ::Struct # Yield strings for each part of the directory entry # @@ -1553,6 +1553,11 @@ class Rack::Headers < ::Hash # source://rack//lib/rack/headers.rb#47 def dig(key, *a); end + # :nocov: + # + # source://rack//lib/rack/headers.rb#143 + def except(*a); end + # source://rack//lib/rack/headers.rb#51 def fetch(key, *default, &block); end @@ -1928,29 +1933,29 @@ class Rack::Lint::Wrapper::StreamWrapper # source://rack//lib/rack/lint.rb#890 def initialize(stream); end - # source://forwardable/1.3.1/forwardable.rb#226 - def <<(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def <<(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def close(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def close(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def close_read(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def close_read(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def close_write(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def close_write(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def closed?(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def closed?(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def flush(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def flush(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def read(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def read(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def write(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def write(*args, **_arg1, &block); end end # The semantics of these IO methods must be a best effort match to @@ -2592,8 +2597,6 @@ class Rack::Multipart::Parser::MultipartInfo < ::Struct # # @param value [Object] the value to set the attribute params to. # @return [Object] the newly set value - # - # source://rack//lib/rack/multipart/parser.rb#82 def params=(_); end # Returns the value of attribute tmp_files @@ -2605,13 +2608,12 @@ class Rack::Multipart::Parser::MultipartInfo < ::Struct # # @param value [Object] the value to set the attribute tmp_files to. # @return [Object] the newly set value - # - # source://rack//lib/rack/multipart/parser.rb#82 def tmp_files=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -3144,21 +3146,9 @@ class Rack::Request # source://rack//lib/rack/request.rb#67 def params; end - # source://rack//lib/rack/request.rb#67 - def query; end - # source://rack//lib/rack/request.rb#71 def update_param(k, v); end - # source://yard/0.9.28/lib/yard/server/rack_adapter.rb#86 - def version_supplied; end - - # source://yard/0.9.28/lib/yard/server/rack_adapter.rb#86 - def version_supplied=(_arg0); end - - # source://yard/0.9.28/lib/yard/server/rack_adapter.rb#88 - def xhr?; end - class << self # The priority when checking forwarded headers. The default # is [:forwarded, :x_forwarded], which means, check the @@ -4094,51 +4084,51 @@ module Rack::Response::Helpers protected - # source://rack//lib/rack/response.rb#351 + # source://rack//lib/rack/response.rb#353 def append(chunk); end # source://rack//lib/rack/response.rb#323 def buffered_body!; end end -# source://rack//lib/rack/response.rb#365 +# source://rack//lib/rack/response.rb#367 class Rack::Response::Raw include ::Rack::Response::Helpers # @return [Raw] a new instance of Raw # - # source://rack//lib/rack/response.rb#371 + # source://rack//lib/rack/response.rb#373 def initialize(status, headers); end - # source://rack//lib/rack/response.rb#388 + # source://rack//lib/rack/response.rb#390 def delete_header(key); end - # source://rack//lib/rack/response.rb#380 + # source://rack//lib/rack/response.rb#382 def get_header(key); end # @return [Boolean] # - # source://rack//lib/rack/response.rb#376 + # source://rack//lib/rack/response.rb#378 def has_header?(key); end # Returns the value of attribute headers. # - # source://rack//lib/rack/response.rb#368 + # source://rack//lib/rack/response.rb#370 def headers; end - # source://rack//lib/rack/response.rb#384 + # source://rack//lib/rack/response.rb#386 def set_header(key, value); end # Returns the value of attribute status. # - # source://rack//lib/rack/response.rb#369 + # source://rack//lib/rack/response.rb#371 def status; end # Sets the attribute status # # @param value the value to set the attribute status to. # - # source://rack//lib/rack/response.rb#369 + # source://rack//lib/rack/response.rb#371 def status=(_arg0); end end @@ -4751,7 +4741,7 @@ module Rack::Utils # :nocov: # - # source://rack//lib/rack/utils.rb#479 + # source://rack//lib/rack/utils.rb#472 def secure_compare(a, b); end # source://rack//lib/rack/utils.rb#202 @@ -5012,7 +5002,7 @@ module Rack::Utils # source://rack//lib/rack/utils.rb#424 def rfc2822(time); end - # source://rack//lib/rack/utils.rb#479 + # source://rack//lib/rack/utils.rb#472 def secure_compare(a, b); end # source://rack//lib/rack/utils.rb#202 diff --git a/sorbet/rbi/gems/rake@13.1.0.rbi b/sorbet/rbi/gems/rake@13.1.0.rbi index e66a59698..f1286717d 100644 --- a/sorbet/rbi/gems/rake@13.1.0.rbi +++ b/sorbet/rbi/gems/rake@13.1.0.rbi @@ -558,6 +558,36 @@ module Rake::DSL private + # source://rake//lib/rake/file_utils_ext.rb#34 + def cd(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def chdir(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def chmod(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def chmod_R(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def chown(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def chown_R(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def copy(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def cp(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def cp_lr(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def cp_r(*args, **options, &block); end + # Describes the next rake task. Duplicate descriptions are discarded. # Descriptions are shown with rake -T (up to the first # sentence) and rake -D (the entire description). @@ -619,6 +649,39 @@ module Rake::DSL # source://rake//lib/rake/dsl_definition.rb#183 def import(*fns); end + # source://rake//lib/rake/file_utils_ext.rb#34 + def install(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def link(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def ln(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def ln_s(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def ln_sf(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def ln_sr(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def makedirs(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def mkdir(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def mkdir_p(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def mkpath(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def move(*args, **options, &block); end + # Declare a task that performs its prerequisites in # parallel. Multitasks does *not* guarantee that its prerequisites # will execute in any given order (which is obvious when you think @@ -630,6 +693,9 @@ module Rake::DSL # source://rake//lib/rake/dsl_definition.rb#112 def multitask(*args, &block); end + # source://rake//lib/rake/file_utils_ext.rb#34 + def mv(*args, **options, &block); end + # Create a new rake namespace and use it for evaluating the given # block. Returns a NameSpace object that can be used to lookup # tasks defined in the namespace. @@ -652,6 +718,39 @@ module Rake::DSL # source://rake//lib/rake/dsl_definition.rb#135 def namespace(name = T.unsafe(nil), &block); end + # source://rake//lib/rake/file_utils_ext.rb#77 + def nowrite(value = T.unsafe(nil)); end + + # source://rake//lib/rake/file_utils_ext.rb#123 + def rake_check_options(options, *optdecl); end + + # source://rake//lib/rake/file_utils_ext.rb#116 + def rake_output_message(message); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def remove(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rm(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rm_f(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rm_r(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rm_rf(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rmdir(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rmtree(*args, **options, &block); end + + # source://rake//lib/rake/file_utils.rb#98 + def ruby(*args, **options, &block); end + # Declare a rule for auto-tasks. # # Example: @@ -662,6 +761,21 @@ module Rake::DSL # source://rake//lib/rake/dsl_definition.rb#151 def rule(*args, &block); end + # source://rake//lib/rake/file_utils.rb#110 + def safe_ln(*args, **options); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def safe_unlink(*args, **options, &block); end + + # source://rake//lib/rake/file_utils.rb#43 + def sh(*cmd, &block); end + + # source://rake//lib/rake/file_utils.rb#126 + def split_all(path); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def symlink(*args, **options, &block); end + # :call-seq: # task(task_name) # task(task_name: dependencies) @@ -695,6 +809,15 @@ module Rake::DSL # # source://rake//lib/rake/dsl_definition.rb#59 def task(*args, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def touch(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#53 + def verbose(value = T.unsafe(nil)); end + + # source://rake//lib/rake/file_utils_ext.rb#107 + def when_writing(msg = T.unsafe(nil)); end end # Default Rakefile loader used by +import+. @@ -728,6 +851,13 @@ class Rake::EarlyTime # source://rake//lib/rake/early_time.rb#16 def to_s; end + + class << self + private + + def allocate; end + def new(*_arg0); end + end end # A FileCreationTask is a file task that when used as a dependency will be @@ -735,7 +865,7 @@ end # not re-triggered if any of its dependencies are newer, nor does trigger # any rebuilds of tasks that depend on it whenever it is updated. # -# source://rake//lib/rake/file_creation_task.rb#13 +# source://rake//lib/rake/file_creation_task.rb#12 class Rake::FileCreationTask < ::Rake::FileTask # Is this file task needed? Yes if it doesn't exist. # @@ -1103,6 +1233,9 @@ class Rake::FileList # source://rake//lib/rake/file_list.rb#77 def inspect(*args, &block); end + # source://rake//lib/rake/file_list.rb#77 + def intersect?(*args, &block); end + # source://rake//lib/rake/file_list.rb#77 def intersection(*args, &block); end @@ -1528,6 +1661,9 @@ module Rake::FileUtilsExt # source://rake//lib/rake/file_utils_ext.rb#34 def ln_sf(*args, **options, &block); end + # source://rake//lib/rake/file_utils_ext.rb#34 + def ln_sr(*args, **options, &block); end + # source://rake//lib/rake/file_utils_ext.rb#34 def makedirs(*args, **options, &block); end @@ -1757,6 +1893,13 @@ class Rake::LateTime # source://rake//lib/rake/late_time.rb#12 def to_s; end + + class << self + private + + def allocate; end + def new(*_arg0); end + end end # Polylithic linked list structure used to implement several data diff --git a/sorbet/rbi/gems/rbi@0.1.6.rbi b/sorbet/rbi/gems/rbi@0.1.8.rbi similarity index 99% rename from sorbet/rbi/gems/rbi@0.1.6.rbi rename to sorbet/rbi/gems/rbi@0.1.8.rbi index 0d21aba90..7bd1548db 100644 --- a/sorbet/rbi/gems/rbi@0.1.6.rbi +++ b/sorbet/rbi/gems/rbi@0.1.8.rbi @@ -1820,7 +1820,7 @@ class RBI::Rewriters::Merge::Conflict < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -2037,7 +2037,7 @@ class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -2670,7 +2670,7 @@ class RBI::Tree < ::RBI::NodeWithComments sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end - # source://tapioca/0.11.17/lib/tapioca/rbi_ext/model.rb#38 + # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#38 sig do params( name: ::String, @@ -2680,19 +2680,19 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_class(name, superclass_name: T.unsafe(nil), &block); end - # source://tapioca/0.11.17/lib/tapioca/rbi_ext/model.rb#45 + # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#45 sig { params(name: ::String, value: ::String).void } def create_constant(name, value:); end - # source://tapioca/0.11.17/lib/tapioca/rbi_ext/model.rb#55 + # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#55 sig { params(name: ::String).void } def create_extend(name); end - # source://tapioca/0.11.17/lib/tapioca/rbi_ext/model.rb#50 + # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#50 sig { params(name: ::String).void } def create_include(name); end - # source://tapioca/0.11.17/lib/tapioca/rbi_ext/model.rb#89 + # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#89 sig do params( name: ::String, @@ -2705,19 +2705,19 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://tapioca/0.11.17/lib/tapioca/rbi_ext/model.rb#60 + # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#60 sig { params(name: ::String).void } def create_mixes_in_class_methods(name); end - # source://tapioca/0.11.17/lib/tapioca/rbi_ext/model.rb#25 + # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#25 sig { params(name: ::String, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } def create_module(name, &block); end - # source://tapioca/0.11.17/lib/tapioca/rbi_ext/model.rb#9 + # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#9 sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } def create_path(constant, &block); end - # source://tapioca/0.11.17/lib/tapioca/rbi_ext/model.rb#74 + # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#74 sig do params( name: ::String, @@ -2779,11 +2779,11 @@ class RBI::Tree < ::RBI::NodeWithComments private - # source://tapioca/0.11.17/lib/tapioca/rbi_ext/model.rb#116 + # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#116 sig { params(node: ::RBI::Node).returns(::RBI::Node) } def create_node(node); end - # source://tapioca/0.11.17/lib/tapioca/rbi_ext/model.rb#111 + # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#111 sig { returns(T::Hash[::String, ::RBI::Node]) } def nodes_cache; end end diff --git a/sorbet/rbi/gems/regexp_parser@2.8.3.rbi b/sorbet/rbi/gems/regexp_parser@2.9.0.rbi similarity index 97% rename from sorbet/rbi/gems/regexp_parser@2.8.3.rbi rename to sorbet/rbi/gems/regexp_parser@2.9.0.rbi index 2b4852353..34ad4f2a7 100644 --- a/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +++ b/sorbet/rbi/gems/regexp_parser@2.9.0.rbi @@ -94,6 +94,9 @@ end class Regexp::Expression::Anchor::NonWordBoundary < ::Regexp::Expression::Anchor::Base # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#17 def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#13 + def negative?; end end # source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#13 @@ -127,12 +130,18 @@ end class Regexp::Expression::Assertion::NegativeLookahead < ::Regexp::Expression::Assertion::Base # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#21 def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#14 + def negative?; end end # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#71 class Regexp::Expression::Assertion::NegativeLookbehind < ::Regexp::Expression::Assertion::Base # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#22 def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#15 + def negative?; end end # alias for symmetry between token symbol and Expression class name @@ -574,10 +583,10 @@ end class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression # @return [CharacterSet] a new instance of CharacterSet # - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#6 def initialize(token, options = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#19 + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#16 def close; end # Returns the value of attribute closed. @@ -600,14 +609,9 @@ class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 def match_length; end - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#15 + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#12 def negate; end - # Returns the value of attribute negative. - # - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 - def negated?; end - # Returns the value of attribute negative. # # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 @@ -620,9 +624,7 @@ class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 def negative=(_arg0); end - # Returns the value of attribute negative. - # - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#16 def negative?; end # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#15 @@ -686,6 +688,9 @@ end class Regexp::Expression::CharacterType::Base < ::Regexp::Expression::Base # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 def match_length; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#17 + def negative?; end end # source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#6 @@ -977,6 +982,9 @@ end # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#2 module Regexp::Expression::Group; end +# Special case. Absence group can match 0.. chars, irrespective of content. +# TODO: in theory, they *can* exclude match lengths with `.`: `(?~.{3})` +# # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#19 class Regexp::Expression::Group::Absence < ::Regexp::Expression::Group::Base # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#172 @@ -1148,10 +1156,10 @@ end # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#85 Regexp::Expression::MatchLength = Regexp::MatchLength -# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#14 +# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#10 Regexp::Expression::Nonposixclass = Regexp::Expression::PosixClass -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#121 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#118 Regexp::Expression::Nonproperty = Regexp::Expression::UnicodeProperty # source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#2 @@ -1159,23 +1167,21 @@ class Regexp::Expression::PosixClass < ::Regexp::Expression::Base # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 def match_length; end - # source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#7 + # source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#3 def name; end - # @return [Boolean] - # - # source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#18 def negative?; end end # alias for symmetry between token symbol and Expression class name # -# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#13 +# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#9 Regexp::Expression::Posixclass = Regexp::Expression::PosixClass # alias for symmetry between token symbol and Expression class name # -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#120 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#117 Regexp::Expression::Property = Regexp::Expression::UnicodeProperty # TODO: in v3.0.0, maybe put Shared back into Base, and inherit from Base and @@ -1367,7 +1373,7 @@ end # alias for symmetry between token symbol and Expression class name # -# source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#25 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#22 Regexp::Expression::Set = Regexp::Expression::CharacterSet # source://regexp_parser//lib/regexp_parser/expression/shared.rb#2 @@ -1450,6 +1456,18 @@ module Regexp::Expression::Shared # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#36 def is?(test_token, test_type = T.unsafe(nil)); end + # not an alias so as to respect overrides of #negative? + # + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#8 + def negated?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#3 + def negative?; end + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#100 def nesting_level=(lvl); end @@ -1791,22 +1809,22 @@ end # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#2 module Regexp::Expression::UnicodeProperty; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#112 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#108 class Regexp::Expression::UnicodeProperty::Age < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#17 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#13 class Regexp::Expression::UnicodeProperty::Alnum < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#18 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#14 class Regexp::Expression::UnicodeProperty::Alpha < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#35 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#31 class Regexp::Expression::UnicodeProperty::Any < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#19 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#15 class Regexp::Expression::UnicodeProperty::Ascii < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#36 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#32 class Regexp::Expression::UnicodeProperty::Assigned < ::Regexp::Expression::UnicodeProperty::Base; end # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#3 @@ -1814,226 +1832,227 @@ class Regexp::Expression::UnicodeProperty::Base < ::Regexp::Expression::Base # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 def match_length; end - # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#8 + # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#4 def name; end - # @return [Boolean] - # - # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#4 + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#19 def negative?; end - # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#12 + # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#8 def shortcut; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#20 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#16 class Regexp::Expression::UnicodeProperty::Blank < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#116 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#109 class Regexp::Expression::UnicodeProperty::Block < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#21 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#17 class Regexp::Expression::UnicodeProperty::Cntrl < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#101 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#97 module Regexp::Expression::UnicodeProperty::Codepoint; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#104 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#100 class Regexp::Expression::UnicodeProperty::Codepoint::Any < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#102 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#98 class Regexp::Expression::UnicodeProperty::Codepoint::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#105 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#101 class Regexp::Expression::UnicodeProperty::Codepoint::Control < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#106 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#102 class Regexp::Expression::UnicodeProperty::Codepoint::Format < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#108 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#104 class Regexp::Expression::UnicodeProperty::Codepoint::PrivateUse < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#107 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#103 class Regexp::Expression::UnicodeProperty::Codepoint::Surrogate < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#109 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#105 class Regexp::Expression::UnicodeProperty::Codepoint::Unassigned < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#113 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#110 class Regexp::Expression::UnicodeProperty::Derived < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#22 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#18 class Regexp::Expression::UnicodeProperty::Digit < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#114 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#111 class Regexp::Expression::UnicodeProperty::Emoji < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#23 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#112 +class Regexp::Expression::UnicodeProperty::Enumerated < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#19 class Regexp::Expression::UnicodeProperty::Graph < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#38 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#34 module Regexp::Expression::UnicodeProperty::Letter; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#41 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#37 class Regexp::Expression::UnicodeProperty::Letter::Any < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#39 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#35 class Regexp::Expression::UnicodeProperty::Letter::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#42 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#38 class Regexp::Expression::UnicodeProperty::Letter::Cased < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#44 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#40 class Regexp::Expression::UnicodeProperty::Letter::Lowercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#46 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#42 class Regexp::Expression::UnicodeProperty::Letter::Modifier < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#47 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#43 class Regexp::Expression::UnicodeProperty::Letter::Other < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#45 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#41 class Regexp::Expression::UnicodeProperty::Letter::Titlecase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#43 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#39 class Regexp::Expression::UnicodeProperty::Letter::Uppercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#24 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#20 class Regexp::Expression::UnicodeProperty::Lower < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#50 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#46 module Regexp::Expression::UnicodeProperty::Mark; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#53 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#49 class Regexp::Expression::UnicodeProperty::Mark::Any < ::Regexp::Expression::UnicodeProperty::Mark::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#51 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#47 class Regexp::Expression::UnicodeProperty::Mark::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#54 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#50 class Regexp::Expression::UnicodeProperty::Mark::Combining < ::Regexp::Expression::UnicodeProperty::Mark::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#57 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#53 class Regexp::Expression::UnicodeProperty::Mark::Enclosing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#55 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#51 class Regexp::Expression::UnicodeProperty::Mark::Nonspacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#56 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#52 class Regexp::Expression::UnicodeProperty::Mark::Spacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#33 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#29 class Regexp::Expression::UnicodeProperty::Newline < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#60 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#56 module Regexp::Expression::UnicodeProperty::Number; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#63 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#59 class Regexp::Expression::UnicodeProperty::Number::Any < ::Regexp::Expression::UnicodeProperty::Number::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#61 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#57 class Regexp::Expression::UnicodeProperty::Number::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#64 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#60 class Regexp::Expression::UnicodeProperty::Number::Decimal < ::Regexp::Expression::UnicodeProperty::Number::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#65 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#61 class Regexp::Expression::UnicodeProperty::Number::Letter < ::Regexp::Expression::UnicodeProperty::Number::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#66 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#62 class Regexp::Expression::UnicodeProperty::Number::Other < ::Regexp::Expression::UnicodeProperty::Number::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#25 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#21 class Regexp::Expression::UnicodeProperty::Print < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#26 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#22 class Regexp::Expression::UnicodeProperty::Punct < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#69 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#65 module Regexp::Expression::UnicodeProperty::Punctuation; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#72 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#68 class Regexp::Expression::UnicodeProperty::Punctuation::Any < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#70 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#66 class Regexp::Expression::UnicodeProperty::Punctuation::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#76 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#72 class Regexp::Expression::UnicodeProperty::Punctuation::Close < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#73 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#69 class Regexp::Expression::UnicodeProperty::Punctuation::Connector < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#74 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#70 class Regexp::Expression::UnicodeProperty::Punctuation::Dash < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#78 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#74 class Regexp::Expression::UnicodeProperty::Punctuation::Final < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#77 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#73 class Regexp::Expression::UnicodeProperty::Punctuation::Initial < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#75 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#71 class Regexp::Expression::UnicodeProperty::Punctuation::Open < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#79 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#75 class Regexp::Expression::UnicodeProperty::Punctuation::Other < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#115 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#113 class Regexp::Expression::UnicodeProperty::Script < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#82 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#78 module Regexp::Expression::UnicodeProperty::Separator; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#85 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#81 class Regexp::Expression::UnicodeProperty::Separator::Any < ::Regexp::Expression::UnicodeProperty::Separator::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#83 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#79 class Regexp::Expression::UnicodeProperty::Separator::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#87 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#83 class Regexp::Expression::UnicodeProperty::Separator::Line < ::Regexp::Expression::UnicodeProperty::Separator::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#88 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#84 class Regexp::Expression::UnicodeProperty::Separator::Paragraph < ::Regexp::Expression::UnicodeProperty::Separator::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#86 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#82 class Regexp::Expression::UnicodeProperty::Separator::Space < ::Regexp::Expression::UnicodeProperty::Separator::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#27 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#23 class Regexp::Expression::UnicodeProperty::Space < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#91 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#87 module Regexp::Expression::UnicodeProperty::Symbol; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#94 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#90 class Regexp::Expression::UnicodeProperty::Symbol::Any < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#92 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#88 class Regexp::Expression::UnicodeProperty::Symbol::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#96 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#92 class Regexp::Expression::UnicodeProperty::Symbol::Currency < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#95 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#91 class Regexp::Expression::UnicodeProperty::Symbol::Math < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#97 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#93 class Regexp::Expression::UnicodeProperty::Symbol::Modifier < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#98 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#94 class Regexp::Expression::UnicodeProperty::Symbol::Other < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#28 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#24 class Regexp::Expression::UnicodeProperty::Upper < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#29 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#25 class Regexp::Expression::UnicodeProperty::Word < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#31 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#27 class Regexp::Expression::UnicodeProperty::XPosixPunct < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#30 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#26 class Regexp::Expression::UnicodeProperty::Xdigit < ::Regexp::Expression::UnicodeProperty::Base; end # source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#11 @@ -2340,7 +2359,7 @@ class Regexp::Parser private - # source://regexp_parser//lib/regexp_parser/parser.rb#573 + # source://regexp_parser//lib/regexp_parser/parser.rb#574 def active_opts; end # source://regexp_parser//lib/regexp_parser/parser.rb#99 @@ -2353,7 +2372,7 @@ class Regexp::Parser # an instance of Backreference::Number, its #referenced_expression is set to # the instance of Group::Capture that it refers to via its number. # - # source://regexp_parser//lib/regexp_parser/parser.rb#580 + # source://regexp_parser//lib/regexp_parser/parser.rb#581 def assign_referenced_expressions; end # source://regexp_parser//lib/regexp_parser/parser.rb#227 @@ -2374,13 +2393,13 @@ class Regexp::Parser # source://regexp_parser//lib/regexp_parser/parser.rb#56 def captured_group_counts=(_arg0); end - # source://regexp_parser//lib/regexp_parser/parser.rb#569 + # source://regexp_parser//lib/regexp_parser/parser.rb#570 def close_completed_character_set_range; end # source://regexp_parser//lib/regexp_parser/parser.rb#210 def close_group; end - # source://regexp_parser//lib/regexp_parser/parser.rb#537 + # source://regexp_parser//lib/regexp_parser/parser.rb#538 def close_set; end # source://regexp_parser//lib/regexp_parser/parser.rb#269 @@ -2418,10 +2437,10 @@ class Regexp::Parser # source://regexp_parser//lib/regexp_parser/parser.rb#114 def group(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#508 + # source://regexp_parser//lib/regexp_parser/parser.rb#509 def increase_group_level(exp); end - # source://regexp_parser//lib/regexp_parser/parser.rb#548 + # source://regexp_parser//lib/regexp_parser/parser.rb#549 def intersection(token); end # source://regexp_parser//lib/regexp_parser/parser.rb#360 @@ -2433,7 +2452,7 @@ class Regexp::Parser # source://regexp_parser//lib/regexp_parser/parser.rb#368 def meta(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#533 + # source://regexp_parser//lib/regexp_parser/parser.rb#534 def negate_set; end # source://regexp_parser//lib/regexp_parser/parser.rb#299 @@ -2469,7 +2488,7 @@ class Regexp::Parser # source://regexp_parser//lib/regexp_parser/parser.rb#165 def open_group(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#526 + # source://regexp_parser//lib/regexp_parser/parser.rb#527 def open_set(token); end # source://regexp_parser//lib/regexp_parser/parser.rb#130 @@ -2496,10 +2515,10 @@ class Regexp::Parser # source://regexp_parser//lib/regexp_parser/parser.rb#397 def property(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#478 + # source://regexp_parser//lib/regexp_parser/parser.rb#479 def quantifier(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#541 + # source://regexp_parser//lib/regexp_parser/parser.rb#542 def range(token); end # Returns the value of attribute root. @@ -2517,7 +2536,7 @@ class Regexp::Parser # source://regexp_parser//lib/regexp_parser/parser.rb#379 def sequence_operation(klass, token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#514 + # source://regexp_parser//lib/regexp_parser/parser.rb#515 def set(token); end # Returns the value of attribute switching_options. @@ -2535,7 +2554,7 @@ class Regexp::Parser # source://regexp_parser//lib/regexp_parser/parser.rb#198 def total_captured_group_count; end - # source://regexp_parser//lib/regexp_parser/parser.rb#552 + # source://regexp_parser//lib/regexp_parser/parser.rb#553 def type(token); end class << self @@ -2869,7 +2888,7 @@ end # Base for all scanner validation errors # -# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#4 +# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#3 class Regexp::Scanner::ValidationError < ::Regexp::Scanner::ScannerError class << self # Centralizes and unifies the handling of validation related errors. @@ -3050,7 +3069,7 @@ class Regexp::Syntax::Base end # source://regexp_parser//lib/regexp_parser/syntax/versions.rb#8 -Regexp::Syntax::CURRENT = Regexp::Syntax::V2_6_3 +Regexp::Syntax::CURRENT = Regexp::Syntax::V3_2_0 # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#6 class Regexp::Syntax::InvalidVersionNameError < ::Regexp::Syntax::SyntaxError @@ -3352,7 +3371,7 @@ Regexp::Syntax::Token::PosixClass::Type = T.let(T.unsafe(nil), Symbol) # alias for symmetry between token symbol and Token module name # -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#731 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#749 Regexp::Syntax::Token::Property = Regexp::Syntax::Token::UnicodeProperty # source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#3 @@ -3449,7 +3468,7 @@ Regexp::Syntax::Token::UnicodeProperty::Age_V3_1_0 = T.let(T.unsafe(nil), Array) # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#62 Regexp::Syntax::Token::UnicodeProperty::Age_V3_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#721 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#739 Regexp::Syntax::Token::UnicodeProperty::All = T.let(T.unsafe(nil), Array) # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#13 @@ -3500,7 +3519,7 @@ Regexp::Syntax::Token::UnicodeProperty::Derived_V2_4_0 = T.let(T.unsafe(nil), Ar # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#129 Regexp::Syntax::Token::UnicodeProperty::Derived_V2_5_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#706 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#724 Regexp::Syntax::Token::UnicodeProperty::Emoji = T.let(T.unsafe(nil), Array) # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#694 @@ -3509,7 +3528,13 @@ Regexp::Syntax::Token::UnicodeProperty::Emoji_V2_5_0 = T.let(T.unsafe(nil), Arra # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#702 Regexp::Syntax::Token::UnicodeProperty::Emoji_V2_6_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#724 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#722 +Regexp::Syntax::Token::UnicodeProperty::Enumerated = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#706 +Regexp::Syntax::Token::UnicodeProperty::Enumerated_V2_4_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#742 Regexp::Syntax::Token::UnicodeProperty::NonType = T.let(T.unsafe(nil), Symbol) # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#11 @@ -3551,7 +3576,7 @@ Regexp::Syntax::Token::UnicodeProperty::Script_V3_1_0 = T.let(T.unsafe(nil), Arr # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#322 Regexp::Syntax::Token::UnicodeProperty::Script_V3_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#723 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#741 Regexp::Syntax::Token::UnicodeProperty::Type = T.let(T.unsafe(nil), Symbol) # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#692 @@ -3587,40 +3612,40 @@ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_1_0 = T.let(T.unsafe(nil # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#670 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#708 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#726 Regexp::Syntax::Token::UnicodeProperty::V1_9_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#709 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#727 Regexp::Syntax::Token::UnicodeProperty::V1_9_3 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#710 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#728 Regexp::Syntax::Token::UnicodeProperty::V2_0_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#711 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#729 Regexp::Syntax::Token::UnicodeProperty::V2_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#712 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#730 Regexp::Syntax::Token::UnicodeProperty::V2_3_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#713 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#731 Regexp::Syntax::Token::UnicodeProperty::V2_4_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#714 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#732 Regexp::Syntax::Token::UnicodeProperty::V2_5_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#715 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#733 Regexp::Syntax::Token::UnicodeProperty::V2_6_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#716 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#734 Regexp::Syntax::Token::UnicodeProperty::V2_6_2 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#717 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#735 Regexp::Syntax::Token::UnicodeProperty::V2_6_3 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#718 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#736 Regexp::Syntax::Token::UnicodeProperty::V3_1_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#719 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#737 Regexp::Syntax::Token::UnicodeProperty::V3_2_0 = T.let(T.unsafe(nil), Array) # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#12 @@ -3688,16 +3713,12 @@ Regexp::TOKEN_KEYS = T.let(T.unsafe(nil), Array) # source://regexp_parser//lib/regexp_parser/token.rb#13 class Regexp::Token < ::Struct def conditional_level; end - - # source://regexp_parser//lib/regexp_parser/token.rb#13 def conditional_level=(_); end # source://regexp_parser//lib/regexp_parser/token.rb#20 def length; end def level; end - - # source://regexp_parser//lib/regexp_parser/token.rb#13 def level=(_); end # Returns the value of attribute next. @@ -3728,38 +3749,22 @@ class Regexp::Token < ::Struct def previous=(_arg0); end def set_level; end - - # source://regexp_parser//lib/regexp_parser/token.rb#13 def set_level=(_); end - def te; end - - # source://regexp_parser//lib/regexp_parser/token.rb#13 def te=(_); end - def text; end - - # source://regexp_parser//lib/regexp_parser/token.rb#13 def text=(_); end - def token; end - - # source://regexp_parser//lib/regexp_parser/token.rb#13 def token=(_); end - def ts; end - - # source://regexp_parser//lib/regexp_parser/token.rb#13 def ts=(_); end - def type; end - - # source://regexp_parser//lib/regexp_parser/token.rb#13 def type=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end diff --git a/sorbet/rbi/gems/rexml@3.2.6.rbi b/sorbet/rbi/gems/rexml@3.2.6.rbi index 364c0757e..21161d5d2 100644 --- a/sorbet/rbi/gems/rexml@3.2.6.rbi +++ b/sorbet/rbi/gems/rexml@3.2.6.rbi @@ -946,7 +946,7 @@ end # and in particular, the # {tasks page for documents}[../doc/rexml/tasks/tocs/document_toc_rdoc.html]. # -# source://rexml//lib/rexml/document.rb#39 +# source://rexml//lib/rexml/document.rb#35 class REXML::Document < ::REXML::Element # :call-seq: # new(string = nil, context = {}) -> new_document @@ -3453,7 +3453,7 @@ end # A Source that wraps an IO. See the Source class for method # documentation # -# source://rexml//lib/rexml/source.rb#160 +# source://rexml//lib/rexml/source.rb#159 class REXML::IOSource < ::REXML::Source # block_size has been deprecated # diff --git a/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi b/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi index 1a1a32d11..25b06af31 100644 --- a/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +++ b/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi @@ -22,7 +22,7 @@ end # node when the builder constructs the AST, making its methods available # to all `alias` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/alias_node.rb#11 +# source://rubocop-ast//lib/rubocop/ast/node/alias_node.rb#8 class RuboCop::AST::AliasNode < ::RuboCop::AST::Node # Returns the new identifier as specified by the `alias`. # @@ -43,7 +43,7 @@ end # This will be used in place of a plain node when the builder constructs # the AST, making its methods available to all assignment nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/and_asgn_node.rb#11 +# source://rubocop-ast//lib/rubocop/ast/node/and_asgn_node.rb#8 class RuboCop::AST::AndAsgnNode < ::RuboCop::AST::OpAsgnNode # The operator being used for assignment as a symbol. # @@ -84,7 +84,7 @@ end # This will be used in place of a plain node when the builder constructs # the AST, making its methods available to all `arg` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/arg_node.rb#12 +# source://rubocop-ast//lib/rubocop/ast/node/arg_node.rb#9 class RuboCop::AST::ArgNode < ::RuboCop::AST::Node # Checks whether the argument has a default value # @@ -198,7 +198,7 @@ RuboCop::AST::ArrayNode::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Hash) # This will be used in place of a plain node when the builder constructs # the AST, making its methods available to all assignment nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#11 +# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#8 class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node # The expression being assigned to the variable. # @@ -567,7 +567,7 @@ end # This will be used in place of a plain node when the builder constructs # the AST, making its methods available to all assignment nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#11 +# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#8 class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node # The expression being assigned to the variable. # @@ -595,7 +595,7 @@ end # node when the builder constructs the AST, making its methods available # to all `class` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/class_node.rb#11 +# source://rubocop-ast//lib/rubocop/ast/node/class_node.rb#8 class RuboCop::AST::ClassNode < ::RuboCop::AST::Node # The body of this `class` node. # @@ -625,407 +625,410 @@ end module RuboCop::AST::CollectionNode extend ::Forwardable - # source://forwardable/1.3.1/forwardable.rb#226 - def &(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def &(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def *(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def *(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def +(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def +(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def -(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def -(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def <<(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def <<(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def [](*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def [](*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def []=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def []=(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def all?(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def all?(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def any?(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def any?(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def append(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def append(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def assoc(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def assoc(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def at(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def at(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def bsearch(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def bsearch(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def bsearch_index(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def bsearch_index(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def chain(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def chain(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def chunk(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def chunk(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def chunk_while(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def chunk_while(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def clear(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def clear(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def collect(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def collect(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def collect!(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def collect!(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def collect_concat(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def collect_concat(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def combination(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def combination(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def compact(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def compact(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def compact!(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def compact!(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def concat(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def concat(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def count(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def count(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def cycle(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def cycle(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def deconstruct(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def deconstruct(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def delete(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def delete(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def delete_at(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def delete_at(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def delete_if(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def delete_if(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def detect(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def detect(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def difference(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def difference(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def dig(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def dig(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def drop(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def drop(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def drop_while(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def drop_while(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def each(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def each(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def each_cons(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def each_cons(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def each_entry(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def each_entry(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def each_index(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def each_index(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def each_slice(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def each_slice(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def each_with_index(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def each_with_index(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def each_with_object(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def each_with_object(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def empty?(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def empty?(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def entries(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def entries(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def fetch(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def fetch(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def fill(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def fill(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def filter(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def filter(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def filter!(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def filter!(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def filter_map(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def filter_map(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def find(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def find(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def find_all(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def find_all(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def find_index(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def find_index(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def first(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def first(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def flat_map(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def flat_map(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def flatten(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def flatten(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def flatten!(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def flatten!(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def grep(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def grep(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def grep_v(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def grep_v(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def group_by(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def group_by(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def include?(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def include?(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def index(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def index(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def inject(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def inject(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def insert(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def insert(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def intersection(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def intersect?(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def join(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def intersection(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def keep_if(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def join(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def last(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def keep_if(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def lazy(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def last(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def length(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def lazy(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def map(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def length(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def map!(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def map(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def max(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def map!(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def max_by(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def max(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def member?(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def max_by(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def min(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def member?(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def min_by(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def min(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def minmax(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def min_by(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def minmax_by(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def minmax(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def none?(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def minmax_by(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def one?(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def none?(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def pack(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def one?(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def partition(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def pack(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def permutation(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def partition(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def place(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def permutation(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def pop(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def place(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def prepend(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def pop(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def product(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def prepend(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def push(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def product(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def rassoc(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def push(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def reduce(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def rassoc(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def reject(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def reduce(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def reject!(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def reject(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def repeated_combination(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def reject!(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def repeated_permutation(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def repeated_combination(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def replace(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def repeated_permutation(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def reverse(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def replace(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def reverse!(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def reverse(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def reverse_each(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def reverse!(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def rindex(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def reverse_each(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def rotate(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def rindex(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def rotate!(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def rotate(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def sample(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def rotate!(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def select(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def sample(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def select!(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def select(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def shelljoin(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def select!(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def shift(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def shelljoin(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def shuffle(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def shift(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def shuffle!(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def shuffle(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def size(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def shuffle!(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def slice(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def size(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def slice!(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def slice(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def slice_after(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def slice!(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def slice_before(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def slice_after(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def slice_when(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def slice_before(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def sort(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def slice_when(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def sort!(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def sort(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def sort_by(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def sort!(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def sort_by!(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def sort_by(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def sum(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def sort_by!(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def take(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def sum(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def take_while(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def take(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def tally(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def take_while(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def to_ary(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def tally(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def to_h(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def to_ary(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def to_set(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def to_h(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def transpose(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def to_set(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def union(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def transpose(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def uniq(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def union(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def uniq!(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def uniq(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def unshift(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def uniq!(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def values_at(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def unshift(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def zip(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def values_at(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def |(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def zip(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def |(*args, **_arg1, &block); end end # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#9 @@ -1074,7 +1077,7 @@ end # A node extension for `const` nodes. # -# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#7 +# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#6 class RuboCop::AST::ConstNode < ::RuboCop::AST::Node # @return [Boolean] if the constant starts with `::` (aka s(:cbase)) # @@ -1299,7 +1302,7 @@ end # node when the builder constructs the AST, making its methods available # to all `ensure` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#11 +# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#8 class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node # Returns the body of the `ensure` clause. # @@ -1353,7 +1356,7 @@ end # node when the builder constructs the AST, making its methods available # to all `for` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#11 +# source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#8 class RuboCop::AST::ForNode < ::RuboCop::AST::Node # Returns the body of the `for` loop. # @@ -1536,7 +1539,7 @@ end # node when the builder constructs the AST, making its methods available # to all `hash` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#14 +# source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#8 class RuboCop::AST::HashNode < ::RuboCop::AST::Node # Checks whether the `hash` literal is delimited by curly braces. # @@ -1768,7 +1771,7 @@ end # node when the builder constructs the AST, making its methods available # to all `in` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#11 +# source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#8 class RuboCop::AST::InPatternNode < ::RuboCop::AST::Node # Returns the body of the `in` node. # @@ -2485,7 +2488,7 @@ end # plain node when the builder constructs the AST, making its methods # available to all `module` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/module_node.rb#11 +# source://rubocop-ast//lib/rubocop/ast/node/module_node.rb#8 class RuboCop::AST::ModuleNode < ::RuboCop::AST::Node # The body of this `module` node. # @@ -3524,8 +3527,8 @@ class RuboCop::AST::NodePattern # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 def ast; end - # source://forwardable/1.3.1/forwardable.rb#226 - def captures(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def captures(*args, **_arg1, &block); end # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#111 def encode_with(coder); end @@ -3553,16 +3556,16 @@ class RuboCop::AST::NodePattern # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 def match_code; end - # source://forwardable/1.3.1/forwardable.rb#226 - def named_parameters(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def named_parameters(*args, **_arg1, &block); end # Returns the value of attribute pattern. # # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 def pattern; end - # source://forwardable/1.3.1/forwardable.rb#226 - def positional_parameters(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def positional_parameters(*args, **_arg1, &block); end # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#95 def to_s; end @@ -3674,8 +3677,8 @@ class RuboCop::AST::NodePattern::Compiler # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#15 def initialize; end - # source://forwardable/1.3.1/forwardable.rb#226 - def bind(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def bind(*args, **_arg1, &block); end # Returns the value of attribute binding. # @@ -3811,15 +3814,15 @@ end # Variant of the Compiler with tracing information for nodes # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#12 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#10 class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::Compiler # @return [Debug] a new instance of Debug # # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#123 def initialize; end - # source://forwardable/1.3.1/forwardable.rb#226 - def comments(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def comments(*args, **_arg1, &block); end # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#128 def named_parameters; end @@ -3832,8 +3835,8 @@ class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern:: # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#132 def parser; end - # source://forwardable/1.3.1/forwardable.rb#226 - def tokens(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def tokens(*args, **_arg1, &block); end end # @api private @@ -3918,8 +3921,6 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct # # @param value [Object] the value to set the attribute colorizer to. # @return [Object] the newly set value - # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#46 def colorizer=(_); end # @api private @@ -3943,8 +3944,6 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct # # @param value [Object] the value to set the attribute returned to. # @return [Object] the newly set value - # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#46 def returned=(_); end # Returns the value of attribute ruby_ast @@ -3956,8 +3955,6 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct # # @param value [Object] the value to set the attribute ruby_ast to. # @return [Object] the newly set value - # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#46 def ruby_ast=(_); end # Returns the value of attribute trace @@ -3969,8 +3966,6 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct # # @param value [Object] the value to set the attribute trace to. # @return [Object] the newly set value - # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#46 def trace=(_); end private @@ -3988,6 +3983,7 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -4194,6 +4190,9 @@ class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST: private + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#20 + def compile(node); end + # Compilation helpers # # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#165 @@ -4703,10 +4702,10 @@ RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash) # Node class for `$something` # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#98 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#97 class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node - # source://forwardable/1.3.1/forwardable.rb#226 - def arity(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def arity(*args, **_arg1, &block); end # @return [Boolean] # @@ -4719,8 +4718,8 @@ class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::No # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#105 def nb_captures; end - # source://forwardable/1.3.1/forwardable.rb#226 - def rest?(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def rest?(*args, **_arg1, &block); end end # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#86 @@ -4833,7 +4832,7 @@ end # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#13 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#12 class RuboCop::AST::NodePattern::Parser < ::Racc::Parser extend ::Forwardable @@ -4954,29 +4953,29 @@ class RuboCop::AST::NodePattern::Parser < ::Racc::Parser # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#465 def _reduce_none(val, _values); end - # source://forwardable/1.3.1/forwardable.rb#226 - def emit_atom(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def emit_atom(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def emit_call(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def emit_call(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def emit_capture(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def emit_capture(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def emit_list(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def emit_list(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def emit_unary_op(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def emit_unary_op(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def emit_union(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def emit_union(*args, **_arg1, &block); end # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#40 def inspect; end - # source://forwardable/1.3.1/forwardable.rb#226 - def next_token(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def next_token(*args, **_arg1, &block); end # (Similar API to `parser` gem) # Parses a source and returns the AST. @@ -5019,7 +5018,7 @@ RuboCop::AST::NodePattern::Parser::Racc_token_to_s_table = T.let(T.unsafe(nil), # Overrides Parser to use `WithMeta` variants and provide additional methods # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#9 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#8 class RuboCop::AST::NodePattern::Parser::WithMeta < ::RuboCop::AST::NodePattern::Parser # Returns the value of attribute comments. # @@ -5421,7 +5420,7 @@ RuboCop::AST::NumericNode::SIGN_REGEX = T.let(T.unsafe(nil), Regexp) # This will be used in place of a plain node when the builder constructs # the AST, making its methods available to all assignment nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#9 +# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#8 class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node # @return [AsgnNode] the assignment node # @@ -5454,7 +5453,7 @@ end # This will be used in place of a plain node when the builder constructs # the AST, making its methods available to all assignment nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/or_asgn_node.rb#11 +# source://rubocop-ast//lib/rubocop/ast/node/or_asgn_node.rb#8 class RuboCop::AST::OrAsgnNode < ::RuboCop::AST::OpAsgnNode # The operator being used for assignment as a symbol. # @@ -5722,7 +5721,7 @@ RuboCop::AST::PredicateOperatorNode::SEMANTIC_OR = T.let(T.unsafe(nil), String) # This will be used in place of a plain node when the builder constructs # the AST, making its methods available to all `arg` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/procarg0_node.rb#11 +# source://rubocop-ast//lib/rubocop/ast/node/procarg0_node.rb#8 class RuboCop::AST::Procarg0Node < ::RuboCop::AST::ArgNode # Returns the name of an argument. # @@ -6059,7 +6058,7 @@ RuboCop::AST::RegexpNode::OPTIONS = T.let(T.unsafe(nil), Hash) # plain node when the builder constructs the AST, making its methods # available to all `resbody` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#11 +# source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#8 class RuboCop::AST::ResbodyNode < ::RuboCop::AST::Node # Returns the body of the `rescue` clause. # @@ -6094,7 +6093,7 @@ end # plain node when the builder constructs the AST, making its methods # available to all `rescue` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#11 +# source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#8 class RuboCop::AST::RescueNode < ::RuboCop::AST::Node # Returns the body of the rescue node. # @@ -6166,7 +6165,7 @@ RuboCop::AST::RuboCopCompatibility::INCOMPATIBLE_COPS = T.let(T.unsafe(nil), Has # plain node when the builder constructs the AST, making its methods # available to all `sclass` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/self_class_node.rb#11 +# source://rubocop-ast//lib/rubocop/ast/node/self_class_node.rb#8 class RuboCop::AST::SelfClassNode < ::RuboCop::AST::Node # The body of this `sclass` node. # @@ -6913,7 +6912,7 @@ RuboCop::AST::Version::STRING = T.let(T.unsafe(nil), String) # node when the builder constructs the AST, making its methods available # to all `when` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#11 +# source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#8 class RuboCop::AST::WhenNode < ::RuboCop::AST::Node # Returns the body of the `when` node. # diff --git a/sorbet/rbi/gems/rubocop@1.57.2.rbi b/sorbet/rbi/gems/rubocop@1.57.2.rbi index 0bd41f609..037c70289 100644 --- a/sorbet/rbi/gems/rubocop@1.57.2.rbi +++ b/sorbet/rbi/gems/rubocop@1.57.2.rbi @@ -24,8 +24,6 @@ class Regexp::Expression::Quantifier include ::RuboCop::Ext::RegexpParser::Expression::Base end -# These aliases are for compatibility. -# # source://rubocop//lib/rubocop/version.rb#3 module RuboCop; end @@ -529,7 +527,7 @@ end # # @api private # -# source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#12 +# source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#11 class RuboCop::CLI::Command::SuggestExtensions < ::RuboCop::CLI::Command::Base # @api private # @@ -759,8 +757,8 @@ class RuboCop::CommentConfig # source://rubocop//lib/rubocop/comment_config.rb#63 def comment_only_line?(line_number); end - # source://forwardable/1.3.1/forwardable.rb#226 - def config(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def config(*args, **_arg1, &block); end # source://rubocop//lib/rubocop/comment_config.rb#51 def cop_disabled_line_ranges; end @@ -783,8 +781,8 @@ class RuboCop::CommentConfig # source://rubocop//lib/rubocop/comment_config.rb#30 def processed_source; end - # source://forwardable/1.3.1/forwardable.rb#226 - def registry(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def registry(*args, **_arg1, &block); end private @@ -876,13 +874,12 @@ class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment::Expression < :: # # @param value [Object] the value to set the attribute line to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/comment_config.rb#19 def line=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -899,13 +896,12 @@ class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment::Loc < ::Struct # # @param value [Object] the value to set the attribute expression to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/comment_config.rb#18 def expression=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -922,8 +918,6 @@ class RuboCop::CommentConfig::CopAnalysis < ::Struct # # @param value [Object] the value to set the attribute line_ranges to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/comment_config.rb#28 def line_ranges=(_); end # Returns the value of attribute start_line_number @@ -935,13 +929,12 @@ class RuboCop::CommentConfig::CopAnalysis < ::Struct # # @param value [Object] the value to set the attribute start_line_number to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/comment_config.rb#28 def start_line_number=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -964,11 +957,11 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#32 def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end - # source://forwardable/1.3.1/forwardable.rb#226 - def [](*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def [](*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def []=(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def []=(*args, **_arg1, &block); end # @return [Boolean] # @@ -1004,33 +997,33 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#144 def clusivity_config_for_badge?(badge); end - # source://forwardable/1.3.1/forwardable.rb#226 - def delete(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def delete(*args, **_arg1, &block); end # source://rubocop//lib/rubocop/config.rb#110 def deprecation_check; end - # source://forwardable/1.3.1/forwardable.rb#226 - def dig(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def dig(*args, **_arg1, &block); end # @return [Boolean] # # source://rubocop//lib/rubocop/config.rb#164 def disabled_new_cops?; end - # source://forwardable/1.3.1/forwardable.rb#226 - def each(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def each(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def each_key(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def each_key(*args, **_arg1, &block); end # @return [Boolean] # # source://rubocop//lib/rubocop/config.rb#168 def enabled_new_cops?; end - # source://forwardable/1.3.1/forwardable.rb#226 - def fetch(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def fetch(*args, **_arg1, &block); end # @return [Boolean] # @@ -1078,11 +1071,11 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#78 def internal?; end - # source://forwardable/1.3.1/forwardable.rb#226 - def key?(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def key?(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def keys(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def keys(*args, **_arg1, &block); end # source://rubocop//lib/rubocop/config.rb#49 def loaded_features; end @@ -1095,11 +1088,11 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#83 def make_excludes_absolute; end - # source://forwardable/1.3.1/forwardable.rb#226 - def map(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def map(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def merge(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def merge(*args, **_arg1, &block); end # source://rubocop//lib/rubocop/config.rb#230 def path_relative_to_config(path); end @@ -1121,8 +1114,8 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#209 def possibly_include_hidden?; end - # source://forwardable/1.3.1/forwardable.rb#226 - def replace(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def replace(*args, **_arg1, &block); end # source://rubocop//lib/rubocop/config.rb#73 def signature; end @@ -1133,23 +1126,23 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#249 def target_rails_version; end - # source://forwardable/1.3.1/forwardable.rb#226 - def target_ruby_version(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def target_ruby_version(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def to_h(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def to_h(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def to_hash(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def to_hash(*args, **_arg1, &block); end # source://rubocop//lib/rubocop/config.rb#69 def to_s; end - # source://forwardable/1.3.1/forwardable.rb#226 - def transform_values(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def transform_values(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def validate(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def validate(*args, **_arg1, &block); end # source://rubocop//lib/rubocop/config.rb#60 def validate_after_resolution; end @@ -1187,8 +1180,6 @@ class RuboCop::Config::CopConfig < ::Struct # # @param value [Object] the value to set the attribute metadata to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/config.rb#19 def metadata=(_); end # Returns the value of attribute name @@ -1200,13 +1191,12 @@ class RuboCop::Config::CopConfig < ::Struct # # @param value [Object] the value to set the attribute name to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/config.rb#19 def name=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -2221,11 +2211,11 @@ class RuboCop::ConfigValidator # source://rubocop//lib/rubocop/config_validator.rb#27 def initialize(config); end - # source://forwardable/1.3.1/forwardable.rb#226 - def for_all_cops(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def for_all_cops(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def smart_loaded_path(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def smart_loaded_path(*args, **_arg1, &block); end # source://rubocop//lib/rubocop/config_validator.rb#63 def target_ruby_version; end @@ -3228,8 +3218,6 @@ class RuboCop::Cop::Base::InvestigationReport < ::Struct # # @param value [Object] the value to set the attribute cop to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/base.rb#48 def cop=(_); end # Returns the value of attribute corrector @@ -3241,8 +3229,6 @@ class RuboCop::Cop::Base::InvestigationReport < ::Struct # # @param value [Object] the value to set the attribute corrector to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/base.rb#48 def corrector=(_); end # Returns the value of attribute offenses @@ -3254,8 +3240,6 @@ class RuboCop::Cop::Base::InvestigationReport < ::Struct # # @param value [Object] the value to set the attribute offenses to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/base.rb#48 def offenses=(_); end # Returns the value of attribute processed_source @@ -3267,13 +3251,12 @@ class RuboCop::Cop::Base::InvestigationReport < ::Struct # # @param value [Object] the value to set the attribute processed_source to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/base.rb#48 def processed_source=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -4620,8 +4603,6 @@ class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct # # @param value [Object] the value to set the attribute cop_reports to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/commissioner.rb#18 def cop_reports=(_); end # source://rubocop//lib/rubocop/cop/commissioner.rb#19 @@ -4639,8 +4620,6 @@ class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct # # @param value [Object] the value to set the attribute errors to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/commissioner.rb#18 def errors=(_); end # source://rubocop//lib/rubocop/cop/commissioner.rb#35 @@ -4661,13 +4640,12 @@ class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct # # @param value [Object] the value to set the attribute processed_source to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/commissioner.rb#18 def processed_source=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -4820,10 +4798,8 @@ end # source://rubocop//lib/rubocop/cop/mixin/configurable_numbering.rb#11 RuboCop::Cop::ConfigurableNumbering::FORMATS = T.let(T.unsafe(nil), Hash) -# Legacy scaffold for Cops. -# See https://docs.rubocop.org/rubocop/v1_upgrade_notes.html -# -# @deprecated Use Cop::Base instead +# Monkey-patch Cop for tests to provide easy access to messages and +# highlights. # # source://rubocop//lib/rubocop/cop/cop.rb#11 class RuboCop::Cop::Cop < ::RuboCop::Cop::Base @@ -4937,8 +4913,6 @@ class RuboCop::Cop::Cop::Correction < ::Struct # # @param value [Object] the value to set the attribute cop to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/cop.rb#17 def cop=(_); end # Returns the value of attribute lambda @@ -4950,8 +4924,6 @@ class RuboCop::Cop::Cop::Correction < ::Struct # # @param value [Object] the value to set the attribute lambda to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/cop.rb#17 def lambda=(_); end # Returns the value of attribute node @@ -4963,13 +4935,12 @@ class RuboCop::Cop::Cop::Correction < ::Struct # # @param value [Object] the value to set the attribute node to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/cop.rb#17 def node=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -5023,7 +4994,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # Legacy # - # source://parser/3.2.2.4/lib/parser/source/tree_rewriter.rb#252 + # source://parser/3.3.0.5/lib/parser/source/tree_rewriter.rb#252 def rewrite; end # Swaps sources at the given ranges. @@ -6307,67 +6278,53 @@ RuboCop::Cop::Generator::CONFIGURATION_ADDED_MESSAGE = T.let(T.unsafe(nil), Stri # It looks for other directives that require files in the same (cop) # namespace and injects the provided one in alpha # -# @api private -# # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#9 class RuboCop::Cop::Generator::ConfigurationInjector - # @api private # @return [ConfigurationInjector] a new instance of ConfigurationInjector # # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#17 def initialize(configuration_file_path:, badge:, version_added: T.unsafe(nil)); end - # @api private - # # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#24 def inject; end private - # @api private + # Returns the value of attribute badge. # # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#39 def badge; end - # @api private - # # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#41 def configuration_entries; end - # @api private + # Returns the value of attribute configuration_file_path. # # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#39 def configuration_file_path; end - # @api private # @return [Boolean] # # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#59 def cop_name_line?(yaml); end - # @api private - # # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#49 def find_target_line; end - # @api private - # # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#45 def new_configuration_entry; end - # @api private + # Returns the value of attribute output. # # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#39 def output; end - # @api private + # Returns the value of attribute version_added. # # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#39 def version_added; end end -# @api private -# # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#10 RuboCop::Cop::Generator::ConfigurationInjector::TEMPLATE = T.let(T.unsafe(nil), String) @@ -6375,77 +6332,59 @@ RuboCop::Cop::Generator::ConfigurationInjector::TEMPLATE = T.let(T.unsafe(nil), # It looks for other directives that require files in the same (cop) # namespace and injects the provided one in alpha # -# @api private -# # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#9 class RuboCop::Cop::Generator::RequireFileInjector - # @api private # @return [RequireFileInjector] a new instance of RequireFileInjector # # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#12 def initialize(source_path:, root_file_path:, output: T.unsafe(nil)); end - # @api private - # # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#19 def inject; end private - # @api private - # # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#64 def injectable_require_directive; end - # @api private + # Returns the value of attribute output. # # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#29 def output; end - # @api private + # Returns the value of attribute require_entries. # # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#29 def require_entries; end - # @api private # @return [Boolean] # # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#31 def require_exists?; end - # @api private - # # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#68 def require_path; end - # @api private - # # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#58 def require_path_fragments(require_directive); end - # @api private + # Returns the value of attribute root_file_path. # # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#29 def root_file_path; end - # @api private + # Returns the value of attribute source_path. # # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#29 def source_path; end - # @api private - # # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#39 def target_line; end - # @api private - # # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#35 def updated_directives; end end -# @api private -# # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#10 RuboCop::Cop::Generator::RequireFileInjector::REQUIRE_PATH = T.let(T.unsafe(nil), Regexp) @@ -6696,8 +6635,6 @@ class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct # # @param value [Object] the value to set the attribute node to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#209 def node=(_); end # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#210 @@ -6706,6 +6643,7 @@ class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -6799,8 +6737,6 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct # # @param value [Object] the value to set the attribute block_node to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#136 def block_node=(_); end # Returns the value of attribute leading @@ -6812,8 +6748,6 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct # # @param value [Object] the value to set the attribute leading to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#136 def leading=(_); end # Returns the value of attribute match @@ -6825,8 +6759,6 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct # # @param value [Object] the value to set the attribute match to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#136 def match=(_); end # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#177 @@ -6850,8 +6782,6 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct # # @param value [Object] the value to set the attribute trailing to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#136 def trailing=(_); end class << self @@ -6870,6 +6800,7 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct def from_to_h(node, match); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -6898,8 +6829,6 @@ class RuboCop::Cop::HashTransformMethod::Captures < ::Struct # # @param value [Object] the value to set the attribute transformed_argname to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#118 def transformed_argname=(_); end # Returns the value of attribute transforming_body_expr @@ -6911,8 +6840,6 @@ class RuboCop::Cop::HashTransformMethod::Captures < ::Struct # # @param value [Object] the value to set the attribute transforming_body_expr to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#118 def transforming_body_expr=(_); end # Returns the value of attribute unchanged_body_expr @@ -6924,8 +6851,6 @@ class RuboCop::Cop::HashTransformMethod::Captures < ::Struct # # @param value [Object] the value to set the attribute unchanged_body_expr to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#118 def unchanged_body_expr=(_); end # @return [Boolean] @@ -6936,6 +6861,7 @@ class RuboCop::Cop::HashTransformMethod::Captures < ::Struct class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -19221,7 +19147,7 @@ RuboCop::Cop::Lint::FloatOutOfRange::MSG = T.let(T.unsafe(nil), String) # # format('Numbered format: %1$s and numbered %2$s', a_value, another) # -# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#38 +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#37 class RuboCop::Cop::Lint::FormatParameterMismatch < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#100 def called_on_string?(param0 = T.unsafe(nil)); end @@ -27887,8 +27813,6 @@ class RuboCop::Cop::Naming::InclusiveLanguage::WordLocation < ::Struct # # @param value [Object] the value to set the attribute position to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82 def position=(_); end # Returns the value of attribute word @@ -27900,13 +27824,12 @@ class RuboCop::Cop::Naming::InclusiveLanguage::WordLocation < ::Struct # # @param value [Object] the value to set the attribute word to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82 def word=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -28844,8 +28767,6 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # # @param value [Object] the value to set the attribute begin_pos to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/offense.rb#64 def begin_pos=(_); end # Returns the value of attribute column @@ -28857,8 +28778,6 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # # @param value [Object] the value to set the attribute column to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/offense.rb#64 def column=(_); end # source://rubocop//lib/rubocop/cop/offense.rb#70 @@ -28873,8 +28792,6 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # # @param value [Object] the value to set the attribute end_pos to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/offense.rb#64 def end_pos=(_); end # Returns the value of attribute line @@ -28904,8 +28821,6 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # # @param value [Object] the value to set the attribute line to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/offense.rb#64 def line=(_); end # source://rubocop//lib/rubocop/cop/offense.rb#74 @@ -28920,13 +28835,12 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # # @param value [Object] the value to set the attribute source_line to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/offense.rb#64 def source_line=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -39193,11 +39107,11 @@ class RuboCop::Cop::Style::MagicCommentFormat::CommentRange # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#125 def directives; end - # source://forwardable/1.3.1/forwardable.rb#226 - def loc(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def loc(*args, **_arg1, &block); end - # source://forwardable/1.3.1/forwardable.rb#226 - def text(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def text(*args, **_arg1, &block); end # A magic comment can contain one value (normal style) or # multiple directives (emacs style) @@ -41196,7 +41110,7 @@ RuboCop::Cop::Style::MultipleComparison::MSG = T.let(T.unsafe(nil), String) # # shareable_constant_value: literal # CONST = [1, 2, 3] # -# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#87 +# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#83 class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base include ::RuboCop::Cop::Style::MutableConstant::ShareableConstantValue include ::RuboCop::Cop::FrozenStringLiteral @@ -52245,13 +52159,12 @@ class RuboCop::Cop::VariableForce::AssignmentReference < ::Struct # # @param value [Object] the value to set the attribute node to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/variable_force.rb#65 def node=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -52325,8 +52238,6 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct # # @param value [Object] the value to set the attribute child_node to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42 def child_node=(_); end # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#70 @@ -52371,8 +52282,6 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct # # @param value [Object] the value to set the attribute scope to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42 def scope=(_); end private @@ -52395,6 +52304,7 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct def inherited(subclass); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end @@ -53000,13 +52910,12 @@ class RuboCop::Cop::VariableForce::VariableReference < ::Struct # # @param value [Object] the value to set the attribute name to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/cop/variable_force.rb#59 def name=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -54182,8 +54091,6 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct # # @param value [Object] the value to set the attribute alpha to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 def alpha=(_); end # Returns the value of attribute blue @@ -54195,8 +54102,6 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct # # @param value [Object] the value to set the attribute blue to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 def blue=(_); end # source://rubocop//lib/rubocop/formatter/html_formatter.rb#19 @@ -54211,8 +54116,6 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct # # @param value [Object] the value to set the attribute green to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 def green=(_); end # Returns the value of attribute red @@ -54224,8 +54127,6 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct # # @param value [Object] the value to set the attribute red to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 def red=(_); end # source://rubocop//lib/rubocop/formatter/html_formatter.rb#15 @@ -54234,6 +54135,7 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -54311,8 +54213,6 @@ class RuboCop::Formatter::HTMLFormatter::FileOffenses < ::Struct # # @param value [Object] the value to set the attribute offenses to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 def offenses=(_); end # Returns the value of attribute path @@ -54324,13 +54224,12 @@ class RuboCop::Formatter::HTMLFormatter::FileOffenses < ::Struct # # @param value [Object] the value to set the attribute path to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 def path=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -54347,8 +54246,6 @@ class RuboCop::Formatter::HTMLFormatter::Summary < ::Struct # # @param value [Object] the value to set the attribute inspected_files to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24 def inspected_files=(_); end # Returns the value of attribute offense_count @@ -54360,8 +54257,6 @@ class RuboCop::Formatter::HTMLFormatter::Summary < ::Struct # # @param value [Object] the value to set the attribute offense_count to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24 def offense_count=(_); end # Returns the value of attribute target_files @@ -54373,13 +54268,12 @@ class RuboCop::Formatter::HTMLFormatter::Summary < ::Struct # # @param value [Object] the value to set the attribute target_files to. # @return [Object] the newly set value - # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24 def target_files=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end diff --git a/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi b/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi index d2015470e..fe14ff97d 100644 --- a/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +++ b/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi @@ -21,8 +21,8 @@ class ProgressBar::Base # source://ruby-progressbar//lib/ruby-progressbar/base.rb#45 def initialize(options = T.unsafe(nil)); end - # source://forwardable/1.3.1/forwardable.rb#226 - def clear(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def clear(*args, **_arg1, &block); end # source://ruby-progressbar//lib/ruby-progressbar/base.rb#137 def decrement; end @@ -47,8 +47,8 @@ class ProgressBar::Base # source://ruby-progressbar//lib/ruby-progressbar/base.rb#199 def inspect; end - # source://forwardable/1.3.1/forwardable.rb#226 - def log(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def log(*args, **_arg1, &block); end # source://ruby-progressbar//lib/ruby-progressbar/base.rb#102 def pause; end @@ -58,8 +58,8 @@ class ProgressBar::Base # source://ruby-progressbar//lib/ruby-progressbar/base.rb#123 def paused?; end - # source://forwardable/1.3.1/forwardable.rb#226 - def progress(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def progress(*args, **_arg1, &block); end # source://ruby-progressbar//lib/ruby-progressbar/base.rb#145 def progress=(new_progress); end @@ -67,8 +67,8 @@ class ProgressBar::Base # source://ruby-progressbar//lib/ruby-progressbar/base.rb#153 def progress_mark=(mark); end - # source://forwardable/1.3.1/forwardable.rb#226 - def refresh(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def refresh(*args, **_arg1, &block); end # source://ruby-progressbar//lib/ruby-progressbar/base.rb#157 def remainder_mark=(mark); end @@ -107,8 +107,8 @@ class ProgressBar::Base # source://ruby-progressbar//lib/ruby-progressbar/base.rb#169 def to_s(new_format = T.unsafe(nil)); end - # source://forwardable/1.3.1/forwardable.rb#226 - def total(*args, &block); end + # source://forwardable/1.3.3/forwardable.rb#231 + def total(*args, **_arg1, &block); end # source://ruby-progressbar//lib/ruby-progressbar/base.rb#149 def total=(new_total); end diff --git a/sorbet/rbi/gems/spoom@1.2.4.rbi b/sorbet/rbi/gems/spoom@1.2.4.rbi index 43c7bfd97..efd197c01 100644 --- a/sorbet/rbi/gems/spoom@1.2.4.rbi +++ b/sorbet/rbi/gems/spoom@1.2.4.rbi @@ -958,7 +958,7 @@ class Spoom::Coverage::D3::ColorPalette < ::T::Struct prop :strong, ::String class << self - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -1298,7 +1298,7 @@ class Spoom::Coverage::Snapshot < ::T::Struct sig { params(obj: T::Hash[::String, T.untyped]).returns(::Spoom::Coverage::Snapshot) } def from_obj(obj); end - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -1450,7 +1450,7 @@ class Spoom::Deadcode::Definition < ::T::Struct def module?; end class << self - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -2343,7 +2343,7 @@ class Spoom::Deadcode::Reference < ::T::Struct def method?; end class << self - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -2593,7 +2593,7 @@ class Spoom::Deadcode::Send < ::T::Struct def each_arg_assoc(&block); end class << self - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -2613,7 +2613,7 @@ class Spoom::ExecResult < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -2821,7 +2821,7 @@ class Spoom::FileTree::Node < ::T::Struct def path; end class << self - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -2887,7 +2887,7 @@ class Spoom::Git::Commit < ::T::Struct def timestamp; end class << self - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end # Parse a line formated as `%h %at` into a `Commit` @@ -2999,7 +2999,7 @@ class Spoom::LSP::Diagnostic < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) } def from_json(json); end - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -3032,7 +3032,7 @@ class Spoom::LSP::DocumentSymbol < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) } def from_json(json); end - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -3090,7 +3090,7 @@ class Spoom::LSP::Hover < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) } def from_json(json); end - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -3115,7 +3115,7 @@ class Spoom::LSP::Location < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) } def from_json(json); end - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -3178,7 +3178,7 @@ class Spoom::LSP::Position < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) } def from_json(json); end - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -3216,7 +3216,7 @@ class Spoom::LSP::Range < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) } def from_json(json); end - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -3282,7 +3282,7 @@ class Spoom::LSP::SignatureHelp < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) } def from_json(json); end - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end diff --git a/sorbet/rbi/gems/syntax_tree@6.2.0.rbi b/sorbet/rbi/gems/syntax_tree@6.2.0.rbi index 79d69b577..597be4c1a 100644 --- a/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +++ b/sorbet/rbi/gems/syntax_tree@6.2.0.rbi @@ -97,7 +97,7 @@ end # # collection[] # -# source://syntax_tree//lib/syntax_tree/node.rb#568 +# source://syntax_tree//lib/syntax_tree/node.rb#567 class SyntaxTree::ARef < ::SyntaxTree::Node # @return [ARef] a new instance of ARef # @@ -148,7 +148,7 @@ end # # collection[index] = value # -# source://syntax_tree//lib/syntax_tree/node.rb#646 +# source://syntax_tree//lib/syntax_tree/node.rb#645 class SyntaxTree::ARefField < ::SyntaxTree::Node # @return [ARefField] a new instance of ARefField # @@ -204,7 +204,7 @@ end # symbols (note that this includes dynamic symbols like # :"left-#{middle}-right"). # -# source://syntax_tree//lib/syntax_tree/node.rb#460 +# source://syntax_tree//lib/syntax_tree/node.rb#458 class SyntaxTree::AliasNode < ::SyntaxTree::Node # @return [AliasNode] a new instance of AliasNode # @@ -280,7 +280,7 @@ end # # method(&expression) # -# source://syntax_tree//lib/syntax_tree/node.rb#888 +# source://syntax_tree//lib/syntax_tree/node.rb#887 class SyntaxTree::ArgBlock < ::SyntaxTree::Node # @return [ArgBlock] a new instance of ArgBlock # @@ -330,7 +330,7 @@ end # # method() # -# source://syntax_tree//lib/syntax_tree/node.rb#729 +# source://syntax_tree//lib/syntax_tree/node.rb#727 class SyntaxTree::ArgParen < ::SyntaxTree::Node # @return [ArgParen] a new instance of ArgParen # @@ -384,7 +384,7 @@ end # # method(*arguments) # -# source://syntax_tree//lib/syntax_tree/node.rb#940 +# source://syntax_tree//lib/syntax_tree/node.rb#939 class SyntaxTree::ArgStar < ::SyntaxTree::Node # @return [ArgStar] a new instance of ArgStar # @@ -428,7 +428,7 @@ end # # method(first, second, third) # -# source://syntax_tree//lib/syntax_tree/node.rb#822 +# source://syntax_tree//lib/syntax_tree/node.rb#821 class SyntaxTree::Args < ::SyntaxTree::Node # @return [Args] a new instance of Args # @@ -488,7 +488,7 @@ end # The ArgsForward node appears in both the caller (the request method calls) # and the callee (the get and post definitions). # -# source://syntax_tree//lib/syntax_tree/node.rb#1005 +# source://syntax_tree//lib/syntax_tree/node.rb#1004 class SyntaxTree::ArgsForward < ::SyntaxTree::Node # @return [ArgsForward] a new instance of ArgsForward # @@ -531,7 +531,7 @@ end # [] # [one, two, three] # -# source://syntax_tree//lib/syntax_tree/node.rb#1056 +# source://syntax_tree//lib/syntax_tree/node.rb#1053 class SyntaxTree::ArrayLiteral < ::SyntaxTree::Node # @return [ArrayLiteral] a new instance of ArrayLiteral # @@ -695,7 +695,7 @@ end # and an optional array of positional matches that occur after the splat. # All of the in clauses above would create an AryPtn node. # -# source://syntax_tree//lib/syntax_tree/node.rb#1283 +# source://syntax_tree//lib/syntax_tree/node.rb#1282 class SyntaxTree::AryPtn < ::SyntaxTree::Node # @return [AryPtn] a new instance of AryPtn # @@ -779,7 +779,7 @@ end # # variable = value # -# source://syntax_tree//lib/syntax_tree/node.rb#1420 +# source://syntax_tree//lib/syntax_tree/node.rb#1418 class SyntaxTree::Assign < ::SyntaxTree::Node # @return [Assign] a new instance of Assign # @@ -850,7 +850,7 @@ end # # In the above example, the would be two Assoc nodes. # -# source://syntax_tree//lib/syntax_tree/node.rb#1498 +# source://syntax_tree//lib/syntax_tree/node.rb#1497 class SyntaxTree::Assoc < ::SyntaxTree::Node # @return [Assoc] a new instance of Assoc # @@ -904,7 +904,7 @@ end # # { **pairs } # -# source://syntax_tree//lib/syntax_tree/node.rb#1576 +# source://syntax_tree//lib/syntax_tree/node.rb#1575 class SyntaxTree::AssocSplat < ::SyntaxTree::Node # @return [AssocSplat] a new instance of AssocSplat # @@ -953,7 +953,7 @@ end # Interestingly, the BEGIN keyword doesn't allow the do and end keywords for # the block. Only braces are permitted. # -# source://syntax_tree//lib/syntax_tree/node.rb#176 +# source://syntax_tree//lib/syntax_tree/node.rb#175 class SyntaxTree::BEGINBlock < ::SyntaxTree::Node # @return [BEGINBlock] a new instance of BEGINBlock # @@ -1002,7 +1002,7 @@ end # # $1 # -# source://syntax_tree//lib/syntax_tree/node.rb#1629 +# source://syntax_tree//lib/syntax_tree/node.rb#1628 class SyntaxTree::Backref < ::SyntaxTree::Node # @return [Backref] a new instance of Backref # @@ -1045,7 +1045,7 @@ end # for an XStringLiteral, but could also be found as the name of a method being # defined. # -# source://syntax_tree//lib/syntax_tree/node.rb#1679 +# source://syntax_tree//lib/syntax_tree/node.rb#1678 class SyntaxTree::Backtick < ::SyntaxTree::Node # @return [Backtick] a new instance of Backtick # @@ -1090,7 +1090,7 @@ end # # method(key1: value1, key2: value2) # -# source://syntax_tree//lib/syntax_tree/node.rb#1835 +# source://syntax_tree//lib/syntax_tree/node.rb#1834 class SyntaxTree::BareAssocHash < ::SyntaxTree::Node # @return [BareAssocHash] a new instance of BareAssocHash # @@ -1266,7 +1266,7 @@ end # value # end # -# source://syntax_tree//lib/syntax_tree/node.rb#1900 +# source://syntax_tree//lib/syntax_tree/node.rb#1899 class SyntaxTree::Begin < ::SyntaxTree::Node # @return [Begin] a new instance of Begin # @@ -1315,7 +1315,7 @@ end # # array << value # -# source://syntax_tree//lib/syntax_tree/node.rb#2033 +# source://syntax_tree//lib/syntax_tree/node.rb#2029 class SyntaxTree::Binary < ::SyntaxTree::Node # @return [Binary] a new instance of Binary # @@ -1368,7 +1368,7 @@ end # # def method(&block); end # -# source://syntax_tree//lib/syntax_tree/node.rb#2228 +# source://syntax_tree//lib/syntax_tree/node.rb#2227 class SyntaxTree::BlockArg < ::SyntaxTree::Node # @return [BlockArg] a new instance of BlockArg # @@ -1415,7 +1415,7 @@ end # # method { |value| } # -# source://syntax_tree//lib/syntax_tree/node.rb#4313 +# source://syntax_tree//lib/syntax_tree/node.rb#4312 class SyntaxTree::BlockNode < ::SyntaxTree::Node # @return [BlockNode] a new instance of BlockNode # @@ -1537,7 +1537,7 @@ end # method do |positional, optional = value, keyword:, █ local| # end # -# source://syntax_tree//lib/syntax_tree/node.rb#2142 +# source://syntax_tree//lib/syntax_tree/node.rb#2141 class SyntaxTree::BlockVar < ::SyntaxTree::Node # @return [BlockVar] a new instance of BlockVar # @@ -1608,7 +1608,7 @@ end # doesn't necessarily know where it started. So the parent node needs to # report back down into this one where it goes. # -# source://syntax_tree//lib/syntax_tree/node.rb#2279 +# source://syntax_tree//lib/syntax_tree/node.rb#2278 class SyntaxTree::BodyStmt < ::SyntaxTree::Node # @return [BodyStmt] a new instance of BodyStmt # @@ -1683,7 +1683,7 @@ end # # break 1 # -# source://syntax_tree//lib/syntax_tree/node.rb#2635 +# source://syntax_tree//lib/syntax_tree/node.rb#2634 class SyntaxTree::Break < ::SyntaxTree::Node # @return [Break] a new instance of Break # @@ -1729,7 +1729,7 @@ end # In the example above, the CHAR node represents the string literal "a". You # can use control characters with this as well, as in ?\C-a. # -# source://syntax_tree//lib/syntax_tree/node.rb#249 +# source://syntax_tree//lib/syntax_tree/node.rb#248 class SyntaxTree::CHAR < ::SyntaxTree::Node # @return [CHAR] a new instance of CHAR # @@ -1772,7 +1772,7 @@ end # # @@variable # -# source://syntax_tree//lib/syntax_tree/node.rb#4047 +# source://syntax_tree//lib/syntax_tree/node.rb#4046 class SyntaxTree::CVar < ::SyntaxTree::Node # @return [CVar] a new instance of CVar # @@ -1870,7 +1870,7 @@ end # # receiver.message # -# source://syntax_tree//lib/syntax_tree/node.rb#2947 +# source://syntax_tree//lib/syntax_tree/node.rb#2946 class SyntaxTree::CallNode < ::SyntaxTree::Node # @return [CallNode] a new instance of CallNode # @@ -1969,7 +1969,7 @@ end # "number" # end # -# source://syntax_tree//lib/syntax_tree/node.rb#3120 +# source://syntax_tree//lib/syntax_tree/node.rb#3119 class SyntaxTree::Case < ::SyntaxTree::Node # @return [Case] a new instance of Case # @@ -2050,7 +2050,7 @@ end # class Child < method # end # -# source://syntax_tree//lib/syntax_tree/node.rb#3317 +# source://syntax_tree//lib/syntax_tree/node.rb#3315 class SyntaxTree::ClassDeclaration < ::SyntaxTree::Node # @return [ClassDeclaration] a new instance of ClassDeclaration # @@ -2107,7 +2107,7 @@ end # Comma represents the use of the , operator. # -# source://syntax_tree//lib/syntax_tree/node.rb#3414 +# source://syntax_tree//lib/syntax_tree/node.rb#3413 class SyntaxTree::Comma < ::SyntaxTree::Node # @return [Comma] a new instance of Comma # @@ -2144,7 +2144,7 @@ end # # method argument # -# source://syntax_tree//lib/syntax_tree/node.rb#3452 +# source://syntax_tree//lib/syntax_tree/node.rb#3451 class SyntaxTree::Command < ::SyntaxTree::Node # @return [Command] a new instance of Command # @@ -2206,7 +2206,7 @@ end # # object.method argument # -# source://syntax_tree//lib/syntax_tree/node.rb#3564 +# source://syntax_tree//lib/syntax_tree/node.rb#3563 class SyntaxTree::CommandCall < ::SyntaxTree::Node # @return [CommandCall] a new instance of CommandCall # @@ -2277,7 +2277,7 @@ end # # # comment # -# source://syntax_tree//lib/syntax_tree/node.rb#3726 +# source://syntax_tree//lib/syntax_tree/node.rb#3725 class SyntaxTree::Comment < ::SyntaxTree::Node # @return [Comment] a new instance of Comment # @@ -2400,7 +2400,7 @@ end # # :Constant # -# source://syntax_tree//lib/syntax_tree/node.rb#3813 +# source://syntax_tree//lib/syntax_tree/node.rb#3812 class SyntaxTree::Const < ::SyntaxTree::Node # @return [Const] a new instance of Const # @@ -2445,7 +2445,7 @@ end # # object::Const = value # -# source://syntax_tree//lib/syntax_tree/node.rb#3866 +# source://syntax_tree//lib/syntax_tree/node.rb#3865 class SyntaxTree::ConstPathField < ::SyntaxTree::Node # @return [ConstPathField] a new instance of ConstPathField # @@ -2493,7 +2493,7 @@ end # # object::Const # -# source://syntax_tree//lib/syntax_tree/node.rb#3930 +# source://syntax_tree//lib/syntax_tree/node.rb#3929 class SyntaxTree::ConstPathRef < ::SyntaxTree::Node # @return [ConstPathRef] a new instance of ConstPathRef # @@ -2543,7 +2543,7 @@ end # class Container # end # -# source://syntax_tree//lib/syntax_tree/node.rb#3996 +# source://syntax_tree//lib/syntax_tree/node.rb#3995 class SyntaxTree::ConstRef < ::SyntaxTree::Node # @return [ConstRef] a new instance of ConstRef # @@ -3600,7 +3600,7 @@ end # def method(param) result end # def object.method(param) result end # -# source://syntax_tree//lib/syntax_tree/node.rb#4099 +# source://syntax_tree//lib/syntax_tree/node.rb#4098 class SyntaxTree::DefNode < ::SyntaxTree::Node # @return [DefNode] a new instance of DefNode # @@ -3676,7 +3676,7 @@ end # # defined?(variable) # -# source://syntax_tree//lib/syntax_tree/node.rb#4250 +# source://syntax_tree//lib/syntax_tree/node.rb#4249 class SyntaxTree::Defined < ::SyntaxTree::Node # @return [Defined] a new instance of Defined # @@ -3724,7 +3724,7 @@ end # # { "#{key}": value } # -# source://syntax_tree//lib/syntax_tree/node.rb#4665 +# source://syntax_tree//lib/syntax_tree/node.rb#4663 class SyntaxTree::DynaSymbol < ::SyntaxTree::Node # @return [DynaSymbol] a new instance of DynaSymbol # @@ -3788,7 +3788,7 @@ end # Interestingly, the END keyword doesn't allow the do and end keywords for the # block. Only braces are permitted. # -# source://syntax_tree//lib/syntax_tree/node.rb#311 +# source://syntax_tree//lib/syntax_tree/node.rb#310 class SyntaxTree::ENDBlock < ::SyntaxTree::Node # @return [ENDBlock] a new instance of ENDBlock # @@ -3838,7 +3838,7 @@ end # else # end # -# source://syntax_tree//lib/syntax_tree/node.rb#4793 +# source://syntax_tree//lib/syntax_tree/node.rb#4792 class SyntaxTree::Else < ::SyntaxTree::Node # @return [Else] a new instance of Else # @@ -3888,7 +3888,7 @@ end # elsif other_variable # end # -# source://syntax_tree//lib/syntax_tree/node.rb#4866 +# source://syntax_tree//lib/syntax_tree/node.rb#4865 class SyntaxTree::Elsif < ::SyntaxTree::Node # @return [Elsif] a new instance of Elsif # @@ -3944,7 +3944,7 @@ end # second line # =end # -# source://syntax_tree//lib/syntax_tree/node.rb#4956 +# source://syntax_tree//lib/syntax_tree/node.rb#4955 class SyntaxTree::EmbDoc < ::SyntaxTree::Node # @return [EmbDoc] a new instance of EmbDoc # @@ -4013,7 +4013,7 @@ end # # "Hello, #{person}!" # -# source://syntax_tree//lib/syntax_tree/node.rb#5039 +# source://syntax_tree//lib/syntax_tree/node.rb#5038 class SyntaxTree::EmbExprBeg < ::SyntaxTree::Node # @return [EmbExprBeg] a new instance of EmbExprBeg # @@ -4050,7 +4050,7 @@ end # # "Hello, #{person}!" # -# source://syntax_tree//lib/syntax_tree/node.rb#5080 +# source://syntax_tree//lib/syntax_tree/node.rb#5079 class SyntaxTree::EmbExprEnd < ::SyntaxTree::Node # @return [EmbExprEnd] a new instance of EmbExprEnd # @@ -4089,7 +4089,7 @@ end # # In the example above, an EmbVar node represents the # because it forces # -# source://syntax_tree//lib/syntax_tree/node.rb#5123 +# source://syntax_tree//lib/syntax_tree/node.rb#5122 class SyntaxTree::EmbVar < ::SyntaxTree::Node # @return [EmbVar] a new instance of EmbVar # @@ -4129,7 +4129,7 @@ end # __END__ # some other content that is not executed by the program # -# source://syntax_tree//lib/syntax_tree/node.rb#387 +# source://syntax_tree//lib/syntax_tree/node.rb#386 class SyntaxTree::EndContent < ::SyntaxTree::Node # @return [EndContent] a new instance of EndContent # @@ -4175,7 +4175,7 @@ end # ensure # end # -# source://syntax_tree//lib/syntax_tree/node.rb#5165 +# source://syntax_tree//lib/syntax_tree/node.rb#5164 class SyntaxTree::Ensure < ::SyntaxTree::Node # @return [Ensure] a new instance of Ensure # @@ -4230,7 +4230,7 @@ end # position typically represents a rest-type parameter, but in this case is # used to indicate that a trailing comma was used. # -# source://syntax_tree//lib/syntax_tree/node.rb#5240 +# source://syntax_tree//lib/syntax_tree/node.rb#5239 class SyntaxTree::ExcessedComma < ::SyntaxTree::Node # @return [ExcessedComma] a new instance of ExcessedComma # @@ -4274,7 +4274,7 @@ end # # object.variable = value # -# source://syntax_tree//lib/syntax_tree/node.rb#5292 +# source://syntax_tree//lib/syntax_tree/node.rb#5291 class SyntaxTree::Field < ::SyntaxTree::Node # @return [Field] a new instance of Field # @@ -4831,7 +4831,7 @@ end # # 1.0 # -# source://syntax_tree//lib/syntax_tree/node.rb#5365 +# source://syntax_tree//lib/syntax_tree/node.rb#5364 class SyntaxTree::FloatLiteral < ::SyntaxTree::Node # @return [FloatLiteral] a new instance of FloatLiteral # @@ -4913,7 +4913,7 @@ end # in [*, 7, *] # end # -# source://syntax_tree//lib/syntax_tree/node.rb#5419 +# source://syntax_tree//lib/syntax_tree/node.rb#5418 class SyntaxTree::FndPtn < ::SyntaxTree::Node # @return [FndPtn] a new instance of FndPtn # @@ -4973,7 +4973,7 @@ end # for value in list do # end # -# source://syntax_tree//lib/syntax_tree/node.rb#5518 +# source://syntax_tree//lib/syntax_tree/node.rb#5516 class SyntaxTree::For < ::SyntaxTree::Node # @return [For] a new instance of For # @@ -5026,7 +5026,7 @@ end # A slightly enhanced PP that knows how to format recursively including # comments. # -# source://syntax_tree//lib/syntax_tree/formatter.rb#9 +# source://syntax_tree//lib/syntax_tree/formatter.rb#6 class SyntaxTree::Formatter < ::PrettierPrint # @return [Formatter] a new instance of Formatter # @@ -5176,7 +5176,7 @@ end # # $variable # -# source://syntax_tree//lib/syntax_tree/node.rb#5601 +# source://syntax_tree//lib/syntax_tree/node.rb#5600 class SyntaxTree::GVar < ::SyntaxTree::Node # @return [GVar] a new instance of GVar # @@ -5266,7 +5266,7 @@ end # # { key => value } # -# source://syntax_tree//lib/syntax_tree/node.rb#5654 +# source://syntax_tree//lib/syntax_tree/node.rb#5651 class SyntaxTree::HashLiteral < ::SyntaxTree::Node # @return [HashLiteral] a new instance of HashLiteral # @@ -5352,7 +5352,7 @@ end # contents # DOC # -# source://syntax_tree//lib/syntax_tree/node.rb#5775 +# source://syntax_tree//lib/syntax_tree/node.rb#5774 class SyntaxTree::Heredoc < ::SyntaxTree::Node # @return [Heredoc] a new instance of Heredoc # @@ -5421,7 +5421,7 @@ SyntaxTree::Heredoc::SEPARATOR = T.let(T.unsafe(nil), PrettierPrint::Breakable) # # In the example above the HeredocBeg node represents <<~DOC. # -# source://syntax_tree//lib/syntax_tree/node.rb#5887 +# source://syntax_tree//lib/syntax_tree/node.rb#5886 class SyntaxTree::HeredocBeg < ::SyntaxTree::Node # @return [HeredocBeg] a new instance of HeredocBeg # @@ -5468,7 +5468,7 @@ end # # In the example above the HeredocEnd node represents the closing DOC. # -# source://syntax_tree//lib/syntax_tree/node.rb#5941 +# source://syntax_tree//lib/syntax_tree/node.rb#5940 class SyntaxTree::HeredocEnd < ::SyntaxTree::Node # @return [HeredocEnd] a new instance of HeredocEnd # @@ -5514,7 +5514,7 @@ end # in { key: } # end # -# source://syntax_tree//lib/syntax_tree/node.rb#5995 +# source://syntax_tree//lib/syntax_tree/node.rb#5994 class SyntaxTree::HshPtn < ::SyntaxTree::Node # @return [HshPtn] a new instance of HshPtn # @@ -5620,7 +5620,7 @@ end # # @variable # -# source://syntax_tree//lib/syntax_tree/node.rb#6879 +# source://syntax_tree//lib/syntax_tree/node.rb#6878 class SyntaxTree::IVar < ::SyntaxTree::Node # @return [IVar] a new instance of IVar # @@ -5664,7 +5664,7 @@ end # # value # -# source://syntax_tree//lib/syntax_tree/node.rb#6182 +# source://syntax_tree//lib/syntax_tree/node.rb#6181 class SyntaxTree::Ident < ::SyntaxTree::Node # @return [Ident] a new instance of Ident # @@ -5708,7 +5708,7 @@ end # if predicate # end # -# source://syntax_tree//lib/syntax_tree/node.rb#6472 +# source://syntax_tree//lib/syntax_tree/node.rb#6471 class SyntaxTree::IfNode < ::SyntaxTree::Node # @return [IfNode] a new instance of IfNode # @@ -5768,7 +5768,7 @@ end # # predicate ? truthy : falsy # -# source://syntax_tree//lib/syntax_tree/node.rb#6545 +# source://syntax_tree//lib/syntax_tree/node.rb#6544 class SyntaxTree::IfOp < ::SyntaxTree::Node # @return [IfOp] a new instance of IfOp # @@ -5829,7 +5829,7 @@ end # # 1i # -# source://syntax_tree//lib/syntax_tree/node.rb#6681 +# source://syntax_tree//lib/syntax_tree/node.rb#6680 class SyntaxTree::Imaginary < ::SyntaxTree::Node # @return [Imaginary] a new instance of Imaginary # @@ -5875,7 +5875,7 @@ end # in pattern # end # -# source://syntax_tree//lib/syntax_tree/node.rb#6735 +# source://syntax_tree//lib/syntax_tree/node.rb#6734 class SyntaxTree::In < ::SyntaxTree::Node # @return [In] a new instance of In # @@ -6385,7 +6385,7 @@ end # # 1 # -# source://syntax_tree//lib/syntax_tree/node.rb#6823 +# source://syntax_tree//lib/syntax_tree/node.rb#6822 class SyntaxTree::Int < ::SyntaxTree::Node # @return [Int] a new instance of Int # @@ -6477,7 +6477,7 @@ end # # then the contents of the symbol node will contain a Kw node. # -# source://syntax_tree//lib/syntax_tree/node.rb#6939 +# source://syntax_tree//lib/syntax_tree/node.rb#6938 class SyntaxTree::Kw < ::SyntaxTree::Node # @return [Kw] a new instance of Kw # @@ -6526,7 +6526,7 @@ end # # def method(**kwargs) end # -# source://syntax_tree//lib/syntax_tree/node.rb#6992 +# source://syntax_tree//lib/syntax_tree/node.rb#6991 class SyntaxTree::KwRestParam < ::SyntaxTree::Node # @return [KwRestParam] a new instance of KwRestParam # @@ -6567,7 +6567,7 @@ end # LBrace represents the use of a left brace, i.e., {. # -# source://syntax_tree//lib/syntax_tree/node.rb#7317 +# source://syntax_tree//lib/syntax_tree/node.rb#7316 class SyntaxTree::LBrace < ::SyntaxTree::Node # @return [LBrace] a new instance of LBrace # @@ -6619,7 +6619,7 @@ end # LBracket represents the use of a left bracket, i.e., [. # -# source://syntax_tree//lib/syntax_tree/node.rb#7374 +# source://syntax_tree//lib/syntax_tree/node.rb#7373 class SyntaxTree::LBracket < ::SyntaxTree::Node # @return [LBracket] a new instance of LBracket # @@ -6671,7 +6671,7 @@ end # LParen represents the use of a left parenthesis, i.e., (. # -# source://syntax_tree//lib/syntax_tree/node.rb#7431 +# source://syntax_tree//lib/syntax_tree/node.rb#7430 class SyntaxTree::LParen < ::SyntaxTree::Node # @return [LParen] a new instance of LParen # @@ -6735,7 +6735,7 @@ end # # In this case "key:" would be the body of the label. # -# source://syntax_tree//lib/syntax_tree/node.rb#7053 +# source://syntax_tree//lib/syntax_tree/node.rb#7052 class SyntaxTree::Label < ::SyntaxTree::Node # @return [Label] a new instance of Label # @@ -6782,7 +6782,7 @@ end # hash key. This node is important for determining the type of quote being # used by the label. # -# source://syntax_tree//lib/syntax_tree/node.rb#7107 +# source://syntax_tree//lib/syntax_tree/node.rb#7106 class SyntaxTree::LabelEnd < ::SyntaxTree::Node # @return [LabelEnd] a new instance of LabelEnd # @@ -6817,7 +6817,7 @@ end # # ->(value) { value * 2 } # -# source://syntax_tree//lib/syntax_tree/node.rb#7146 +# source://syntax_tree//lib/syntax_tree/node.rb#7145 class SyntaxTree::Lambda < ::SyntaxTree::Node # @return [Lambda] a new instance of Lambda # @@ -6869,7 +6869,7 @@ end # -> (positional, optional = value, keyword:, █ local) do # end # -# source://syntax_tree//lib/syntax_tree/node.rb#7254 +# source://syntax_tree//lib/syntax_tree/node.rb#7253 class SyntaxTree::LambdaVar < ::SyntaxTree::Node # @return [LambdaVar] a new instance of LambdaVar # @@ -6970,7 +6970,7 @@ end # information, see the spec here: # https://github.com/microsoft/language-server-protocol/issues/956. # -# source://syntax_tree//lib/syntax_tree/language_server.rb#19 +# source://syntax_tree//lib/syntax_tree/language_server.rb#18 class SyntaxTree::LanguageServer::InlayHints < ::SyntaxTree::Visitor # @return [InlayHints] a new instance of InlayHints # @@ -7201,7 +7201,7 @@ end # # first, = value # -# source://syntax_tree//lib/syntax_tree/node.rb#7501 +# source://syntax_tree//lib/syntax_tree/node.rb#7500 class SyntaxTree::MAssign < ::SyntaxTree::Node # @return [MAssign] a new instance of MAssign # @@ -7250,7 +7250,7 @@ end # # first, second, third = value # -# source://syntax_tree//lib/syntax_tree/node.rb#7644 +# source://syntax_tree//lib/syntax_tree/node.rb#7638 class SyntaxTree::MLHS < ::SyntaxTree::Node # @return [MLHS] a new instance of MLHS # @@ -7313,7 +7313,7 @@ end # # (left, right) = value # -# source://syntax_tree//lib/syntax_tree/node.rb#7705 +# source://syntax_tree//lib/syntax_tree/node.rb#7704 class SyntaxTree::MLHSParen < ::SyntaxTree::Node # @return [MLHSParen] a new instance of MLHSParen # @@ -7371,7 +7371,7 @@ end # # values = first, second, third # -# source://syntax_tree//lib/syntax_tree/node.rb#7870 +# source://syntax_tree//lib/syntax_tree/node.rb#7869 class SyntaxTree::MRHS < ::SyntaxTree::Node # @return [MRHS] a new instance of MRHS # @@ -7663,7 +7663,7 @@ end # # method {} # -# source://syntax_tree//lib/syntax_tree/node.rb#7564 +# source://syntax_tree//lib/syntax_tree/node.rb#7563 class SyntaxTree::MethodAddBlock < ::SyntaxTree::Node # @return [MethodAddBlock] a new instance of MethodAddBlock # @@ -7715,7 +7715,7 @@ end # module Namespace # end # -# source://syntax_tree//lib/syntax_tree/node.rb#7780 +# source://syntax_tree//lib/syntax_tree/node.rb#7779 class SyntaxTree::ModuleDeclaration < ::SyntaxTree::Node # @return [ModuleDeclaration] a new instance of ModuleDeclaration # @@ -8263,7 +8263,7 @@ end # # next(value) # -# source://syntax_tree//lib/syntax_tree/node.rb#7934 +# source://syntax_tree//lib/syntax_tree/node.rb#7933 class SyntaxTree::Next < ::SyntaxTree::Node # @return [Next] a new instance of Next # @@ -8361,7 +8361,7 @@ end # # not value # -# source://syntax_tree//lib/syntax_tree/node.rb#11078 +# source://syntax_tree//lib/syntax_tree/node.rb#11077 class SyntaxTree::Not < ::SyntaxTree::Node # @return [Not] a new instance of Not # @@ -8416,7 +8416,7 @@ end # # In the example above, the Op node represents the + operator. # -# source://syntax_tree//lib/syntax_tree/node.rb#7986 +# source://syntax_tree//lib/syntax_tree/node.rb#7985 class SyntaxTree::Op < ::SyntaxTree::Node # @return [Op] a new instance of Op # @@ -8465,7 +8465,7 @@ end # # variable += value # -# source://syntax_tree//lib/syntax_tree/node.rb#8040 +# source://syntax_tree//lib/syntax_tree/node.rb#8038 class SyntaxTree::OpAssign < ::SyntaxTree::Node # @return [OpAssign] a new instance of OpAssign # @@ -8532,7 +8532,7 @@ SyntaxTree::PATTERNS = T.let(T.unsafe(nil), Array) # # def method(param) end # -# source://syntax_tree//lib/syntax_tree/node.rb#8198 +# source://syntax_tree//lib/syntax_tree/node.rb#8196 class SyntaxTree::Params < ::SyntaxTree::Node # @return [Params] a new instance of Params # @@ -8715,7 +8715,7 @@ end # # (1 + 2) # -# source://syntax_tree//lib/syntax_tree/node.rb#8480 +# source://syntax_tree//lib/syntax_tree/node.rb#8479 class SyntaxTree::Paren < ::SyntaxTree::Node # @return [Paren] a new instance of Paren # @@ -8808,7 +8808,7 @@ SyntaxTree::Parentheses::NODES = T.let(T.unsafe(nil), Array) # Parser is a subclass of the Ripper library that subscribes to the stream of # tokens and nodes coming from the parser and builds up a syntax tree. # -# source://syntax_tree//lib/syntax_tree/parser.rb#8 +# source://syntax_tree//lib/syntax_tree/parser.rb#6 class SyntaxTree::Parser < ::Ripper # @return [Parser] a new instance of Parser # @@ -10565,7 +10565,7 @@ end # Period represents the use of the +.+ operator. It is usually found in method # calls. # -# source://syntax_tree//lib/syntax_tree/node.rb#8554 +# source://syntax_tree//lib/syntax_tree/node.rb#8553 class SyntaxTree::Period < ::SyntaxTree::Node # @return [Period] a new instance of Period # @@ -10610,7 +10610,7 @@ end # in ^(statement) # end # -# source://syntax_tree//lib/syntax_tree/node.rb#1963 +# source://syntax_tree//lib/syntax_tree/node.rb#1962 class SyntaxTree::PinnedBegin < ::SyntaxTree::Node # @return [PinnedBegin] a new instance of PinnedBegin # @@ -10659,7 +10659,7 @@ end # This can be a plain local variable like the example above. It can also be a # a class variable, a global variable, or an instance variable. # -# source://syntax_tree//lib/syntax_tree/node.rb#11662 +# source://syntax_tree//lib/syntax_tree/node.rb#11661 class SyntaxTree::PinnedVarRef < ::SyntaxTree::Node # @return [PinnedVarRef] a new instance of PinnedVarRef # @@ -10747,7 +10747,7 @@ end # Program represents the overall syntax tree. # -# source://syntax_tree//lib/syntax_tree/node.rb#8602 +# source://syntax_tree//lib/syntax_tree/node.rb#8601 class SyntaxTree::Program < ::SyntaxTree::Node # @return [Program] a new instance of Program # @@ -10790,7 +10790,7 @@ end # # %i[one two three] # -# source://syntax_tree//lib/syntax_tree/node.rb#8658 +# source://syntax_tree//lib/syntax_tree/node.rb#8657 class SyntaxTree::QSymbols < ::SyntaxTree::Node # @return [QSymbols] a new instance of QSymbols # @@ -10842,7 +10842,7 @@ end # these kinds of arrays can start with a lot of different delimiter types # (e.g., %i| or %i<). # -# source://syntax_tree//lib/syntax_tree/node.rb#8741 +# source://syntax_tree//lib/syntax_tree/node.rb#8740 class SyntaxTree::QSymbolsBeg < ::SyntaxTree::Node # @return [QSymbolsBeg] a new instance of QSymbolsBeg # @@ -10877,7 +10877,7 @@ end # # %w[one two three] # -# source://syntax_tree//lib/syntax_tree/node.rb#8780 +# source://syntax_tree//lib/syntax_tree/node.rb#8779 class SyntaxTree::QWords < ::SyntaxTree::Node # @return [QWords] a new instance of QWords # @@ -10929,7 +10929,7 @@ end # kinds of arrays can start with a lot of different delimiter types (e.g., # %w| or %w<). # -# source://syntax_tree//lib/syntax_tree/node.rb#8859 +# source://syntax_tree//lib/syntax_tree/node.rb#8858 class SyntaxTree::QWordsBeg < ::SyntaxTree::Node # @return [QWordsBeg] a new instance of QWordsBeg # @@ -11000,7 +11000,7 @@ SyntaxTree::Quotes::PAIRS = T.let(T.unsafe(nil), Hash) # value in pattern # value => pattern # -# source://syntax_tree//lib/syntax_tree/node.rb#3202 +# source://syntax_tree//lib/syntax_tree/node.rb#3201 class SyntaxTree::RAssign < ::SyntaxTree::Node # @return [RAssign] a new instance of RAssign # @@ -11052,7 +11052,7 @@ end # RBrace represents the use of a right brace, i.e., +++. # -# source://syntax_tree//lib/syntax_tree/node.rb#8946 +# source://syntax_tree//lib/syntax_tree/node.rb#8945 class SyntaxTree::RBrace < ::SyntaxTree::Node # @return [RBrace] a new instance of RBrace # @@ -11085,7 +11085,7 @@ end # RBracket represents the use of a right bracket, i.e., +]+. # -# source://syntax_tree//lib/syntax_tree/node.rb#8982 +# source://syntax_tree//lib/syntax_tree/node.rb#8981 class SyntaxTree::RBracket < ::SyntaxTree::Node # @return [RBracket] a new instance of RBracket # @@ -11118,7 +11118,7 @@ end # RParen represents the use of a right parenthesis, i.e., +)+. # -# source://syntax_tree//lib/syntax_tree/node.rb#9752 +# source://syntax_tree//lib/syntax_tree/node.rb#9751 class SyntaxTree::RParen < ::SyntaxTree::Node # @return [RParen] a new instance of RParen # @@ -11161,7 +11161,7 @@ end # # One of the sides of the expression may be nil, but not both. # -# source://syntax_tree//lib/syntax_tree/node.rb#4541 +# source://syntax_tree//lib/syntax_tree/node.rb#4540 class SyntaxTree::RangeNode < ::SyntaxTree::Node # @return [RangeNode] a new instance of RangeNode # @@ -11214,7 +11214,7 @@ end # # 1r # -# source://syntax_tree//lib/syntax_tree/node.rb#8898 +# source://syntax_tree//lib/syntax_tree/node.rb#8897 class SyntaxTree::RationalLiteral < ::SyntaxTree::Node # @return [RationalLiteral] a new instance of RationalLiteral # @@ -11257,7 +11257,7 @@ end # # redo # -# source://syntax_tree//lib/syntax_tree/node.rb#9021 +# source://syntax_tree//lib/syntax_tree/node.rb#9020 class SyntaxTree::Redo < ::SyntaxTree::Node # @return [Redo] a new instance of Redo # @@ -11300,7 +11300,7 @@ end # # %r{.+} # -# source://syntax_tree//lib/syntax_tree/node.rb#9117 +# source://syntax_tree//lib/syntax_tree/node.rb#9116 class SyntaxTree::RegexpBeg < ::SyntaxTree::Node # @return [RegexpBeg] a new instance of RegexpBeg # @@ -11338,7 +11338,7 @@ end # In the example above, a RegexpContent node represents everything contained # within the forward slashes. # -# source://syntax_tree//lib/syntax_tree/node.rb#9066 +# source://syntax_tree//lib/syntax_tree/node.rb#9065 class SyntaxTree::RegexpContent < ::SyntaxTree::Node # @return [RegexpContent] a new instance of RegexpContent # @@ -11385,7 +11385,7 @@ end # # %r{.+}m # -# source://syntax_tree//lib/syntax_tree/node.rb#9162 +# source://syntax_tree//lib/syntax_tree/node.rb#9161 class SyntaxTree::RegexpEnd < ::SyntaxTree::Node # @return [RegexpEnd] a new instance of RegexpEnd # @@ -11420,7 +11420,7 @@ end # # /.+/ # -# source://syntax_tree//lib/syntax_tree/node.rb#9201 +# source://syntax_tree//lib/syntax_tree/node.rb#9200 class SyntaxTree::RegexpLiteral < ::SyntaxTree::Node # @return [RegexpLiteral] a new instance of RegexpLiteral # @@ -11496,7 +11496,7 @@ end # rescue # end # -# source://syntax_tree//lib/syntax_tree/node.rb#9409 +# source://syntax_tree//lib/syntax_tree/node.rb#9408 class SyntaxTree::Rescue < ::SyntaxTree::Node # @return [Rescue] a new instance of Rescue # @@ -11559,7 +11559,7 @@ end # rescue Exception => exception # end # -# source://syntax_tree//lib/syntax_tree/node.rb#9334 +# source://syntax_tree//lib/syntax_tree/node.rb#9333 class SyntaxTree::RescueEx < ::SyntaxTree::Node # @return [RescueEx] a new instance of RescueEx # @@ -11608,7 +11608,7 @@ end # # expression rescue value # -# source://syntax_tree//lib/syntax_tree/node.rb#9532 +# source://syntax_tree//lib/syntax_tree/node.rb#9531 class SyntaxTree::RescueMod < ::SyntaxTree::Node # @return [RescueMod] a new instance of RescueMod # @@ -11657,7 +11657,7 @@ end # # def method(*rest) end # -# source://syntax_tree//lib/syntax_tree/node.rb#9609 +# source://syntax_tree//lib/syntax_tree/node.rb#9608 class SyntaxTree::RestParam < ::SyntaxTree::Node # @return [RestParam] a new instance of RestParam # @@ -11700,7 +11700,7 @@ end # # retry # -# source://syntax_tree//lib/syntax_tree/node.rb#9661 +# source://syntax_tree//lib/syntax_tree/node.rb#9660 class SyntaxTree::Retry < ::SyntaxTree::Node # @return [Retry] a new instance of Retry # @@ -11738,7 +11738,7 @@ end # # return value # -# source://syntax_tree//lib/syntax_tree/node.rb#9704 +# source://syntax_tree//lib/syntax_tree/node.rb#9703 class SyntaxTree::ReturnNode < ::SyntaxTree::Node # @return [ReturnNode] a new instance of ReturnNode # @@ -11784,7 +11784,7 @@ end # class << self # end # -# source://syntax_tree//lib/syntax_tree/node.rb#9794 +# source://syntax_tree//lib/syntax_tree/node.rb#9793 class SyntaxTree::SClass < ::SyntaxTree::Node # @return [SClass] a new instance of SClass # @@ -11855,7 +11855,7 @@ end # propagate that onto void_stmt nodes inside the stmts in order to make sure # all comments get printed appropriately. # -# source://syntax_tree//lib/syntax_tree/node.rb#9868 +# source://syntax_tree//lib/syntax_tree/node.rb#9867 class SyntaxTree::Statements < ::SyntaxTree::Node # @return [Statements] a new instance of Statements # @@ -11920,7 +11920,7 @@ end # "first" \ # "second" # -# source://syntax_tree//lib/syntax_tree/node.rb#10126 +# source://syntax_tree//lib/syntax_tree/node.rb#10124 class SyntaxTree::StringConcat < ::SyntaxTree::Node # @return [StringConcat] a new instance of StringConcat # @@ -11969,7 +11969,7 @@ end # # "string" # -# source://syntax_tree//lib/syntax_tree/node.rb#10053 +# source://syntax_tree//lib/syntax_tree/node.rb#10051 class SyntaxTree::StringContent < ::SyntaxTree::Node # @return [StringContent] a new instance of StringContent # @@ -12015,7 +12015,7 @@ end # # "#@variable" # -# source://syntax_tree//lib/syntax_tree/node.rb#10191 +# source://syntax_tree//lib/syntax_tree/node.rb#10190 class SyntaxTree::StringDVar < ::SyntaxTree::Node # @return [StringDVar] a new instance of StringDVar # @@ -12060,7 +12060,7 @@ end # # "string #{expression}" # -# source://syntax_tree//lib/syntax_tree/node.rb#10246 +# source://syntax_tree//lib/syntax_tree/node.rb#10245 class SyntaxTree::StringEmbExpr < ::SyntaxTree::Node # @return [StringEmbExpr] a new instance of StringEmbExpr # @@ -12103,7 +12103,7 @@ end # # "string" # -# source://syntax_tree//lib/syntax_tree/node.rb#10320 +# source://syntax_tree//lib/syntax_tree/node.rb#10318 class SyntaxTree::StringLiteral < ::SyntaxTree::Node # @return [StringLiteral] a new instance of StringLiteral # @@ -12153,7 +12153,7 @@ end # # super(value) # -# source://syntax_tree//lib/syntax_tree/node.rb#10415 +# source://syntax_tree//lib/syntax_tree/node.rb#10414 class SyntaxTree::Super < ::SyntaxTree::Node # @return [Super] a new instance of Super # @@ -12209,7 +12209,7 @@ end # contain ":'" or ":\"". In the case of %s symbols, it will contain the start # of the symbol including the %s and the delimiter. # -# source://syntax_tree//lib/syntax_tree/node.rb#10487 +# source://syntax_tree//lib/syntax_tree/node.rb#10486 class SyntaxTree::SymBeg < ::SyntaxTree::Node # @return [SymBeg] a new instance of SymBeg # @@ -12245,7 +12245,7 @@ end # # :symbol # -# source://syntax_tree//lib/syntax_tree/node.rb#10528 +# source://syntax_tree//lib/syntax_tree/node.rb#10526 class SyntaxTree::SymbolContent < ::SyntaxTree::Node # @return [SymbolContent] a new instance of SymbolContent # @@ -12282,7 +12282,7 @@ end # # :symbol # -# source://syntax_tree//lib/syntax_tree/node.rb#10569 +# source://syntax_tree//lib/syntax_tree/node.rb#10567 class SyntaxTree::SymbolLiteral < ::SyntaxTree::Node # @return [SymbolLiteral] a new instance of SymbolLiteral # @@ -12326,7 +12326,7 @@ end # # %I[one two three] # -# source://syntax_tree//lib/syntax_tree/node.rb#10622 +# source://syntax_tree//lib/syntax_tree/node.rb#10621 class SyntaxTree::Symbols < ::SyntaxTree::Node # @return [Symbols] a new instance of Symbols # @@ -12379,7 +12379,7 @@ end # kinds of arrays can start with a lot of different delimiter types # (e.g., %I| or %I<). # -# source://syntax_tree//lib/syntax_tree/node.rb#10702 +# source://syntax_tree//lib/syntax_tree/node.rb#10701 class SyntaxTree::SymbolsBeg < ::SyntaxTree::Node # @return [SymbolsBeg] a new instance of SymbolsBeg # @@ -12417,7 +12417,7 @@ end # # In the example above the TLamBeg represents the +{+ operator. # -# source://syntax_tree//lib/syntax_tree/node.rb#10783 +# source://syntax_tree//lib/syntax_tree/node.rb#10782 class SyntaxTree::TLamBeg < ::SyntaxTree::Node # @return [TLamBeg] a new instance of TLamBeg # @@ -12454,7 +12454,7 @@ end # # In the example above the TLambda represents the +->+ operator. # -# source://syntax_tree//lib/syntax_tree/node.rb#10742 +# source://syntax_tree//lib/syntax_tree/node.rb#10741 class SyntaxTree::TLambda < ::SyntaxTree::Node # @return [TLambda] a new instance of TLambda # @@ -12495,7 +12495,7 @@ end # # %q{string} # -# source://syntax_tree//lib/syntax_tree/node.rb#10935 +# source://syntax_tree//lib/syntax_tree/node.rb#10934 class SyntaxTree::TStringBeg < ::SyntaxTree::Node # @return [TStringBeg] a new instance of TStringBeg # @@ -12535,7 +12535,7 @@ end # In the example above, TStringContent represents the +string+ token contained # within the string. # -# source://syntax_tree//lib/syntax_tree/node.rb#10978 +# source://syntax_tree//lib/syntax_tree/node.rb#10977 class SyntaxTree::TStringContent < ::SyntaxTree::Node # @return [TStringContent] a new instance of TStringContent # @@ -12589,7 +12589,7 @@ end # # %q{string} # -# source://syntax_tree//lib/syntax_tree/node.rb#11039 +# source://syntax_tree//lib/syntax_tree/node.rb#11038 class SyntaxTree::TStringEnd < ::SyntaxTree::Node # @return [TStringEnd] a new instance of TStringEnd # @@ -12651,7 +12651,7 @@ end # # ::Constant = value # -# source://syntax_tree//lib/syntax_tree/node.rb#10824 +# source://syntax_tree//lib/syntax_tree/node.rb#10823 class SyntaxTree::TopConstField < ::SyntaxTree::Node # @return [TopConstField] a new instance of TopConstField # @@ -12695,7 +12695,7 @@ end # # ::Constant # -# source://syntax_tree//lib/syntax_tree/node.rb#10877 +# source://syntax_tree//lib/syntax_tree/node.rb#10876 class SyntaxTree::TopConstRef < ::SyntaxTree::Node # @return [TopConstRef] a new instance of TopConstRef # @@ -12761,7 +12761,7 @@ end # # !value # -# source://syntax_tree//lib/syntax_tree/node.rb#11162 +# source://syntax_tree//lib/syntax_tree/node.rb#11161 class SyntaxTree::Unary < ::SyntaxTree::Node # @return [Unary] a new instance of Unary # @@ -12809,7 +12809,7 @@ end # # undef method # -# source://syntax_tree//lib/syntax_tree/node.rb#11227 +# source://syntax_tree//lib/syntax_tree/node.rb#11224 class SyntaxTree::Undef < ::SyntaxTree::Node # @return [Undef] a new instance of Undef # @@ -12876,7 +12876,7 @@ end # unless predicate # end # -# source://syntax_tree//lib/syntax_tree/node.rb#11309 +# source://syntax_tree//lib/syntax_tree/node.rb#11308 class SyntaxTree::UnlessNode < ::SyntaxTree::Node # @return [UnlessNode] a new instance of UnlessNode # @@ -12937,7 +12937,7 @@ end # until predicate # end # -# source://syntax_tree//lib/syntax_tree/node.rb#11455 +# source://syntax_tree//lib/syntax_tree/node.rb#11454 class SyntaxTree::UntilNode < ::SyntaxTree::Node # @return [UntilNode] a new instance of UntilNode # @@ -12991,7 +12991,7 @@ end # # variable # -# source://syntax_tree//lib/syntax_tree/node.rb#11717 +# source://syntax_tree//lib/syntax_tree/node.rb#11716 class SyntaxTree::VCall < ::SyntaxTree::Node # @return [VCall] a new instance of VCall # @@ -13048,7 +13048,7 @@ SyntaxTree::VERSION = T.let(T.unsafe(nil), String) # # In the example above, the VarField node represents the +variable+ token. # -# source://syntax_tree//lib/syntax_tree/node.rb#11523 +# source://syntax_tree//lib/syntax_tree/node.rb#11522 class SyntaxTree::VarField < ::SyntaxTree::Node # @return [VarField] a new instance of VarField # @@ -13096,7 +13096,7 @@ end # keyword (like +self+, +nil+, +true+, or +false+), or a numbered block # variable. # -# source://syntax_tree//lib/syntax_tree/node.rb#11582 +# source://syntax_tree//lib/syntax_tree/node.rb#11581 class SyntaxTree::VarRef < ::SyntaxTree::Node # @return [VarRef] a new instance of VarRef # @@ -13150,7 +13150,7 @@ end # and handle a subset of nodes. By defining your own subclass, you can # explicitly handle a node type by defining a visit_* method. # -# source://syntax_tree//lib/syntax_tree/visitor.rb#8 +# source://syntax_tree//lib/syntax_tree/visitor.rb#7 class SyntaxTree::Visitor < ::SyntaxTree::BasicVisitor # Visit a BEGINBlock node. # @@ -13907,7 +13907,7 @@ end # # ;; # -# source://syntax_tree//lib/syntax_tree/node.rb#11776 +# source://syntax_tree//lib/syntax_tree/node.rb#11775 class SyntaxTree::VoidStmt < ::SyntaxTree::Node # @return [VoidStmt] a new instance of VoidStmt # @@ -13947,7 +13947,7 @@ end # when predicate # end # -# source://syntax_tree//lib/syntax_tree/node.rb#11820 +# source://syntax_tree//lib/syntax_tree/node.rb#11819 class SyntaxTree::When < ::SyntaxTree::Node # @return [When] a new instance of When # @@ -14017,7 +14017,7 @@ end # while predicate # end # -# source://syntax_tree//lib/syntax_tree/node.rb#11936 +# source://syntax_tree//lib/syntax_tree/node.rb#11935 class SyntaxTree::WhileNode < ::SyntaxTree::Node # @return [WhileNode] a new instance of WhileNode # @@ -14270,7 +14270,7 @@ end # In the example above, there would be two Word nodes within a parent Words # node. # -# source://syntax_tree//lib/syntax_tree/node.rb#12006 +# source://syntax_tree//lib/syntax_tree/node.rb#12004 class SyntaxTree::Word < ::SyntaxTree::Node # @return [Word] a new instance of Word # @@ -14319,7 +14319,7 @@ end # # %W[one two three] # -# source://syntax_tree//lib/syntax_tree/node.rb#12061 +# source://syntax_tree//lib/syntax_tree/node.rb#12060 class SyntaxTree::Words < ::SyntaxTree::Node # @return [Words] a new instance of Words # @@ -14372,7 +14372,7 @@ end # Note that these kinds of arrays can start with a lot of different delimiter # types (e.g., %W| or %W<). # -# source://syntax_tree//lib/syntax_tree/node.rb#12141 +# source://syntax_tree//lib/syntax_tree/node.rb#12140 class SyntaxTree::WordsBeg < ::SyntaxTree::Node # @return [WordsBeg] a new instance of WordsBeg # @@ -14407,7 +14407,7 @@ end # # `ls` # -# source://syntax_tree//lib/syntax_tree/node.rb#12181 +# source://syntax_tree//lib/syntax_tree/node.rb#12179 class SyntaxTree::XString < ::SyntaxTree::Node # @return [XString] a new instance of XString # @@ -14443,7 +14443,7 @@ end # # `ls` # -# source://syntax_tree//lib/syntax_tree/node.rb#12221 +# source://syntax_tree//lib/syntax_tree/node.rb#12219 class SyntaxTree::XStringLiteral < ::SyntaxTree::Node # @return [XStringLiteral] a new instance of XStringLiteral # @@ -14996,9 +14996,6 @@ SyntaxTree::YARV::CallData::CALL_ARGS_SIMPLE = T.let(T.unsafe(nil), Integer) # source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#27 SyntaxTree::YARV::CallData::CALL_ARGS_SPLAT = T.let(T.unsafe(nil), Integer) -# source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#27 -SyntaxTree::YARV::CallData::CALL_BLOCKISEQ = T.let(T.unsafe(nil), Integer) - # source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#27 SyntaxTree::YARV::CallData::CALL_FCALL = T.let(T.unsafe(nil), Integer) @@ -15310,7 +15307,7 @@ SyntaxTree::YARV::CheckType::TYPE_UNDEF = T.let(T.unsafe(nil), Integer) # # RubyVM::InstructionSequence.compile("1 + 2").to_a # -# source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#51 +# source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#47 class SyntaxTree::YARV::Compiler < ::SyntaxTree::BasicVisitor # @return [Compiler] a new instance of Compiler # @@ -15775,7 +15772,7 @@ end # the stack. It is only used when the entire structure can be represented # at compile-time, as opposed to constructed at run-time. # -# source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#116 +# source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#114 class SyntaxTree::YARV::Compiler::RubyVisitor < ::SyntaxTree::BasicVisitor # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 def visit_BEGIN(_node); end @@ -22735,10 +22732,10 @@ class SyntaxTree::YARV::VM # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#532 def local_set(index, level, value); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def pop(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def push(*args, **_arg1, &block); end # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#598 @@ -23058,7 +23055,7 @@ end # # yield value # -# source://syntax_tree//lib/syntax_tree/node.rb#12274 +# source://syntax_tree//lib/syntax_tree/node.rb#12273 class SyntaxTree::YieldNode < ::SyntaxTree::Node # @return [YieldNode] a new instance of YieldNode # @@ -23101,7 +23098,7 @@ end # # super # -# source://syntax_tree//lib/syntax_tree/node.rb#12344 +# source://syntax_tree//lib/syntax_tree/node.rb#12343 class SyntaxTree::ZSuper < ::SyntaxTree::Node # @return [ZSuper] a new instance of ZSuper # diff --git a/sorbet/rbi/gems/tapioca@0.11.17.rbi b/sorbet/rbi/gems/tapioca@0.12.0.rbi similarity index 98% rename from sorbet/rbi/gems/tapioca@0.11.17.rbi rename to sorbet/rbi/gems/tapioca@0.12.0.rbi index 7e5b331fc..762b6289a 100644 --- a/sorbet/rbi/gems/tapioca@0.11.17.rbi +++ b/sorbet/rbi/gems/tapioca@0.12.0.rbi @@ -54,7 +54,7 @@ module RBI; end # source://tapioca//lib/tapioca/rbi_ext/model.rb#5 class RBI::Tree < ::RBI::NodeWithComments - # source://rbi/0.1.6/lib/rbi/model.rb#119 + # source://rbi/0.1.8/lib/rbi/model.rb#119 sig do params( loc: T.nilable(::RBI::Loc), @@ -64,19 +64,19 @@ class RBI::Tree < ::RBI::NodeWithComments end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi/0.1.6/lib/rbi/model.rb#126 + # source://rbi/0.1.8/lib/rbi/model.rb#126 sig { params(node: ::RBI::Node).void } def <<(node); end - # source://rbi/0.1.6/lib/rbi/printer.rb#226 + # source://rbi/0.1.8/lib/rbi/printer.rb#226 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi/0.1.6/lib/rbi/rewriters/add_sig_templates.rb#66 + # source://rbi/0.1.8/lib/rbi/rewriters/add_sig_templates.rb#66 sig { params(with_todo_comment: T::Boolean).void } def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end - # source://rbi/0.1.6/lib/rbi/rewriters/annotate.rb#49 + # source://rbi/0.1.8/lib/rbi/rewriters/annotate.rb#49 sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end @@ -140,23 +140,23 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end - # source://rbi/0.1.6/lib/rbi/rewriters/deannotate.rb#41 + # source://rbi/0.1.8/lib/rbi/rewriters/deannotate.rb#41 sig { params(annotation: ::String).void } def deannotate!(annotation); end - # source://rbi/0.1.6/lib/rbi/model.rb#132 + # source://rbi/0.1.8/lib/rbi/model.rb#132 sig { returns(T::Boolean) } def empty?; end - # source://rbi/0.1.6/lib/rbi/rewriters/group_nodes.rb#38 + # source://rbi/0.1.8/lib/rbi/rewriters/group_nodes.rb#38 sig { void } def group_nodes!; end - # source://rbi/0.1.6/lib/rbi/index.rb#68 + # source://rbi/0.1.8/lib/rbi/index.rb#68 sig { returns(::RBI::Index) } def index; end - # source://rbi/0.1.6/lib/rbi/rewriters/merge_trees.rb#324 + # source://rbi/0.1.8/lib/rbi/rewriters/merge_trees.rb#324 sig do params( other: ::RBI::Tree, @@ -167,23 +167,23 @@ class RBI::Tree < ::RBI::NodeWithComments end def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - # source://rbi/0.1.6/lib/rbi/rewriters/nest_non_public_methods.rb#46 + # source://rbi/0.1.8/lib/rbi/rewriters/nest_non_public_methods.rb#46 sig { void } def nest_non_public_methods!; end - # source://rbi/0.1.6/lib/rbi/rewriters/nest_singleton_methods.rb#36 + # source://rbi/0.1.8/lib/rbi/rewriters/nest_singleton_methods.rb#36 sig { void } def nest_singleton_methods!; end - # source://rbi/0.1.6/lib/rbi/model.rb#110 + # source://rbi/0.1.8/lib/rbi/model.rb#110 sig { returns(T::Array[::RBI::Node]) } def nodes; end - # source://rbi/0.1.6/lib/rbi/printer.rb#233 + # source://rbi/0.1.8/lib/rbi/printer.rb#233 sig { override.returns(T::Boolean) } def oneline?; end - # source://rbi/0.1.6/lib/rbi/rewriters/sort_nodes.rb#119 + # source://rbi/0.1.8/lib/rbi/rewriters/sort_nodes.rb#119 sig { void } def sort_nodes!; end @@ -204,7 +204,7 @@ class RBI::TypedParam < ::T::Struct const :type, ::String class << self - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -1121,7 +1121,7 @@ class Tapioca::ConfigHelper::ConfigError < ::T::Struct const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart] class << self - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -1132,7 +1132,7 @@ class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct const :colors, T::Array[::Symbol] class << self - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -1688,13 +1688,16 @@ end # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#7 class Tapioca::Gem::Listeners::SorbetProps < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::SorbetHelper + include ::Tapioca::RBIHelper + private - # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#32 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#33 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#13 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#14 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -2429,7 +2432,7 @@ class Tapioca::Loaders::Loader # @param engine [T.class_of(Rails::Engine)] # @return [Array] # - # source://sorbet-runtime/0.5.11218/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 def eager_load_paths(*args, **_arg1, &blk); end # source://tapioca//lib/tapioca/loaders/loader.rb#198 @@ -2705,7 +2708,7 @@ module Tapioca::Runtime; end # available, it implements finding the attached class of a singleton # class by iterating through ObjectSpace. module Tapioca::Runtime::AttachedClassOf - # source://tapioca//lib/tapioca/runtime/attached_class_of_legacy.rb#17 + # source://tapioca//lib/tapioca/runtime/attached_class_of_32.rb#14 sig { params(singleton_class: ::Class).returns(T.nilable(::Module)) } def attached_class_of(singleton_class); end end @@ -3337,7 +3340,7 @@ module Tapioca::Static::SymbolLoader # @return [Array] # - # source://sorbet-runtime/0.5.11218/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 def engines(*args, **_arg1, &blk); end # source://tapioca//lib/tapioca/static/symbol_loader.rb#82 @@ -3454,25 +3457,20 @@ end # source://tapioca//lib/tapioca/version.rb#5 Tapioca::VERSION = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca/helpers/source_uri.rb#6 -module URI - include ::URI::RFC2396_REGEXP -end - # source://tapioca//lib/tapioca/helpers/source_uri.rb#7 class URI::Source < ::URI::File # source://tapioca//lib/tapioca/helpers/source_uri.rb#58 sig { params(v: T.nilable(::String)).returns(T::Boolean) } def check_host(v); end - # source://uri/0.12.1/uri/generic.rb#243 + # source://uri/0.13.0/uri/generic.rb#243 def gem_name; end # source://tapioca//lib/tapioca/helpers/source_uri.rb#25 sig { returns(T.nilable(::String)) } def gem_version; end - # source://uri/0.12.1/uri/generic.rb#283 + # source://uri/0.13.0/uri/generic.rb#283 def line_number; end # source://tapioca//lib/tapioca/helpers/source_uri.rb#51 @@ -3499,5 +3497,3 @@ end # source://tapioca//lib/tapioca/helpers/source_uri.rb#10 URI::Source::COMPONENT = T.let(T.unsafe(nil), Array) - -class URI::WSS < ::URI::WS; end diff --git a/sorbet/rbi/gems/webmock@3.19.1.rbi b/sorbet/rbi/gems/webmock@3.20.0.rbi similarity index 98% rename from sorbet/rbi/gems/webmock@3.19.1.rbi rename to sorbet/rbi/gems/webmock@3.20.0.rbi index 71b8d0497..fa1ca5080 100644 --- a/sorbet/rbi/gems/webmock@3.19.1.rbi +++ b/sorbet/rbi/gems/webmock@3.20.0.rbi @@ -478,6 +478,13 @@ class WebMock::Config # # source://webmock//lib/webmock/config.rb#16 def show_stubbing_instructions=(_arg0); end + + class << self + private + + def allocate; end + def new(*_arg0); end + end end # source://webmock//lib/webmock/deprecation.rb#4 @@ -585,6 +592,13 @@ class WebMock::HttpLibAdapterRegistry # source://webmock//lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb#13 def register(lib, adapter); end + + class << self + private + + def allocate; end + def new(*_arg0); end + end end # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#10 @@ -985,6 +999,13 @@ class WebMock::RequestRegistry # source://webmock//lib/webmock/request_registry.rb#24 def to_s; end + + class << self + private + + def allocate; end + def new(*_arg0); end + end end # source://webmock//lib/webmock/request_signature.rb#5 @@ -1345,6 +1366,13 @@ class WebMock::StubRegistry # source://webmock//lib/webmock/stub_registry.rb#72 def request_stub_for(request_signature); end + + class << self + private + + def allocate; end + def new(*_arg0); end + end end # source://webmock//lib/webmock/stub_request_snippet.rb#4 @@ -1497,36 +1525,36 @@ class WebMock::Util::HashKeysStringifier end end -# source://webmock//lib/webmock/util/headers.rb#9 +# source://webmock//lib/webmock/util/headers.rb#7 class WebMock::Util::Headers class << self - # source://webmock//lib/webmock/util/headers.rb#61 + # source://webmock//lib/webmock/util/headers.rb#59 def basic_auth_header(*credentials); end - # source://webmock//lib/webmock/util/headers.rb#57 + # source://webmock//lib/webmock/util/headers.rb#55 def decode_userinfo_from_header(header); end - # source://webmock//lib/webmock/util/headers.rb#15 + # source://webmock//lib/webmock/util/headers.rb#13 def normalize_headers(headers); end - # source://webmock//lib/webmock/util/headers.rb#65 + # source://webmock//lib/webmock/util/headers.rb#64 def normalize_name(name); end - # source://webmock//lib/webmock/util/headers.rb#42 + # source://webmock//lib/webmock/util/headers.rb#40 def pp_headers_string(headers); end - # source://webmock//lib/webmock/util/headers.rb#28 + # source://webmock//lib/webmock/util/headers.rb#26 def sorted_headers_string(headers); end end end -# source://webmock//lib/webmock/util/headers.rb#13 +# source://webmock//lib/webmock/util/headers.rb#11 WebMock::Util::Headers::JOIN = T.let(T.unsafe(nil), String) -# source://webmock//lib/webmock/util/headers.rb#12 +# source://webmock//lib/webmock/util/headers.rb#10 WebMock::Util::Headers::NONSTANDARD_HEADER_DELIMITER = T.let(T.unsafe(nil), String) -# source://webmock//lib/webmock/util/headers.rb#11 +# source://webmock//lib/webmock/util/headers.rb#9 WebMock::Util::Headers::STANDARD_HEADER_DELIMITER = T.let(T.unsafe(nil), String) # source://webmock//lib/webmock/util/json.rb#12 diff --git a/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi b/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi index 5a9febcc5..358a00217 100644 --- a/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +++ b/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi @@ -381,7 +381,7 @@ class YARDSorbet::TStructProp < ::T::Struct const :types, T::Array[::String] class << self - # source://sorbet-runtime/0.5.11218/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end diff --git a/sorbet/rbi/gems/yard@0.9.34.rbi b/sorbet/rbi/gems/yard@0.9.34.rbi index d18e34dde..5fae9e693 100644 --- a/sorbet/rbi/gems/yard@0.9.34.rbi +++ b/sorbet/rbi/gems/yard@0.9.34.rbi @@ -503,7 +503,7 @@ end # A subclass of Hash where all keys are converted into Symbols, and # optionally, all String values are converted into Symbols. # -# source://yard//lib/yard/core_ext/symbol_hash.rb#8 +# source://yard//lib/yard/core_ext/symbol_hash.rb#4 class SymbolHash < ::Hash # Creates a new SymbolHash object # @@ -808,7 +808,7 @@ end # # @since 0.6.2 # -# source://yard//lib/yard/cli/config.rb#7 +# source://yard//lib/yard/cli/config.rb#6 class YARD::CLI::Config < ::YARD::CLI::Command # @return [Config] a new instance of Config # @since 0.6.2 @@ -1129,7 +1129,7 @@ end # @see Graph#run # @since 0.6.0 # -# source://yard//lib/yard/cli/graph.rb#27 +# source://yard//lib/yard/cli/graph.rb#24 class YARD::CLI::Graph < ::YARD::CLI::YardoptsCommand # Creates a new instance of the command-line utility # @@ -1189,7 +1189,7 @@ end # Options to pass to the {Graph} CLI. # -# source://yard//lib/yard/cli/graph.rb#6 +# source://yard//lib/yard/cli/graph.rb#5 class YARD::CLI::GraphOptions < ::YARD::Templates::TemplateOptions # @return [String] any contents to pass to the digraph # @@ -1329,7 +1329,7 @@ end # # @since 0.6.0 # -# source://yard//lib/yard/cli/server.rb#8 +# source://yard//lib/yard/cli/server.rb#7 class YARD::CLI::Server < ::YARD::CLI::Command # Creates a new instance of the Server command line utility # @@ -1632,7 +1632,7 @@ YARD::CLI::Stats::STATS_ORDER = T.let(T.unsafe(nil), Array) # A tool to view documentation in the console like `ri` # -# source://yard//lib/yard/cli/yri.rb#9 +# source://yard//lib/yard/cli/yri.rb#7 class YARD::CLI::YRI < ::YARD::CLI::Command # @return [YRI] a new instance of YRI # @@ -1762,7 +1762,7 @@ YARD::CLI::YRI::DEFAULT_SEARCH_PATHS = T.let(T.unsafe(nil), Array) # source://yard//lib/yard/cli/yri.rb#15 YARD::CLI::YRI::SEARCH_PATHS_FILE = T.let(T.unsafe(nil), String) -# source://yard//lib/yard/cli/yardoc.rb#147 +# source://yard//lib/yard/cli/yardoc.rb#145 class YARD::CLI::Yardoc < ::YARD::CLI::YardoptsCommand # Creates a new instance of the commandline utility # @@ -2135,7 +2135,7 @@ end # Default options used in +yard doc+ command. # -# source://yard//lib/yard/cli/yardoc.rb#10 +# source://yard//lib/yard/cli/yardoc.rb#8 class YARD::CLI::YardocOptions < ::YARD::Templates::TemplateOptions # @return [CodeObjects::ExtraFileObject] the file object being rendered. # The +object+ key is not used so that a file may be rendered in the context @@ -2263,7 +2263,7 @@ end # @abstract # @since 0.8.3 # -# source://yard//lib/yard/cli/yardopts_command.rb#11 +# source://yard//lib/yard/cli/yardopts_command.rb#10 class YARD::CLI::YardoptsCommand < ::YARD::CLI::Command # Creates a new command that reads .yardopts # @@ -2937,7 +2937,7 @@ YARD::CodeObjects::CSEPQ = T.let(T.unsafe(nil), String) # A ClassObject represents a Ruby class in source code. It is a {ModuleObject} # with extra inheritance semantics through the superclass. # -# source://yard//lib/yard/code_objects/class_object.rb#9 +# source://yard//lib/yard/code_objects/class_object.rb#7 class YARD::CodeObjects::ClassObject < ::YARD::CodeObjects::NamespaceObject # Creates a new class object in +namespace+ with +name+ # @@ -3018,7 +3018,7 @@ end # Represents a class variable inside a namespace. The path is expressed # in the form "A::B::@@classvariable" # -# source://yard//lib/yard/code_objects/class_variable_object.rb#8 +# source://yard//lib/yard/code_objects/class_variable_object.rb#7 class YARD::CodeObjects::ClassVariableObject < ::YARD::CodeObjects::Base # @return [String] the class variable's value # @@ -3034,7 +3034,7 @@ end # A list of code objects. This array acts like a set (no unique items) # but also disallows any {Proxy} objects from being added. # -# source://yard//lib/yard/code_objects/base.rb#10 +# source://yard//lib/yard/code_objects/base.rb#6 class YARD::CodeObjects::CodeObjectList < ::Array # Creates a new object list associated with a namespace # @@ -3064,7 +3064,7 @@ end # A +ConstantObject+ represents a Ruby constant (not a module or class). # To access the constant's (source code) value, use {#value}. # -# source://yard//lib/yard/code_objects/constant_object.rb#9 +# source://yard//lib/yard/code_objects/constant_object.rb#7 class YARD::CodeObjects::ConstantObject < ::YARD::CodeObjects::Base # The source code representing the constant's value # @@ -3431,7 +3431,7 @@ YARD::CodeObjects::MacroObject::MACRO_MATCH = T.let(T.unsafe(nil), Regexp) # Represents a Ruby method in source # -# source://yard//lib/yard/code_objects/method_object.rb#10 +# source://yard//lib/yard/code_objects/method_object.rb#7 class YARD::CodeObjects::MethodObject < ::YARD::CodeObjects::Base # Creates a new method object in +namespace+ with +name+ and an instance # or class +scope+ @@ -3604,7 +3604,7 @@ end # Represents a Ruby module. # -# source://yard//lib/yard/code_objects/module_object.rb#11 +# source://yard//lib/yard/code_objects/module_object.rb#6 class YARD::CodeObjects::ModuleObject < ::YARD::CodeObjects::NamespaceObject # Returns the inheritance tree of mixins. # @@ -3769,7 +3769,7 @@ end # The two main Ruby objects that can act as namespaces are modules # ({ModuleObject}) and classes ({ClassObject}). # -# source://yard//lib/yard/code_objects/namespace_object.rb#11 +# source://yard//lib/yard/code_objects/namespace_object.rb#9 class YARD::CodeObjects::NamespaceObject < ::YARD::CodeObjects::Base # Creates a new namespace object inside +namespace+ with +name+. # @@ -5915,7 +5915,7 @@ class YARD::Handlers::HandlerAborted < ::RuntimeError; end # an operation on an object's namespace but the namespace could # not be resolved. # -# source://yard//lib/yard/handlers/base.rb#15 +# source://yard//lib/yard/handlers/base.rb#13 class YARD::Handlers::NamespaceMissingError < ::YARD::Parser::UndocumentableError # @return [NamespaceMissingError] a new instance of NamespaceMissingError # @@ -6503,7 +6503,7 @@ class YARD::Handlers::Ruby::Legacy::AttributeHandler < ::YARD::Handlers::Ruby::L # # @abstract See {Handlers::Base} for subclassing information. # -# source://yard//lib/yard/handlers/ruby/legacy/base.rb#10 +# source://yard//lib/yard/handlers/ruby/legacy/base.rb#9 class YARD::Handlers::Ruby::Legacy::Base < ::YARD::Handlers::Base include ::YARD::Parser::Ruby::Legacy::RubyToken @@ -7459,7 +7459,7 @@ end # Handles console logging for info, warnings and errors. # Uses the stdlib Logger class in Ruby for all the backend logic. # -# source://yard//lib/yard/logging.rb#12 +# source://yard//lib/yard/logging.rb#9 class YARD::Logger < ::Logger # Creates a new logger # @@ -7635,7 +7635,7 @@ class YARD::Logger < ::Logger # source://yard//lib/yard/logging.rb#201 def format_log(sev, _time, _prog, msg); end - # source://logger/1.5.0/logger.rb#485 + # source://logger/1.6.0/logger.rb#684 def print_no_newline(msg); end class << self @@ -9972,7 +9972,7 @@ end # source://yard//lib/yard/parser/ruby/ast_node.rb#479 class YARD::Parser::Ruby::MethodDefinitionNode < ::YARD::Parser::Ruby::AstNode - def block(*_arg0); end + def block(n = T.unsafe(nil)); end # @return [Boolean] # @@ -11360,7 +11360,7 @@ module YARD::Rake; end # The rake task to run {CLI::Yardoc} and generate documentation. # -# source://yard//lib/yard/rake/yardoc_task.rb#10 +# source://yard//lib/yard/rake/yardoc_task.rb#8 class YARD::Rake::YardocTask < ::Rake::TaskLib # Creates a new task with name +name+. # @@ -12298,7 +12298,7 @@ end # Implements a serializer that reads from and writes to the filesystem. # -# source://yard//lib/yard/serializers/file_system_serializer.rb#7 +# source://yard//lib/yard/serializers/file_system_serializer.rb#5 class YARD::Serializers::FileSystemSerializer < ::YARD::Serializers::Base # Creates a new FileSystemSerializer with options # @@ -12386,7 +12386,7 @@ end # serializer = ProcessSerializer.new('less') # serializer.serialize(object, "data!") # -# source://yard//lib/yard/serializers/process_serializer.rb#12 +# source://yard//lib/yard/serializers/process_serializer.rb#9 class YARD::Serializers::ProcessSerializer < ::YARD::Serializers::Base # Creates a new ProcessSerializer for the shell command +cmd+ # @@ -12405,7 +12405,7 @@ end # A serializer that writes data to standard output. # -# source://yard//lib/yard/serializers/stdout_serializer.rb#9 +# source://yard//lib/yard/serializers/stdout_serializer.rb#5 class YARD::Serializers::StdoutSerializer < ::YARD::Serializers::Base # Creates a serializer to print text to stdout # @@ -17865,7 +17865,7 @@ end # # @see CLI::YardocOptions # -# source://yard//lib/yard/templates/template_options.rb#11 +# source://yard//lib/yard/templates/template_options.rb#10 class YARD::Templates::TemplateOptions < ::YARD::Options # @return [OpenStruct] an open struct containing any global state across all # generated objects in a template. diff --git a/test/stripe/bank_account_test.rb b/test/stripe/bank_account_test.rb index afa6f4245..02a4ead14 100644 --- a/test/stripe/bank_account_test.rb +++ b/test/stripe/bank_account_test.rb @@ -30,6 +30,14 @@ class BankAccountTest < Test::Unit::TestCase id: "ba_123") bank_account = bank_account.verify(amounts: [1, 2]) assert bank_account.is_a?(Stripe::BankAccount) + assert_requested :post, "#{Stripe.api_base}/v1/customers/cus_123/sources/ba_123/verify" + end + + should "verify the account using the static method" do + bank_account = Stripe::BankAccount.verify("cus_123", + "ba_123", amounts: [1, 2]) + assert bank_account.is_a?(Stripe::BankAccount) + assert_requested :post, "#{Stripe.api_base}/v1/customers/cus_123/sources/ba_123/verify" end end end diff --git a/test/stripe/generated_examples_test.rb b/test/stripe/generated_examples_test.rb index 4a1176070..2d9f797b3 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -1869,7 +1869,7 @@ class CodegennedExampleTest < Test::Unit::TestCase type: "diesel", unit: "liter", unit_cost_decimal: "3.5", - volume_decimal: "10", + quantity_decimal: "10", }, lodging: { check_in_at: 1_633_651_200, @@ -2009,7 +2009,7 @@ class CodegennedExampleTest < Test::Unit::TestCase type: "diesel", unit: "liter", unit_cost_decimal: "3.5", - volume_decimal: "10", + quantity_decimal: "10", }, lodging: { check_in_at: 1_533_651_200, @@ -2064,7 +2064,7 @@ class CodegennedExampleTest < Test::Unit::TestCase type: "diesel", unit: "liter", unit_cost_decimal: "3.5", - volume_decimal: "10", + quantity_decimal: "10", }, lodging: { check_in_at: 1_533_651_200, diff --git a/test/stripe/stripe_client_test.rb b/test/stripe/stripe_client_test.rb index 53bced41b..e32b96ce9 100644 --- a/test/stripe/stripe_client_test.rb +++ b/test/stripe/stripe_client_test.rb @@ -1394,6 +1394,23 @@ class StripeClientTest < Test::Unit::TestCase e.message end end + + should "warn that #request is deprecated" do + old_stderr = $stderr + $stderr = StringIO.new + stub_request(:post, "#{Stripe.api_base}/v1/charges") + .to_return(body: JSON.generate(object: "charge")) + + begin + client = StripeClient.new + client.request { Charge.create } + message = "NOTE: Stripe::StripeClient#request is " \ + "deprecated" + assert_match Regexp.new(message), $stderr.string + ensure + $stderr = old_stderr + end + end end context "#proxy" do diff --git a/test/test_helper.rb b/test/test_helper.rb index 704d2132b..c2f3ed1a2 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,13 +1,5 @@ # frozen_string_literal: true -# Report test coverage to coveralls for only one Ruby version to avoid -# repeated builds. This also accounts for coveralls_reborn requiring -# RUBY_VERSION >= 2.5. -if ENV.key?("COVERALLS_REPO_TOKEN") && RUBY_VERSION.start_with?("3.1.") - require "coveralls" - Coveralls.wear! -end - require "stripe" require "test/unit" require "mocha/setup"