diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 397aee01..00000000 --- a/.eslintignore +++ /dev/null @@ -1,37 +0,0 @@ -keys/* -.github/* -.vscode/* -.firebase/* -.git/* -emulate_data/* -firebase-export-*/* - -**/**/build/* -**/**/public/* -**/**/node_modules/* - -**/**/assets/* -**/**/serviceWorker.ts - -*.js -*.json -*.png -*.svg -*.css -*.scss -*.log -*.txt -*.sh -*.md -*.development -*.production -*.html -*.map -*.d.ts -*.ico -*.geojson -*.rules -LICENSE -*LICENSE - -**/**/cypress/* diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index 3325b549..00000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,82 +0,0 @@ -module.exports = { - root: true, - env: { browser: true, es2020: true }, - extends: [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:react-hooks/recommended", - "@dropbox/service-worker", - ], - ignorePatterns: ["dist", "sorbet", "tmp", "vendor"], - parser: "@typescript-eslint/parser", - plugins: ["react-refresh", "@typescript-eslint", "import", "unused-imports"], - parserOptions: { - project: "./tsconfig.json", - sourceType: "module", - }, - rules: { - "react-refresh/only-export-components": ["warn", { allowConstantExport: true }], - - "react-hooks/rules-of-hooks": "error", - "react-hooks/exhaustive-deps": "warn", - "@typescript-eslint/adjacent-overload-signatures": "error", - "@typescript-eslint/no-empty-function": "warn", - "@typescript-eslint/no-empty-interface": "off", - "@typescript-eslint/no-floating-promises": "error", - "@typescript-eslint/no-namespace": "off", - "@typescript-eslint/no-unnecessary-type-assertion": "off", - "@typescript-eslint/prefer-for-of": "warn", - "@typescript-eslint/triple-slash-reference": "error", - "@typescript-eslint/unified-signatures": "warn", - "@typescript-eslint/explicit-module-boundary-types": "off", - "@typescript-eslint/ban-ts-comment": "off", - "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/no-unused-vars": "off", - "constructor-super": "error", - "no-restricted-globals": "error", - eqeqeq: ["warn", "always"], - "import/no-deprecated": "warn", - "import/no-extraneous-dependencies": "error", - "import/no-unassigned-import": "off", - "no-cond-assign": "error", - "no-duplicate-case": "error", - "no-duplicate-imports": "error", - "no-empty": [ - "error", - { - allowEmptyCatch: true, - }, - ], - "no-invalid-this": "error", - "no-new-wrappers": "error", - "no-param-reassign": "error", - "no-redeclare": "error", - "no-sequences": "error", - "no-shadow": [ - "error", - { - hoist: "all", - }, - ], - "no-throw-literal": "error", - "no-unsafe-finally": "error", - "no-unused-labels": "error", - "unused-imports/no-unused-imports": "warn", - "unused-imports/no-unused-vars": [ - "warn", - { - vars: "all", - varsIgnorePattern: "^_", - args: "after-used", - argsIgnorePattern: "^_", - }, - ], - "no-var": "warn", - "no-void": "error", - "prefer-const": "warn", - - "@dropbox/service-worker/no-restricted-web-api": "error", - "@dropbox/service-worker/no-deprecated-extension-api": "error", - "@dropbox/service-worker/no-dynamic-import": "error", - }, -}; diff --git a/Gemfile b/Gemfile index cae8b47e..cd633b82 100644 --- a/Gemfile +++ b/Gemfile @@ -58,11 +58,12 @@ gem 'rgeo-geojson' # Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images] # gem "image_processing", "~> 1.2" -gem 'dartsass-rails', '~> 0.5.0' +# gem 'dartsass-rails' +# gem 'dartsass-rails', '~> 0.5.0' gem 'sassc-rails' - gem 'bootstrap', '~> 5.3.2' + # https://github.com/BrandonShar/inertia-rails-template/blob/main/Gemfile gem 'vite_rails' @@ -114,8 +115,6 @@ group :development, :test do gem 'pry' - gem 'better_errors' - # https://github.com/rspec/rspec-rails # Run against this stable release gem 'rspec-rails', '~> 6' @@ -161,6 +160,10 @@ group :development do # Speed up commands on slow machines / big apps [https://github.com/rails/spring] # gem "spring" + + # https://github.com/BetterErrors/better_errors + gem "better_errors" + gem "binding_of_caller" end group :test do diff --git a/Gemfile.lock b/Gemfile.lock index dcb364e8..628eb95f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -93,6 +93,8 @@ GEM bigdecimal (3.1.8) bindata (2.5.0) bindex (0.8.1) + binding_of_caller (1.0.1) + debug_inspector (>= 1.2.0) bootsnap (1.18.3) msgpack (~> 1.2) bootstrap (5.3.3) @@ -117,13 +119,11 @@ GEM openssl-signature_algorithm (~> 1.0) crass (1.0.6) csv (3.3.0) - dartsass-rails (0.5.0) - railties (>= 6.0.0) - sass-embedded (~> 1.63) date (3.3.4) debug (1.9.2) irb (~> 1.10) reline (>= 0.3.8) + debug_inspector (1.2.0) declarative (0.0.20) diff-lcs (1.5.1) digest-crc (0.6.5) @@ -177,14 +177,6 @@ GEM google-cloud-core (~> 1.6) googleauth (~> 1.9) mini_mime (~> 1.0) - google-protobuf (4.26.1-aarch64-linux) - rake (>= 13) - google-protobuf (4.26.1-arm64-darwin) - rake (>= 13) - google-protobuf (4.26.1-x86_64-darwin) - rake (>= 13) - google-protobuf (4.26.1-x86_64-linux) - rake (>= 13) googleauth (1.11.0) faraday (>= 1.0, < 3.a) google-cloud-env (~> 2.1) @@ -379,14 +371,6 @@ GEM rubyzip (2.3.2) safety_net_attestation (0.4.0) jwt (~> 2.0) - sass-embedded (1.77.2-aarch64-linux-gnu) - google-protobuf (>= 3.25, < 5.0) - sass-embedded (1.77.2-arm64-darwin) - google-protobuf (>= 3.25, < 5.0) - sass-embedded (1.77.2-x86_64-darwin) - google-protobuf (>= 3.25, < 5.0) - sass-embedded (1.77.2-x86_64-linux-gnu) - google-protobuf (>= 3.25, < 5.0) sassc (2.4.0) ffi (~> 1.9) sassc-rails (2.1.2) @@ -508,11 +492,11 @@ PLATFORMS DEPENDENCIES annotate better_errors + binding_of_caller bootsnap bootstrap (~> 5.3.2) capybara concurrent-ruby - dartsass-rails (~> 0.5.0) debug dotenv factory_bot_rails diff --git a/Procfile.dev b/Procfile.dev index 3c5a93df..50487147 100644 --- a/Procfile.dev +++ b/Procfile.dev @@ -1,4 +1,3 @@ vite: bin/vite dev web: bin/rails server -b 'ssl://localhost:3000?key=config/ssl/key.pem&cert=config/ssl/cert.pem&verify_mode=none' -css: bin/rails dartsass:watch diff --git a/README.md b/README.md index b9b450b4..b32f3fca 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,9 @@ Because of these difficulties, it can be challenging to hold elected representat - [Locales](#locales) - [Current Supported Locales](#current-supported-locales) - [Onboard a New Locale](#onboard-a-new-locale) -- [Feature Roadmap](#feature-roadmap) +- [Development](#development) + - [Environment Variables](#environment-variables) + - [Running Sway](#running-sway) ## Contributing @@ -47,7 +49,7 @@ Sway is designed to work with and be extended to multiple locations regardless o ### Onboarding -To add a new locale, create a new [Issue](https://github.com/Plebeian-Technology//sway-rails/issues) and label it as `locale` and include the below files: +To add a new locale, create a new [Issue](https://github.com/Plebeian-Technology/sway/issues) and label it as `locale` and include the below files: - An SVG image avatar for the locale, usually a flag representing that municipality. See [/public/images/avatars/baltimore-maryland-united_states.svg](/public/images/avatars/baltimore-maryland-united_states.svg) as an example. Wikipedia and Twitter are good sources to get these from. @@ -57,11 +59,102 @@ To add a new locale, create a new [Issue](https://github.com/Plebeian-Technology - To add and/or update Legislators in Sway, please provide a `legislators.json` file. For an example of the file structure, see [the Baltimore legislators.json file.](/storage/seeds/data/united_states/maryland/baltimore/legislators.json) +Once the above have been assembled, we will work with you to get them into Sway! + --- ## Development -#### Create SSL Certificates for Local Development +### Environment Variables + +1. Create a .env.development file at the root directory of the project. + +NOTE: All the values set here are only used for development and should NOT be commited to git. Values should not include opening and closing "". + +2. Sign up for Twilio and set the values the below keys: + +You can get the ACCOUNT_SID and AUTH_TOKEN values by clicking "Account" at the top-right and then "API keys & tokens" on the left sidebar. + +TWILIO_ACCOUNT_SID= +TWILIO_AUTH_TOKEN= +TWILIO_VERIFY_SERVICE_SID= + +To get a VERIFY_SERVICE_SID you must sign up for Twilio Verify, which Sway uses as one factor in the user authentication flow. To create a Verification Service you can use the Twilio API via the guide here - [https://www.twilio.com/docs/verify/api](https://www.twilio.com/docs/verify/api), or you can use the Twilio Console: + + 1. Click the "Develop" tab on the left sidebar. + + 2. Click "Explore Products +" on the left sidebar. + + 3. Scroll down and click "Verify". + + 4. Create a new Verify service. + +3. Create a Google Cloud account and add values for the below keys: + +GOOGLE_MAPS_API_KEY= + +Sway uses Google Maps for geocoding user addresses into latitude/longitude coordinates during registration. These coordinates are then used with a geojson file and Census.gov API to determine a user's representatives in a given SwayLocale. + +To create this key: + + 1. Click on the Navigation menu. + + 2. Hover over APIs & Services and click 'Enabled APIs & services' + + 3. Click the "+ ENABLE APIS AND SERVICES" button at the top. + + 4. Enable the "Maps JavaScript API" + + 5. On the sidebar, click "Keys & Credentials" + + 6. Generate an API Key with: + + * a website restriction to localhost + + * The "Maps JavaScript API" selected + + * The "Places API" selected + + * The "Geocoding API" selected + +4. Create VAPID keys and set values for the keys below: + +VAPID_PUBLIC_KEY= +VAPID_PRIVATE_KEY= + +Sway uses these keys to send web push notifications via the [web-push](https://github.com/pushpad/web-push) ruby gem. + +You can generate keys after running `bundle install` by opening the rails console with `rails c` and running: + +```ruby +irb(main):001> WebPush.generate_key + +=> # +``` + +Copy the full key, including the `=` at the end into each environment variable above. + +You can read more about web push notifications here: + +[https://developer.mozilla.org/en-US/docs/Web/API/Push_API/Best_Practices](https://developer.mozilla.org/en-US/docs/Web/API/Push_API/Best_Practices) +[https://web.dev/articles/push-notifications-web-push-protocol](https://web.dev/articles/push-notifications-web-push-protocol) +[https://medium.com/@dejanvu.developer/implementing-web-push-notifications-in-a-ruby-on-rails-application-dcd829e02df0](https://medium.com/@dejanvu.developer/implementing-web-push-notifications-in-a-ruby-on-rails-application-dcd829e02df0) + +5. Add your phone number as an Admin phone number by setting the below key in the same format: + +ADMIN_PHONES=1234567890 + +Only administrators can create new Bills in Sway. + +6. Set a database password: + +SWAY_DATABASE_PASSWORD=sway2000!! + +Just a reminder that this is only used for development. + +### Running Sway + +#### Create SSL Certificates ```zsh brew install mkcert @@ -71,7 +164,39 @@ mv localhost.pem config/ssl/cert.pem mv localhost-key.pem config/ssl/key.pem ``` -Once the above have been assembled, we will work with you to get them into Sway! +1. In one terminal window/tab/pane: + +#### Set up Rails +```zsh +bundle install +bundle exec rails db:create +bundle exec rails db:migrate +bundle exec rails db:schema:load + +# Load seeds including locales and geojson files +bundle exec rails db:seed +``` + +#### Run Rails +```zsh +bin/rails server -b 'ssl://localhost:3000?key=config/ssl/key.pem&cert=config/ssl/cert.pem&verify_mode=none' +``` + +2. In a second terminal window/tab/pane: + +#### Setup React with Vite +```zsh +npm install +``` + +#### Run React with Vite +```zsh +./bin/vite dev +``` + +#### Browser + +Open your browser to [https://localhost:3000](https://localhost:3000) to begin working with Sway. ## Copyright / License diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js index 27365682..ff05cd80 100644 --- a/app/assets/config/manifest.js +++ b/app/assets/config/manifest.js @@ -1,3 +1,3 @@ //= link application.css -//= link_directory ../stylesheets/scss .css +//= link_tree ../stylesheets .scss //= link_directory ../images diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 91e61abe..6f2dc258 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -1,8 +1,6 @@ -// Sassy - - // Custom bootstrap variables must be set or imported *before* bootstrap. // https://github.com/twbs/bootstrap-rubygem + @import "bootstrap"; @import "./scss/charts"; diff --git a/app/assets/stylesheets/scss/main.scss b/app/assets/stylesheets/scss/main.scss index 918be42a..223effd1 100644 --- a/app/assets/stylesheets/scss/main.scss +++ b/app/assets/stylesheets/scss/main.scss @@ -46,13 +46,13 @@ body { .brighter-item-hover { cursor: pointer; - border-top: 2px solid transparent; - border-bottom: 2px solid transparent; + border: 2px solid transparent; + border-radius: 5px; } .brighter-item-hover:hover { - border-top: 2px solid $primary; - border-bottom: 2px solid $primary; + border: 2px solid $primary; + border-radius: 5px; filter: brightness(1.5); } diff --git a/app/controllers/bill_of_the_week_controller.rb b/app/controllers/bill_of_the_week_controller.rb index 645196b0..32edf94e 100644 --- a/app/controllers/bill_of_the_week_controller.rb +++ b/app/controllers/bill_of_the_week_controller.rb @@ -1,29 +1,13 @@ # typed: true class BillOfTheWeekController < ApplicationController - - def index b = T.cast(Bill.where(sway_locale: current_sway_locale).of_the_week, T.nilable(T.any(Bill, T::Array[Bill]))) b = b.first if b.is_a?(Array) if b.present? - - T.unsafe(self).render_bill_of_the_week(lambda do - { - bill: b.to_builder.attributes!, - positions: b.organization_bill_positions.map{ |obp| obp.to_builder.attributes! }, - legislatorVotes: b.legislator_votes.map{ |lv| lv.to_builder.attributes! }, - userVote: UserVote.find_by( - user: current_user, - bill: b - )&.attributes - } - end) + T.unsafe(self).render_bill_of_the_week(-> { b.render(current_user) }) else - - - redirect_to bills_path end end diff --git a/app/controllers/bills_controller.rb b/app/controllers/bills_controller.rb index af2e0725..e1592b5c 100644 --- a/app/controllers/bills_controller.rb +++ b/app/controllers/bills_controller.rb @@ -18,18 +18,7 @@ def index # GET /bills/1 or /bills/1.json def show if @bill.present? - T.unsafe(self).render_bill(lambda do - { - bill: @bill.to_builder.attributes!, - positions: @bill.organization_bill_positions.map { |obp| obp.to_builder.attributes! }, - legislatorVotes: @bill.legislator_votes.map { |lv| lv.to_builder.attributes! }, - sponsor: @bill.legislator.to_builder.attributes!, - userVote: UserVote.find_by( - user: current_user, - bill_id: @bill.id - )&.attributes - } - end) + T.unsafe(self).render_bill(-> { @bill.render(current_user) }) else redirect_to bills_path end diff --git a/app/frontend/components/Layout.tsx b/app/frontend/components/Layout.tsx index 8771fd2c..35fe015e 100644 --- a/app/frontend/components/Layout.tsx +++ b/app/frontend/components/Layout.tsx @@ -4,7 +4,7 @@ import SetupPage from "app/frontend/components/hoc/SetupPage"; import React, { PropsWithChildren } from "react"; // Load react-select -// @ts-ignore +// @ts-expect-error - unused Select, importing here to have styles available import Select from "react-select"; // eslint-disable-line interface IProps extends PropsWithChildren { diff --git a/app/frontend/components/admin/BillCreatorOrganizations.tsx b/app/frontend/components/admin/BillCreatorOrganizations.tsx index b64ef949..1a11feeb 100644 --- a/app/frontend/components/admin/BillCreatorOrganizations.tsx +++ b/app/frontend/components/admin/BillCreatorOrganizations.tsx @@ -1,15 +1,15 @@ /** @format */ +import { TOrganizationOption } from "app/frontend/components/admin/types"; import { useAxiosGet, useAxiosPost } from "app/frontend/hooks/useAxios"; import { useField } from "formik"; import { Fragment, useCallback, useMemo } from "react"; import { FormLabel } from "react-bootstrap"; import { MultiValue } from "react-select"; import Creatable from "react-select/creatable"; -import { ISelectOption, sway } from "sway"; -import { REACT_SELECT_STYLES, handleError, logDev } from "../../sway_utils"; +import { sway } from "sway"; +import { REACT_SELECT_STYLES, handleError } from "../../sway_utils"; import BillCreatorOrganization from "../bill/creator/BillCreatorOrganization"; -import { TOrganizationOption } from "app/frontend/components/admin/types"; interface IProps { swayFieldName: string; diff --git a/app/frontend/components/bill/BillArguments.tsx b/app/frontend/components/bill/BillArguments.tsx index 84cb311d..427b1930 100644 --- a/app/frontend/components/bill/BillArguments.tsx +++ b/app/frontend/components/bill/BillArguments.tsx @@ -5,7 +5,6 @@ import { useCallback, useMemo, useState } from "react"; import { sway } from "sway"; import BillArgumentsOrganization from "./BillArgumentsOrganization"; import BillSummaryModal from "./BillSummaryModal"; -import { logDev } from "app/frontend/sway_utils"; interface IProps { bill: sway.IBill; diff --git a/app/frontend/components/bill/BillArgumentsOrganization.tsx b/app/frontend/components/bill/BillArgumentsOrganization.tsx index 2aac4cba..98d92b28 100644 --- a/app/frontend/components/bill/BillArgumentsOrganization.tsx +++ b/app/frontend/components/bill/BillArgumentsOrganization.tsx @@ -1,7 +1,6 @@ import ButtonUnstyled from "app/frontend/components/ButtonUnstyled"; import OrganizationIcon from "app/frontend/components/organizations/OrganizationIcon"; import { Support } from "app/frontend/sway_constants"; -import { logDev } from "app/frontend/sway_utils"; import { Image } from "react-bootstrap"; import { sway } from "sway"; diff --git a/app/frontend/components/bill/BillComponent.tsx b/app/frontend/components/bill/BillComponent.tsx index fcd57238..53df269b 100644 --- a/app/frontend/components/bill/BillComponent.tsx +++ b/app/frontend/components/bill/BillComponent.tsx @@ -44,7 +44,7 @@ const DEFAULT_ORGANIZATION_POSITION: sway.IOrganizationPosition = { }, }; -const BillComponent: React.FC = ({ bill, sponsor, legislatorVotes: _legislatorVotes, positions, userVote }) => { +const BillComponent: React.FC = ({ bill, sponsor, positions, userVote }) => { const user = useUser(); const [locale] = useLocale(); @@ -221,7 +221,7 @@ const BillComponent: React.FC = ({ bill, sponsor, legislatorVotes: _legi
Data From:  - {(VOTING_WEBSITES_BY_LOCALE as Record)[localeName]}  + {(VOTING_WEBSITES_BY_LOCALE as Record)[localeName]} 
diff --git a/app/frontend/components/bill/BillCreatorSummary.tsx b/app/frontend/components/bill/BillCreatorSummary.tsx index 266f291d..9b208205 100644 --- a/app/frontend/components/bill/BillCreatorSummary.tsx +++ b/app/frontend/components/bill/BillCreatorSummary.tsx @@ -20,7 +20,7 @@ const BillCreatorSummary = forwardRef(({ field }: IProps, ref: React.Ref }, []); useEffect(() => { - // @ts-ignore + // @ts-expect-error - weird ref types ref.current = summary; }, [ref, summary]); @@ -46,7 +46,7 @@ const BillCreatorSummary = forwardRef(({ field }: IProps, ref: React.Ref
diff --git a/app/frontend/components/bill/BillSummary.tsx b/app/frontend/components/bill/BillSummary.tsx index 5cc85668..2b4c6753 100644 --- a/app/frontend/components/bill/BillSummary.tsx +++ b/app/frontend/components/bill/BillSummary.tsx @@ -5,12 +5,11 @@ import BillSummaryTextWithLink from "./BillSummaryTextWithLink"; interface IProps { summary: string; - klass?: string; // extra classes to add to typography cutoff?: number; // cut off after number of paragraphs handleClick?: () => void; } -const BillSummary: React.FC = ({ summary, klass, cutoff, handleClick }) => { +const BillSummary: React.FC = ({ summary, cutoff, handleClick }) => { if (!summary) return
No summary available.
; const [text, link] = summary.split("ENDING"); @@ -32,12 +31,12 @@ const BillSummary: React.FC = ({ summary, klass, cutoff, handleClick }) if (points.length < 2) { return ( -

+

{p}

); } - return ; + return ; }) .concat(
) .concat( diff --git a/app/frontend/components/bill/BillSummaryBulletsList.tsx b/app/frontend/components/bill/BillSummaryBulletsList.tsx index 458b43d4..3df4dfc6 100644 --- a/app/frontend/components/bill/BillSummaryBulletsList.tsx +++ b/app/frontend/components/bill/BillSummaryBulletsList.tsx @@ -2,8 +2,7 @@ import { Fragment } from "react"; const BillSummaryBulletsList: React.FC<{ points: string[]; - klass: string | undefined; -}> = ({ points, klass }) => { +}> = ({ points }) => { return (
    {points.map((point: string, index: number) => { @@ -12,22 +11,22 @@ const BillSummaryBulletsList: React.FC<{ if (!first) { return (
  • - {point} + {point}
  • ); } return ( - {`${intro}:`} + {`${intro}:`}
  • - {first} + {first}
  • ); } return (
  • - {point} + {point}
  • ); })} diff --git a/app/frontend/components/bill/BillSummaryMarkdown.tsx b/app/frontend/components/bill/BillSummaryMarkdown.tsx index f9b9c5bf..c74b9fdc 100644 --- a/app/frontend/components/bill/BillSummaryMarkdown.tsx +++ b/app/frontend/components/bill/BillSummaryMarkdown.tsx @@ -3,7 +3,6 @@ import remarkGfm from "remark-gfm"; interface IProps { summary: string | undefined; - klass?: string; // extra classes to add to typography cutoff?: number; // cut off after number of paragraphs handleClick?: () => void; } @@ -12,16 +11,8 @@ const BillSummaryMarkdown: React.FC = ({ handleClick, summary }) => { return (
    - {!summary ? ( -
     
    - ) : ( - - )} + {!summary ?
     
    : {summary}}
    - {/* A preview of the summary rendered with Markdown */}
    ); }; diff --git a/app/frontend/components/bill/BillSummaryModal.tsx b/app/frontend/components/bill/BillSummaryModal.tsx index e43004f5..632999e6 100644 --- a/app/frontend/components/bill/BillSummaryModal.tsx +++ b/app/frontend/components/bill/BillSummaryModal.tsx @@ -15,15 +15,6 @@ interface IProps { setSelectedOrganization: (org: sway.IOrganizationBase | undefined) => void; } -const klasses = { - container: "bill-arguments-container", - subContainer: "bill-arguments-sub-container", - textContainer: "bill-arguments-text-container", - iconContainer: "bill-arguments-org-icon-container", - title: "bill-arguments-text-container-title", - text: "bill-arguments-text", -}; - const BillSummaryModal: React.FC = ({ summary, organizationPosition, @@ -51,12 +42,14 @@ const BillSummaryModal: React.FC = ({ if (isTruncated) { return ( <> - - Click/tap for more. + + + Click/tap for more. + ); } else { - return ; + return ; } }, [summary, handleClick], @@ -66,7 +59,7 @@ const BillSummaryModal: React.FC = ({ return ( <> -
    {renderSummary(true)}
    +
    {renderSummary(true)}
    {isOpen && ( = ({ bill, filter }) => {
    - {/* @ts-ignore */} + {/* @ts-expect-error - weird error with overlapping type interfaces */} {charts.map((item: IChartChoice, index: number) => { const isSelected = index === selected; return ( @@ -171,7 +171,7 @@ const BillMobileChartsContainer: React.FC = ({ bill, filter }) => { })}
    - {/* @ts-ignore */} + {/* @ts-expect-error - weird error with overlapping type interfaces */} {charts.map((item: IChartChoice, index: number) => { if (index !== selected) return null; diff --git a/app/frontend/components/bill/charts/TotalVotesChart.tsx b/app/frontend/components/bill/charts/TotalVotesChart.tsx index 9950ed04..4fb55c3f 100644 --- a/app/frontend/components/bill/charts/TotalVotesChart.tsx +++ b/app/frontend/components/bill/charts/TotalVotesChart.tsx @@ -1,25 +1,17 @@ /** @format */ import { isCongressLocale, titleize } from "app/frontend/sway_utils"; -import { - BarElement, - CategoryScale, - Chart as ChartJS, - Legend, - LinearScale, - Title, - Tooltip, -} from "chart.js"; +import { BarElement, CategoryScale, Chart as ChartJS, Legend, LinearScale, Title, Tooltip } from "chart.js"; +import { useLocale } from "app/frontend/hooks/useLocales"; import { Bar } from "react-chartjs-2"; import { chartDimensions, SWAY_COLORS } from "../../../sway_utils"; import { getBarChartOptions } from "../../../sway_utils/charts"; import { IChildChartProps } from "./BillChartsContainer"; -import { useLocale } from "app/frontend/hooks/useLocales"; ChartJS.register(CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend); -const TotalVotesChart: React.FC = ({ bill, district, score }) => { +const TotalVotesChart: React.FC = ({ bill, score }) => { const [locale] = useLocale(); const location = isCongressLocale(locale) ? "the United States" : titleize(locale.city); @@ -28,14 +20,10 @@ const TotalVotesChart: React.FC = ({ bill, district, score }) datasets: [ { label: `All Votes Cast in ${location} on ${bill.title}`, - backgroundColor: isCongressLocale(locale) - ? SWAY_COLORS.primaryLight - : SWAY_COLORS.primary, + backgroundColor: isCongressLocale(locale) ? SWAY_COLORS.primaryLight : SWAY_COLORS.primary, borderColor: SWAY_COLORS.primary, borderWidth: 1, - hoverBackgroundColor: isCongressLocale(locale) - ? SWAY_COLORS.primaryLight - : SWAY_COLORS.primary, + hoverBackgroundColor: isCongressLocale(locale) ? SWAY_COLORS.primaryLight : SWAY_COLORS.primary, hoverBorderColor: SWAY_COLORS.primary, barPercentage: 0.8, categoryPercentage: 0.8, diff --git a/app/frontend/components/dialogs/Confetti.tsx b/app/frontend/components/dialogs/Confetti.tsx index 20c064fd..7069e8b9 100644 --- a/app/frontend/components/dialogs/Confetti.tsx +++ b/app/frontend/components/dialogs/Confetti.tsx @@ -1,4 +1,4 @@ -import { useEffect, useMemo } from "react"; +import { useMemo } from "react"; interface IProps { children: JSX.Element[] | JSX.Element; @@ -51,7 +51,6 @@ const Confetti: React.FC = ({ children }) => { return _confettis; }, []); - return (
    {confettis} diff --git a/app/frontend/components/error_handling/utils.ts b/app/frontend/components/error_handling/utils.ts index 53d83048..ae528088 100644 --- a/app/frontend/components/error_handling/utils.ts +++ b/app/frontend/components/error_handling/utils.ts @@ -30,20 +30,20 @@ export const onRenderError = (e: unknown) => { try { document.cookie = ""; - } catch (e) { - console.warn(e); + } catch (e_) { + console.warn(e_); } try { sessionStorage?.clear(); - } catch (e) { - console.warn(e); + } catch (e_) { + console.warn(e_); } try { localStorage?.clear(); - } catch (e) { - console.warn(e); + } catch (e_) { + console.warn(e_); } if ("caches" in window) { diff --git a/app/frontend/components/forms/SwayText.tsx b/app/frontend/components/forms/SwayText.tsx index fa619f71..2d100564 100644 --- a/app/frontend/components/forms/SwayText.tsx +++ b/app/frontend/components/forms/SwayText.tsx @@ -76,14 +76,14 @@ const SwayTextHeader: React.FC = ({ field, error, helperText }) => { ); }; -const SwayTextFooter: React.FC = ({ field, error, helperText }) => { - return ( - <> - {field.subLabel && {field.subLabel}} - {helperText && {helperText}} - {error && {error}} - - ); -}; +// const SwayTextFooter: React.FC = ({ field, error, helperText }) => { +// return ( +// <> +// {field.subLabel && {field.subLabel}} +// {helperText && {helperText}} +// {error && {error}} +// +// ); +// }; export default SwayText; diff --git a/app/frontend/components/legislator/LegislatorPhone.tsx b/app/frontend/components/legislator/LegislatorPhone.tsx index ffb04600..430b18d0 100644 --- a/app/frontend/components/legislator/LegislatorPhone.tsx +++ b/app/frontend/components/legislator/LegislatorPhone.tsx @@ -1,5 +1,5 @@ import { formatPhone } from "app/frontend/sway_utils/phone"; -import { useCallback, useMemo, useState } from "react"; +import { useCallback, useState } from "react"; import { FiPhone } from "react-icons/fi"; import { sway } from "sway"; import ContactLegislatorDialog from "../dialogs/ContactLegislatorDialog"; @@ -31,12 +31,7 @@ const LegislatorPhone: React.FC = ({ legislator, handleCopy }) => { handleCopy={handleCopy} Icon={getIcon} /> - + ); }; diff --git a/app/frontend/components/social/ShareDialog.tsx b/app/frontend/components/social/ShareDialog.tsx index 9741a620..a53dda50 100644 --- a/app/frontend/components/social/ShareDialog.tsx +++ b/app/frontend/components/social/ShareDialog.tsx @@ -4,11 +4,9 @@ import { useCallback, useMemo } from "react"; import { Button, Modal } from "react-bootstrap"; import { SocialIcon } from "react-social-icons"; import { sway } from "sway"; -import { useUser } from "../../hooks/users/useUser"; -import InviteDialogShareButton from "./InviteDialogShareButton"; -import InviteBody from "app/frontend/components/dialogs/invites/InviteBody"; import ButtonUnstyled from "app/frontend/components/ButtonUnstyled"; +import InviteBody from "app/frontend/components/dialogs/invites/InviteBody"; interface IProps { bill: sway.IBill; @@ -20,8 +18,7 @@ interface IProps { const url = "https://app.sway.vote/bill_of_the_week"; -const ShareDialog: React.FC = ({ bill, locale, userVote, handleClose, isOpen }) => { - const user = useUser(); +const ShareDialog: React.FC = ({ bill, locale, userVote: _userVote, handleClose, isOpen }) => { const { name, city } = locale; const hashtag = useMemo( @@ -38,7 +35,6 @@ const ShareDialog: React.FC = ({ bill, locale, userVote, handleClose, is [city, bill.externalId], ); - const open = useCallback( (route: string) => () => { window.open(route, "_blank"); diff --git a/app/frontend/components/user/settings/UserSettings.tsx b/app/frontend/components/user/settings/UserSettings.tsx index 18c102fa..e786fcd0 100644 --- a/app/frontend/components/user/settings/UserSettings.tsx +++ b/app/frontend/components/user/settings/UserSettings.tsx @@ -1,11 +1,8 @@ /** @format */ -import { useUser } from "app/frontend/hooks/users/useUser"; -import { useDispatch } from "react-redux"; - const UserSettings: React.FC = () => { - const dispatch = useDispatch(); - const user = useUser(); + // const dispatch = useDispatch(); + // const user = useUser(); return null; diff --git a/app/frontend/entrypoints/application.tsx b/app/frontend/entrypoints/application.tsx index 354f3df0..bd098582 100644 --- a/app/frontend/entrypoints/application.tsx +++ b/app/frontend/entrypoints/application.tsx @@ -16,15 +16,12 @@ import { Toaster } from "react-hot-toast"; import { Provider } from "react-redux"; import { logDev } from "../sway_utils"; -// Load react-select -// @ts-ignore - -const RECAPTCHA__SCRIPT_PROPS = { - async: true, // optional, default to false, - defer: false, // optional, default to false - appendTo: "head", // optional, default to "head", can be "head" or "body", - nonce: undefined, // optional, default undefined -} as const; +// const RECAPTCHA__SCRIPT_PROPS = { +// async: true, // optional, default to false, +// defer: false, // optional, default to false +// appendTo: "head", // optional, default to "head", can be "head" or "body", +// nonce: undefined, // optional, default undefined +// } as const; const NO_AUTH_LAYOUTS = ["home", "registration"]; diff --git a/app/frontend/hooks/buckets/usePresignedBucketUpload.ts b/app/frontend/hooks/buckets/usePresignedBucketUpload.ts index 10727926..bd487187 100644 --- a/app/frontend/hooks/buckets/usePresignedBucketUpload.ts +++ b/app/frontend/hooks/buckets/usePresignedBucketUpload.ts @@ -1,4 +1,4 @@ -import { handleError, logDev } from "app/frontend/sway_utils"; +import { handleError } from "app/frontend/sway_utils"; import { sendXHRRequest } from "app/frontend/sway_utils/http"; import { useCallback } from "react"; import { sway } from "sway"; diff --git a/app/frontend/hooks/useAxios.ts b/app/frontend/hooks/useAxios.ts index a35c9ca1..d089804f 100644 --- a/app/frontend/hooks/useAxios.ts +++ b/app/frontend/hooks/useAxios.ts @@ -217,7 +217,7 @@ const useAxiosAuthenticatedGet = (method: "get" | "delete" = "get"): TQueryReque (route: string, errorHandler?: (error: AxiosError) => void) => { return caller(route, options, errorHandler); }, - [method, options], + [options, caller], ) as TQueryRequest; }; diff --git a/app/frontend/hooks/useEmailVerification.ts b/app/frontend/hooks/useEmailVerification.ts index df70eeef..e6034e4d 100644 --- a/app/frontend/hooks/useEmailVerification.ts +++ b/app/frontend/hooks/useEmailVerification.ts @@ -2,7 +2,7 @@ import { useCallback } from "react"; import { sway } from "sway"; export const useEmailVerification = () => { - return useCallback(async (user: sway.IUser | null | undefined) => { + return useCallback(async (_user: sway.IUser | null | undefined) => { // if (user) { // // * NOTE: The below URL redirects the user from the Firebase confirmation screen to a Sway confirmation screen // // * The redirect is NOT currently needed since there is a setInterval listener for when the user verifies in SignIn.tsx diff --git a/app/frontend/hooks/useImmer.ts b/app/frontend/hooks/useImmer.ts deleted file mode 100644 index a0ceafdf..00000000 --- a/app/frontend/hooks/useImmer.ts +++ /dev/null @@ -1,23 +0,0 @@ -import produce, { Draft, freeze, nothing } from "immer"; -import { useCallback, useState } from "react"; - -export type Reducer = ( - draftState: Draft, - action: A, -) => void | (S extends undefined ? typeof nothing : S); -export type DraftFunction = (draft: Draft) => void; -export type Updater = (arg: S | DraftFunction) => void; -export type ImmerHook = [S, Updater]; - -export function useImmer(initialValue: S | (() => S)): ImmerHook { - const [val, updateValue] = useState(() => - freeze(initialValue instanceof Function ? initialValue() : initialValue, true), - ); - return [ - val, - useCallback((updater) => { - if (updater instanceof Function) updateValue(produce(updater)); - else updateValue(freeze(updater)); - }, []), - ]; -} diff --git a/app/frontend/hooks/useRepresentatives.ts b/app/frontend/hooks/useRepresentatives.ts index 16bd00c7..c9f0e231 100644 --- a/app/frontend/hooks/useRepresentatives.ts +++ b/app/frontend/hooks/useRepresentatives.ts @@ -1,25 +1,23 @@ /** @format */ -import { isEmptyObject, logDev, toFormattedLocaleName } from "app/frontend/sway_utils"; +import { isEmptyObject, logDev } from "app/frontend/sway_utils"; import { useCallback, useState } from "react"; import { sway } from "sway"; import { handleError } from "../sway_utils"; import { useCancellable } from "./useCancellable"; import { useLocale, useLocaleName } from "./useLocales"; - const DEFAULT_LEGISLATORS = [] as sway.ILegislator[]; export const useRepresentatives = () => { const makeCancellable = useCancellable(); const localeName = useLocaleName(); const [locale] = useLocale(); - const localeDistrict = "" - const localeRegionCode = locale.regionCode + const localeDistrict = ""; + const localeRegionCode = locale.regionCode; const [representatives, setRepresentatives] = useState(DEFAULT_LEGISLATORS); const [isLoading, setLoading] = useState(false); - const [isLoaded, setLoaded] = useState(false); const handleGetLegislators = useCallback( async (isActive: boolean): Promise => { @@ -52,18 +50,9 @@ export const useRepresentatives = () => { logDev("useRepresentatives.getRepresentatives.legislators", legislators); setLoading(false); if (isEmptyObject(legislators)) { - if (isLoaded) { - console.error( - `No legislators found in ${toFormattedLocaleName(localeName)}`, - ); - } else { - // no-op - } + // noop } else { - setRepresentatives( - legislators - .sort((a, b) => (a.district > b.district ? -1 : 1)), - ); + setRepresentatives(legislators.sort((a, b) => (a.district > b.district ? -1 : 1))); } }) .catch((error) => { @@ -71,8 +60,8 @@ export const useRepresentatives = () => { handleError(error); }); }, - [makeCancellable, handleGetLegislators, localeName, isLoaded], + [makeCancellable, handleGetLegislators], ); - return { representatives, getRepresentatives, isLoading, isLoaded }; + return { representatives, getRepresentatives, isLoading }; }; diff --git a/app/frontend/pages/BillOfTheWeekCreator.tsx b/app/frontend/pages/BillOfTheWeekCreator.tsx index 9884f2c4..fc0eca21 100644 --- a/app/frontend/pages/BillOfTheWeekCreator.tsx +++ b/app/frontend/pages/BillOfTheWeekCreator.tsx @@ -193,12 +193,15 @@ const _BillOfTheWeekCreator: React.FC = ({ (values: ISubmitValues, { setSubmitting }: { setSubmitting: (_isSubmitting: boolean) => void }) => { if (!isAdmin || !legislators) return; + logDev("BillOfTheWeekCreator.handleSubmit - VALUES", values); + try { if (!summaryRef.current) { notify({ level: "warning", title: "Sway summary is required.", }); + console.error("summaryRef.current is falsey."); setSubmitting(false); return; } @@ -209,25 +212,31 @@ const _BillOfTheWeekCreator: React.FC = ({ title: "Invalid Sponsor", message: "Sponsor is not a valid legislator. Wrong locale?", }); + console.error( + "Invalid sponsor - values.legislator -", + values.legislator, + " - legislator ids -", + legislators.map(getId), + ); setSubmitting(false); return; } - logDev("BillOfTheWeekCreator.handleSubmit - VALUES", values); - const caller = bill.id ? updateBill : createBill; caller({ - ...values, external_id: values.externalId, external_version: values.externalVersion, legislator_id: values.legislator.value, + title: values.title, + link: values.link, chamber: values.chamber.value, + category: values.category.value, + status: values.status.value, + level: values.level, summary: summaryRef.current, introduced_date_time_utc: values.introducedDateTimeUtc, house_vote_date_time_utc: values.houseVoteDateTimeUtc, senate_vote_date_time_utc: values.senateVoteDateTimeUtc, - category: values.category.value, - status: values.status.value, audio_bucket_path: values.audioBucketPath, audio_by_line: values.audioByLine, house_roll_call_vote_number: values.houseRollCallVoteNumber, @@ -265,7 +274,9 @@ const _BillOfTheWeekCreator: React.FC = ({ title: bill?.title?.trim() || "", link: bill?.link?.trim() || "", legislatorId: bill?.legislatorId || null, - chamber: bill?.chamber || (isCongressLocale(locale) ? "house" : "council"), + chamber: + bill?.chamber || + (isCongressLocale(locale) ? toSelectOption("house", "house") : toSelectOption("council", "council")), level: bill?.level?.trim() || ESwayLevel.Local, summary: bill?.summary?.trim() ?? "", category: bill?.category ? toSelectOption(bill.category.trim(), bill.category.trim()) : undefined, diff --git a/app/frontend/pages/Bills.tsx b/app/frontend/pages/Bills.tsx index 5432693f..d6a646db 100644 --- a/app/frontend/pages/Bills.tsx +++ b/app/frontend/pages/Bills.tsx @@ -1,6 +1,6 @@ /** @format */ -import SetupPage from "app/frontend/components/hoc/SetupPage"; +import { router } from "@inertiajs/react"; import { useLocale } from "app/frontend/hooks/useLocales"; import { toFormattedLocaleName } from "app/frontend/sway_utils"; import { isEmpty } from "lodash"; @@ -10,7 +10,6 @@ import { sway } from "sway"; import BillsListCategoriesHeader from "../components/bill/BillsListCategoriesHeader"; import BillsListItem from "../components/bill/BillsListItem"; import LocaleSelector from "../components/user/LocaleSelector"; -import { router } from "@inertiajs/react"; const _Bills: React.FC<{ bills: sway.IBill[] }> = ({ bills }) => { const [locale] = useLocale(); diff --git a/app/frontend/pages/Home.tsx b/app/frontend/pages/Home.tsx index 56742141..a908f6ae 100644 --- a/app/frontend/pages/Home.tsx +++ b/app/frontend/pages/Home.tsx @@ -1,7 +1,7 @@ import Passkey from "app/frontend/pages/Passkey"; import { logDev } from "app/frontend/sway_utils"; -const Home: React.FC<{ name?: string; isBubbles: boolean }> = ({ name, isBubbles }) => { +const Home: React.FC<{ name?: string; isBubbles: boolean }> = ({ name, isBubbles: _isBubbles }) => { logDev("Home.tsx", name); return ; }; diff --git a/app/frontend/pages/Notifications.tsx b/app/frontend/pages/Notifications.tsx index 6633f2b6..4e5bbe9f 100644 --- a/app/frontend/pages/Notifications.tsx +++ b/app/frontend/pages/Notifications.tsx @@ -11,7 +11,7 @@ interface IProps { subscriptions: sway.notifications.IPushNotificationSubscription[]; } -const Notifications: React.FC = ({ user, subscriptions }) => { +const Notifications: React.FC = ({ user: _user, subscriptions }) => { const { post } = useAxiosPost( "/notifications/push_notification_subscriptions", ); @@ -57,21 +57,21 @@ const Notifications: React.FC = ({ user, subscriptions }) => { ); const saveSubscription = useCallback( - (subscription: PushSubscription) => { + (sub: PushSubscription) => { // Extract necessary subscription data - const endpoint = subscription.endpoint; + const endpoint = sub.endpoint; const p256dh = btoa( String.fromCharCode.apply( null, - // @ts-ignore - new Uint8Array(subscription.getKey("p256dh") as ArrayBuffer), + // @ts-expect-error - types say this method doesn't take a Uint8Array but it does (working) + new Uint8Array(sub.getKey("p256dh") as ArrayBuffer), ), ); const auth = btoa( String.fromCharCode.apply( null, - // @ts-ignore - new Uint8Array(subscription.getKey("auth") as ArrayBuffer), + // @ts-expect-error - types say this method doesn't take a Uint8Array but it does (working) + new Uint8Array(sub.getKey("auth") as ArrayBuffer), ), ); @@ -89,7 +89,7 @@ const Notifications: React.FC = ({ user, subscriptions }) => { console.error("Error sending subscription to the server:", error); }); }, - [post, user.id], + [post], ); const registerServiceWorker = useCallback(() => { @@ -112,9 +112,9 @@ const Notifications: React.FC = ({ user, subscriptions }) => { window as Window & typeof global & { VAPID_PUBLIC_KEY: string } ).VAPID_PUBLIC_KEY, }) - .then((subscription) => { + .then((sub) => { // Save the subscription on the server - saveSubscription(subscription); + saveSubscription(sub); }); } else { saveSubscription(existingSubscription); diff --git a/app/frontend/sway_utils/emoji.ts b/app/frontend/sway_utils/emoji.ts index c80e835e..c1c157a8 100644 --- a/app/frontend/sway_utils/emoji.ts +++ b/app/frontend/sway_utils/emoji.ts @@ -1,5 +1,3 @@ -// @ts-ignore - import emojis from "./emojis.json"; export const getEmojiFromName = (name: string) => { diff --git a/app/models/bill.rb b/app/models/bill.rb index 16b582d9..7ad983d4 100644 --- a/app/models/bill.rb +++ b/app/models/bill.rb @@ -39,8 +39,7 @@ class Bill < ApplicationRecord has_many :legislator_votes, inverse_of: :bill has_many :organization_bill_positions, inverse_of: :bill - before_save :downcase_status - + before_save :downcase_status, :determine_level, :determine_chamber after_create :send_notifications validates_uniqueness_of :external_id, scope: :sway_locale_id, allow_nil: true @@ -79,6 +78,20 @@ def vote votes.last end + # Render a single bill from a controller + def render current_user + { + bill: self.to_builder.attributes!, + positions: self.organization_bill_positions.map { |obp| obp.to_builder.attributes! }, + legislatorVotes: self.legislator_votes.map { |lv| lv.to_builder.attributes! }, + sponsor: self.legislator.to_builder.attributes!, + userVote: UserVote.find_by( + user: current_user, + bill_id: self.id + )&.attributes + } + end + sig { returns(Jbuilder) } def to_builder Jbuilder.new do |b| @@ -124,6 +137,32 @@ def vote_date_time_utc end end + # after initialize + + def determine_level + return if self.level.present? || sway_locale.nil? + + if sway_locale.congress? + self.level = "National" + elsif sway_locale.region? + self.level = "Regional" + else + self.level = "Local" + end + end + + def determine_chamber + return if self.chamber.present? || sway_locale.nil? + + if sway_locale.congress? || sway_locale.region? + # noop + else + self.chamber = "council" + end + end + + # before save + sig { void } def downcase_status s = status @@ -137,6 +176,8 @@ def downcase_status end end + # after create + sig { void } def send_notifications SwayPushNotificationService.new( diff --git a/app/models/sway_locale.rb b/app/models/sway_locale.rb index 2cd4e7de..594bbd39 100644 --- a/app/models/sway_locale.rb +++ b/app/models/sway_locale.rb @@ -62,6 +62,11 @@ def congress? city_name == 'congress' && region_name == 'congress' end + sig { returns(T::Boolean) } + def region? + RegionUtil.from_region_name_to_region_code(self.city_name).present? + end + sig { returns(T::Array[District]) } def districts T.cast(super, T::Array[District]).uniq(&:name) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index cf666686..72ccec40 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -8,8 +8,7 @@ <%= csp_meta_tag %> <%= stylesheet_link_tag "application", "data-turbo-track": "reload", nonce: true %> - - <%= stylesheet_link_tag "scss/recaptcha", "data-turbo-track": "reload", nonce: true if @current_user %> + <%# <%= stylesheet_link_tag "scss/recaptcha", "data-turbo-track": "reload", nonce: true if @current_user %> <%= vite_client_tag nonce: true %> <%= vite_react_refresh_tag nonce: true %> diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index 56dc6ad9..078d3d79 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -11,3 +11,4 @@ # application.js, application.css, and all non-JS/CSS in the app/assets # folder are already added. # Rails.application.config.assets.precompile += %w( admin.js admin.css ) +Rails.application.config.assets.precompile += %w( application.scss ) diff --git a/config/initializers/dartsass.rb b/config/initializers/dartsass.rb index 5b7ea8e3..591a00f8 100644 --- a/config/initializers/dartsass.rb +++ b/config/initializers/dartsass.rb @@ -1,6 +1,6 @@ # typed: strict -Rails.application.config.dartsass.builds = { +# Rails.application.config.dartsass.builds = { # "app/index.sass" => "app.css", # "site.scss" => "site.css" - "." => "." -} + # "." => "." +# } diff --git a/docker/dockerfiles/production.dockerfile b/docker/dockerfiles/production.dockerfile index c79b210a..bb21fa16 100644 --- a/docker/dockerfiles/production.dockerfile +++ b/docker/dockerfiles/production.dockerfile @@ -25,15 +25,12 @@ RUN apt-get update -qq && \ apt-get clean # Install application gems -COPY Gemfile Gemfile.lock ./ +COPY Gemfile Gemfile.lock package.json package-lock.json ./ RUN bundle config set build.sqlite3 "--with-sqlite-cflags='-DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_DEFAULT_PAGE_SIZE=16384 -DSQLITE_DQS=0 -DSQLITE_ENABLE_FTS5 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_MAX_EXPR_DEPTH=0 -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_USE_ALLOCA'" && \ bundle install && \ rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \ - bundle exec bootsnap precompile --gemfile - -COPY package.json package-lock.json ./ - -RUN npm i + bundle exec bootsnap precompile --gemfile && \ + npm install # Copy application code COPY . . diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 00000000..1a2104f2 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,127 @@ +import globals from "globals"; +import pluginJs from "@eslint/js"; +import tseslint from "typescript-eslint"; +// import pluginReactConfig from "eslint-plugin-react/configs/recommended.js"; +import reactRefresh from "eslint-plugin-react-refresh"; +import rulesOfHooks from "eslint-plugin-react-hooks"; +import eslintImport from "eslint-plugin-import"; +import typescriptParser from "@typescript-eslint/parser"; +import typescriptEslint from "@typescript-eslint/eslint-plugin"; + +export default [ + // pluginJs.configs.recommended, + ...tseslint.configs.recommended, + // ...tseslint.configs.stylistic, + // pluginReactConfig, + { + languageOptions: { + globals: { + ...globals.serviceworker, + ...globals.browser, + }, + parserOptions: { + parser: typescriptParser, + project: "tsconfig.json", + ecmaVersion: "latest", + sourceType: "module", + ecmaFeatures: { + jsx: true, + }, + }, + }, + + plugins: { + "@typescript-eslint": typescriptEslint, + "react-refresh": reactRefresh, + "react-hooks": rulesOfHooks, + import: eslintImport, + }, + }, + { + settings: { + react: { + version: "detect", + }, + }, + }, + { + rules: { + "react-refresh/only-export-components": ["warn", { allowConstantExport: true }], + + "react-hooks/rules-of-hooks": "error", + "react-hooks/exhaustive-deps": "warn", + + // "react/prop-types": "off", + // "react/react-in-jsx-scope": "off", + // "react/jsx-no-target-blank": "warn", + // "react/display-name": "off", + + "constructor-super": "error", + "no-restricted-globals": "error", + eqeqeq: ["warn", "always"], + "import/no-deprecated": "off", + "import/no-extraneous-dependencies": "error", + "import/no-unassigned-import": "off", + "no-cond-assign": "error", + "no-duplicate-case": "error", + "no-duplicate-imports": "error", + "no-empty": [ + "error", + { + allowEmptyCatch: true, + }, + ], + "no-unused-vars": "off", + "no-invalid-this": "error", + "no-new-wrappers": "error", + "no-param-reassign": "error", + "no-redeclare": "error", + "no-sequences": "error", + "no-shadow": [ + "error", + { + hoist: "all", + }, + ], + "no-throw-literal": "error", + "no-unsafe-finally": "error", + "no-unused-labels": "error", + "no-var": "warn", + "no-void": "error", + "prefer-const": "warn", + + "@typescript-eslint/ban-ts-comment": "warn", + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-unused-vars": [ + "warn", // or "error" + { + argsIgnorePattern: "^_", + varsIgnorePattern: "^_", + caughtErrorsIgnorePattern: "^_", + }, + ], + }, + }, + { + ignores: [ + "app/assets/", + "app/views/*", + "config/", + "docker/", + "sorbet/", + "node_modules/", + "log/", + "lib/", + "db/", + "bin/", + "public/", + "spec/", + "storage/", + "tf/", + "tmp/", + "vendor/", + "eslint.config.js", + "vite*", + ], + }, +]; diff --git a/eslint.config.mjs b/eslint.config.mjs deleted file mode 100644 index 21e2decf..00000000 --- a/eslint.config.mjs +++ /dev/null @@ -1,18 +0,0 @@ -import globals from "globals"; -import pluginReactConfig from "eslint-plugin-react/configs/recommended.js"; - -import path from "path"; -import { fileURLToPath } from "url"; -import { FlatCompat } from "@eslint/eslintrc"; -import pluginJs from "@eslint/js"; - -// mimic CommonJS variables -- not needed if using CommonJS -const __filename = fileURLToPath(import.meta.url); -const __dirname = path.dirname(__filename); -const compat = new FlatCompat({ baseDirectory: __dirname, recommendedConfig: pluginJs.configs.recommended }); - -export default [ - { languageOptions: { globals: globals.browser } }, - ...compat.extends("standard-with-typescript"), - pluginReactConfig, -]; diff --git a/package-lock.json b/package-lock.json index 8907144d..7f453a9d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "sway-rails", + "name": "sway", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "sway-rails", + "name": "sway", "version": "1.0.0", "license": "ISC", "dependencies": { @@ -41,34 +41,31 @@ "yup": "^1.4.0" }, "devDependencies": { - "@dropbox/eslint-plugin-service-worker": "^1.0.0", - "@eslint/eslintrc": "^3.1.0", - "@eslint/js": "^9.3.0", + "@eslint/js": "^9.4.0", + "@types/eslint__js": "^8.42.3", "@types/lodash": "^4.17.4", "@types/node": "^20.12.13", "@types/react": "^18.3.3", "@types/react-datepicker": "^6.2.0", "@types/react-dom": "^18.3.0", "@types/redux-logger": "^3.0.13", - "@typescript-eslint/eslint-plugin": "^6.21.0", "@vitejs/plugin-react": "^4.3.0", "eslint": "^8.57.0", - "eslint-config-standard-with-typescript": "^43.0.1", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-import": "^2.29.1", "eslint-plugin-jsx-a11y": "^6.8.0", - "eslint-plugin-n": "^16.6.2", "eslint-plugin-promise": "^6.2.0", "eslint-plugin-react": "^7.34.2", "eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-react-refresh": "^0.4.7", "eslint-plugin-unused-imports": "^3.2.0", "globals": "^15.3.0", - "prettier": "^3.2.5", + "prettier": "^3.3.1", "react": "^18.3.1", "react-dom": "^18.3.1", "redux-logger": "^3.0.6", "typescript": "^5.4.5", + "typescript-eslint": "^7.12.0", "vite": "^5.2.12", "vite-plugin-full-reload": "^1.1.0", "vite-plugin-rails": "^0.5.0", @@ -76,15 +73,6 @@ "vite-plugin-windicss": "^1.9.3" } }, - "node_modules/@aashutoshrathi/word-wrap": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", - "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/@ampproject/remapping": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", @@ -99,20 +87,20 @@ } }, "node_modules/@antfu/utils": { - "version": "0.7.7", - "resolved": "https://registry.npmjs.org/@antfu/utils/-/utils-0.7.7.tgz", - "integrity": "sha512-gFPqTG7otEJ8uP6wrhDv6mqwGWYZKNvAcCq6u9hOj0c+IKCEsY4L1oC9trPq2SaWIzAfHvqfBDxF591JkMf+kg==", + "version": "0.7.8", + "resolved": "https://registry.npmjs.org/@antfu/utils/-/utils-0.7.8.tgz", + "integrity": "sha512-rWQkqXRESdjXtc+7NRfK9lASQjpXJu1ayp7qi1d23zZorY+wBHVLHHoVcMsEnkqEBWTFqbztO7/QdJFzyEcLTg==", "dev": true, "funding": { "url": "https://github.com/sponsors/antfu" } }, "node_modules/@babel/code-frame": { - "version": "7.24.2", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.2.tgz", - "integrity": "sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", + "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", "dependencies": { - "@babel/highlight": "^7.24.2", + "@babel/highlight": "^7.24.7", "picocolors": "^1.0.0" }, "engines": { @@ -120,30 +108,30 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.4.tgz", - "integrity": "sha512-vg8Gih2MLK+kOkHJp4gBEIkyaIi00jgWot2D9QOmmfLC8jINSOzmCLta6Bvz/JSBCqnegV0L80jhxkol5GWNfQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.7.tgz", + "integrity": "sha512-qJzAIcv03PyaWqxRgO4mSU3lihncDT296vnyuE2O8uA4w3UHWI4S3hgeZd1L8W1Bft40w9JxJ2b412iDUFFRhw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.5.tgz", - "integrity": "sha512-tVQRucExLQ02Boi4vdPp49svNGcfL2GhdTCT9aldhXgCJVAI21EtRfBettiuLUwce/7r6bFdgs6JFkcdTiFttA==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.7.tgz", + "integrity": "sha512-nykK+LEK86ahTkX/3TgauT0ikKoNCfKHEaZYTUVupJdTLzGNvrblu4u6fa7DhZONAltdf8e662t/abY8idrd/g==", "dev": true, "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.24.2", - "@babel/generator": "^7.24.5", - "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-module-transforms": "^7.24.5", - "@babel/helpers": "^7.24.5", - "@babel/parser": "^7.24.5", - "@babel/template": "^7.24.0", - "@babel/traverse": "^7.24.5", - "@babel/types": "^7.24.5", + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.24.7", + "@babel/helper-compilation-targets": "^7.24.7", + "@babel/helper-module-transforms": "^7.24.7", + "@babel/helpers": "^7.24.7", + "@babel/parser": "^7.24.7", + "@babel/template": "^7.24.7", + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -159,12 +147,11 @@ } }, "node_modules/@babel/generator": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.5.tgz", - "integrity": "sha512-x32i4hEXvr+iI0NEoEfDKzlemF8AmtOP8CcrRaEcpzysWuoEb1KknpcvMsHKPONoKZiDuItklgWhB18xEhr9PA==", - "dev": true, + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.7.tgz", + "integrity": "sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA==", "dependencies": { - "@babel/types": "^7.24.5", + "@babel/types": "^7.24.7", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", "jsesc": "^2.5.1" @@ -174,13 +161,13 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", - "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.7.tgz", + "integrity": "sha512-ctSdRHBi20qWOfy27RUb4Fhp07KSJ3sXcuSvTrXrc4aG8NSYDo1ici3Vhg9bg69y5bj0Mr1lh0aeEgTvc12rMg==", "dev": true, "dependencies": { - "@babel/compat-data": "^7.23.5", - "@babel/helper-validator-option": "^7.23.5", + "@babel/compat-data": "^7.24.7", + "@babel/helper-validator-option": "^7.24.7", "browserslist": "^4.22.2", "lru-cache": "^5.1.1", "semver": "^6.3.1" @@ -190,61 +177,62 @@ } }, "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", - "dev": true, + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz", + "integrity": "sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ==", + "dependencies": { + "@babel/types": "^7.24.7" + }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-function-name": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", - "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", - "dev": true, + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.24.7.tgz", + "integrity": "sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA==", "dependencies": { - "@babel/template": "^7.22.15", - "@babel/types": "^7.23.0" + "@babel/template": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-hoist-variables": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", - "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", - "dev": true, + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.7.tgz", + "integrity": "sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ==", "dependencies": { - "@babel/types": "^7.22.5" + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-imports": { - "version": "7.24.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.3.tgz", - "integrity": "sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", + "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", "dependencies": { - "@babel/types": "^7.24.0" + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.5.tgz", - "integrity": "sha512-9GxeY8c2d2mdQUP1Dye0ks3VDyIMS98kt/llQ2nUId8IsWqTF0l1LkSX0/uP7l7MCDrzXS009Hyhe2gzTiGW8A==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.7.tgz", + "integrity": "sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ==", "dev": true, "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.24.3", - "@babel/helper-simple-access": "^7.24.5", - "@babel/helper-split-export-declaration": "^7.24.5", - "@babel/helper-validator-identifier": "^7.24.5" + "@babel/helper-environment-visitor": "^7.24.7", + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-simple-access": "^7.24.7", + "@babel/helper-split-export-declaration": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7" }, "engines": { "node": ">=6.9.0" @@ -254,83 +242,82 @@ } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.5.tgz", - "integrity": "sha512-xjNLDopRzW2o6ba0gKbkZq5YWEBaK3PCyTOY1K2P/O07LGMhMqlMXPxwN4S5/RhWuCobT8z0jrlKGlYmeR1OhQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.7.tgz", + "integrity": "sha512-Rq76wjt7yz9AAc1KnlRKNAi/dMSVWgDRx43FHoJEbcYU6xOWaE2dVPwcdTukJrjxS65GITyfbvEYHvkirZ6uEg==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-simple-access": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.5.tgz", - "integrity": "sha512-uH3Hmf5q5n7n8mz7arjUlDOCbttY/DW4DYhE6FUsjKJ/oYC1kQQUvwEQWxRwUpX9qQKRXeqLwWxrqilMrf32sQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", + "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", "dev": true, "dependencies": { - "@babel/types": "^7.24.5" + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-split-export-declaration": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.5.tgz", - "integrity": "sha512-5CHncttXohrHk8GWOFCcCl4oRD9fKosWlIRgWm4ql9VYioKm52Mk2xsmoohvm7f3JoiLSM5ZgJuRaf5QZZYd3Q==", - "dev": true, + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz", + "integrity": "sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA==", "dependencies": { - "@babel/types": "^7.24.5" + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz", - "integrity": "sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.7.tgz", + "integrity": "sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.5.tgz", - "integrity": "sha512-3q93SSKX2TWCG30M2G2kwaKeTYgEUp5Snjuj8qm729SObL6nbtUldAi37qbxkD5gg3xnBio+f9nqpSepGZMvxA==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", + "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", - "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.7.tgz", + "integrity": "sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.5.tgz", - "integrity": "sha512-CiQmBMMpMQHwM5m01YnrM6imUG1ebgYJ+fAIW4FZe6m4qHTPaRHti+R8cggAwkdz4oXhtO4/K9JWlh+8hIfR2Q==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.7.tgz", + "integrity": "sha512-NlmJJtvcw72yRJRcnCmGvSi+3jDEg8qFu3z0AFoymmzLx5ERVWyzd9kVXr7Th9/8yIJi2Zc6av4Tqz3wFs8QWg==", "dev": true, "dependencies": { - "@babel/template": "^7.24.0", - "@babel/traverse": "^7.24.5", - "@babel/types": "^7.24.5" + "@babel/template": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.24.2", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.2.tgz", - "integrity": "sha512-Yac1ao4flkTxTteCDZLEvdxg2fZfz1v8M4QpaGypq/WPDqg3ijHYbDfs+LG5hvzSoqaSZ9/Z9lKSP3CjZjv+pA==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", + "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", + "@babel/helper-validator-identifier": "^7.24.7", "chalk": "^2.4.2", "js-tokens": "^4.0.0", "picocolors": "^1.0.0" @@ -340,10 +327,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.5.tgz", - "integrity": "sha512-EOv5IK8arwh3LI47dz1b0tKUb/1uhHAnHJOrjgtQMIpu1uXd9mlFrJg9IUgGUgZ41Ch0K8REPTYpO7B76b4vJg==", - "dev": true, + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.7.tgz", + "integrity": "sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==", "bin": { "parser": "bin/babel-parser.js" }, @@ -352,12 +338,12 @@ } }, "node_modules/@babel/plugin-transform-react-jsx-self": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.24.5.tgz", - "integrity": "sha512-RtCJoUO2oYrYwFPtR1/jkoBEcFuI1ae9a9IMxeyAVa3a1Ap4AnxmyIKG2b2FaJKqkidw/0cxRbWN+HOs6ZWd1w==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.24.7.tgz", + "integrity": "sha512-fOPQYbGSgH0HUp4UJO4sMBFjY6DuWq+2i8rixyUMb3CdGixs/gccURvYOAhajBdKDoGajFr3mUq5rH3phtkGzw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.24.5" + "@babel/helper-plugin-utils": "^7.24.7" }, "engines": { "node": ">=6.9.0" @@ -367,12 +353,12 @@ } }, "node_modules/@babel/plugin-transform-react-jsx-source": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.24.1.tgz", - "integrity": "sha512-1v202n7aUq4uXAieRTKcwPzNyphlCuqHHDcdSNc+vdhoTEZcFMh+L5yZuCmGaIO7bs1nJUNfHB89TZyoL48xNA==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.24.7.tgz", + "integrity": "sha512-J2z+MWzZHVOemyLweMqngXrgGC42jQ//R0KdxqkIz/OrbVIIlhFI3WigZ5fO+nwFvBlncr4MGapd8vTyc7RPNQ==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" + "@babel/helper-plugin-utils": "^7.24.7" }, "engines": { "node": ">=6.9.0" @@ -382,9 +368,9 @@ } }, "node_modules/@babel/runtime": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.4.tgz", - "integrity": "sha512-dkxf7+hn8mFBwKjs9bvBlArzLVxVbS8usaPUDd5p2a9JCL9tB8OaOVN1isD4+Xyk4ns89/xeOmbQvgdK7IIVdA==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.7.tgz", + "integrity": "sha512-UwgBRMjJP+xv857DCngvqXI3Iq6J4v0wXmwc6sapg+zyhbwmQX67LUEFrkK5tbyJ30jGuG3ZvWpBiB9LCy1kWw==", "dependencies": { "regenerator-runtime": "^0.14.0" }, @@ -393,33 +379,31 @@ } }, "node_modules/@babel/template": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.0.tgz", - "integrity": "sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==", - "dev": true, + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.7.tgz", + "integrity": "sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig==", "dependencies": { - "@babel/code-frame": "^7.23.5", - "@babel/parser": "^7.24.0", - "@babel/types": "^7.24.0" + "@babel/code-frame": "^7.24.7", + "@babel/parser": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.5.tgz", - "integrity": "sha512-7aaBLeDQ4zYcUFDUD41lJc1fG8+5IU9DaNSJAgal866FGvmD5EbWQgnEC6kO1gGLsX0esNkfnJSndbTXA3r7UA==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.24.2", - "@babel/generator": "^7.24.5", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.24.5", - "@babel/parser": "^7.24.5", - "@babel/types": "^7.24.5", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.7.tgz", + "integrity": "sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA==", + "dependencies": { + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.24.7", + "@babel/helper-environment-visitor": "^7.24.7", + "@babel/helper-function-name": "^7.24.7", + "@babel/helper-hoist-variables": "^7.24.7", + "@babel/helper-split-export-declaration": "^7.24.7", + "@babel/parser": "^7.24.7", + "@babel/types": "^7.24.7", "debug": "^4.3.1", "globals": "^11.1.0" }, @@ -431,36 +415,23 @@ "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true, "engines": { "node": ">=4" } }, "node_modules/@babel/types": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.5.tgz", - "integrity": "sha512-6mQNsaLeXTw0nxYUYu+NSa4Hx4BlF1x1x8/PMFbiR+GBSr+2DkECc69b8hgy2frEodNcvPffeH8YfWd3LI6jhQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", + "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", "dependencies": { - "@babel/helper-string-parser": "^7.24.1", - "@babel/helper-validator-identifier": "^7.24.5", + "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", "to-fast-properties": "^2.0.0" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@dropbox/eslint-plugin-service-worker": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@dropbox/eslint-plugin-service-worker/-/eslint-plugin-service-worker-1.0.0.tgz", - "integrity": "sha512-0E4RpW9dNdnGiJSpHQKuZMrKbl8l8MWuHlbOqEfSovOjXvUaNAXSMKVbWKrp6vx1ZXCJ5hALhb3TBYPqnE7F3Q==", - "dev": true, - "dependencies": { - "jsdom": "^19.0.0" - }, - "peerDependencies": { - "eslint": "^8.16.0" - } - }, "node_modules/@emotion/babel-plugin": { "version": "11.11.0", "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.11.0.tgz", @@ -964,24 +935,24 @@ } }, "node_modules/@eslint-community/regexpp": { - "version": "4.10.0", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", - "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.1.tgz", + "integrity": "sha512-Zm2NGpWELsQAD1xsJzGQpYfvICSsFkEpU0jxBjfdC6uNEWXcHnfs9hScFWtXVDVl+rBQJGrl4g1vcKIejpH9dA==", "dev": true, "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, "node_modules/@eslint/eslintrc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.1.0.tgz", - "integrity": "sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", "dev": true, "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", + "espree": "^9.6.0", + "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", @@ -989,85 +960,71 @@ "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/eslint-visitor-keys": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", - "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, - "node_modules/@eslint/eslintrc/node_modules/espree": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.0.1.tgz", - "integrity": "sha512-MWkrWZbJsL2UwnjxTX3gG8FneachS/Mwg7tdGXce011sJd5b0JG54vat5KHnfSBODZ3Wvzd2WnjxyzsRoVv+ww==", + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, "dependencies": { - "acorn": "^8.11.3", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.0.0" + "type-fest": "^0.20.2" }, "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + "node": ">=8" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "node_modules/@eslint/eslintrc/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true, "engines": { - "node": ">=18" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/@eslint/js": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.3.0.tgz", - "integrity": "sha512-niBqk8iwv96+yuTwjM6bWg8ovzAPF9qkICsGtcoa5/dmqcEMfdwNAX7+/OHcJHc7wj7XqPxH98oAHytFYlw6Sw==", + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.4.0.tgz", + "integrity": "sha512-fdI7VJjP3Rvc70lC4xkFXHB0fiPeojiL1PxVG6t1ZvXQrarj893PweuBTujxDUFk0Fxj4R7PIIAZ/aiiyZPZcg==", "dev": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@floating-ui/core": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.0.tgz", - "integrity": "sha512-PcF++MykgmTj3CIyOQbKA/hDzOAiqI3mhuoN44WRCopIs1sgoDoU4oty4Jtqaj/y3oDU6fnVSm4QG0a3t5i0+g==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.2.tgz", + "integrity": "sha512-+2XpQV9LLZeanU4ZevzRnGFg2neDeKHgFLjP6YLW+tly0IvrhqT4u8enLGjLH3qeh85g19xY5rsAusfwTdn5lg==", "dependencies": { - "@floating-ui/utils": "^0.2.1" + "@floating-ui/utils": "^0.2.0" } }, "node_modules/@floating-ui/dom": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.3.tgz", - "integrity": "sha512-RnDthu3mzPlQ31Ss/BTwQ1zjzIhr3lk1gZB1OC56h/1vEtaXkESrOqL5fQVMfXpwGtRwX+YsZBdyHtJMQnkArw==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.5.tgz", + "integrity": "sha512-Nsdud2X65Dz+1RHjAIP0t8z5e2ff/IRbei6BqFrl1urT8sDVzM1HMQ+R0XcU5ceRfyO3I6ayeqIfh+6Wb8LGTw==", "dependencies": { "@floating-ui/core": "^1.0.0", "@floating-ui/utils": "^0.2.0" } }, "node_modules/@floating-ui/react": { - "version": "0.26.13", - "resolved": "https://registry.npmjs.org/@floating-ui/react/-/react-0.26.13.tgz", - "integrity": "sha512-kBa9wntpugzrZ8t/4yWelvSmEKZdeTXTJzrxqyrLmcU/n1SM4nvse8yQh2e1b37rJGvtu0EplV9+IkBrCJ1vkw==", + "version": "0.26.16", + "resolved": "https://registry.npmjs.org/@floating-ui/react/-/react-0.26.16.tgz", + "integrity": "sha512-HEf43zxZNAI/E781QIVpYSF3K2VH4TTYZpqecjdsFkjsaU1EbaWcM++kw0HXFffj7gDUcBFevX8s0rQGQpxkow==", "dependencies": { - "@floating-ui/react-dom": "^2.0.0", + "@floating-ui/react-dom": "^2.1.0", "@floating-ui/utils": "^0.2.0", "tabbable": "^6.0.0" }, @@ -1077,9 +1034,9 @@ } }, "node_modules/@floating-ui/react-dom": { - "version": "2.0.9", - "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.0.9.tgz", - "integrity": "sha512-q0umO0+LQK4+p6aGyvzASqKbKOJcAHJ7ycE9CuUvfx3s9zTHWmGJTPOIlM/hmSBfUfg/XfY5YhLBLR/LHwShQQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.0.tgz", + "integrity": "sha512-lNzj5EQmEKn5FFKc04+zasr09h/uX8RtJRNj5gUXsSQIXHVWTVh+hVAg1vOMCexkX8EgvemMvIFpQfkosnVNyA==", "dependencies": { "@floating-ui/dom": "^1.0.0" }, @@ -1089,9 +1046,9 @@ } }, "node_modules/@floating-ui/utils": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.1.tgz", - "integrity": "sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q==" + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.2.tgz", + "integrity": "sha512-J4yDIIthosAsRZ5CPYP/jQvUAQtlZTTD/4suA08/FEnlxqW3sKS9iAhgsa9VYLZ6vDHn/ixJgIqRQPotoBjxIw==" }, "node_modules/@github/webauthn-json": { "version": "2.1.1", @@ -1209,7 +1166,6 @@ "version": "0.3.5", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", - "dev": true, "dependencies": { "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -1223,7 +1179,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, "engines": { "node": ">=6.0.0" } @@ -1232,7 +1187,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", - "dev": true, "engines": { "node": ">=6.0.0" } @@ -1240,14 +1194,12 @@ "node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.15", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.25", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", - "dev": true, "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" @@ -1303,9 +1255,9 @@ } }, "node_modules/@react-aria/ssr": { - "version": "3.9.2", - "resolved": "https://registry.npmjs.org/@react-aria/ssr/-/ssr-3.9.2.tgz", - "integrity": "sha512-0gKkgDYdnq1w+ey8KzG9l+H5Z821qh9vVjztk55rUg71vTk/Eaebeir+WtzcLLwTjw3m/asIjx8Y59y1lJZhBw==", + "version": "3.9.4", + "resolved": "https://registry.npmjs.org/@react-aria/ssr/-/ssr-3.9.4.tgz", + "integrity": "sha512-4jmAigVq409qcJvQyuorsmBR4+9r3+JEC60wC+Y0MZV0HCtTmm8D9guYXlJMdx0SSkgj0hHAyFm/HvPNFofCoQ==", "dependencies": { "@swc/helpers": "^0.5.0" }, @@ -1378,9 +1330,9 @@ } }, "node_modules/@restart/ui": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@restart/ui/-/ui-1.6.8.tgz", - "integrity": "sha512-6ndCv3oZ7r9vuP1Ok9KH55TM1/UkdBnP/fSraW0DFDMbPMzWKhVKeFAIEUCRCSdzayjZDcFYK6xbMlipN9dmMA==", + "version": "1.6.9", + "resolved": "https://registry.npmjs.org/@restart/ui/-/ui-1.6.9.tgz", + "integrity": "sha512-mUbygUsJcRurjZCt1f77gg4DpheD1D+Sc7J3JjAkysUj7t8m4EBJVOqWC9788Qtbc69cJ+HlJc6jBguKwS8Mcw==", "dependencies": { "@babel/runtime": "^7.21.0", "@popperjs/core": "^2.11.6", @@ -1406,9 +1358,9 @@ } }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.14.3.tgz", - "integrity": "sha512-X9alQ3XM6I9IlSlmC8ddAvMSyG1WuHk5oUnXGw+yUBs3BFoTizmG1La/Gr8fVJvDWAq+zlYTZ9DBgrlKRVY06g==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.0.tgz", + "integrity": "sha512-Tya6xypR10giZV1XzxmH5wr25VcZSncG0pZIjfePT0OVBvqNEurzValetGNarVrGiq66EBVAFn15iYX4w6FKgQ==", "cpu": [ "arm" ], @@ -1419,9 +1371,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.14.3.tgz", - "integrity": "sha512-eQK5JIi+POhFpzk+LnjKIy4Ks+pwJ+NXmPxOCSvOKSNRPONzKuUvWE+P9JxGZVxrtzm6BAYMaL50FFuPe0oWMQ==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.18.0.tgz", + "integrity": "sha512-avCea0RAP03lTsDhEyfy+hpfr85KfyTctMADqHVhLAF3MlIkq83CP8UfAHUssgXTYd+6er6PaAhx/QGv4L1EiA==", "cpu": [ "arm64" ], @@ -1432,9 +1384,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.14.3.tgz", - "integrity": "sha512-Od4vE6f6CTT53yM1jgcLqNfItTsLt5zE46fdPaEmeFHvPs5SjZYlLpHrSiHEKR1+HdRfxuzXHjDOIxQyC3ptBA==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.18.0.tgz", + "integrity": "sha512-IWfdwU7KDSm07Ty0PuA/W2JYoZ4iTj3TUQjkVsO/6U+4I1jN5lcR71ZEvRh52sDOERdnNhhHU57UITXz5jC1/w==", "cpu": [ "arm64" ], @@ -1445,9 +1397,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.14.3.tgz", - "integrity": "sha512-0IMAO21axJeNIrvS9lSe/PGthc8ZUS+zC53O0VhF5gMxfmcKAP4ESkKOCwEi6u2asUrt4mQv2rjY8QseIEb1aw==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.18.0.tgz", + "integrity": "sha512-n2LMsUz7Ynu7DoQrSQkBf8iNrjOGyPLrdSg802vk6XT3FtsgX6JbE8IHRvposskFm9SNxzkLYGSq9QdpLYpRNA==", "cpu": [ "x64" ], @@ -1458,9 +1410,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.14.3.tgz", - "integrity": "sha512-ge2DC7tHRHa3caVEoSbPRJpq7azhG+xYsd6u2MEnJ6XzPSzQsTKyXvh6iWjXRf7Rt9ykIUWHtl0Uz3T6yXPpKw==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.18.0.tgz", + "integrity": "sha512-C/zbRYRXFjWvz9Z4haRxcTdnkPt1BtCkz+7RtBSuNmKzMzp3ZxdM28Mpccn6pt28/UWUCTXa+b0Mx1k3g6NOMA==", "cpu": [ "arm" ], @@ -1471,9 +1423,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.14.3.tgz", - "integrity": "sha512-ljcuiDI4V3ySuc7eSk4lQ9wU8J8r8KrOUvB2U+TtK0TiW6OFDmJ+DdIjjwZHIw9CNxzbmXY39wwpzYuFDwNXuw==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.18.0.tgz", + "integrity": "sha512-l3m9ewPgjQSXrUMHg93vt0hYCGnrMOcUpTz6FLtbwljo2HluS4zTXFy2571YQbisTnfTKPZ01u/ukJdQTLGh9A==", "cpu": [ "arm" ], @@ -1484,9 +1436,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.14.3.tgz", - "integrity": "sha512-Eci2us9VTHm1eSyn5/eEpaC7eP/mp5n46gTRB3Aar3BgSvDQGJZuicyq6TsH4HngNBgVqC5sDYxOzTExSU+NjA==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.18.0.tgz", + "integrity": "sha512-rJ5D47d8WD7J+7STKdCUAgmQk49xuFrRi9pZkWoRD1UeSMakbcepWXPF8ycChBoAqs1pb2wzvbY6Q33WmN2ftw==", "cpu": [ "arm64" ], @@ -1497,9 +1449,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.14.3.tgz", - "integrity": "sha512-UrBoMLCq4E92/LCqlh+blpqMz5h1tJttPIniwUgOFJyjWI1qrtrDhhpHPuFxULlUmjFHfloWdixtDhSxJt5iKw==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.18.0.tgz", + "integrity": "sha512-be6Yx37b24ZwxQ+wOQXXLZqpq4jTckJhtGlWGZs68TgdKXJgw54lUUoFYrg6Zs/kjzAQwEwYbp8JxZVzZLRepQ==", "cpu": [ "arm64" ], @@ -1510,9 +1462,9 @@ ] }, "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.14.3.tgz", - "integrity": "sha512-5aRjvsS8q1nWN8AoRfrq5+9IflC3P1leMoy4r2WjXyFqf3qcqsxRCfxtZIV58tCxd+Yv7WELPcO9mY9aeQyAmw==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.18.0.tgz", + "integrity": "sha512-hNVMQK+qrA9Todu9+wqrXOHxFiD5YmdEi3paj6vP02Kx1hjd2LLYR2eaN7DsEshg09+9uzWi2W18MJDlG0cxJA==", "cpu": [ "ppc64" ], @@ -1523,9 +1475,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.14.3.tgz", - "integrity": "sha512-sk/Qh1j2/RJSX7FhEpJn8n0ndxy/uf0kI/9Zc4b1ELhqULVdTfN6HL31CDaTChiBAOgLcsJ1sgVZjWv8XNEsAQ==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.18.0.tgz", + "integrity": "sha512-ROCM7i+m1NfdrsmvwSzoxp9HFtmKGHEqu5NNDiZWQtXLA8S5HBCkVvKAxJ8U+CVctHwV2Gb5VUaK7UAkzhDjlg==", "cpu": [ "riscv64" ], @@ -1536,9 +1488,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.14.3.tgz", - "integrity": "sha512-jOO/PEaDitOmY9TgkxF/TQIjXySQe5KVYB57H/8LRP/ux0ZoO8cSHCX17asMSv3ruwslXW/TLBcxyaUzGRHcqg==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.18.0.tgz", + "integrity": "sha512-0UyyRHyDN42QL+NbqevXIIUnKA47A+45WyasO+y2bGJ1mhQrfrtXUpTxCOrfxCR4esV3/RLYyucGVPiUsO8xjg==", "cpu": [ "s390x" ], @@ -1549,9 +1501,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.14.3.tgz", - "integrity": "sha512-8ybV4Xjy59xLMyWo3GCfEGqtKV5M5gCSrZlxkPGvEPCGDLNla7v48S662HSGwRd6/2cSneMQWiv+QzcttLrrOA==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.18.0.tgz", + "integrity": "sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w==", "cpu": [ "x64" ], @@ -1562,9 +1514,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.14.3.tgz", - "integrity": "sha512-s+xf1I46trOY10OqAtZ5Rm6lzHre/UiLA1J2uOhCFXWkbZrJRkYBPO6FhvGfHmdtQ3Bx793MNa7LvoWFAm93bg==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.18.0.tgz", + "integrity": "sha512-LKaqQL9osY/ir2geuLVvRRs+utWUNilzdE90TpyoX0eNqPzWjRm14oMEE+YLve4k/NAqCdPkGYDaDF5Sw+xBfg==", "cpu": [ "x64" ], @@ -1575,9 +1527,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.14.3.tgz", - "integrity": "sha512-+4h2WrGOYsOumDQ5S2sYNyhVfrue+9tc9XcLWLh+Kw3UOxAvrfOrSMFon60KspcDdytkNDh7K2Vs6eMaYImAZg==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.18.0.tgz", + "integrity": "sha512-7J6TkZQFGo9qBKH0pk2cEVSRhJbL6MtfWxth7Y5YmZs57Pi+4x6c2dStAUvaQkHQLnEQv1jzBUW43GvZW8OFqA==", "cpu": [ "arm64" ], @@ -1588,9 +1540,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.14.3.tgz", - "integrity": "sha512-T1l7y/bCeL/kUwh9OD4PQT4aM7Bq43vX05htPJJ46RTI4r5KNt6qJRzAfNfM+OYMNEVBWQzR2Gyk+FXLZfogGw==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.18.0.tgz", + "integrity": "sha512-Txjh+IxBPbkUB9+SXZMpv+b/vnTEtFyfWZgJ6iyCmt2tdx0OF5WhFowLmnh8ENGNpfUlUZkdI//4IEmhwPieNg==", "cpu": [ "ia32" ], @@ -1601,9 +1553,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.14.3.tgz", - "integrity": "sha512-/BypzV0H1y1HzgYpxqRaXGBRqfodgoBBCcsrujT6QRcakDQdfU+Lq9PENPh5jB4I44YWq+0C2eHsHya+nZY1sA==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.18.0.tgz", + "integrity": "sha512-UOo5FdvOL0+eIVTgS4tIdbW+TtnBLWg1YBCcU2KWM7nuNwRz9bksDX1bekJJCpu25N1DVWaCwnT39dVQxzqS8g==", "cpu": [ "x64" ], @@ -1789,22 +1741,13 @@ } }, "node_modules/@swc/helpers": { - "version": "0.5.10", - "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.10.tgz", - "integrity": "sha512-CU+RF9FySljn7HVSkkjiB84hWkvTaI3rtLvF433+jRSBL2hMu3zX5bGhHS8C80SM++h4xy8hBSnUHFQHmRXSBw==", + "version": "0.5.11", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.11.tgz", + "integrity": "sha512-YNlnKRWF2sVojTpIyzwou9XoTNbzbzONwRhOoniEioF1AtaitTvVZblaQRrAzChWQ1bLYyYSWzM18y4WwgzJ+A==", "dependencies": { "tslib": "^2.4.0" } }, - "node_modules/@tootallnate/once": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", - "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", - "dev": true, - "engines": { - "node": ">= 10" - } - }, "node_modules/@types/babel__core": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", @@ -1838,9 +1781,9 @@ } }, "node_modules/@types/babel__traverse": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.5.tgz", - "integrity": "sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==", + "version": "7.20.6", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.6.tgz", + "integrity": "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==", "dev": true, "dependencies": { "@babel/types": "^7.20.7" @@ -1854,6 +1797,25 @@ "@types/ms": "*" } }, + "node_modules/@types/eslint": { + "version": "8.56.10", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.10.tgz", + "integrity": "sha512-Shavhk87gCtY2fhXDctcfS3e6FdxWkCx1iUZ9eEUbh7rTqlZT0/IzOkCOVt0fCjcFuZ9FPYfuezTBImfHCDBGQ==", + "dev": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint__js": { + "version": "8.42.3", + "resolved": "https://registry.npmjs.org/@types/eslint__js/-/eslint__js-8.42.3.tgz", + "integrity": "sha512-alfG737uhmPdnvkrLdZLcEKJ/B8s9Y4hrZ+YAdzUeoArBlSUERA2E87ROfOaS4jd/C45fzOoZzidLc1IPwLqOw==", + "dev": true, + "dependencies": { + "@types/eslint": "*" + } + }, "node_modules/@types/estree": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", @@ -1908,9 +1870,9 @@ "dev": true }, "node_modules/@types/mdast": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.3.tgz", - "integrity": "sha512-LsjtqsyF+d2/yFOYaN22dHZI1Cpwkrj+g06G8+qtUKlhovPW89YhqSnfKtMbkgmEtYpH2gydRNULd6y8mciAFg==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", + "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", "dependencies": { "@types/unist": "*" } @@ -1921,9 +1883,9 @@ "integrity": "sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==" }, "node_modules/@types/node": { - "version": "20.12.13", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.13.tgz", - "integrity": "sha512-gBGeanV41c1L171rR7wjbMiEpEI/l5XFQdLLfhr/REwpgDy/4U8y89+i8kRiLzDyZdOkXh+cRaTetUnCYutoXA==", + "version": "20.14.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.2.tgz", + "integrity": "sha512-xyu6WAMVwv6AKFLB+e/7ySZVr/0zLCzOa7rSpq6jNwpqOrUbcACDWC+53d4n2QHOnDou0fbIsg8wZu/sxrnI4Q==", "dev": true, "dependencies": { "undici-types": "~5.26.4" @@ -1985,12 +1947,6 @@ "redux": "^5.0.0" } }, - "node_modules/@types/semver": { - "version": "7.5.8", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz", - "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==", - "dev": true - }, "node_modules/@types/unist": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz", @@ -2007,33 +1963,31 @@ "integrity": "sha512-D1XC7WK8K+zZEveUPY+cf4+kgauk8N4eHr/XIHXGlGYkHLud6hK9lYfZk1ry1TNh798cZUCgb6MqGEG8DkJt6Q==" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.21.0.tgz", - "integrity": "sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==", + "version": "7.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.12.0.tgz", + "integrity": "sha512-7F91fcbuDf/d3S8o21+r3ZncGIke/+eWk0EpO21LXhDfLahriZF9CGj4fbAetEjlaBdjdSm9a6VeXbpbT6Z40Q==", "dev": true, "dependencies": { - "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.21.0", - "@typescript-eslint/type-utils": "6.21.0", - "@typescript-eslint/utils": "6.21.0", - "@typescript-eslint/visitor-keys": "6.21.0", - "debug": "^4.3.4", + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "7.12.0", + "@typescript-eslint/type-utils": "7.12.0", + "@typescript-eslint/utils": "7.12.0", + "@typescript-eslint/visitor-keys": "7.12.0", "graphemer": "^1.4.0", - "ignore": "^5.2.4", + "ignore": "^5.3.1", "natural-compare": "^1.4.0", - "semver": "^7.5.4", - "ts-api-utils": "^1.0.1" + "ts-api-utils": "^1.3.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", - "eslint": "^7.0.0 || ^8.0.0" + "@typescript-eslint/parser": "^7.0.0", + "eslint": "^8.56.0" }, "peerDependenciesMeta": { "typescript": { @@ -2041,60 +1995,27 @@ } } }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/@typescript-eslint/parser": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.21.0.tgz", - "integrity": "sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==", + "version": "7.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.12.0.tgz", + "integrity": "sha512-dm/J2UDY3oV3TKius2OUZIFHsomQmpHtsV0FTh1WO8EKgHLQ1QCADUqscPgTpU+ih1e21FQSRjXckHn3txn6kQ==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.21.0", - "@typescript-eslint/types": "6.21.0", - "@typescript-eslint/typescript-estree": "6.21.0", - "@typescript-eslint/visitor-keys": "6.21.0", + "@typescript-eslint/scope-manager": "7.12.0", + "@typescript-eslint/types": "7.12.0", + "@typescript-eslint/typescript-estree": "7.12.0", + "@typescript-eslint/visitor-keys": "7.12.0", "debug": "^4.3.4" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" + "eslint": "^8.56.0" }, "peerDependenciesMeta": { "typescript": { @@ -2103,16 +2024,16 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz", - "integrity": "sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==", + "version": "7.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.12.0.tgz", + "integrity": "sha512-itF1pTnN6F3unPak+kutH9raIkL3lhH1YRPGgt7QQOh43DQKVJXmWkpb+vpc/TiDHs6RSd9CTbDsc/Y+Ygq7kg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.21.0", - "@typescript-eslint/visitor-keys": "6.21.0" + "@typescript-eslint/types": "7.12.0", + "@typescript-eslint/visitor-keys": "7.12.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", @@ -2120,25 +2041,25 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.21.0.tgz", - "integrity": "sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==", + "version": "7.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.12.0.tgz", + "integrity": "sha512-lib96tyRtMhLxwauDWUp/uW3FMhLA6D0rJ8T7HmH7x23Gk1Gwwu8UZ94NMXBvOELn6flSPiBrCKlehkiXyaqwA==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.21.0", - "@typescript-eslint/utils": "6.21.0", + "@typescript-eslint/typescript-estree": "7.12.0", + "@typescript-eslint/utils": "7.12.0", "debug": "^4.3.4", - "ts-api-utils": "^1.0.1" + "ts-api-utils": "^1.3.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" + "eslint": "^8.56.0" }, "peerDependenciesMeta": { "typescript": { @@ -2147,12 +2068,12 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.21.0.tgz", - "integrity": "sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==", + "version": "7.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.12.0.tgz", + "integrity": "sha512-o+0Te6eWp2ppKY3mLCU+YA9pVJxhUJE15FV7kxuD9jgwIAa+w/ycGJBMrYDTpVGUM/tgpa9SeMOugSabWFq7bg==", "dev": true, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", @@ -2160,22 +2081,22 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz", - "integrity": "sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==", + "version": "7.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.12.0.tgz", + "integrity": "sha512-5bwqLsWBULv1h6pn7cMW5dXX/Y2amRqLaKqsASVwbBHMZSnHqE/HN4vT4fE0aFsiwxYvr98kqOWh1a8ZKXalCQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.21.0", - "@typescript-eslint/visitor-keys": "6.21.0", + "@typescript-eslint/types": "7.12.0", + "@typescript-eslint/visitor-keys": "7.12.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", - "minimatch": "9.0.3", - "semver": "^7.5.4", - "ts-api-utils": "^1.0.1" + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", @@ -2196,22 +2117,10 @@ "balanced-match": "^1.0.0" } }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", + "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", "dev": true, "dependencies": { "brace-expansion": "^2.0.1" @@ -2224,13 +2133,10 @@ } }, "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -2238,81 +2144,39 @@ "node": ">=10" } }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/@typescript-eslint/utils": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.21.0.tgz", - "integrity": "sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==", + "version": "7.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.12.0.tgz", + "integrity": "sha512-Y6hhwxwDx41HNpjuYswYp6gDbkiZ8Hin9Bf5aJQn1bpTs3afYY4GX+MPYxma8jtoIV2GRwTM/UJm/2uGCVv+DQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "@types/json-schema": "^7.0.12", - "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.21.0", - "@typescript-eslint/types": "6.21.0", - "@typescript-eslint/typescript-estree": "6.21.0", - "semver": "^7.5.4" + "@typescript-eslint/scope-manager": "7.12.0", + "@typescript-eslint/types": "7.12.0", + "@typescript-eslint/typescript-estree": "7.12.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" + "eslint": "^8.56.0" } }, - "node_modules/@typescript-eslint/utils/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz", - "integrity": "sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==", + "version": "7.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.12.0.tgz", + "integrity": "sha512-uZk7DevrQLL3vSnfFl5bj4sL75qC9D6EdjemIdbtkuUmIheWpuiiylSY01JxJE7+zGrOWDZrp1WxOuDntvKrHQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.21.0", - "eslint-visitor-keys": "^3.4.1" + "@typescript-eslint/types": "7.12.0", + "eslint-visitor-keys": "^3.4.3" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", @@ -2375,13 +2239,6 @@ "url": "https://github.com/sponsors/antfu" } }, - "node_modules/abab": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", - "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", - "deprecated": "Use your platform's native atob() and btoa() methods instead", - "dev": true - }, "node_modules/acorn": { "version": "8.11.3", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", @@ -2394,28 +2251,6 @@ "node": ">=0.4.0" } }, - "node_modules/acorn-globals": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", - "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", - "dev": true, - "dependencies": { - "acorn": "^7.1.1", - "acorn-walk": "^7.1.1" - } - }, - "node_modules/acorn-globals/node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", @@ -2425,27 +2260,6 @@ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, "node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -2631,16 +2445,19 @@ } }, "node_modules/array.prototype.tosorted": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.3.tgz", - "integrity": "sha512-/DdH4TiTmOKzyQbp/eadcCVexiCb36xJg7HshYOYJnNZFDj33GEv0P7GxsynpShhq4OLYJzbGcBDkLsDt7MnNg==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz", + "integrity": "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==", "dev": true, "dependencies": { - "call-bind": "^1.0.5", + "call-bind": "^1.0.7", "define-properties": "^1.2.1", - "es-abstract": "^1.22.3", - "es-errors": "^1.1.0", + "es-abstract": "^1.23.3", + "es-errors": "^1.3.0", "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" } }, "node_modules/arraybuffer.prototype.slice": { @@ -2777,23 +2594,17 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" } }, - "node_modules/browser-process-hrtime": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", - "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", - "dev": true - }, "node_modules/browserslist": { "version": "4.23.0", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.0.tgz", @@ -2826,60 +2637,6 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, - "node_modules/builtin-modules": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", - "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", - "dev": true, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/builtins": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/builtins/-/builtins-5.1.0.tgz", - "integrity": "sha512-SW9lzGTLvWTP1AY8xeAMZimqDrIaSdLQUcVr9DMef51niJ022Ri87SwRRKYm4A6iHfkPaiVUu/Duw2Wc4J7kKg==", - "dev": true, - "dependencies": { - "semver": "^7.0.0" - } - }, - "node_modules/builtins/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/builtins/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/builtins/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/call-bind": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", @@ -2907,9 +2664,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001610", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001610.tgz", - "integrity": "sha512-QFutAY4NgaelojVMjY63o6XlZyORPaLfyMnsl3HgnWdJUcX6K0oaJymHjH8PT5Gk7sTm8rvC/c5COUQKXqmOMA==", + "version": "1.0.30001628", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001628.tgz", + "integrity": "sha512-S3BnR4Kh26TBxbi5t5kpbcUlLJb9lhtDXISDPwOfI+JoC+ik0QksvkZtUVyikw3hjnkgkMPSJ8oIM9yMm9vflA==", "dev": true, "funding": [ { @@ -3090,30 +2847,6 @@ "node": ">= 8" } }, - "node_modules/cssom": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz", - "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==", - "dev": true - }, - "node_modules/cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "dev": true, - "dependencies": { - "cssom": "~0.3.6" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cssstyle/node_modules/cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", - "dev": true - }, "node_modules/csstype": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", @@ -3125,33 +2858,6 @@ "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", "dev": true }, - "node_modules/data-urls": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz", - "integrity": "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==", - "dev": true, - "dependencies": { - "abab": "^2.0.6", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^11.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/data-urls/node_modules/whatwg-url": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", - "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", - "dev": true, - "dependencies": { - "tr46": "^3.0.0", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/data-view-buffer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.1.tgz", @@ -3213,9 +2919,9 @@ } }, "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", + "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", "dependencies": { "ms": "2.1.2" }, @@ -3228,12 +2934,6 @@ } } }, - "node_modules/decimal.js": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", - "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", - "dev": true - }, "node_modules/decode-named-character-reference": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz", @@ -3360,23 +3060,10 @@ "csstype": "^3.0.2" } }, - "node_modules/domexception": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz", - "integrity": "sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==", - "deprecated": "Use your platform's native DOMException instead", - "dev": true, - "dependencies": { - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/electron-to-chromium": { - "version": "1.4.737", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.737.tgz", - "integrity": "sha512-QvLTxaLHKdy5YxvixAw/FfHq2eWLUL9KvsPjp0aHK1gI5d3EDuDgITkvj0nFO2c6zUY3ZqVAJQiBYyQP9tQpfw==", + "version": "1.4.790", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.790.tgz", + "integrity": "sha512-eVGeQxpaBYbomDBa/Mehrs28MdvCXfJmEFzaMFsv8jH/MJDLIylJN81eTJ5kvx7B7p18OiPK0BkC06lydEy63A==", "dev": true }, "node_modules/emoji-name-map": { @@ -3401,9 +3088,9 @@ "integrity": "sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==" }, "node_modules/enhanced-resolve": { - "version": "5.16.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.16.0.tgz", - "integrity": "sha512-O+QWCviPNSSLAD9Ucn8Awv+poAkqn3T1XY5/N7kR7rQO9yfSGWkYZDwpJ+iKF7B8rxaQKWngSqACpgzeapSyoA==", + "version": "5.17.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.17.0.tgz", + "integrity": "sha512-dwDPwZL0dmye8Txp2gzFmA6sxALaSvdRDjPH0viLcKrtlOL3tw62nWWweVD1SdILDTJrbrL6tdWVN58Wo6U3eA==", "dev": true, "dependencies": { "graceful-fs": "^4.2.4", @@ -3632,37 +3319,6 @@ "node": ">=0.8.0" } }, - "node_modules/escodegen": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", - "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", - "dev": true, - "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=6.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, - "node_modules/escodegen/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/eslint": { "version": "8.57.0", "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", @@ -3718,102 +3374,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint-compat-utils": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/eslint-compat-utils/-/eslint-compat-utils-0.5.0.tgz", - "integrity": "sha512-dc6Y8tzEcSYZMHa+CMPLi/hyo1FzNeonbhJL7Ol0ccuKQkwopJcJBA9YL/xmMTLU1eKigXo9vj9nALElWYSowg==", - "dev": true, - "dependencies": { - "semver": "^7.5.4" - }, - "engines": { - "node": ">=12" - }, - "peerDependencies": { - "eslint": ">=6.0.0" - } - }, - "node_modules/eslint-compat-utils/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/eslint-compat-utils/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/eslint-compat-utils/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/eslint-config-standard": { - "version": "17.1.0", - "resolved": "https://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-17.1.0.tgz", - "integrity": "sha512-IwHwmaBNtDK4zDHQukFDW5u/aTb8+meQWZvNFWkiGmbWjD6bqyuSSBxxXKkCftCUzc1zwCH2m/baCNDLGmuO5Q==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "eslint": "^8.0.1", - "eslint-plugin-import": "^2.25.2", - "eslint-plugin-n": "^15.0.0 || ^16.0.0 ", - "eslint-plugin-promise": "^6.0.0" - } - }, - "node_modules/eslint-config-standard-with-typescript": { - "version": "43.0.1", - "resolved": "https://registry.npmjs.org/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-43.0.1.tgz", - "integrity": "sha512-WfZ986+qzIzX6dcr4yGUyVb/l9N3Z8wPXCc5z/70fljs3UbWhhV+WxrfgsqMToRzuuyX9MqZ974pq2UPhDTOcA==", - "deprecated": "Please use eslint-config-love, instead.", - "dev": true, - "dependencies": { - "@typescript-eslint/parser": "^6.4.0", - "eslint-config-standard": "17.1.0" - }, - "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^6.4.0", - "eslint": "^8.0.1", - "eslint-plugin-import": "^2.25.2", - "eslint-plugin-n": "^15.0.0 || ^16.0.0 ", - "eslint-plugin-promise": "^6.0.0", - "typescript": "*" - } - }, "node_modules/eslint-import-resolver-node": { "version": "0.3.9", "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", @@ -3885,26 +3445,6 @@ "ms": "^2.1.1" } }, - "node_modules/eslint-plugin-es-x": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-es-x/-/eslint-plugin-es-x-7.6.0.tgz", - "integrity": "sha512-I0AmeNgevgaTR7y2lrVCJmGYF0rjoznpDvqV/kIkZSZbZ8Rw3eu4cGlvBBULScfkSOCzqKbff5LR4CNrV7mZHA==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.1.2", - "@eslint-community/regexpp": "^4.6.0", - "eslint-compat-utils": "^0.5.0" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ota-meshi" - }, - "peerDependencies": { - "eslint": ">=8" - } - }, "node_modules/eslint-plugin-import": { "version": "2.29.1", "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz", @@ -3987,82 +3527,6 @@ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" } }, - "node_modules/eslint-plugin-n": { - "version": "16.6.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-16.6.2.tgz", - "integrity": "sha512-6TyDmZ1HXoFQXnhCTUjVFULReoBPOAjpuiKELMkeP40yffI/1ZRO+d9ug/VC6fqISo2WkuIBk3cvuRPALaWlOQ==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "builtins": "^5.0.1", - "eslint-plugin-es-x": "^7.5.0", - "get-tsconfig": "^4.7.0", - "globals": "^13.24.0", - "ignore": "^5.2.4", - "is-builtin-module": "^3.2.1", - "is-core-module": "^2.12.1", - "minimatch": "^3.1.2", - "resolve": "^1.22.2", - "semver": "^7.5.3" - }, - "engines": { - "node": ">=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=7.0.0" - } - }, - "node_modules/eslint-plugin-n/node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint-plugin-n/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/eslint-plugin-n/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/eslint-plugin-n/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/eslint-plugin-promise": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-6.2.0.tgz", @@ -4204,36 +3668,13 @@ }, "funding": { "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/@eslint/eslintrc": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", - "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", - "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, @@ -4359,6 +3800,18 @@ "node": ">=8" } }, + "node_modules/eslint/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/espree": { "version": "9.6.1", "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", @@ -4376,19 +3829,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/esquery": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", @@ -4500,9 +3940,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "dependencies": { "to-regex-range": "^5.0.1" @@ -4725,9 +4165,9 @@ } }, "node_modules/get-tsconfig": { - "version": "4.7.3", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.3.tgz", - "integrity": "sha512-ZvkrzoUA0PQZM6fy6+/Hce561s+faD1rsNwhnO5FelNjyy7EMGJ3Rz1AQ8GYDWjhRs/7dBLOEJvhK8MiEJOAFg==", + "version": "4.7.5", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.5.tgz", + "integrity": "sha512-ZCuZCnlqNzjb4QprAzXKdpp/gh6KTxSJuw3IBsPnV/7fV4NxC9ckB+vPTt8w7fJA0TaSD7c55BR47JD6MEDyDw==", "dev": true, "dependencies": { "resolve-pkg-maps": "^1.0.0" @@ -4740,6 +4180,7 @@ "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, "dependencies": { "fs.realpath": "^1.0.0", @@ -4781,12 +4222,13 @@ } }, "node_modules/globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", "dev": true, "dependencies": { - "define-properties": "^1.1.3" + "define-properties": "^1.2.1", + "gopd": "^1.0.1" }, "engines": { "node": ">= 0.4" @@ -4968,18 +4410,6 @@ "react-is": "^16.7.0" } }, - "node_modules/html-encoding-sniffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", - "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", - "dev": true, - "dependencies": { - "whatwg-encoding": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/html-url-attributes": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.0.tgz", @@ -4989,45 +4419,6 @@ "url": "https://opencollective.com/unified" } }, - "node_modules/http-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", - "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", - "dev": true, - "dependencies": { - "@tootallnate/once": "2", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/ignore": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", @@ -5038,9 +4429,9 @@ } }, "node_modules/immer": { - "version": "10.0.4", - "resolved": "https://registry.npmjs.org/immer/-/immer-10.0.4.tgz", - "integrity": "sha512-cuBuGK40P/sk5IzWa9QPUaAdvPHjkk1c+xYsd9oZw+YQQEV+10G0P5uMpGctZZKnyQ+ibRO08bD25nWLmYi2pw==", + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/immer/-/immer-10.1.1.tgz", + "integrity": "sha512-s2MPrmjovJcoMaHtx6K11Ra7oD05NT97w1IC5zpMkT6Atjr7H8LjaDd81iIxUYpMKSRRNMJE703M1Fhr/TctHw==", "funding": { "type": "opencollective", "url": "https://opencollective.com/immer" @@ -5074,6 +4465,7 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", "dev": true, "dependencies": { "once": "^1.3.0", @@ -5199,21 +4591,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-builtin-module": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.1.tgz", - "integrity": "sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==", - "dev": true, - "dependencies": { - "builtin-modules": "^3.3.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/is-callable": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", @@ -5401,12 +4778,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "dev": true - }, "node_modules/is-regex": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", @@ -5566,9 +4937,9 @@ } }, "node_modules/jiti": { - "version": "1.21.0", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.0.tgz", - "integrity": "sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==", + "version": "1.21.3", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.3.tgz", + "integrity": "sha512-uy2bNX5zQ+tESe+TiC7ilGRz8AtRGmnJH55NC5S0nSUjvvvM2hJHmefHErugGXN4pNv4Qx7vLsnNw9qJ9mtIsw==", "dev": true, "bin": { "jiti": "bin/jiti.js" @@ -5591,57 +4962,10 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/jsdom": { - "version": "19.0.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-19.0.0.tgz", - "integrity": "sha512-RYAyjCbxy/vri/CfnjUWJQQtZ3LKlLnDqj+9XLNnJPgEGeirZs3hllKR20re8LUZ6o1b1X4Jat+Qd26zmP41+A==", - "dev": true, - "dependencies": { - "abab": "^2.0.5", - "acorn": "^8.5.0", - "acorn-globals": "^6.0.0", - "cssom": "^0.5.0", - "cssstyle": "^2.3.0", - "data-urls": "^3.0.1", - "decimal.js": "^10.3.1", - "domexception": "^4.0.0", - "escodegen": "^2.0.0", - "form-data": "^4.0.0", - "html-encoding-sniffer": "^3.0.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.0", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.0", - "parse5": "6.0.1", - "saxes": "^5.0.1", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.0.0", - "w3c-hr-time": "^1.0.2", - "w3c-xmlserializer": "^3.0.0", - "webidl-conversions": "^7.0.0", - "whatwg-encoding": "^2.0.0", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^10.0.0", - "ws": "^8.2.3", - "xml-name-validator": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true, "bin": { "jsesc": "bin/jsesc" }, @@ -5720,9 +5044,9 @@ "dev": true }, "node_modules/language-subtag-registry": { - "version": "0.3.22", - "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", - "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==", + "version": "0.3.23", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz", + "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==", "dev": true }, "node_modules/language-tags": { @@ -5873,9 +5197,9 @@ } }, "node_modules/mdast-util-from-markdown": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.0.tgz", - "integrity": "sha512-n7MTOr/z+8NAX/wmhhDji8O3bRvPTV/U0oTCaZJkjhPSKTPhS3xufVhKGF8s1pJ7Ox4QgoIU7KHseh09S+9rTA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.1.tgz", + "integrity": "sha512-aJEUyzZ6TzlsX2s5B4Of7lN7EQtAxvtradMMglCQDyaTFgse6CmtmdJ15ElnVRlCg1vpNyVtbem0PWzlNieZsA==", "dependencies": { "@types/mdast": "^4.0.0", "@types/unist": "^3.0.0", @@ -6161,9 +5485,9 @@ } }, "node_modules/micromark-core-commonmark": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.0.tgz", - "integrity": "sha512-jThOz/pVmAYUtkroV3D5c1osFXAMv9e0ypGDOIZuCeAe91/sD6BoE2Sjzt30yuXtwOYUmySOhMas/PVyh02itA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.1.tgz", + "integrity": "sha512-CUQyKr1e///ZODyD1U3xit6zXwy1a8q2a1S1HKtIlmgvurrEpaw/Y9y6KSIbF8P59cn/NjzHyO+Q2fAyYLQrAA==", "funding": [ { "type": "GitHub Sponsors", @@ -6662,12 +5986,12 @@ ] }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", + "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", "dev": true, "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { @@ -6754,12 +6078,6 @@ "resolved": "https://registry.npmjs.org/nprogress/-/nprogress-0.2.0.tgz", "integrity": "sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==" }, - "node_modules/nwsapi": { - "version": "2.2.10", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.10.tgz", - "integrity": "sha512-QK0sRs7MKv0tKe1+5uZIQk/C8XGza4DAnztJG8iD+TpJIORARrCxczA738awHrZoHeTjSSoHqao2teO0dC/gFQ==", - "dev": true - }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", @@ -6893,17 +6211,17 @@ } }, "node_modules/optionator": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", - "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", "dev": true, "dependencies": { - "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", - "type-check": "^0.4.0" + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" }, "engines": { "node": ">= 0.8.0" @@ -6991,12 +6309,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", - "dev": true - }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -7038,9 +6350,9 @@ } }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" }, "node_modules/picomatch": { "version": "2.3.1", @@ -7101,9 +6413,9 @@ } }, "node_modules/prettier": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", - "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.1.tgz", + "integrity": "sha512-7CAwy5dRsxs8PHXT3twixW9/OEll8MLE0VRPCJyl7CkS6VHGPSlsVaWTiASPTyGyYRyApxlaWTzwUxVNrhcwDg==", "dev": true, "bin": { "prettier": "bin/prettier.cjs" @@ -7156,12 +6468,6 @@ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" }, - "node_modules/psl": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", - "dev": true - }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", @@ -7185,12 +6491,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/querystringify": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", - "dev": true - }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -7364,9 +6664,9 @@ } }, "node_modules/react-onclickoutside": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/react-onclickoutside/-/react-onclickoutside-6.13.0.tgz", - "integrity": "sha512-ty8So6tcUpIb+ZE+1HAhbLROvAIJYyJe/1vRrrcmW+jLsaM+/powDRqxzo6hSh9CuRZGSL1Q8mvcF5WRD93a0A==", + "version": "6.13.1", + "resolved": "https://registry.npmjs.org/react-onclickoutside/-/react-onclickoutside-6.13.1.tgz", + "integrity": "sha512-LdrrxK/Yh9zbBQdFbMTXPp3dTSN9B+9YJQucdDu3JNKRrbdU+H+/TVONJoWtOwy4II8Sqf1y/DTI6w/vGPYW0w==", "funding": { "type": "individual", "url": "https://github.com/Pomax/react-onclickoutside/blob/master/FUNDING.md" @@ -7608,16 +6908,10 @@ "url": "https://opencollective.com/unified" } }, - "node_modules/requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "dev": true - }, "node_modules/reselect": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.0.tgz", - "integrity": "sha512-aw7jcGLDpSgNDyWBQLv2cedml85qd95/iszJjN988zX1t7AVRJi19d9kto5+W7oCfQ94gyo40dVbT6g2k4/kXg==" + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.1.tgz", + "integrity": "sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==" }, "node_modules/resolve": { "version": "1.22.8", @@ -7666,6 +6960,7 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", "dev": true, "dependencies": { "glob": "^7.1.3" @@ -7678,9 +6973,9 @@ } }, "node_modules/rollup": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.14.3.tgz", - "integrity": "sha512-ag5tTQKYsj1bhrFC9+OEWqb5O6VYgtQDO9hPDBMmIbePwhfSr+ExlcU741t8Dhw5DkPCQf6noz0jb36D6W9/hw==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.18.0.tgz", + "integrity": "sha512-QmJz14PX3rzbJCN1SG4Xe/bAAX2a6NpCP8ab2vfu2GiUr8AQcr2nCV/oEO3yneFarB67zk8ShlIyWb2LGTb3Sg==", "dev": true, "dependencies": { "@types/estree": "1.0.5" @@ -7693,22 +6988,22 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.14.3", - "@rollup/rollup-android-arm64": "4.14.3", - "@rollup/rollup-darwin-arm64": "4.14.3", - "@rollup/rollup-darwin-x64": "4.14.3", - "@rollup/rollup-linux-arm-gnueabihf": "4.14.3", - "@rollup/rollup-linux-arm-musleabihf": "4.14.3", - "@rollup/rollup-linux-arm64-gnu": "4.14.3", - "@rollup/rollup-linux-arm64-musl": "4.14.3", - "@rollup/rollup-linux-powerpc64le-gnu": "4.14.3", - "@rollup/rollup-linux-riscv64-gnu": "4.14.3", - "@rollup/rollup-linux-s390x-gnu": "4.14.3", - "@rollup/rollup-linux-x64-gnu": "4.14.3", - "@rollup/rollup-linux-x64-musl": "4.14.3", - "@rollup/rollup-win32-arm64-msvc": "4.14.3", - "@rollup/rollup-win32-ia32-msvc": "4.14.3", - "@rollup/rollup-win32-x64-msvc": "4.14.3", + "@rollup/rollup-android-arm-eabi": "4.18.0", + "@rollup/rollup-android-arm64": "4.18.0", + "@rollup/rollup-darwin-arm64": "4.18.0", + "@rollup/rollup-darwin-x64": "4.18.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.18.0", + "@rollup/rollup-linux-arm-musleabihf": "4.18.0", + "@rollup/rollup-linux-arm64-gnu": "4.18.0", + "@rollup/rollup-linux-arm64-musl": "4.18.0", + "@rollup/rollup-linux-powerpc64le-gnu": "4.18.0", + "@rollup/rollup-linux-riscv64-gnu": "4.18.0", + "@rollup/rollup-linux-s390x-gnu": "4.18.0", + "@rollup/rollup-linux-x64-gnu": "4.18.0", + "@rollup/rollup-linux-x64-musl": "4.18.0", + "@rollup/rollup-win32-arm64-msvc": "4.18.0", + "@rollup/rollup-win32-ia32-msvc": "4.18.0", + "@rollup/rollup-win32-x64-msvc": "4.18.0", "fsevents": "~2.3.2" } }, @@ -7782,24 +7077,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "node_modules/saxes": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", - "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", - "dev": true, - "dependencies": { - "xmlchars": "^2.2.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/scheduler": { "version": "0.23.2", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", @@ -8091,12 +7368,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "dev": true - }, "node_modules/tabbable": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.2.0.tgz", @@ -8157,33 +7428,6 @@ "resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz", "integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==" }, - "node_modules/tough-cookie": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz", - "integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==", - "dev": true, - "dependencies": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.2.0", - "url-parse": "^1.5.3" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/tr46": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", - "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", - "dev": true, - "dependencies": { - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/trim-lines": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", @@ -8239,9 +7483,9 @@ } }, "node_modules/tslib": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", + "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==" }, "node_modules/type-check": { "version": "0.4.0", @@ -8256,12 +7500,11 @@ } }, "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz", + "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==", "engines": { - "node": ">=10" + "node": ">=12.20" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -8353,6 +7596,32 @@ "node": ">=14.17" } }, + "node_modules/typescript-eslint": { + "version": "7.12.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-7.12.0.tgz", + "integrity": "sha512-D6HKNbQcnNu3BaN4HkQCR16tgG8Q2AMUWPgvhrJksOXu+d6ys07yC06ONiV2kcsEfWC22voB6C3PvK2MqlBZ7w==", + "dev": true, + "dependencies": { + "@typescript-eslint/eslint-plugin": "7.12.0", + "@typescript-eslint/parser": "7.12.0", + "@typescript-eslint/utils": "7.12.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", @@ -8482,19 +7751,10 @@ "url": "https://opencollective.com/unified" } }, - "node_modules/universalify": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", - "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", - "dev": true, - "engines": { - "node": ">= 4.0.0" - } - }, "node_modules/update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz", + "integrity": "sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==", "dev": true, "funding": [ { @@ -8511,8 +7771,8 @@ } ], "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" + "escalade": "^3.1.2", + "picocolors": "^1.0.1" }, "bin": { "update-browserslist-db": "cli.js" @@ -8530,16 +7790,6 @@ "punycode": "^2.1.0" } }, - "node_modules/url-parse": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", - "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", - "dev": true, - "dependencies": { - "querystringify": "^2.1.1", - "requires-port": "^1.0.0" - } - }, "node_modules/use-composed-ref": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/use-composed-ref/-/use-composed-ref-1.3.0.tgz", @@ -8586,9 +7836,9 @@ } }, "node_modules/use-sync-external-store": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz", - "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.2.tgz", + "integrity": "sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==", "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0" } @@ -8758,28 +8008,6 @@ "vite": "^2.0.1 || ^3.0.0 || ^4.0.0 || ^5.0.0" } }, - "node_modules/w3c-hr-time": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", - "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", - "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.", - "dev": true, - "dependencies": { - "browser-process-hrtime": "^1.0.0" - } - }, - "node_modules/w3c-xmlserializer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-3.0.0.tgz", - "integrity": "sha512-3WFqGEgSXIyGhOmAFtlicJNMjEps8b1MG31NCA0/vOF9+nKMUW1ckhi9cnNHmf88Rzw5V+dwIwsm2C7X8k9aQg==", - "dev": true, - "dependencies": { - "xml-name-validator": "^4.0.0" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/warning": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz", @@ -8788,49 +8016,6 @@ "loose-envify": "^1.0.0" } }, - "node_modules/webidl-conversions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/whatwg-encoding": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", - "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", - "dev": true, - "dependencies": { - "iconv-lite": "0.6.3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/whatwg-mimetype": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", - "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/whatwg-url": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-10.0.0.tgz", - "integrity": "sha512-CLxxCmdUby142H5FZzn4D8ikO1cmypvXVQktsgosNy4a4BHrDHeciBBGZhb0bNoR5/MltoCatso+vFjjGx8t0w==", - "dev": true, - "dependencies": { - "tr46": "^3.0.0", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -8937,46 +8122,19 @@ "node": ">= 12" } }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "node_modules/ws": { - "version": "8.17.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.0.tgz", - "integrity": "sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow==", - "dev": true, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/xml-name-validator": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", - "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", "dev": true, "engines": { - "node": ">=12" + "node": ">=0.10.0" } }, - "node_modules/xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "dev": true }, "node_modules/yallist": { @@ -9016,17 +8174,6 @@ "type-fest": "^2.19.0" } }, - "node_modules/yup/node_modules/type-fest": { - "version": "2.19.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz", - "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==", - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/zwitch": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", diff --git a/package.json b/package.json index 2ab99536..91d1a4fd 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "sway-rails", + "name": "sway", "version": "1.0.0", "description": "This README would normally document whatever steps are necessary to get the application up and running.", "main": "index.js", @@ -41,34 +41,31 @@ "yup": "^1.4.0" }, "devDependencies": { - "@dropbox/eslint-plugin-service-worker": "^1.0.0", - "@eslint/eslintrc": "^3.1.0", - "@eslint/js": "^9.3.0", + "@eslint/js": "^9.4.0", + "@types/eslint__js": "^8.42.3", "@types/lodash": "^4.17.4", "@types/node": "^20.12.13", "@types/react": "^18.3.3", "@types/react-datepicker": "^6.2.0", "@types/react-dom": "^18.3.0", "@types/redux-logger": "^3.0.13", - "@typescript-eslint/eslint-plugin": "^6.21.0", "@vitejs/plugin-react": "^4.3.0", "eslint": "^8.57.0", - "eslint-config-standard-with-typescript": "^43.0.1", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-import": "^2.29.1", "eslint-plugin-jsx-a11y": "^6.8.0", - "eslint-plugin-n": "^16.6.2", "eslint-plugin-promise": "^6.2.0", "eslint-plugin-react": "^7.34.2", "eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-react-refresh": "^0.4.7", "eslint-plugin-unused-imports": "^3.2.0", "globals": "^15.3.0", - "prettier": "^3.2.5", + "prettier": "^3.3.1", "react": "^18.3.1", "react-dom": "^18.3.1", "redux-logger": "^3.0.6", "typescript": "^5.4.5", + "typescript-eslint": "^7.12.0", "vite": "^5.2.12", "vite-plugin-full-reload": "^1.1.0", "vite-plugin-rails": "^0.5.0", diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 6773da5e..19efc309 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -3,7 +3,7 @@ export $(cat .env.github | xargs) # Build a local image -# docker buildx build . -f docker/dockerfiles/production.dockerfile -t sway-rails:latest --compress +# docker buildx build . -f docker/dockerfiles/production.dockerfile -t sway:latest --compress # cp vite.config.ts tmp/vite.config.ts && \ # cp vite.config.build.ts vite.config.ts && \ diff --git a/sorbet/rbi/gems/actioncable@7.1.3.2.rbi b/sorbet/rbi/gems/actioncable@7.1.3.3.rbi similarity index 97% rename from sorbet/rbi/gems/actioncable@7.1.3.2.rbi rename to sorbet/rbi/gems/actioncable@7.1.3.3.rbi index 20e8b91d..16c4744f 100644 --- a/sorbet/rbi/gems/actioncable@7.1.3.2.rbi +++ b/sorbet/rbi/gems/actioncable@7.1.3.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `actioncable` gem. # Please instead update this file by running `bin/tapioca gem actioncable`. + # :markup: markdown # :include: actioncable/README.md # @@ -154,22 +155,22 @@ class ActionCable::Channel::Base # source://actioncable//lib/action_cable/channel/base.rb#147 def initialize(connection, identifier, params = T.unsafe(nil)); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_subscribe_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_unsubscribe_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _subscribe_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _unsubscribe_callbacks; end # source://actioncable//lib/action_cable/channel/broadcasting.rb#11 @@ -209,13 +210,13 @@ class ActionCable::Channel::Base # source://actioncable//lib/action_cable/channel/periodic_timers.rb#9 def periodic_timers=(_arg0); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers?; end # This method is called after subscription has been added to the connection @@ -304,25 +305,25 @@ class ActionCable::Channel::Base def unsubscribed; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _subscribe_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _subscribe_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _unsubscribe_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _unsubscribe_callbacks=(value); end # A list of method names that should be considered actions. This @@ -346,13 +347,13 @@ class ActionCable::Channel::Base # source://actioncable//lib/action_cable/channel/periodic_timers.rb#9 def periodic_timers?; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers?; end private @@ -913,6 +914,7 @@ end # source://actioncable//lib/action_cable/channel/test_case.rb#186 class ActionCable::Channel::TestCase < ::ActiveSupport::TestCase include ::ActiveSupport::Testing::ConstantLookup + include ::ActionCable::TestHelper include ::ActionCable::Channel::TestCase::Behavior extend ::ActiveSupport::Testing::ConstantLookup::ClassMethods extend ::ActionCable::Channel::TestCase::Behavior::ClassMethods @@ -1152,16 +1154,16 @@ class ActionCable::Connection::Base # source://actioncable//lib/action_cable/connection/base.rb#58 def initialize(server, env, coder: T.unsafe(nil)); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _command_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_command_callbacks(&block); end # source://actioncable//lib/action_cable/connection/base.rb#134 @@ -1238,13 +1240,13 @@ class ActionCable::Connection::Base # source://actioncable//lib/action_cable/connection/base.rb#86 def receive(websocket_message); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers?; end # Invoke a method on the connection asynchronously through the pool of thread workers. @@ -1342,19 +1344,19 @@ class ActionCable::Connection::Base def websocket; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _command_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _command_callbacks=(value); end # source://actioncable//lib/action_cable/connection/identification.rb#11 @@ -1366,13 +1368,13 @@ class ActionCable::Connection::Base # source://actioncable//lib/action_cable/connection/identification.rb#11 def identifiers?; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers?; end end end @@ -2085,7 +2087,7 @@ end # source://actioncable//lib/action_cable/engine.rb#8 class ActionCable::Engine < ::Rails::Engine class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end end end @@ -2617,16 +2619,16 @@ class ActionCable::Server::Worker # source://actioncable//lib/action_cable/server/worker.rb#19 def initialize(max_size: T.unsafe(nil)); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_work_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _work_callbacks; end # source://actioncable//lib/action_cable/server/worker.rb#46 @@ -2635,10 +2637,10 @@ class ActionCable::Server::Worker # source://actioncable//lib/action_cable/server/worker.rb#50 def async_invoke(receiver, method, *args, connection: T.unsafe(nil), &block); end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 def connection; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 def connection=(obj); end # Returns the value of attribute executor. @@ -2669,25 +2671,25 @@ class ActionCable::Server::Worker def logger; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _work_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _work_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 def connection; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 def connection=(obj); end end end @@ -2971,7 +2973,9 @@ class ActionCable::SubscriptionAdapter::Test < ::ActionCable::SubscriptionAdapte end # source://actioncable//lib/action_cable/test_case.rb#6 -class ActionCable::TestCase < ::ActiveSupport::TestCase; end +class ActionCable::TestCase < ::ActiveSupport::TestCase + include ::ActionCable::TestHelper +end # Provides helper methods for testing Action Cable broadcasting # @@ -3102,9 +3106,3 @@ ActionCable::VERSION::STRING = T.let(T.unsafe(nil), String) # source://actioncable//lib/action_cable/gem_version.rb#12 ActionCable::VERSION::TINY = T.let(T.unsafe(nil), Integer) - -class ActiveSupport::TestCase < ::Minitest::Test - include ::Turbo::Broadcastable::TestHelper - include ::ActionCable::TestHelper - include ::Turbo::Streams::StreamName -end diff --git a/sorbet/rbi/gems/actionmailbox@7.1.3.2.rbi b/sorbet/rbi/gems/actionmailbox@7.1.3.3.rbi similarity index 86% rename from sorbet/rbi/gems/actionmailbox@7.1.3.2.rbi rename to sorbet/rbi/gems/actionmailbox@7.1.3.3.rbi index a71a6c23..622989e9 100644 --- a/sorbet/rbi/gems/actionmailbox@7.1.3.2.rbi +++ b/sorbet/rbi/gems/actionmailbox@7.1.3.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `actionmailbox` gem. # Please instead update this file by running `bin/tapioca gem actionmailbox`. + # :markup: markdown # :include: actionmailbox/README.md # @@ -86,13 +87,13 @@ module ActionMailbox # source://actionmailbox//lib/action_mailbox.rb#24 def queues=(val); end - # source://railties/7.1.3.2/lib/rails/engine.rb#412 + # source://railties/7.1.3.3/lib/rails/engine.rb#412 def railtie_helpers_paths; end - # source://railties/7.1.3.2/lib/rails/engine.rb#395 + # source://railties/7.1.3.3/lib/rails/engine.rb#395 def railtie_namespace; end - # source://railties/7.1.3.2/lib/rails/engine.rb#416 + # source://railties/7.1.3.3/lib/rails/engine.rb#416 def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end # source://actionmailbox//lib/action_mailbox.rb#25 @@ -101,10 +102,10 @@ module ActionMailbox # source://actionmailbox//lib/action_mailbox.rb#25 def storage_service=(val); end - # source://railties/7.1.3.2/lib/rails/engine.rb#401 + # source://railties/7.1.3.3/lib/rails/engine.rb#401 def table_name_prefix; end - # source://railties/7.1.3.2/lib/rails/engine.rb#408 + # source://railties/7.1.3.3/lib/rails/engine.rb#408 def use_relative_model_naming?; end # Returns the currently loaded version of Action Mailbox as a +Gem::Version+. @@ -189,16 +190,16 @@ class ActionMailbox::Base # source://actionmailbox//lib/action_mailbox/base.rb#79 def initialize(inbound_email); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _process_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_process_callbacks(&block); end # Immediately sends the given +message+ and changes the inbound email's status to +:bounced+. @@ -239,13 +240,13 @@ class ActionMailbox::Base # source://actionmailbox//lib/action_mailbox/base.rb#96 def process; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers?; end # source://actionmailbox//lib/action_mailbox/routing.rb#9 @@ -263,31 +264,31 @@ class ActionMailbox::Base def track_status_of_inbound_email; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _process_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _process_callbacks=(value); end # source://actionmailbox//lib/action_mailbox/base.rb#75 def receive(inbound_email); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers?; end # source://actionmailbox//lib/action_mailbox/routing.rb#9 @@ -301,20 +302,19 @@ end class ActionMailbox::BaseController < ::ActionController::Base private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end def authenticate_by_password; end def ensure_configured; end def ingress_name; end def password; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -364,7 +364,7 @@ ActionMailbox::Callbacks::TERMINATOR = T.let(T.unsafe(nil), Proc) # source://actionmailbox//lib/action_mailbox/engine.rb#12 class ActionMailbox::Engine < ::Rails::Engine class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end end end @@ -377,10 +377,10 @@ class ActionMailbox::InboundEmail < ::ActionMailbox::Record include ::ActionMailbox::InboundEmail::Incineratable extend ::ActionMailbox::InboundEmail::MessageId::ClassMethods - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_raw_email_attachment(*args); end - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_raw_email_blob(*args); end def instrumentation_payload; end @@ -389,109 +389,109 @@ class ActionMailbox::InboundEmail < ::ActionMailbox::Record def source; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 def _reflections; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators; end - # source://activestorage/7.1.3.2/lib/active_storage/reflection.rb#53 + # source://activestorage/7.1.3.3/lib/active_storage/reflection.rb#53 def attachment_reflections; end - # source://activerecord/7.1.3.2/lib/active_record/attributes.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/attributes.rb#11 def attributes_to_define_after_schema_loads; end - # source://activerecord/7.1.3.2/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 def bounced(*args, **_arg1); end - # source://activerecord/7.1.3.2/lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.2/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 def delivered(*args, **_arg1); end - # source://activerecord/7.1.3.2/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 def failed(*args, **_arg1); end - # source://activerecord/7.1.3.2/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 def not_bounced(*args, **_arg1); end - # source://activerecord/7.1.3.2/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 def not_delivered(*args, **_arg1); end - # source://activerecord/7.1.3.2/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 def not_failed(*args, **_arg1); end - # source://activerecord/7.1.3.2/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 def not_pending(*args, **_arg1); end - # source://activerecord/7.1.3.2/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 def not_processing(*args, **_arg1); end - # source://activerecord/7.1.3.2/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 def pending(*args, **_arg1); end - # source://activerecord/7.1.3.2/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 def processing(*args, **_arg1); end - # source://activerecord/7.1.3.2/lib/active_record/enum.rb#242 + # source://activerecord/7.1.3.3/lib/active_record/enum.rb#242 def statuses; end - # source://activerecord/7.1.3.2/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 def with_attached_raw_email(*args, **_arg1); end end end module ActionMailbox::InboundEmail::GeneratedAssociationMethods - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#32 def build_raw_email_attachment(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#32 def build_raw_email_blob(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#36 def create_raw_email_attachment(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#40 def create_raw_email_attachment!(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#36 def create_raw_email_blob(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#40 def create_raw_email_blob!(*args, &block); end - # source://activestorage/7.1.3.2/lib/active_storage/attached/model.rb#99 + # source://activestorage/7.1.3.3/lib/active_storage/attached/model.rb#99 def raw_email; end - # source://activestorage/7.1.3.2/lib/active_storage/attached/model.rb#104 + # source://activestorage/7.1.3.3/lib/active_storage/attached/model.rb#104 def raw_email=(attachable); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 def raw_email_attachment; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 def raw_email_attachment=(value); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 def raw_email_blob; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 def raw_email_blob=(value); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#19 def reload_raw_email_attachment; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#19 def reload_raw_email_blob; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#23 def reset_raw_email_attachment; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#23 def reset_raw_email_blob; end end @@ -542,10 +542,10 @@ class ActionMailbox::IncinerationJob < ::ActiveJob::Base def perform(inbound_email); end class << self - # source://activejob/7.1.3.2/lib/active_job/queue_name.rb#55 + # source://activejob/7.1.3.3/lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end def schedule(inbound_email); end @@ -560,20 +560,19 @@ class ActionMailbox::Ingresses::Mailgun::InboundEmailsController < ::ActionMailb private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end def authenticate; end def authenticated?; end def key; end def mail; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -602,10 +601,9 @@ class ActionMailbox::Ingresses::Mandrill::InboundEmailsController < ::ActionMail private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end def authenticate; end def authenticated?; end def events; end @@ -613,10 +611,10 @@ class ActionMailbox::Ingresses::Mandrill::InboundEmailsController < ::ActionMail def raw_emails; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -642,16 +640,14 @@ class ActionMailbox::Ingresses::Postmark::InboundEmailsController < ::ActionMail private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end - class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -663,17 +659,16 @@ class ActionMailbox::Ingresses::Relay::InboundEmailsController < ::ActionMailbox private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end def require_valid_rfc822_message; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -685,18 +680,17 @@ class ActionMailbox::Ingresses::Sendgrid::InboundEmailsController < ::ActionMail private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end def envelope; end def mail; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -706,10 +700,10 @@ class ActionMailbox::Record < ::ActiveRecord::Base include ::ActionMailbox::Record::GeneratedAssociationMethods class << self - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators; end - # source://activerecord/7.1.3.2/lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 def defined_enums; end end end @@ -800,7 +794,7 @@ class ActionMailbox::RoutingJob < ::ActiveJob::Base def perform(inbound_email); end class << self - # source://activejob/7.1.3.2/lib/active_job/queue_name.rb#55 + # source://activejob/7.1.3.3/lib/active_job/queue_name.rb#55 def queue_name; end end end @@ -1679,70 +1673,70 @@ end module Rails class << self - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def app_class; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def app_class=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#43 + # source://railties/7.1.3.3/lib/rails.rb#43 def application; end - # source://railties/7.1.3.2/lib/rails.rb#41 + # source://railties/7.1.3.3/lib/rails.rb#41 def application=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#123 + # source://railties/7.1.3.3/lib/rails.rb#123 def autoloaders; end - # source://railties/7.1.3.2/lib/rails.rb#54 + # source://railties/7.1.3.3/lib/rails.rb#54 def backtrace_cleaner; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def cache; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def cache=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#50 + # source://railties/7.1.3.3/lib/rails.rb#50 def configuration; end - # source://railties/7.1.3.2/lib/rails/deprecator.rb#4 + # source://railties/7.1.3.3/lib/rails/deprecator.rb#4 def deprecator; end - # source://railties/7.1.3.2/lib/rails.rb#72 + # source://railties/7.1.3.3/lib/rails.rb#72 def env; end - # source://railties/7.1.3.2/lib/rails.rb#79 + # source://railties/7.1.3.3/lib/rails.rb#79 def env=(environment); end - # source://railties/7.1.3.2/lib/rails.rb#90 + # source://railties/7.1.3.3/lib/rails.rb#90 def error; end - # source://railties/7.1.3.2/lib/rails/gem_version.rb#5 + # source://railties/7.1.3.3/lib/rails/gem_version.rb#5 def gem_version; end - # source://railties/7.1.3.2/lib/rails.rb#103 + # source://railties/7.1.3.3/lib/rails.rb#103 def groups(*groups); end - # source://railties/7.1.3.2/lib/rails.rb#47 + # source://railties/7.1.3.3/lib/rails.rb#47 def initialize!(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2/lib/rails.rb#47 + # source://railties/7.1.3.3/lib/rails.rb#47 def initialized?(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def logger; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def logger=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#119 + # source://railties/7.1.3.3/lib/rails.rb#119 def public_path; end - # source://railties/7.1.3.2/lib/rails.rb#63 + # source://railties/7.1.3.3/lib/rails.rb#63 def root; end - # source://railties/7.1.3.2/lib/rails/version.rb#7 + # source://railties/7.1.3.3/lib/rails/version.rb#7 def version; end end end @@ -1757,11 +1751,11 @@ class Rails::Conductor::ActionMailbox::InboundEmails::SourcesController < ::Rail private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end class << self - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -1774,7 +1768,7 @@ class Rails::Conductor::ActionMailbox::InboundEmailsController < ::Rails::Conduc private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end def create_inbound_email(mail); end @@ -1782,7 +1776,7 @@ class Rails::Conductor::ActionMailbox::InboundEmailsController < ::Rails::Conduc def new_mail; end class << self - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -1792,11 +1786,11 @@ class Rails::Conductor::ActionMailbox::IncineratesController < ::Rails::Conducto private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end class << self - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -1806,13 +1800,13 @@ class Rails::Conductor::ActionMailbox::ReroutesController < ::Rails::Conductor:: private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end def reroute(inbound_email); end class << self - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -1820,23 +1814,22 @@ end class Rails::Conductor::BaseController < ::ActionController::Base private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end def ensure_development_env; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#211 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#211 def _layout; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#212 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#212 def _layout_conditions; end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end diff --git a/sorbet/rbi/gems/actionmailer@7.1.3.2.rbi b/sorbet/rbi/gems/actionmailer@7.1.3.3.rbi similarity index 93% rename from sorbet/rbi/gems/actionmailer@7.1.3.2.rbi rename to sorbet/rbi/gems/actionmailer@7.1.3.3.rbi index 949941cd..1831dd18 100644 --- a/sorbet/rbi/gems/actionmailer@7.1.3.2.rbi +++ b/sorbet/rbi/gems/actionmailer@7.1.3.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `actionmailer` gem. # Please instead update this file by running `bin/tapioca gem actionmailer`. + # :include: actionmailer/README.rdoc # # source://actionmailer//lib/action_mailer/gem_version.rb#3 @@ -543,55 +544,55 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/base.rb#644 def initialize; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _deliver_callbacks; end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods; end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods=(_arg0); end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods?; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#216 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#216 def _layout_conditions(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _process_action_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_deliver_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_process_action_callbacks(&block); end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies; end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies=(_arg0); end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def asset_host; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def asset_host=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def assets_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def assets_dir=(value); end # Allows you to add attachments to an email, like so: @@ -626,10 +627,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/base.rb#761 def attachments; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def default_asset_host_protocol; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def default_asset_host_protocol=(value); end # source://actionmailer//lib/action_mailer/base.rb#502 @@ -641,10 +642,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/base.rb#502 def default_params?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def default_static_extension=(value); end # source://actionmailer//lib/action_mailer/queued_delivery.rb#9 @@ -690,10 +691,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/base.rb#685 def email_address_with_name(address, name); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end # source://actionmailer//lib/action_mailer/delivery_methods.rb#53 @@ -705,13 +706,13 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/delivery_methods.rb#53 def file_settings?; end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys; end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys=(_arg0); end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys?; end # Allows you to pass random and unusual headers to the new +Mail::Message+ @@ -752,16 +753,16 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/base.rb#723 def headers(args = T.unsafe(nil)); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def javascripts_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def javascripts_dir=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def logger=(value); end # The main method that creates the message and renders the email templates. There are @@ -861,10 +862,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/base.rb#678 def mailer_name; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 def message; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 def message=(_arg0); end # source://actionmailer//lib/action_mailer/parameterized.rb#95 @@ -873,10 +874,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/parameterized.rb#93 def params=(_arg0); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def perform_caching=(value); end # source://actionmailer//lib/action_mailer/delivery_methods.rb#16 @@ -900,25 +901,25 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/delivery_methods.rb#15 def raise_delivery_errors=(val); end - # source://actionpack/7.1.3.2/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/7.1.3.3/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions; end - # source://actionpack/7.1.3.2/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/7.1.3.3/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions=(val); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def relative_url_root; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def relative_url_root=(value); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers?; end # source://actionmailer//lib/action_mailer/delivery_methods.rb#53 @@ -942,10 +943,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/delivery_methods.rb#53 def smtp_settings?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def stylesheets_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def stylesheets_dir=(value); end # source://actionmailer//lib/action_mailer/delivery_methods.rb#53 @@ -959,7 +960,7 @@ class ActionMailer::Base < ::AbstractController::Base private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end # source://actionmailer//lib/action_mailer/base.rb#1071 @@ -1030,13 +1031,13 @@ class ActionMailer::Base < ::AbstractController::Base def wrap_inline_attachments(message); end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end # source://actionmailer//lib/action_mailer/form_builder.rb#18 @@ -1048,67 +1049,67 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/form_builder.rb#18 def _default_form_builder?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _deliver_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _deliver_callbacks=(value); end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods; end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods=(value); end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods?; end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#16 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#16 def _helpers; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#211 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#211 def _layout; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#211 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#211 def _layout=(value); end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#211 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#211 def _layout?; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#212 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#212 def _layout_conditions; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#212 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#212 def _layout_conditions=(value); end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#212 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#212 def _layout_conditions?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _process_action_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _process_action_callbacks=(value); end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies; end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies=(value); end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def asset_host; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def asset_host=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def assets_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def assets_dir=(value); end # Returns the name of the current mailer. This method is also being used as a path for a view lookup. @@ -1126,10 +1127,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/base.rb#582 def default(value = T.unsafe(nil)); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def default_asset_host_protocol; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def default_asset_host_protocol=(value); end # Sets the defaults through app configuration: @@ -1153,10 +1154,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/base.rb#502 def default_params?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def default_static_extension=(value); end # source://actionmailer//lib/action_mailer/queued_delivery.rb#9 @@ -1212,10 +1213,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/base.rb#607 def email_address_with_name(address, name); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end # source://actionmailer//lib/action_mailer/delivery_methods.rb#53 @@ -1227,25 +1228,25 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/delivery_methods.rb#53 def file_settings?; end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys; end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys=(value); end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def javascripts_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def javascripts_dir=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def logger=(value); end # Returns the name of the current mailer. This method is also being used as a path for a view lookup. @@ -1259,10 +1260,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/base.rb#574 def mailer_name=(_arg0); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def perform_caching=(value); end # source://actionmailer//lib/action_mailer/delivery_methods.rb#16 @@ -1289,10 +1290,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/delivery_methods.rb#15 def raise_delivery_errors=(val); end - # source://actionpack/7.1.3.2/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/7.1.3.3/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions; end - # source://actionpack/7.1.3.2/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/7.1.3.3/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions=(val); end # Register an Interceptor which will be called before mail is sent. @@ -1319,19 +1320,19 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/base.rb#511 def register_observers(*observers); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def relative_url_root; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def relative_url_root=(value); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers?; end # source://actionmailer//lib/action_mailer/delivery_methods.rb#53 @@ -1358,10 +1359,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/delivery_methods.rb#53 def smtp_settings?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def stylesheets_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def stylesheets_dir=(value); end # Emails do not support relative path links. @@ -1428,10 +1429,10 @@ module ActionMailer::Base::HelperMethods include ::ActionText::ContentHelper include ::ActionText::TagHelper - # source://actionpack/7.1.3.2/lib/abstract_controller/caching/fragments.rb#33 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#33 def combined_fragment_cache_key(*args, **_arg1, &block); end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching.rb#43 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#43 def view_cache_dependencies(*args, **_arg1, &block); end end @@ -1741,7 +1742,7 @@ class ActionMailer::LogSubscriber < ::ActiveSupport::LogSubscriber def process(event); end class << self - # source://activesupport/7.1.3.2/lib/active_support/log_subscriber.rb#87 + # source://activesupport/7.1.3.3/lib/active_support/log_subscriber.rb#87 def log_levels; end end end @@ -1771,10 +1772,10 @@ class ActionMailer::MailDeliveryJob < ::ActiveJob::Base def mailer_class; end class << self - # source://activejob/7.1.3.2/lib/active_job/queue_name.rb#55 + # source://activejob/7.1.3.3/lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -2318,7 +2319,7 @@ class ActionMailer::TestCase < ::ActiveSupport::TestCase def _mailer_class?; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end # source://actionmailer//lib/action_mailer/test_case.rb#41 diff --git a/sorbet/rbi/gems/actionpack@7.1.3.2.rbi b/sorbet/rbi/gems/actionpack@7.1.3.3.rbi similarity index 98% rename from sorbet/rbi/gems/actionpack@7.1.3.2.rbi rename to sorbet/rbi/gems/actionpack@7.1.3.3.rbi index e6150e84..e6ca04ae 100644 --- a/sorbet/rbi/gems/actionpack@7.1.3.2.rbi +++ b/sorbet/rbi/gems/actionpack@7.1.3.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `actionpack` gem. # Please instead update this file by running `bin/tapioca gem actionpack`. + # source://actionpack//lib/abstract_controller/deprecator.rb#3 module AbstractController extend ::ActiveSupport::Autoload @@ -65,10 +66,10 @@ class AbstractController::Base # Returns the name of the action this controller is processing. # - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 def action_name; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 def action_name=(_arg0); end # Returns true if a method for the action is available and @@ -94,10 +95,10 @@ class AbstractController::Base # Returns the formats that can be processed by the controller. # - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 def formats; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 def formats=(_arg0); end # source://actionpack//lib/abstract_controller/base.rb#203 @@ -126,10 +127,10 @@ class AbstractController::Base # Returns the body of the HTTP response sent by the controller. # - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 def response_body; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 def response_body=(_arg0); end # Actually call the method associated with the action. Override @@ -725,9 +726,6 @@ module AbstractController::Collector # source://actionpack//lib/abstract_controller/collector.rb#10 def ttf(*args, **_arg1, &block); end - # source://actionpack//lib/abstract_controller/collector.rb#10 - def turbo_stream(*args, **_arg1, &block); end - # source://actionpack//lib/abstract_controller/collector.rb#10 def url_encoded_form(*args, **_arg1, &block); end @@ -1273,7 +1271,6 @@ class ActionController::API < ::ActionController::Metal include ::ActionController::Rescue include ::ActionController::Instrumentation include ::ActionController::ParamsWrapper - include ::Turbo::RequestIdTracking extend ::ActionView::ViewPaths::ClassMethods extend ::AbstractController::UrlFor::ClassMethods extend ::ActionController::Rendering::ClassMethods @@ -1287,13 +1284,13 @@ class ActionController::API < ::ActionController::Metal extend ::ActionController::Instrumentation::ClassMethods extend ::ActionController::ParamsWrapper::ClassMethods - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _process_action_callbacks; end # source://actionpack//lib/action_controller/metal/renderers.rb#31 @@ -1305,7 +1302,7 @@ class ActionController::API < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/renderers.rb#31 def _renderers?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_process_action_callbacks(&block); end # source://actionpack//lib/action_controller/metal/params_wrapper.rb#187 @@ -1335,10 +1332,10 @@ class ActionController::API < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/conditional_get.rb#13 def etaggers?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def logger=(value); end # source://actionpack//lib/abstract_controller/callbacks.rb#36 @@ -1353,29 +1350,29 @@ class ActionController::API < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/redirecting.rb#15 def raise_on_open_redirects=(val); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers?; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _process_action_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _process_action_callbacks=(value); end # source://actionpack//lib/action_controller/metal/renderers.rb#31 @@ -1414,10 +1411,10 @@ class ActionController::API < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/conditional_get.rb#13 def etaggers?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def logger=(value); end # source://actionpack//lib/action_controller/metal.rb#262 @@ -1435,13 +1432,13 @@ class ActionController::API < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/redirecting.rb#15 def raise_on_open_redirects=(val); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers?; end # Shortcut helper that returns all the ActionController::API modules except @@ -1703,11 +1700,7 @@ class ActionController::Base < ::ActionController::Metal include ::ActionController::Rescue include ::ActionController::Instrumentation include ::ActionController::ParamsWrapper - include ::Turbo::Native::Navigation - include ::Turbo::Frames::FrameRequest - include ::Turbo::Streams::TurboStreamsTagBuilder include ::InertiaRails::Controller - include ::Turbo::RequestIdTracking extend ::ActionView::ViewPaths::ClassMethods extend ::AbstractController::Helpers::Resolution extend ::AbstractController::Helpers::ClassMethods @@ -1737,10 +1730,10 @@ class ActionController::Base < ::ActionController::Metal extend ::ActionController::ParamsWrapper::ClassMethods extend ::InertiaRails::Controller::ClassMethods - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end # source://actionpack//lib/abstract_controller/helpers.rb#12 @@ -1752,10 +1745,10 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/abstract_controller/helpers.rb#12 def _helper_methods?; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#216 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#216 def _layout_conditions(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _process_action_callbacks; end # source://actionpack//lib/action_controller/metal/renderers.rb#31 @@ -1767,7 +1760,7 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/renderers.rb#31 def _renderers?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_process_action_callbacks(&block); end # source://actionpack//lib/abstract_controller/caching.rb#42 @@ -1791,46 +1784,46 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/flash.rb#36 def alert; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def allow_forgery_protection; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def allow_forgery_protection=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def asset_host; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def asset_host=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def assets_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def assets_dir=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def csrf_token_storage_strategy; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def csrf_token_storage_strategy=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def default_asset_host_protocol; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def default_asset_host_protocol=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def default_protect_from_forgery; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def default_protect_from_forgery=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def default_static_extension=(value); end # source://actionpack//lib/action_dispatch/routing/url_for.rb#97 @@ -1842,10 +1835,10 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_dispatch/routing/url_for.rb#97 def default_url_options?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end # source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#29 @@ -1869,16 +1862,16 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/flash.rb#10 def flash(*_arg0, **_arg1, &_arg2); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def forgery_protection_origin_check; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def forgery_protection_origin_check=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def forgery_protection_strategy; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def forgery_protection_strategy=(value); end # source://actionpack//lib/abstract_controller/caching/fragments.rb#25 @@ -1908,37 +1901,37 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/helpers.rb#66 def include_all_helpers?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def javascripts_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def javascripts_dir=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def log_warning_on_csrf_failure; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def log_warning_on_csrf_failure=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def logger=(value); end # source://actionpack//lib/action_controller/metal/flash.rb#36 def notice; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def per_form_csrf_tokens; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def per_form_csrf_tokens=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def perform_caching=(value); end # source://actionpack//lib/abstract_controller/callbacks.rb#36 @@ -1953,51 +1946,49 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/redirecting.rb#15 def raise_on_open_redirects=(val); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def relative_url_root; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def relative_url_root=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def request_forgery_protection_token; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def request_forgery_protection_token=(value); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def stylesheets_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def stylesheets_dir=(value); end private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end - # source://actionpack//lib/action_controller/base.rb#252 def _protected_ivars; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end # source://actionpack//lib/action_controller/form_builder.rb#33 @@ -2030,28 +2021,28 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/abstract_controller/helpers.rb#16 def _helpers; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#211 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#211 def _layout; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#211 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#211 def _layout=(value); end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#211 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#211 def _layout?; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#212 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#212 def _layout_conditions; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#212 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#212 def _layout_conditions=(value); end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#212 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#212 def _layout_conditions?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _process_action_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _process_action_callbacks=(value); end # source://actionpack//lib/action_controller/metal/renderers.rb#31 @@ -2081,46 +2072,46 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/params_wrapper.rb#187 def _wrapper_options?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def allow_forgery_protection; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def allow_forgery_protection=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def asset_host; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def asset_host=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def assets_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def assets_dir=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def csrf_token_storage_strategy; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def csrf_token_storage_strategy=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def default_asset_host_protocol; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def default_asset_host_protocol=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def default_protect_from_forgery; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def default_protect_from_forgery=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def default_static_extension=(value); end # source://actionpack//lib/action_dispatch/routing/url_for.rb#97 @@ -2132,10 +2123,10 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_dispatch/routing/url_for.rb#97 def default_url_options?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end # source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#29 @@ -2156,16 +2147,16 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/conditional_get.rb#13 def etaggers?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def forgery_protection_origin_check; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def forgery_protection_origin_check=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def forgery_protection_strategy; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def forgery_protection_strategy=(value); end # source://actionpack//lib/abstract_controller/caching/fragments.rb#25 @@ -2195,37 +2186,37 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/helpers.rb#66 def include_all_helpers?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def javascripts_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def javascripts_dir=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def log_warning_on_csrf_failure; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def log_warning_on_csrf_failure=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def logger=(value); end # source://actionpack//lib/action_controller/metal.rb#262 def middleware_stack; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def per_form_csrf_tokens; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def per_form_csrf_tokens=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def perform_caching=(value); end # source://actionpack//lib/abstract_controller/callbacks.rb#36 @@ -2240,31 +2231,31 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/redirecting.rb#15 def raise_on_open_redirects=(val); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def relative_url_root; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def relative_url_root=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def request_forgery_protection_token; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def request_forgery_protection_token=(value); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def stylesheets_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def stylesheets_dir=(value); end # Shortcut helper that returns all the modules included in @@ -2289,15 +2280,6 @@ end module ActionController::Base::HelperMethods include ::ActionText::ContentHelper include ::ActionText::TagHelper - include ::Importmap::ImportmapTagsHelper - include ::Turbo::DriveHelper - include ::Turbo::FramesHelper - include ::Turbo::IncludesHelper - include ::Turbo::StreamsHelper - include ::ActionView::Helpers::CaptureHelper - include ::ActionView::Helpers::OutputSafetyHelper - include ::ActionView::Helpers::TagHelper - include ::Turbo::Streams::ActionHelper include ::InertiaRails::Helper include ::Hotwire::Livereload::LivereloadTagsHelper include ::ViteRails::TagHelpers @@ -2326,9 +2308,6 @@ module ActionController::Base::HelperMethods # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#102 def protect_against_forgery?(*args, **_arg1, &block); end - def turbo_frame_request_id(*args, **_arg1, &block); end - def turbo_native_app?(*args, **_arg1, &block); end - # source://actionpack//lib/abstract_controller/caching.rb#43 def view_cache_dependencies(*args, **_arg1, &block); end end @@ -4219,17 +4198,17 @@ ActionController::Live::SSE::PERMITTED_OPTIONS = T.let(T.unsafe(nil), Array) class ActionController::LiveTestResponse < ::ActionController::Live::Response # Was there a server-side error? # - # source://rack/3.0.10/lib/rack/response.rb#186 + # source://rack/3.0.11/lib/rack/response.rb#186 def error?; end # Was the URL not found? # - # source://rack/3.0.10/lib/rack/response.rb#196 + # source://rack/3.0.11/lib/rack/response.rb#196 def missing?; end # Was the response successful? # - # source://rack/3.0.10/lib/rack/response.rb#183 + # source://rack/3.0.11/lib/rack/response.rb#183 def success?; end end @@ -4272,7 +4251,7 @@ class ActionController::LogSubscriber < ::ActiveSupport::LogSubscriber def write_fragment(event); end class << self - # source://activesupport/7.1.3.2/lib/active_support/log_subscriber.rb#87 + # source://activesupport/7.1.3.3/lib/active_support/log_subscriber.rb#87 def log_levels; end end end @@ -4423,10 +4402,10 @@ class ActionController::Metal < ::AbstractController::Base # # The ActionDispatch::Request instance for the current request. # - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 def request; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 def request=(_arg0); end # source://actionpack//lib/action_controller/metal.rb#258 @@ -4436,7 +4415,7 @@ class ActionController::Metal < ::AbstractController::Base # # The ActionDispatch::Response instance for the current response. # - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 def response; end # Assign the response and mark it as committed. No further processing will occur. @@ -6619,7 +6598,7 @@ module ActionController::Renderers # source://actionpack//lib/action_controller/metal/renderers.rb#144 def _render_to_body_with_renderer(options); end - # source://inertia_rails/3.1.3/lib/inertia_rails.rb#9 + # source://inertia_rails/3.1.4/lib/inertia_rails.rb#9 def _render_with_renderer_inertia(component, options); end # source://actionpack//lib/action_controller/metal/renderers.rb#170 @@ -6628,9 +6607,6 @@ module ActionController::Renderers # source://actionpack//lib/action_controller/metal/renderers.rb#155 def _render_with_renderer_json(json, options); end - # source://turbo-rails/2.0.5/lib/turbo/engine.rb#67 - def _render_with_renderer_turbo_stream(turbo_streams_html, options); end - # source://actionpack//lib/action_controller/metal/renderers.rb#175 def _render_with_renderer_xml(xml, options); end @@ -8041,7 +8017,7 @@ class ActionController::TestCase < ::ActiveSupport::TestCase def _controller_class?; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end # source://actionpack//lib/action_controller/test_case.rb#571 @@ -8863,35 +8839,35 @@ class ActionDispatch::Callbacks # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#22 def initialize(app); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _call_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_call_callbacks(&block); end # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#26 def call(env); end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _call_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _call_callbacks=(value); end # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#17 @@ -9695,7 +9671,7 @@ class ActionDispatch::DebugExceptions # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#28 def call(env); end - # source://inertia_rails/3.1.3/lib/patches/debug_exceptions/patch-5-1.rb#11 + # source://inertia_rails/3.1.4/lib/patches/debug_exceptions/patch-5-1.rb#11 def render_for_browser_request(request, wrapper); end private @@ -12095,7 +12071,6 @@ class ActionDispatch::IntegrationTest < ::ActiveSupport::TestCase include ::ActionDispatch::Routing::PolymorphicRoutes include ::ActionDispatch::Routing::UrlFor include ::ActionDispatch::IntegrationTest::UrlOptions - include ::Turbo::TestAssertions::IntegrationTestAssertions extend ::ActionDispatch::IntegrationTest::Behavior::ClassMethods end @@ -12112,7 +12087,6 @@ module ActionDispatch::IntegrationTest::Behavior extend ::ActiveSupport::Concern include ::ActionDispatch::Routing::UrlFor include ::ActionDispatch::IntegrationTest::UrlOptions - include ::Turbo::TestAssertions::IntegrationTestAssertions mixes_in_class_methods ::ActionDispatch::IntegrationTest::Behavior::ClassMethods @@ -13794,7 +13768,7 @@ class ActionDispatch::LogSubscriber < ::ActiveSupport::LogSubscriber def redirect(event); end class << self - # source://activesupport/7.1.3.2/lib/active_support/log_subscriber.rb#87 + # source://activesupport/7.1.3.3/lib/active_support/log_subscriber.rb#87 def log_levels; end end end @@ -14471,10 +14445,10 @@ class ActionDispatch::Request # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#18 def ignore_accept_header=(val); end - # source://inertia_rails/3.1.3/lib/patches/request.rb#2 + # source://inertia_rails/3.1.4/lib/patches/request.rb#2 def inertia?; end - # source://inertia_rails/3.1.3/lib/patches/request.rb#6 + # source://inertia_rails/3.1.4/lib/patches/request.rb#6 def inertia_partial?; end # source://actionpack//lib/action_dispatch/http/request.rb#444 @@ -14572,7 +14546,7 @@ class ActionDispatch::Request # source://actionpack//lib/action_dispatch/http/request.rb#339 def raw_post; end - # source://rack/3.0.10/lib/rack/request.rb#197 + # source://rack/3.0.11/lib/rack/request.rb#197 def raw_request_method; end # source://actionpack//lib/action_dispatch/http/request.rb#50 @@ -15241,12 +15215,6 @@ class ActionDispatch::RequestEncoder::IdentityEncoder def response_parser; end end -# source://actionpack//lib/action_dispatch/testing/integration.rb#0 -class ActionDispatch::RequestEncoder::TurboStreamEncoder < ::ActionDispatch::RequestEncoder::IdentityEncoder - # source://turbo-rails/2.0.5/lib/turbo/engine.rb#107 - def accept_header; end -end - # = Action Dispatch \RequestId # # Makes a unique request id available to the +action_dispatch.request_id+ env variable (which is then accessible @@ -15329,10 +15297,10 @@ class ActionDispatch::Response # Aliasing these off because AD::Http::Cache::Response defines them. # - # source://rack/3.0.10/lib/rack/response.rb#289 + # source://rack/3.0.11/lib/rack/response.rb#289 def _cache_control; end - # source://rack/3.0.10/lib/rack/response.rb#293 + # source://rack/3.0.11/lib/rack/response.rb#293 def _cache_control=(value); end # source://actionpack//lib/action_dispatch/http/response.rb#382 @@ -15499,7 +15467,7 @@ class ActionDispatch::Response # The location header we'll be responding with. # - # source://rack/3.0.10/lib/rack/response.rb#261 + # source://rack/3.0.11/lib/rack/response.rb#261 def redirect_url; end # The request that the response is responding to. @@ -16196,7 +16164,7 @@ class ActionDispatch::Routing::Mapper # source://actionpack//lib/action_dispatch/routing/mapper.rb#2313 def initialize(set); end - # source://inertia_rails/3.1.3/lib/patches/mapper.rb#2 + # source://inertia_rails/3.1.4/lib/patches/mapper.rb#2 def inertia(args, &block); end class << self @@ -20547,10 +20515,10 @@ Mime::Type::MIME_REGEXP = T.let(T.unsafe(nil), Regexp) # source://actionpack//lib/action_dispatch.rb#34 module Rack class << self - # source://rack/3.0.10/lib/rack/version.rb#31 + # source://rack/3.0.11/lib/rack/version.rb#31 def release; end - # source://rack/3.0.10/lib/rack/version.rb#23 + # source://rack/3.0.11/lib/rack/version.rb#23 def version; end end end diff --git a/sorbet/rbi/gems/actiontext@7.1.3.2.rbi b/sorbet/rbi/gems/actiontext@7.1.3.3.rbi similarity index 80% rename from sorbet/rbi/gems/actiontext@7.1.3.2.rbi rename to sorbet/rbi/gems/actiontext@7.1.3.3.rbi index 2aacab80..e0b7eb38 100644 --- a/sorbet/rbi/gems/actiontext@7.1.3.2.rbi +++ b/sorbet/rbi/gems/actiontext@7.1.3.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `actiontext` gem. # Please instead update this file by running `bin/tapioca gem actiontext`. + # :markup: markdown # :include: actiontext/README.md # @@ -26,19 +27,19 @@ module ActionText # source://actiontext//lib/action_text.rb#53 def html_document_fragment_class; end - # source://railties/7.1.3.2/lib/rails/engine.rb#412 + # source://railties/7.1.3.3/lib/rails/engine.rb#412 def railtie_helpers_paths; end - # source://railties/7.1.3.2/lib/rails/engine.rb#395 + # source://railties/7.1.3.3/lib/rails/engine.rb#395 def railtie_namespace; end - # source://railties/7.1.3.2/lib/rails/engine.rb#416 + # source://railties/7.1.3.3/lib/rails/engine.rb#416 def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end - # source://railties/7.1.3.2/lib/rails/engine.rb#401 + # source://railties/7.1.3.3/lib/rails/engine.rb#401 def table_name_prefix; end - # source://railties/7.1.3.2/lib/rails/engine.rb#408 + # source://railties/7.1.3.3/lib/rails/engine.rb#408 def use_relative_model_naming?; end # Returns the currently loaded version of Action Text as a +Gem::Version+. @@ -188,22 +189,22 @@ class ActionText::Attachables::ContentAttachment extend ::ActiveModel::Validations::HelperMethods extend ::ActiveModel::Conversion::ClassMethods - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_validate_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _validate_callbacks; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators?; end # source://actiontext//lib/action_text/attachables/content_attachment.rb#18 @@ -233,10 +234,10 @@ class ActionText::Attachables::ContentAttachment # source://actiontext//lib/action_text/attachables/content_attachment.rb#13 def content_type=(_arg0); end - # source://activemodel/7.1.3.2/lib/active_model/naming.rb#255 + # source://activemodel/7.1.3.3/lib/active_model/naming.rb#255 def model_name(&block); end - # source://activemodel/7.1.3.2/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 def param_delimiter=(_arg0); end # source://actiontext//lib/action_text/attachables/content_attachment.rb#22 @@ -248,7 +249,7 @@ class ActionText::Attachables::ContentAttachment # source://actiontext//lib/action_text/attachables/content_attachment.rb#26 def to_s; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#67 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#67 def validation_context; end private @@ -256,44 +257,44 @@ class ActionText::Attachables::ContentAttachment # source://actiontext//lib/action_text/attachables/content_attachment.rb#35 def content_instance; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#67 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#67 def validation_context=(_arg0); end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _validate_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _validate_callbacks=(value); end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators=(value); end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators?; end # source://actiontext//lib/action_text/attachables/content_attachment.rb#8 def from_node(node); end - # source://activemodel/7.1.3.2/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 def param_delimiter; end - # source://activemodel/7.1.3.2/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 def param_delimiter=(value); end - # source://activemodel/7.1.3.2/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 def param_delimiter?; end end end @@ -310,7 +311,7 @@ class ActionText::Attachables::MissingAttachable # source://actiontext//lib/action_text/attachables/missing_attachable.rb#22 def model; end - # source://activemodel/7.1.3.2/lib/active_model/naming.rb#255 + # source://activemodel/7.1.3.3/lib/active_model/naming.rb#255 def model_name(&block); end # source://actiontext//lib/action_text/attachables/missing_attachable.rb#14 @@ -342,7 +343,7 @@ class ActionText::Attachables::RemoteImage # source://actiontext//lib/action_text/attachables/remote_image.rb#28 def height; end - # source://activemodel/7.1.3.2/lib/active_model/naming.rb#255 + # source://activemodel/7.1.3.3/lib/active_model/naming.rb#255 def model_name(&block); end # source://actiontext//lib/action_text/attachables/remote_image.rb#41 @@ -413,7 +414,7 @@ class ActionText::Attachment # source://actiontext//lib/action_text/attachment.rb#129 def inspect; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/delegation.rb#331 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/delegation.rb#331 def method_missing(method, *args, **_arg2, &block); end # Returns the value of attribute node. @@ -482,7 +483,7 @@ class ActionText::Attachment # source://actiontext//lib/action_text/attachment.rb#134 def node_attributes; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/delegation.rb#323 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/delegation.rb#323 def respond_to_missing?(name, include_private = T.unsafe(nil)); end # source://actiontext//lib/action_text/attachment.rb#142 @@ -548,22 +549,22 @@ class ActionText::AttachmentGallery # source://actiontext//lib/action_text/attachment_gallery.rb#52 def initialize(node); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_validate_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _validate_callbacks; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators?; end # source://actiontext//lib/action_text/attachment_gallery.rb#56 @@ -572,7 +573,7 @@ class ActionText::AttachmentGallery # source://actiontext//lib/action_text/attachment_gallery.rb#66 def inspect; end - # source://activemodel/7.1.3.2/lib/active_model/naming.rb#255 + # source://activemodel/7.1.3.3/lib/active_model/naming.rb#255 def model_name(&block); end # Returns the value of attribute node. @@ -580,43 +581,43 @@ class ActionText::AttachmentGallery # source://actiontext//lib/action_text/attachment_gallery.rb#50 def node; end - # source://activemodel/7.1.3.2/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 def param_delimiter=(_arg0); end # source://actiontext//lib/action_text/attachment_gallery.rb#62 def size; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#67 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#67 def validation_context; end private - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#67 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#67 def validation_context=(_arg0); end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _validate_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _validate_callbacks=(value); end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators=(value); end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators?; end # source://actiontext//lib/action_text/attachment_gallery.rb#41 @@ -634,13 +635,13 @@ class ActionText::AttachmentGallery # source://actiontext//lib/action_text/attachment_gallery.rb#37 def from_node(node); end - # source://activemodel/7.1.3.2/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 def param_delimiter; end - # source://activemodel/7.1.3.2/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 def param_delimiter=(value); end - # source://activemodel/7.1.3.2/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 def param_delimiter?; end # source://actiontext//lib/action_text/attachment_gallery.rb#45 @@ -868,10 +869,10 @@ class ActionText::Content # source://actiontext//lib/action_text/content.rb#30 def fragment_by_canonicalizing_content(content); end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 def renderer; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 def renderer=(obj); end end end @@ -909,16 +910,16 @@ class ActionText::EncryptedRichText < ::ActionText::RichText include ::ActionText::EncryptedRichText::GeneratedAssociationMethods class << self - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators; end - # source://activerecord/7.1.3.2/lib/active_record/attributes.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/attributes.rb#11 def attributes_to_define_after_schema_loads; end - # source://activerecord/7.1.3.2/lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.2/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes; end end end @@ -954,7 +955,7 @@ end # source://actiontext//lib/action_text/engine.rb#11 class ActionText::Engine < ::Rails::Engine class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end end end @@ -1162,10 +1163,10 @@ class ActionText::Record < ::ActiveRecord::Base include ::ActionText::Record::GeneratedAssociationMethods class << self - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators; end - # source://activerecord/7.1.3.2/lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 def defined_enums; end end end @@ -1196,13 +1197,13 @@ class ActionText::RichText < ::ActionText::Record include ::ActionText::RichText::GeneratedAttributeMethods include ::ActionText::RichText::GeneratedAssociationMethods - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_embeds_attachments(*args); end - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_embeds_blobs(*args); end - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_record(*args); end def blank?(*_arg0, **_arg1, &_arg2); end @@ -1213,83 +1214,83 @@ class ActionText::RichText < ::ActionText::Record def to_s(*_arg0, **_arg1, &_arg2); end def to_trix_html; end - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def validate_associated_records_for_embeds_attachments(*args); end - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def validate_associated_records_for_embeds_blobs(*args); end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 def _reflections; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators; end - # source://activestorage/7.1.3.2/lib/active_storage/reflection.rb#53 + # source://activestorage/7.1.3.3/lib/active_storage/reflection.rb#53 def attachment_reflections; end - # source://activerecord/7.1.3.2/lib/active_record/attributes.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/attributes.rb#11 def attributes_to_define_after_schema_loads; end - # source://activerecord/7.1.3.2/lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.2/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 def with_attached_embeds(*args, **_arg1); end end end module ActionText::RichText::GeneratedAssociationMethods - # source://activestorage/7.1.3.2/lib/active_storage/attached/model.rb#187 + # source://activestorage/7.1.3.3/lib/active_storage/attached/model.rb#187 def embeds; end - # source://activestorage/7.1.3.2/lib/active_storage/attached/model.rb#192 + # source://activestorage/7.1.3.3/lib/active_storage/attached/model.rb#192 def embeds=(attachables); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/collection_association.rb#62 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/collection_association.rb#62 def embeds_attachment_ids; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/collection_association.rb#72 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/collection_association.rb#72 def embeds_attachment_ids=(ids); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 def embeds_attachments; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 def embeds_attachments=(value); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/collection_association.rb#62 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/collection_association.rb#62 def embeds_blob_ids; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/collection_association.rb#72 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/collection_association.rb#72 def embeds_blob_ids=(ids); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 def embeds_blobs; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 def embeds_blobs=(value); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 def record; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 def record=(value); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/belongs_to.rb#145 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/belongs_to.rb#145 def record_changed?; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/belongs_to.rb#149 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/belongs_to.rb#149 def record_previously_changed?; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#19 def reload_record; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#23 def reset_record; end end @@ -1459,216 +1460,216 @@ module ActionView::Helpers mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods class << self - # source://actionview/7.1.3.2/lib/action_view/helpers.rb#35 + # source://actionview/7.1.3.3/lib/action_view/helpers.rb#35 def eager_load!; end end end class ActionView::Helpers::FormBuilder - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1715 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1715 def initialize(object_name, object, template, options); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2644 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2644 def button(value = T.unsafe(nil), options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2468 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2468 def check_box(method, options = T.unsafe(nil), checked_value = T.unsafe(nil), unchecked_value = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_options_helper.rb#908 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_options_helper.rb#908 def collection_check_boxes(method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_options_helper.rb#920 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_options_helper.rb#920 def collection_radio_buttons(method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_options_helper.rb#860 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_options_helper.rb#860 def collection_select(method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2021 def color_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2021 def date_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/date_helper.rb#1237 + # source://actionview/7.1.3.3/lib/action_view/helpers/date_helper.rb#1237 def date_select(method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2021 def datetime_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2021 def datetime_local_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/date_helper.rb#1261 + # source://actionview/7.1.3.3/lib/action_view/helpers/date_helper.rb#1261 def datetime_select(method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2021 def email_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2665 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2665 def emitted_hidden_id?; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1680 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1680 def field_helpers; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1680 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1680 def field_helpers=(_arg0); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1680 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1680 def field_helpers?; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1772 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1772 def field_id(method, *suffixes, namespace: T.unsafe(nil), index: T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1792 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1792 def field_name(method, *methods, multiple: T.unsafe(nil), index: T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2322 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2322 def fields(scope = T.unsafe(nil), model: T.unsafe(nil), **options, &block); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2284 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2284 def fields_for(record_name, record_object = T.unsafe(nil), fields_options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2551 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2551 def file_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_options_helper.rb#872 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_options_helper.rb#872 def grouped_collection_select(method, collection, group_method, group_label_method, option_key_method, option_value_method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2512 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2512 def hidden_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1752 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1752 def id; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1692 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1692 def index; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2399 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2399 def label(method, text = T.unsafe(nil), options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2021 def month_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1692 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1692 def multipart; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1695 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1695 def multipart=(multipart); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1692 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1692 def multipart?; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2021 def number_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1690 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1690 def object; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1690 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1690 def object=(_arg0); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1690 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1690 def object_name; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1690 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1690 def object_name=(_arg0); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1690 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1690 def options; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1690 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1690 def options=(_arg0); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2021 def password_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2021 def phone_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2490 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2490 def radio_button(method, tag_value, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2021 def range_field(method, options = T.unsafe(nil)); end def rich_text_area(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2021 def search_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_options_helper.rb#848 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_options_helper.rb#848 def select(method, choices = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2583 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2583 def submit(value = T.unsafe(nil), options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2021 def telephone_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2021 def text_area(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2021 def text_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2021 def time_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/date_helper.rb#1249 + # source://actionview/7.1.3.3/lib/action_view/helpers/date_helper.rb#1249 def time_select(method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_options_helper.rb#884 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_options_helper.rb#884 def time_zone_select(method, priority_zones = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1711 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1711 def to_model; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1707 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1707 def to_partial_path; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2021 def url_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2021 def week_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_options_helper.rb#896 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_options_helper.rb#896 def weekday_select(method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end private - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2750 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2750 def convert_to_legacy_options(options); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2732 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2732 def fields_for_nested_model(name, object, fields_options, block); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2703 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2703 def fields_for_with_nested_attributes(association_name, association, options, block); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2699 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2699 def nested_attributes_association?(association_name); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2745 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2745 def nested_child_index(name); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2670 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2670 def objectify_options(options); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#2676 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2676 def submit_default_value; end class << self - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1703 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1703 def _to_partial_path; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1680 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1680 def field_helpers; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1680 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1680 def field_helpers=(value); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1680 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1680 def field_helpers?; end end end @@ -1682,141 +1683,141 @@ module ActionView::Helpers::FormHelper mixes_in_class_methods ::ActionView::Helpers::UrlHelper::ClassMethods mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1586 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1586 def _object_for_form_builder(object); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1343 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1343 def check_box(object_name, method, options = T.unsafe(nil), checked_value = T.unsafe(nil), unchecked_value = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1373 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1373 def color_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1437 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1437 def date_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1510 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1510 def datetime_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1510 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1510 def datetime_local_field(object_name, method, options = T.unsafe(nil)); end def default_form_builder; end def default_form_builder=(_arg0); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1564 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1564 def email_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1077 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1077 def fields(scope = T.unsafe(nil), model: T.unsafe(nil), **options, &block); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1026 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1026 def fields_for(record_name, record_object = T.unsafe(nil), options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1245 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1245 def file_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#434 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#434 def form_for(record, options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#755 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#755 def form_with(model: T.unsafe(nil), scope: T.unsafe(nil), url: T.unsafe(nil), format: T.unsafe(nil), **options, &block); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#480 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#480 def form_with_generates_ids; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#480 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#480 def form_with_generates_ids=(val); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#478 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#478 def form_with_generates_remote_forms; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#478 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#478 def form_with_generates_remote_forms=(val); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1212 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1212 def hidden_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1149 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1149 def label(object_name, method, content_or_options = T.unsafe(nil), options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1529 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1529 def month_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#482 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#482 def multiple_file_field_include_hidden; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#482 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#482 def multiple_file_field_include_hidden=(val); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1573 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1573 def number_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1194 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1194 def password_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1405 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1405 def phone_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1365 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1365 def radio_button(object_name, method, tag_value, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1582 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1582 def range_field(object_name, method, options = T.unsafe(nil)); end def rich_text_area(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1396 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1396 def search_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1405 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1405 def telephone_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1275 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1275 def text_area(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1173 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1173 def text_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1475 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1475 def time_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1555 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1555 def url_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1546 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1546 def week_field(object_name, method, options = T.unsafe(nil)); end private - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#464 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#464 def apply_form_for_options!(object, options); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1620 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1620 def default_form_builder_class; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1591 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1591 def html_options_for_form_with(url_for_options = T.unsafe(nil), model = T.unsafe(nil), html: T.unsafe(nil), local: T.unsafe(nil), skip_enforcing_utf8: T.unsafe(nil), **options); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#1606 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1606 def instantiate_builder(record_name, record_object, options); end class << self - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#480 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#480 def form_with_generates_ids; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#480 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#480 def form_with_generates_ids=(val); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#478 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#478 def form_with_generates_remote_forms; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#478 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#478 def form_with_generates_remote_forms=(val); end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#482 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#482 def multiple_file_field_include_hidden; end - # source://actionview/7.1.3.2/lib/action_view/helpers/form_helper.rb#482 + # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#482 def multiple_file_field_include_hidden=(val); end end end diff --git a/sorbet/rbi/gems/actionview@7.1.3.2.rbi b/sorbet/rbi/gems/actionview@7.1.3.3.rbi similarity index 98% rename from sorbet/rbi/gems/actionview@7.1.3.2.rbi rename to sorbet/rbi/gems/actionview@7.1.3.3.rbi index fa19a1d6..4d484b40 100644 --- a/sorbet/rbi/gems/actionview@7.1.3.2.rbi +++ b/sorbet/rbi/gems/actionview@7.1.3.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `actionview` gem. # Please instead update this file by running `bin/tapioca gem actionview`. + class ActionController::Base < ::ActionController::Metal include ::ActiveSupport::Deprecation::DeprecatedConstantAccessor include ::ActionDispatch::Routing::PolymorphicRoutes @@ -12,247 +13,247 @@ class ActionController::Base < ::ActionController::Metal include ::ActionController::BasicImplicitRender extend ::AbstractController::Helpers::Resolution - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods; end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods=(_arg0); end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods?; end # source://actionview//lib/action_view/layouts.rb#216 def _layout_conditions(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _process_action_callbacks; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/7.1.3.3/lib/action_controller/metal/renderers.rb#31 def _renderers; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/7.1.3.3/lib/action_controller/metal/renderers.rb#31 def _renderers=(_arg0); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/7.1.3.3/lib/action_controller/metal/renderers.rb#31 def _renderers?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_process_action_callbacks(&block); end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies; end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies=(_arg0); end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies?; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/params_wrapper.rb#187 + # source://actionpack/7.1.3.3/lib/action_controller/metal/params_wrapper.rb#187 def _wrapper_options; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/params_wrapper.rb#187 + # source://actionpack/7.1.3.3/lib/action_controller/metal/params_wrapper.rb#187 def _wrapper_options=(_arg0); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/params_wrapper.rb#187 + # source://actionpack/7.1.3.3/lib/action_controller/metal/params_wrapper.rb#187 def _wrapper_options?; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/flash.rb#36 + # source://actionpack/7.1.3.3/lib/action_controller/metal/flash.rb#36 def alert; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def allow_forgery_protection; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def allow_forgery_protection=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def asset_host; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def asset_host=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def assets_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def assets_dir=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def csrf_token_storage_strategy; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def csrf_token_storage_strategy=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def default_asset_host_protocol; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def default_asset_host_protocol=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def default_protect_from_forgery; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def default_protect_from_forgery=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def default_static_extension=(value); end - # source://actionpack/7.1.3.2/lib/action_dispatch/routing/url_for.rb#97 + # source://actionpack/7.1.3.3/lib/action_dispatch/routing/url_for.rb#97 def default_url_options; end - # source://actionpack/7.1.3.2/lib/action_dispatch/routing/url_for.rb#97 + # source://actionpack/7.1.3.3/lib/action_dispatch/routing/url_for.rb#97 def default_url_options=(_arg0); end - # source://actionpack/7.1.3.2/lib/action_dispatch/routing/url_for.rb#97 + # source://actionpack/7.1.3.3/lib/action_dispatch/routing/url_for.rb#97 def default_url_options?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/etag_with_template_digest.rb#29 + # source://actionpack/7.1.3.3/lib/action_controller/metal/etag_with_template_digest.rb#29 def etag_with_template_digest; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/etag_with_template_digest.rb#29 + # source://actionpack/7.1.3.3/lib/action_controller/metal/etag_with_template_digest.rb#29 def etag_with_template_digest=(_arg0); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/etag_with_template_digest.rb#29 + # source://actionpack/7.1.3.3/lib/action_controller/metal/etag_with_template_digest.rb#29 def etag_with_template_digest?; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/conditional_get.rb#13 + # source://actionpack/7.1.3.3/lib/action_controller/metal/conditional_get.rb#13 def etaggers; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/conditional_get.rb#13 + # source://actionpack/7.1.3.3/lib/action_controller/metal/conditional_get.rb#13 def etaggers=(_arg0); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/conditional_get.rb#13 + # source://actionpack/7.1.3.3/lib/action_controller/metal/conditional_get.rb#13 def etaggers?; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/flash.rb#10 + # source://actionpack/7.1.3.3/lib/action_controller/metal/flash.rb#10 def flash(*_arg0, **_arg1, &_arg2); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def forgery_protection_origin_check; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def forgery_protection_origin_check=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def forgery_protection_strategy; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def forgery_protection_strategy=(value); end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys; end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys=(_arg0); end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys?; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/helpers.rb#65 + # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#65 def helpers_path; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/helpers.rb#65 + # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#65 def helpers_path=(_arg0); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/helpers.rb#65 + # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#65 def helpers_path?; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/helpers.rb#66 + # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#66 def include_all_helpers; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/helpers.rb#66 + # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#66 def include_all_helpers=(_arg0); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/helpers.rb#66 + # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#66 def include_all_helpers?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def javascripts_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def javascripts_dir=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def log_warning_on_csrf_failure; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def log_warning_on_csrf_failure=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def logger=(value); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/flash.rb#36 + # source://actionpack/7.1.3.3/lib/action_controller/metal/flash.rb#36 def notice; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def per_form_csrf_tokens; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def per_form_csrf_tokens=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def perform_caching=(value); end - # source://actionpack/7.1.3.2/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/7.1.3.3/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions; end - # source://actionpack/7.1.3.2/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/7.1.3.3/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions=(val); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/redirecting.rb#15 + # source://actionpack/7.1.3.3/lib/action_controller/metal/redirecting.rb#15 def raise_on_open_redirects; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/redirecting.rb#15 + # source://actionpack/7.1.3.3/lib/action_controller/metal/redirecting.rb#15 def raise_on_open_redirects=(val); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def relative_url_root; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def relative_url_root=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def request_forgery_protection_token; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def request_forgery_protection_token=(value); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def stylesheets_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def stylesheets_dir=(value); end private @@ -260,49 +261,47 @@ class ActionController::Base < ::ActionController::Metal # source://actionview//lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end - - # source://actionpack/7.1.3.2/lib/action_controller/base.rb#252 + # source://actionpack/7.1.3.3/lib/action_controller/base.rb#252 def _protected_ivars; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://actionpack/7.1.3.2/lib/action_controller/form_builder.rb#33 + # source://actionpack/7.1.3.3/lib/action_controller/form_builder.rb#33 def _default_form_builder; end - # source://actionpack/7.1.3.2/lib/action_controller/form_builder.rb#33 + # source://actionpack/7.1.3.3/lib/action_controller/form_builder.rb#33 def _default_form_builder=(value); end - # source://actionpack/7.1.3.2/lib/action_controller/form_builder.rb#33 + # source://actionpack/7.1.3.3/lib/action_controller/form_builder.rb#33 def _default_form_builder?; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/flash.rb#8 + # source://actionpack/7.1.3.3/lib/action_controller/metal/flash.rb#8 def _flash_types; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/flash.rb#8 + # source://actionpack/7.1.3.3/lib/action_controller/metal/flash.rb#8 def _flash_types=(value); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/flash.rb#8 + # source://actionpack/7.1.3.3/lib/action_controller/metal/flash.rb#8 def _flash_types?; end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods; end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods=(value); end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods?; end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#16 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#16 def _helpers; end # source://actionview//lib/action_view/layouts.rb#211 @@ -323,226 +322,226 @@ class ActionController::Base < ::ActionController::Metal # source://actionview//lib/action_view/layouts.rb#212 def _layout_conditions?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _process_action_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _process_action_callbacks=(value); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/7.1.3.3/lib/action_controller/metal/renderers.rb#31 def _renderers; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/7.1.3.3/lib/action_controller/metal/renderers.rb#31 def _renderers=(value); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/7.1.3.3/lib/action_controller/metal/renderers.rb#31 def _renderers?; end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies; end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies=(value); end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies?; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/params_wrapper.rb#187 + # source://actionpack/7.1.3.3/lib/action_controller/metal/params_wrapper.rb#187 def _wrapper_options; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/params_wrapper.rb#187 + # source://actionpack/7.1.3.3/lib/action_controller/metal/params_wrapper.rb#187 def _wrapper_options=(value); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/params_wrapper.rb#187 + # source://actionpack/7.1.3.3/lib/action_controller/metal/params_wrapper.rb#187 def _wrapper_options?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def allow_forgery_protection; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def allow_forgery_protection=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def asset_host; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def asset_host=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def assets_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def assets_dir=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def csrf_token_storage_strategy; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def csrf_token_storage_strategy=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def default_asset_host_protocol; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def default_asset_host_protocol=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def default_protect_from_forgery; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def default_protect_from_forgery=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def default_static_extension=(value); end - # source://actionpack/7.1.3.2/lib/action_dispatch/routing/url_for.rb#97 + # source://actionpack/7.1.3.3/lib/action_dispatch/routing/url_for.rb#97 def default_url_options; end - # source://actionpack/7.1.3.2/lib/action_dispatch/routing/url_for.rb#97 + # source://actionpack/7.1.3.3/lib/action_dispatch/routing/url_for.rb#97 def default_url_options=(value); end - # source://actionpack/7.1.3.2/lib/action_dispatch/routing/url_for.rb#97 + # source://actionpack/7.1.3.3/lib/action_dispatch/routing/url_for.rb#97 def default_url_options?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/etag_with_template_digest.rb#29 + # source://actionpack/7.1.3.3/lib/action_controller/metal/etag_with_template_digest.rb#29 def etag_with_template_digest; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/etag_with_template_digest.rb#29 + # source://actionpack/7.1.3.3/lib/action_controller/metal/etag_with_template_digest.rb#29 def etag_with_template_digest=(value); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/etag_with_template_digest.rb#29 + # source://actionpack/7.1.3.3/lib/action_controller/metal/etag_with_template_digest.rb#29 def etag_with_template_digest?; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/conditional_get.rb#13 + # source://actionpack/7.1.3.3/lib/action_controller/metal/conditional_get.rb#13 def etaggers; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/conditional_get.rb#13 + # source://actionpack/7.1.3.3/lib/action_controller/metal/conditional_get.rb#13 def etaggers=(value); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/conditional_get.rb#13 + # source://actionpack/7.1.3.3/lib/action_controller/metal/conditional_get.rb#13 def etaggers?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def forgery_protection_origin_check; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def forgery_protection_origin_check=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def forgery_protection_strategy; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def forgery_protection_strategy=(value); end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys; end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys=(value); end - # source://actionpack/7.1.3.2/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys?; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/helpers.rb#65 + # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#65 def helpers_path; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/helpers.rb#65 + # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#65 def helpers_path=(value); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/helpers.rb#65 + # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#65 def helpers_path?; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/helpers.rb#66 + # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#66 def include_all_helpers; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/helpers.rb#66 + # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#66 def include_all_helpers=(value); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/helpers.rb#66 + # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#66 def include_all_helpers?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def javascripts_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def javascripts_dir=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def log_warning_on_csrf_failure; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def log_warning_on_csrf_failure=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def logger=(value); end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def per_form_csrf_tokens; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def per_form_csrf_tokens=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def perform_caching=(value); end - # source://actionpack/7.1.3.2/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/7.1.3.3/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions; end - # source://actionpack/7.1.3.2/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/7.1.3.3/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions=(val); end - # source://actionpack/7.1.3.2/lib/action_controller/metal/redirecting.rb#15 + # source://actionpack/7.1.3.3/lib/action_controller/metal/redirecting.rb#15 def raise_on_open_redirects; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/redirecting.rb#15 + # source://actionpack/7.1.3.3/lib/action_controller/metal/redirecting.rb#15 def raise_on_open_redirects=(val); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def relative_url_root; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def relative_url_root=(value); end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def request_forgery_protection_token; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def request_forgery_protection_token=(value); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers?; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 def stylesheets_dir; end - # source://activesupport/7.1.3.2/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 def stylesheets_dir=(value); end - # source://actionpack/7.1.3.2/lib/action_controller/base.rb#184 + # source://actionpack/7.1.3.3/lib/action_controller/base.rb#184 def without_modules(*modules); end end end @@ -937,10 +936,10 @@ class ActionView::Base # source://actionview//lib/action_view/base.rb#207 def assign(new_assigns); end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 def assigns; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 def assigns=(_arg0); end # source://actionview//lib/action_view/base.rb#160 @@ -954,10 +953,10 @@ class ActionView::Base # source://actionview//lib/action_view/base.rb#270 def compiled_method_container; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 def config; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 def config=(_arg0); end # source://actionview//lib/action_view/helpers/translation_helper.rb#18 @@ -12026,7 +12025,7 @@ class ActionView::LogSubscriber < ::ActiveSupport::LogSubscriber # source://actionview//lib/action_view/log_subscriber.rb#101 def attach_to(*_arg0); end - # source://activesupport/7.1.3.2/lib/active_support/log_subscriber.rb#87 + # source://activesupport/7.1.3.3/lib/active_support/log_subscriber.rb#87 def log_levels; end end end @@ -12929,7 +12928,7 @@ end # source://actionview//lib/action_view/railtie.rb#8 class ActionView::Railtie < ::Rails::Engine class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end end end @@ -14105,7 +14104,7 @@ end module ActionView::RoutingUrlFor include ::ActionDispatch::Routing::PolymorphicRoutes - # source://actionpack/7.1.3.2/lib/action_dispatch/routing/url_for.rb#99 + # source://actionpack/7.1.3.3/lib/action_dispatch/routing/url_for.rb#99 def default_url_options=(val); end # Returns the URL for the set of +options+ provided. This takes the @@ -14207,7 +14206,7 @@ module ActionView::RoutingUrlFor def optimize_routes_generation?; end class << self - # source://actionpack/7.1.3.2/lib/action_dispatch/routing/url_for.rb#99 + # source://actionpack/7.1.3.3/lib/action_dispatch/routing/url_for.rb#99 def default_url_options=(val); end end end @@ -15296,13 +15295,13 @@ class ActionView::TestCase < ::ActiveSupport::TestCase extend ::ActiveSupport::Testing::ConstantLookup::ClassMethods extend ::ActionView::TestCase::Behavior::ClassMethods - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods; end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods=(_arg0); end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods?; end # source://actionview//lib/action_view/helpers/translation_helper.rb#18 @@ -15312,19 +15311,19 @@ class ActionView::TestCase < ::ActiveSupport::TestCase def debug_missing_translation=(val); end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods; end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods=(value); end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods?; end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#16 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#16 def _helpers; end # source://actionview//lib/action_view/test_case.rb#201 @@ -15760,8 +15759,6 @@ class ActionView::TestCase::TestController < ::ActionController::Base # source://actionview//lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end - class << self # source://actionview//lib/action_view/test_case.rb#30 def controller_name; end @@ -15776,7 +15773,7 @@ class ActionView::TestCase::TestController < ::ActionController::Base # source://actionview//lib/action_view/test_case.rb#23 def controller_path=(_arg0); end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end diff --git a/sorbet/rbi/gems/activejob@7.1.3.2.rbi b/sorbet/rbi/gems/activejob@7.1.3.3.rbi similarity index 98% rename from sorbet/rbi/gems/activejob@7.1.3.2.rbi rename to sorbet/rbi/gems/activejob@7.1.3.3.rbi index 79f251f1..b6eb91fa 100644 --- a/sorbet/rbi/gems/activejob@7.1.3.2.rbi +++ b/sorbet/rbi/gems/activejob@7.1.3.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `activejob` gem. # Please instead update this file by running `bin/tapioca gem activejob`. + # :markup: markdown # :include: activejob/README.md # @@ -208,22 +209,22 @@ class ActiveJob::Base extend ::ActiveJob::Exceptions::ClassMethods extend ::ActiveJob::TestHelper::TestQueueAdapter::ClassMethods - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _enqueue_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _perform_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_enqueue_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_perform_callbacks(&block); end # source://activejob//lib/active_job/exceptions.rb#12 @@ -253,35 +254,35 @@ class ActiveJob::Base # source://activejob//lib/active_job/queue_name.rb#57 def queue_name_prefix?; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers?; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _enqueue_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _enqueue_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _perform_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _perform_callbacks=(value); end # source://activejob//lib/active_job/queue_adapter.rb#24 @@ -362,13 +363,13 @@ class ActiveJob::Base # source://activejob//lib/active_job/queue_name.rb#57 def queue_name_prefix?; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers?; end # source://activejob//lib/active_job/exceptions.rb#11 @@ -406,16 +407,16 @@ module ActiveJob::Callbacks mixes_in_class_methods ::ActiveJob::Callbacks::ClassMethods class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _execute_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_execute_callbacks(&block); end end @@ -1221,7 +1222,7 @@ class ActiveJob::LogSubscriber < ::ActiveSupport::LogSubscriber # source://activejob//lib/active_job/log_subscriber.rb#7 def backtrace_cleaner?; end - # source://activesupport/7.1.3.2/lib/active_support/log_subscriber.rb#87 + # source://activesupport/7.1.3.3/lib/active_support/log_subscriber.rb#87 def log_levels; end end end diff --git a/sorbet/rbi/gems/activemodel@7.1.3.2.rbi b/sorbet/rbi/gems/activemodel@7.1.3.3.rbi similarity index 99% rename from sorbet/rbi/gems/activemodel@7.1.3.2.rbi rename to sorbet/rbi/gems/activemodel@7.1.3.3.rbi index df22f8cf..5b8f23d2 100644 --- a/sorbet/rbi/gems/activemodel@7.1.3.2.rbi +++ b/sorbet/rbi/gems/activemodel@7.1.3.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `activemodel` gem. # Please instead update this file by running `bin/tapioca gem activemodel`. + # :include: activemodel/README.rdoc # # source://activemodel//lib/active_model/gem_version.rb#3 diff --git a/sorbet/rbi/gems/activerecord@7.1.3.2.rbi b/sorbet/rbi/gems/activerecord@7.1.3.3.rbi similarity index 99% rename from sorbet/rbi/gems/activerecord@7.1.3.2.rbi rename to sorbet/rbi/gems/activerecord@7.1.3.3.rbi index 9337a82f..388689c8 100644 --- a/sorbet/rbi/gems/activerecord@7.1.3.2.rbi +++ b/sorbet/rbi/gems/activerecord@7.1.3.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `activerecord` gem. # Please instead update this file by running `bin/tapioca gem activerecord`. + # :include: activerecord/README.rdoc # # source://activerecord//lib/active_record/gem_version.rb#3 @@ -8235,7 +8236,6 @@ class ActiveRecord::Base include ::ActiveStorage::Attached::Model include ::ActiveStorage::Reflection::ActiveRecordExtensions include ::ActionText::Attribute - include ::Turbo::Broadcastable extend ::ActiveModel::Naming extend ::ActiveSupport::Benchmarkable extend ::ActiveSupport::DescendantsTracker @@ -8297,30 +8297,29 @@ class ActiveRecord::Base extend ::ActiveStorage::Attached::Model::ClassMethods extend ::ActiveStorage::Reflection::ActiveRecordExtensions::ClassMethods extend ::ActionText::Attribute::ClassMethods - extend ::Turbo::Broadcastable::ClassMethods - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _before_commit_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _commit_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _create_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _destroy_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _find_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _initialize_callbacks; end # source://activerecord//lib/active_record/reflection.rb#11 @@ -8329,64 +8328,64 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/reflection.rb#11 def _reflections?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _rollback_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_before_commit_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_commit_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_create_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_destroy_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_find_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_initialize_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_rollback_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_save_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_touch_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_update_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_validate_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_validation_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _save_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _touch_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _update_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _validate_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _validation_callbacks; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators?; end # source://activerecord//lib/active_record/reflection.rb#12 @@ -8395,22 +8394,22 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/reflection.rb#12 def aggregate_reflections?; end - # source://activestorage/7.1.3.2/lib/active_storage/reflection.rb#53 + # source://activestorage/7.1.3.3/lib/active_storage/reflection.rb#53 def attachment_reflections; end - # source://activestorage/7.1.3.2/lib/active_storage/reflection.rb#53 + # source://activestorage/7.1.3.3/lib/active_storage/reflection.rb#53 def attachment_reflections?; end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 def attribute_aliases; end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 def attribute_aliases?; end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns; end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns?; end # source://activerecord//lib/active_record/reflection.rb#13 @@ -8485,10 +8484,10 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes?; end - # source://activemodel/7.1.3.2/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 def include_root_in_json; end - # source://activemodel/7.1.3.2/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 def include_root_in_json?; end # source://activerecord//lib/active_record/locking/optimistic.rb#56 @@ -8503,7 +8502,7 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/core.rb#22 def logger?; end - # source://activemodel/7.1.3.2/lib/active_model/naming.rb#255 + # source://activemodel/7.1.3.3/lib/active_model/naming.rb#255 def model_name(&block); end # source://activerecord//lib/active_record/nested_attributes.rb#15 @@ -8521,7 +8520,7 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/normalization.rb#8 def normalized_attributes?; end - # source://activemodel/7.1.3.2/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 def param_delimiter=(_arg0); end # source://activerecord//lib/active_record/attribute_methods/dirty.rb#50 @@ -8581,8 +8580,6 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/inheritance.rb#47 def store_full_sti_class?; end - def suppressed_turbo_broadcasts?(&block); end - # source://activerecord//lib/active_record/model_schema.rb#159 def table_name_prefix; end @@ -8610,22 +8607,22 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/model_schema.rb#178 def type_for_attribute(attr_name, &block); end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#67 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#67 def validation_context; end private - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#67 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#67 def validation_context=(_arg0); end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end # source://activerecord//lib/active_record/readonly_attributes.rb#11 @@ -8637,16 +8634,16 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/readonly_attributes.rb#11 def _attr_readonly?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _before_commit_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _before_commit_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _commit_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _commit_callbacks=(value); end # source://activerecord//lib/active_record/counter_cache.rb#9 @@ -8658,10 +8655,10 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/counter_cache.rb#9 def _counter_cache_columns?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _create_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _create_callbacks=(value); end # source://activerecord//lib/active_record/core.rb#24 @@ -8673,22 +8670,22 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/core.rb#24 def _destroy_association_async_job?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _destroy_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _destroy_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _find_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _find_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _initialize_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _initialize_callbacks=(value); end # source://activerecord//lib/active_record/reflection.rb#11 @@ -8700,70 +8697,70 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/reflection.rb#11 def _reflections?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _rollback_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _rollback_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _save_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _save_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _touch_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _touch_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _update_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _update_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _validate_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _validate_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _validation_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _validation_callbacks=(value); end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators=(value); end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators?; end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 def after_create(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 def after_destroy(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 def after_find(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 def after_initialize(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 def after_save(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 def after_touch(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 def after_update(*args, **options, &block); end # source://activerecord//lib/active_record/reflection.rb#12 @@ -8778,16 +8775,16 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/core.rb#105 def application_record_class?; end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#137 def around_create(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#137 def around_destroy(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#137 def around_save(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#137 def around_update(*args, **options, &block); end # source://activerecord//lib/active_record/core.rb#125 @@ -8796,31 +8793,31 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/core.rb#129 def asynchronous_queries_tracker; end - # source://activestorage/7.1.3.2/lib/active_storage/reflection.rb#53 + # source://activestorage/7.1.3.3/lib/active_storage/reflection.rb#53 def attachment_reflections; end - # source://activestorage/7.1.3.2/lib/active_storage/reflection.rb#53 + # source://activestorage/7.1.3.3/lib/active_storage/reflection.rb#53 def attachment_reflections=(value); end - # source://activestorage/7.1.3.2/lib/active_storage/reflection.rb#53 + # source://activestorage/7.1.3.3/lib/active_storage/reflection.rb#53 def attachment_reflections?; end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 def attribute_aliases; end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 def attribute_aliases=(value); end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 def attribute_aliases?; end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns; end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns=(value); end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns?; end # source://activerecord//lib/active_record/attributes.rb#11 @@ -8841,16 +8838,16 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/reflection.rb#13 def automatic_scope_inversing?; end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#130 def before_create(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#130 def before_destroy(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#130 def before_save(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#130 def before_update(*args, **options, &block); end # source://activerecord//lib/active_record/core.rb#89 @@ -9045,13 +9042,13 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/model_schema.rb#164 def implicit_order_column?; end - # source://activemodel/7.1.3.2/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 def include_root_in_json; end - # source://activemodel/7.1.3.2/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 def include_root_in_json=(value); end - # source://activemodel/7.1.3.2/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 def include_root_in_json?; end # source://activerecord//lib/active_record/model_schema.rb#167 @@ -9114,13 +9111,13 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/normalization.rb#8 def normalized_attributes?; end - # source://activemodel/7.1.3.2/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 def param_delimiter; end - # source://activemodel/7.1.3.2/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 def param_delimiter=(value); end - # source://activemodel/7.1.3.2/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 def param_delimiter?; end # source://activerecord//lib/active_record/attribute_methods/dirty.rb#50 @@ -9243,12 +9240,6 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/core.rb#226 def strict_loading_violation!(owner:, reflection:); end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 - def suppressed_turbo_broadcasts; end - - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 - def suppressed_turbo_broadcasts=(obj); end - # source://activerecord//lib/active_record/model_schema.rb#159 def table_name_prefix; end @@ -10458,22 +10449,22 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#128 def initialize(config_or_deprecated_connection, deprecated_logger = T.unsafe(nil), deprecated_connection_options = T.unsafe(nil), deprecated_config = T.unsafe(nil)); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _checkin_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _checkout_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_checkin_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_checkout_callbacks(&block); end # Checks whether the connection to the database is still active. This includes @@ -10505,7 +10496,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # # @return [Boolean] # - # source://activesupport/7.1.3.2/lib/active_support/deprecation/method_wrappers.rb#46 + # source://activesupport/7.1.3.3/lib/active_support/deprecation/method_wrappers.rb#46 def all_foreign_keys_valid?(*args, **_arg1, &block); end # @return [Boolean] @@ -11306,25 +11297,25 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter def without_prepared_statement?(binds); end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _checkin_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _checkin_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _checkout_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _checkout_callbacks=(value); end # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#89 @@ -12382,7 +12373,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#185 def connection_class; end - # source://activesupport/7.1.3.2/lib/active_support/deprecation/method_wrappers.rb#46 + # source://activesupport/7.1.3.3/lib/active_support/deprecation/method_wrappers.rb#46 def connection_klass(*args, **_arg1, &block); end # Returns an array containing the connections currently in the pool. @@ -14259,7 +14250,7 @@ class ActiveRecord::ConnectionAdapters::SchemaCache # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#316 def data_source_exists?(connection, name); end - # source://activesupport/7.1.3.2/lib/active_support/deprecation/method_wrappers.rb#46 + # source://activesupport/7.1.3.3/lib/active_support/deprecation/method_wrappers.rb#46 def data_sources(*args, **_arg1, &block); end # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#373 @@ -14324,10 +14315,10 @@ class ActiveRecord::ConnectionAdapters::SchemaCache # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#234 def _load_from(filename); end - # source://activesupport/7.1.3.2/lib/active_support/deprecation/method_wrappers.rb#46 + # source://activesupport/7.1.3.3/lib/active_support/deprecation/method_wrappers.rb#46 def load_from(*args, **_arg1, &block); end - # source://activesupport/7.1.3.2/lib/active_support/deprecation/method_wrappers.rb#46 + # source://activesupport/7.1.3.3/lib/active_support/deprecation/method_wrappers.rb#46 def new(*args, **_arg1, &block); end private @@ -18908,10 +18899,10 @@ class ActiveRecord::DestroyAssociationAsyncJob < ::ActiveJob::Base def owner_destroyed?(owner, ensuring_owner_was_method); end class << self - # source://activejob/7.1.3.2/lib/active_job/queue_name.rb#55 + # source://activejob/7.1.3.3/lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -19094,10 +19085,10 @@ module ActiveRecord::Encryption # source://activerecord//lib/active_record/encryption/configurable.rb#10 def config; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 def custom_contexts; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 def custom_contexts=(obj); end # source://activerecord//lib/active_record/encryption/contexts.rb#17 @@ -19116,10 +19107,10 @@ module ActiveRecord::Encryption # source://activerecord//lib/active_record/encryption/configurable.rb#10 def config; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 def custom_contexts; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 def custom_contexts=(obj); end # source://activerecord//lib/active_record/encryption/contexts.rb#17 @@ -20499,7 +20490,7 @@ class ActiveRecord::Encryption::Properties # source://activerecord//lib/active_record/encryption/properties.rb#20 def key?(*_arg0, **_arg1, &_arg2); end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/delegation.rb#331 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/delegation.rb#331 def method_missing(method, *args, **_arg2, &block); end # source://activerecord//lib/active_record/encryption/properties.rb#68 @@ -20515,7 +20506,7 @@ class ActiveRecord::Encryption::Properties # source://activerecord//lib/active_record/encryption/properties.rb#73 def data; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/delegation.rb#323 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/delegation.rb#323 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -22407,7 +22398,7 @@ class ActiveRecord::FutureResult # source://activerecord//lib/active_record/future_result.rb#53 def lock_wait; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/delegation.rb#331 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/delegation.rb#331 def method_missing(method, *args, **_arg2, &block); end # @return [Boolean] @@ -22438,7 +22429,7 @@ class ActiveRecord::FutureResult # source://activerecord//lib/active_record/future_result.rb#144 def execute_query(connection, async: T.unsafe(nil)); end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/delegation.rb#323 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/delegation.rb#323 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -23831,7 +23822,7 @@ class ActiveRecord::LogSubscriber < ::ActiveSupport::LogSubscriber # source://activerecord//lib/active_record/log_subscriber.rb#7 def backtrace_cleaner?; end - # source://activesupport/7.1.3.2/lib/active_support/log_subscriber.rb#87 + # source://activesupport/7.1.3.3/lib/active_support/log_subscriber.rb#87 def log_levels; end # source://activerecord//lib/active_record/log_subscriber.rb#23 @@ -26953,23 +26944,23 @@ class ActiveRecord::NoDatabaseError < ::ActiveRecord::StatementInvalid # source://activerecord//lib/active_record/errors.rb#314 def initialize(message = T.unsafe(nil), connection_pool: T.unsafe(nil)); end - # source://activesupport/7.1.3.2/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 def _actions; end - # source://activesupport/7.1.3.2/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 def _actions=(_arg0); end - # source://activesupport/7.1.3.2/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 def _actions?; end class << self - # source://activesupport/7.1.3.2/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 def _actions; end - # source://activesupport/7.1.3.2/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 def _actions=(value); end - # source://activesupport/7.1.3.2/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 def _actions?; end # source://activerecord//lib/active_record/errors.rb#319 @@ -27255,13 +27246,13 @@ class ActiveRecord::PendingMigrationError < ::ActiveRecord::MigrationError # source://activerecord//lib/active_record/migration.rb#146 def initialize(message = T.unsafe(nil), pending_migrations: T.unsafe(nil)); end - # source://activesupport/7.1.3.2/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 def _actions; end - # source://activesupport/7.1.3.2/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 def _actions=(_arg0); end - # source://activesupport/7.1.3.2/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 def _actions?; end private @@ -27273,13 +27264,13 @@ class ActiveRecord::PendingMigrationError < ::ActiveRecord::MigrationError def detailed_migration_message(pending_migrations); end class << self - # source://activesupport/7.1.3.2/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 def _actions; end - # source://activesupport/7.1.3.2/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 def _actions=(value); end - # source://activesupport/7.1.3.2/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 def _actions?; end end end @@ -28747,10 +28738,10 @@ module ActiveRecord::QueryLogs # source://activerecord//lib/active_record/query_logs.rb#77 def cache_query_log_tags=(val); end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 def cached_comment; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 def cached_comment=(obj); end # source://activerecord//lib/active_record/query_logs.rb#82 @@ -30992,7 +30983,7 @@ module ActiveRecord::Reflection private - # source://activestorage/7.1.3.2/lib/active_storage/reflection.rb#37 + # source://activestorage/7.1.3.3/lib/active_storage/reflection.rb#37 def reflection_class_for(macro); end end diff --git a/sorbet/rbi/gems/activestorage@7.1.3.2.rbi b/sorbet/rbi/gems/activestorage@7.1.3.3.rbi similarity index 74% rename from sorbet/rbi/gems/activestorage@7.1.3.2.rbi rename to sorbet/rbi/gems/activestorage@7.1.3.3.rbi index 77e02736..99157d67 100644 --- a/sorbet/rbi/gems/activestorage@7.1.3.2.rbi +++ b/sorbet/rbi/gems/activestorage@7.1.3.3.rbi @@ -4,106 +4,107 @@ # This is an autogenerated file for types exported from the `activestorage` gem. # Please instead update this file by running `bin/tapioca gem activestorage`. + class ActiveRecord::Base include ::ActiveModel::Access include ::ActiveModel::ForbiddenAttributesProtection include ::ActiveModel::AttributeAssignment include ::ActiveModel::Serialization - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _before_commit_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _commit_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _create_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _destroy_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _find_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _initialize_callbacks; end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 def _reflections; end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 def _reflections?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _rollback_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_before_commit_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_commit_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_create_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_destroy_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_find_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_initialize_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_rollback_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_save_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_touch_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_update_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_validate_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_validation_callbacks(&block); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _save_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _touch_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _update_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _validate_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _validation_callbacks; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators?; end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#12 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#12 def aggregate_reflections; end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#12 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#12 def aggregate_reflections?; end # source://activestorage//lib/active_storage/reflection.rb#53 @@ -112,399 +113,397 @@ class ActiveRecord::Base # source://activestorage//lib/active_storage/reflection.rb#53 def attachment_reflections?; end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 def attribute_aliases; end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 def attribute_aliases?; end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns; end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns?; end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#13 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#13 def automatic_scope_inversing; end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#13 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#13 def automatic_scope_inversing?; end - # source://activerecord/7.1.3.2/lib/active_record/integration.rb#16 + # source://activerecord/7.1.3.3/lib/active_record/integration.rb#16 def cache_timestamp_format; end - # source://activerecord/7.1.3.2/lib/active_record/integration.rb#16 + # source://activerecord/7.1.3.3/lib/active_record/integration.rb#16 def cache_timestamp_format?; end - # source://activerecord/7.1.3.2/lib/active_record/integration.rb#24 + # source://activerecord/7.1.3.3/lib/active_record/integration.rb#24 def cache_versioning; end - # source://activerecord/7.1.3.2/lib/active_record/integration.rb#24 + # source://activerecord/7.1.3.3/lib/active_record/integration.rb#24 def cache_versioning?; end - # source://activerecord/7.1.3.2/lib/active_record/integration.rb#32 + # source://activerecord/7.1.3.3/lib/active_record/integration.rb#32 def collection_cache_versioning; end - # source://activerecord/7.1.3.2/lib/active_record/integration.rb#32 + # source://activerecord/7.1.3.3/lib/active_record/integration.rb#32 def collection_cache_versioning?; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#178 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#178 def column_for_attribute(name, &block); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#97 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#97 def default_connection_handler; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#97 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#97 def default_connection_handler?; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#99 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#99 def default_role; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#99 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#99 def default_role?; end - # source://activerecord/7.1.3.2/lib/active_record/scoping/default.rb#20 + # source://activerecord/7.1.3.3/lib/active_record/scoping/default.rb#20 def default_scope_override; end - # source://activerecord/7.1.3.2/lib/active_record/scoping/default.rb#19 + # source://activerecord/7.1.3.3/lib/active_record/scoping/default.rb#19 def default_scopes; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#101 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#101 def default_shard; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#101 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#101 def default_shard?; end - # source://activerecord/7.1.3.2/lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.2/lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 def defined_enums?; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#47 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#47 def destroy_association_async_batch_size; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#37 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#37 def destroy_association_async_job(&block); end - # source://activerecord/7.1.3.2/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes; end - # source://activerecord/7.1.3.2/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes=(_arg0); end - # source://activerecord/7.1.3.2/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes?; end - # source://activemodel/7.1.3.2/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 def include_root_in_json; end - # source://activemodel/7.1.3.2/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 def include_root_in_json?; end - # source://activerecord/7.1.3.2/lib/active_record/locking/optimistic.rb#56 + # source://activerecord/7.1.3.3/lib/active_record/locking/optimistic.rb#56 def lock_optimistically; end - # source://activerecord/7.1.3.2/lib/active_record/locking/optimistic.rb#56 + # source://activerecord/7.1.3.3/lib/active_record/locking/optimistic.rb#56 def lock_optimistically?; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#22 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#22 def logger; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#22 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#22 def logger?; end - # source://activemodel/7.1.3.2/lib/active_model/naming.rb#255 + # source://activemodel/7.1.3.3/lib/active_model/naming.rb#255 def model_name(&block); end - # source://activerecord/7.1.3.2/lib/active_record/nested_attributes.rb#15 + # source://activerecord/7.1.3.3/lib/active_record/nested_attributes.rb#15 def nested_attributes_options; end - # source://activerecord/7.1.3.2/lib/active_record/nested_attributes.rb#15 + # source://activerecord/7.1.3.3/lib/active_record/nested_attributes.rb#15 def nested_attributes_options?; end - # source://activerecord/7.1.3.2/lib/active_record/normalization.rb#8 + # source://activerecord/7.1.3.3/lib/active_record/normalization.rb#8 def normalized_attributes; end - # source://activerecord/7.1.3.2/lib/active_record/normalization.rb#8 + # source://activerecord/7.1.3.3/lib/active_record/normalization.rb#8 def normalized_attributes=(_arg0); end - # source://activerecord/7.1.3.2/lib/active_record/normalization.rb#8 + # source://activerecord/7.1.3.3/lib/active_record/normalization.rb#8 def normalized_attributes?; end - # source://activemodel/7.1.3.2/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 def param_delimiter=(_arg0); end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts?; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#49 def partial_updates; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#49 def partial_updates?; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#163 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#163 def pluralize_table_names; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#163 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#163 def pluralize_table_names?; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#158 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#158 def primary_key_prefix_type; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#158 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#158 def primary_key_prefix_type?; end - # source://activerecord/7.1.3.2/lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.3.3/lib/active_record/timestamp.rb#47 def record_timestamps; end - # source://activerecord/7.1.3.2/lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.3.3/lib/active_record/timestamp.rb#47 def record_timestamps=(_arg0); end - # source://activerecord/7.1.3.2/lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.3.3/lib/active_record/timestamp.rb#47 def record_timestamps?; end - # source://activerecord/7.1.3.2/lib/active_record/signed_id.rb#13 + # source://activerecord/7.1.3.3/lib/active_record/signed_id.rb#13 def signed_id_verifier_secret; end - # source://activerecord/7.1.3.2/lib/active_record/signed_id.rb#13 + # source://activerecord/7.1.3.3/lib/active_record/signed_id.rb#13 def signed_id_verifier_secret?; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/time_zone_conversion.rb#67 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#67 def skip_time_zone_conversion_for_attributes; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/time_zone_conversion.rb#67 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#67 def skip_time_zone_conversion_for_attributes?; end - # source://activerecord/7.1.3.2/lib/active_record/inheritance.rb#43 + # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#43 def store_full_class_name; end - # source://activerecord/7.1.3.2/lib/active_record/inheritance.rb#43 + # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#43 def store_full_class_name?; end - # source://activerecord/7.1.3.2/lib/active_record/inheritance.rb#47 + # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#47 def store_full_sti_class; end - # source://activerecord/7.1.3.2/lib/active_record/inheritance.rb#47 + # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#47 def store_full_sti_class?; end - def suppressed_turbo_broadcasts?(&block); end - - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#159 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#159 def table_name_prefix; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#159 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#159 def table_name_prefix?; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#160 def table_name_suffix; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#160 def table_name_suffix?; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/time_zone_conversion.rb#66 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#66 def time_zone_aware_attributes; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/time_zone_conversion.rb#66 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#66 def time_zone_aware_attributes?; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/time_zone_conversion.rb#68 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#68 def time_zone_aware_types; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/time_zone_conversion.rb#68 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#68 def time_zone_aware_types?; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#178 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#178 def type_for_attribute(attr_name, &block); end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#67 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#67 def validation_context; end private - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#67 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#67 def validation_context=(_arg0); end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activerecord/7.1.3.2/lib/active_record/readonly_attributes.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/readonly_attributes.rb#11 def _attr_readonly; end - # source://activerecord/7.1.3.2/lib/active_record/readonly_attributes.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/readonly_attributes.rb#11 def _attr_readonly=(value); end - # source://activerecord/7.1.3.2/lib/active_record/readonly_attributes.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/readonly_attributes.rb#11 def _attr_readonly?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _before_commit_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _before_commit_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _commit_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _commit_callbacks=(value); end - # source://activerecord/7.1.3.2/lib/active_record/counter_cache.rb#9 + # source://activerecord/7.1.3.3/lib/active_record/counter_cache.rb#9 def _counter_cache_columns; end - # source://activerecord/7.1.3.2/lib/active_record/counter_cache.rb#9 + # source://activerecord/7.1.3.3/lib/active_record/counter_cache.rb#9 def _counter_cache_columns=(value); end - # source://activerecord/7.1.3.2/lib/active_record/counter_cache.rb#9 + # source://activerecord/7.1.3.3/lib/active_record/counter_cache.rb#9 def _counter_cache_columns?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _create_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _create_callbacks=(value); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#24 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#24 def _destroy_association_async_job; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#24 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#24 def _destroy_association_async_job=(value); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#24 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#24 def _destroy_association_async_job?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _destroy_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _destroy_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _find_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _find_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _initialize_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _initialize_callbacks=(value); end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 def _reflections; end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 def _reflections=(value); end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 def _reflections?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _rollback_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _rollback_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _save_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _save_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _touch_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _touch_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _update_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _update_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _validate_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _validate_callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _validation_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _validation_callbacks=(value); end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators=(value); end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators?; end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 def after_create(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 def after_destroy(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 def after_find(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 def after_initialize(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 def after_save(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 def after_touch(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 def after_update(*args, **options, &block); end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#12 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#12 def aggregate_reflections; end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#12 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#12 def aggregate_reflections=(value); end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#12 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#12 def aggregate_reflections?; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#105 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#105 def application_record_class?; end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#137 def around_create(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#137 def around_destroy(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#137 def around_save(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#137 def around_update(*args, **options, &block); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#125 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#125 def asynchronous_queries_session; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#129 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#129 def asynchronous_queries_tracker; end # source://activestorage//lib/active_storage/reflection.rb#53 @@ -516,495 +515,489 @@ class ActiveRecord::Base # source://activestorage//lib/active_storage/reflection.rb#53 def attachment_reflections?; end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 def attribute_aliases; end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 def attribute_aliases=(value); end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 def attribute_aliases?; end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns; end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns=(value); end - # source://activemodel/7.1.3.2/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns?; end - # source://activerecord/7.1.3.2/lib/active_record/attributes.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/attributes.rb#11 def attributes_to_define_after_schema_loads; end - # source://activerecord/7.1.3.2/lib/active_record/attributes.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/attributes.rb#11 def attributes_to_define_after_schema_loads=(value); end - # source://activerecord/7.1.3.2/lib/active_record/attributes.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/attributes.rb#11 def attributes_to_define_after_schema_loads?; end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#13 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#13 def automatic_scope_inversing; end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#13 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#13 def automatic_scope_inversing=(value); end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#13 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#13 def automatic_scope_inversing?; end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#130 def before_create(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#130 def before_destroy(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#130 def before_save(*args, **options, &block); end - # source://activemodel/7.1.3.2/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#130 def before_update(*args, **options, &block); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#89 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#89 def belongs_to_required_by_default; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#89 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#89 def belongs_to_required_by_default=(value); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#89 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#89 def belongs_to_required_by_default?; end - # source://activerecord/7.1.3.2/lib/active_record/integration.rb#16 + # source://activerecord/7.1.3.3/lib/active_record/integration.rb#16 def cache_timestamp_format; end - # source://activerecord/7.1.3.2/lib/active_record/integration.rb#16 + # source://activerecord/7.1.3.3/lib/active_record/integration.rb#16 def cache_timestamp_format=(value); end - # source://activerecord/7.1.3.2/lib/active_record/integration.rb#16 + # source://activerecord/7.1.3.3/lib/active_record/integration.rb#16 def cache_timestamp_format?; end - # source://activerecord/7.1.3.2/lib/active_record/integration.rb#24 + # source://activerecord/7.1.3.3/lib/active_record/integration.rb#24 def cache_versioning; end - # source://activerecord/7.1.3.2/lib/active_record/integration.rb#24 + # source://activerecord/7.1.3.3/lib/active_record/integration.rb#24 def cache_versioning=(value); end - # source://activerecord/7.1.3.2/lib/active_record/integration.rb#24 + # source://activerecord/7.1.3.3/lib/active_record/integration.rb#24 def cache_versioning?; end - # source://activerecord/7.1.3.2/lib/active_record/integration.rb#32 + # source://activerecord/7.1.3.3/lib/active_record/integration.rb#32 def collection_cache_versioning; end - # source://activerecord/7.1.3.2/lib/active_record/integration.rb#32 + # source://activerecord/7.1.3.3/lib/active_record/integration.rb#32 def collection_cache_versioning=(value); end - # source://activerecord/7.1.3.2/lib/active_record/integration.rb#32 + # source://activerecord/7.1.3.3/lib/active_record/integration.rb#32 def collection_cache_versioning?; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#77 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#77 def configurations; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#71 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#71 def configurations=(config); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#189 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#189 def connected_to_stack; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#203 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#203 def connection_class; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#199 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#199 def connection_class=(b); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#207 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#207 def connection_class?; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#211 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#211 def connection_class_for_self; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#117 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#117 def connection_handler; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#121 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#121 def connection_handler=(handler); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#180 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#180 def current_preventing_writes; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#143 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#143 def current_role; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#161 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#161 def current_shard; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/serialization.rb#20 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/serialization.rb#20 def default_column_serializer; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/serialization.rb#20 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/serialization.rb#20 def default_column_serializer=(value); end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/serialization.rb#20 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/serialization.rb#20 def default_column_serializer?; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#97 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#97 def default_connection_handler; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#97 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#97 def default_connection_handler=(value); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#97 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#97 def default_connection_handler?; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#99 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#99 def default_role; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#99 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#99 def default_role=(value); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#99 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#99 def default_role?; end - # source://activerecord/7.1.3.2/lib/active_record/scoping/default.rb#20 + # source://activerecord/7.1.3.3/lib/active_record/scoping/default.rb#20 def default_scope_override; end - # source://activerecord/7.1.3.2/lib/active_record/scoping/default.rb#20 + # source://activerecord/7.1.3.3/lib/active_record/scoping/default.rb#20 def default_scope_override=(value); end - # source://activerecord/7.1.3.2/lib/active_record/scoping/default.rb#19 + # source://activerecord/7.1.3.3/lib/active_record/scoping/default.rb#19 def default_scopes; end - # source://activerecord/7.1.3.2/lib/active_record/scoping/default.rb#19 + # source://activerecord/7.1.3.3/lib/active_record/scoping/default.rb#19 def default_scopes=(value); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#101 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#101 def default_shard; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#101 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#101 def default_shard=(value); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#101 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#101 def default_shard?; end - # source://activerecord/7.1.3.2/lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.2/lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 def defined_enums=(value); end - # source://activerecord/7.1.3.2/lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 def defined_enums?; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#47 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#47 def destroy_association_async_batch_size; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#47 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#47 def destroy_association_async_batch_size=(value); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#27 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#27 def destroy_association_async_job; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#24 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#24 def destroy_association_async_job=(value); end - # source://activerecord/7.1.3.2/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes; end - # source://activerecord/7.1.3.2/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes=(value); end - # source://activerecord/7.1.3.2/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes?; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#87 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#87 def enumerate_columns_in_select_statements; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#87 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#87 def enumerate_columns_in_select_statements=(value); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#87 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#87 def enumerate_columns_in_select_statements?; end - # source://activerecord/7.1.3.2/lib/active_record/token_for.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/token_for.rb#11 def generated_token_verifier; end - # source://activerecord/7.1.3.2/lib/active_record/token_for.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/token_for.rb#11 def generated_token_verifier=(value); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#93 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#93 def has_many_inversing; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#93 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#93 def has_many_inversing=(value); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#93 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#93 def has_many_inversing?; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#165 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#165 def immutable_strings_by_default; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#165 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#165 def immutable_strings_by_default=(value); end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#165 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#165 def immutable_strings_by_default?; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#164 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#164 def implicit_order_column; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#164 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#164 def implicit_order_column=(value); end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#164 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#164 def implicit_order_column?; end - # source://activemodel/7.1.3.2/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 def include_root_in_json; end - # source://activemodel/7.1.3.2/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 def include_root_in_json=(value); end - # source://activemodel/7.1.3.2/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 def include_root_in_json?; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#167 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#167 def inheritance_column; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#321 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#321 def inheritance_column=(value); end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#167 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#167 def inheritance_column?; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#162 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#162 def internal_metadata_table_name; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#162 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#162 def internal_metadata_table_name=(value); end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#162 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#162 def internal_metadata_table_name?; end - # source://activerecord/7.1.3.2/lib/active_record/store.rb#101 + # source://activerecord/7.1.3.3/lib/active_record/store.rb#101 def local_stored_attributes; end - # source://activerecord/7.1.3.2/lib/active_record/store.rb#101 + # source://activerecord/7.1.3.3/lib/active_record/store.rb#101 def local_stored_attributes=(_arg0); end - # source://activerecord/7.1.3.2/lib/active_record/locking/optimistic.rb#56 + # source://activerecord/7.1.3.3/lib/active_record/locking/optimistic.rb#56 def lock_optimistically; end - # source://activerecord/7.1.3.2/lib/active_record/locking/optimistic.rb#56 + # source://activerecord/7.1.3.3/lib/active_record/locking/optimistic.rb#56 def lock_optimistically=(value); end - # source://activerecord/7.1.3.2/lib/active_record/locking/optimistic.rb#56 + # source://activerecord/7.1.3.3/lib/active_record/locking/optimistic.rb#56 def lock_optimistically?; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#22 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#22 def logger; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#22 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#22 def logger=(value); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#22 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#22 def logger?; end - # source://activerecord/7.1.3.2/lib/active_record/nested_attributes.rb#15 + # source://activerecord/7.1.3.3/lib/active_record/nested_attributes.rb#15 def nested_attributes_options; end - # source://activerecord/7.1.3.2/lib/active_record/nested_attributes.rb#15 + # source://activerecord/7.1.3.3/lib/active_record/nested_attributes.rb#15 def nested_attributes_options=(value); end - # source://activerecord/7.1.3.2/lib/active_record/nested_attributes.rb#15 + # source://activerecord/7.1.3.3/lib/active_record/nested_attributes.rb#15 def nested_attributes_options?; end - # source://activerecord/7.1.3.2/lib/active_record/normalization.rb#8 + # source://activerecord/7.1.3.3/lib/active_record/normalization.rb#8 def normalized_attributes; end - # source://activerecord/7.1.3.2/lib/active_record/normalization.rb#8 + # source://activerecord/7.1.3.3/lib/active_record/normalization.rb#8 def normalized_attributes=(value); end - # source://activerecord/7.1.3.2/lib/active_record/normalization.rb#8 + # source://activerecord/7.1.3.3/lib/active_record/normalization.rb#8 def normalized_attributes?; end - # source://activemodel/7.1.3.2/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 def param_delimiter; end - # source://activemodel/7.1.3.2/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 def param_delimiter=(value); end - # source://activemodel/7.1.3.2/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 def param_delimiter?; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts=(value); end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts?; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#49 def partial_updates; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#49 def partial_updates=(value); end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#49 def partial_updates?; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#163 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#163 def pluralize_table_names; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#163 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#163 def pluralize_table_names=(value); end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#163 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#163 def pluralize_table_names?; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#158 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#158 def primary_key_prefix_type; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#158 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#158 def primary_key_prefix_type=(value); end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#158 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#158 def primary_key_prefix_type?; end - # source://activerecord/7.1.3.2/lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.3.3/lib/active_record/timestamp.rb#47 def record_timestamps; end - # source://activerecord/7.1.3.2/lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.3.3/lib/active_record/timestamp.rb#47 def record_timestamps=(value); end - # source://activerecord/7.1.3.2/lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.3.3/lib/active_record/timestamp.rb#47 def record_timestamps?; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#95 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#95 def run_commit_callbacks_on_first_saved_instances_in_transaction; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#95 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#95 def run_commit_callbacks_on_first_saved_instances_in_transaction=(value); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#95 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#95 def run_commit_callbacks_on_first_saved_instances_in_transaction?; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#161 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#161 def schema_migrations_table_name; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#161 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#161 def schema_migrations_table_name=(value); end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#161 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#161 def schema_migrations_table_name?; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#103 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#103 def shard_selector; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#103 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#103 def shard_selector=(value); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#103 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#103 def shard_selector?; end - # source://activerecord/7.1.3.2/lib/active_record/signed_id.rb#13 + # source://activerecord/7.1.3.3/lib/active_record/signed_id.rb#13 def signed_id_verifier_secret; end - # source://activerecord/7.1.3.2/lib/active_record/signed_id.rb#13 + # source://activerecord/7.1.3.3/lib/active_record/signed_id.rb#13 def signed_id_verifier_secret=(value); end - # source://activerecord/7.1.3.2/lib/active_record/signed_id.rb#13 + # source://activerecord/7.1.3.3/lib/active_record/signed_id.rb#13 def signed_id_verifier_secret?; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/time_zone_conversion.rb#67 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#67 def skip_time_zone_conversion_for_attributes; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/time_zone_conversion.rb#67 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#67 def skip_time_zone_conversion_for_attributes=(value); end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/time_zone_conversion.rb#67 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#67 def skip_time_zone_conversion_for_attributes?; end - # source://activerecord/7.1.3.2/lib/active_record/inheritance.rb#43 + # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#43 def store_full_class_name; end - # source://activerecord/7.1.3.2/lib/active_record/inheritance.rb#43 + # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#43 def store_full_class_name=(value); end - # source://activerecord/7.1.3.2/lib/active_record/inheritance.rb#43 + # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#43 def store_full_class_name?; end - # source://activerecord/7.1.3.2/lib/active_record/inheritance.rb#47 + # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#47 def store_full_sti_class; end - # source://activerecord/7.1.3.2/lib/active_record/inheritance.rb#47 + # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#47 def store_full_sti_class=(value); end - # source://activerecord/7.1.3.2/lib/active_record/inheritance.rb#47 + # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#47 def store_full_sti_class?; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#91 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#91 def strict_loading_by_default; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#91 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#91 def strict_loading_by_default=(value); end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#91 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#91 def strict_loading_by_default?; end - # source://activerecord/7.1.3.2/lib/active_record/core.rb#226 + # source://activerecord/7.1.3.3/lib/active_record/core.rb#226 def strict_loading_violation!(owner:, reflection:); end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 - def suppressed_turbo_broadcasts; end - - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 - def suppressed_turbo_broadcasts=(obj); end - - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#159 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#159 def table_name_prefix; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#159 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#159 def table_name_prefix=(value); end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#159 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#159 def table_name_prefix?; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#160 def table_name_suffix; end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#160 def table_name_suffix=(value); end - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#160 def table_name_suffix?; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/time_zone_conversion.rb#66 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#66 def time_zone_aware_attributes; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/time_zone_conversion.rb#66 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#66 def time_zone_aware_attributes=(value); end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/time_zone_conversion.rb#66 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#66 def time_zone_aware_attributes?; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/time_zone_conversion.rb#68 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#68 def time_zone_aware_types; end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/time_zone_conversion.rb#68 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#68 def time_zone_aware_types=(value); end - # source://activerecord/7.1.3.2/lib/active_record/attribute_methods/time_zone_conversion.rb#68 + # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#68 def time_zone_aware_types?; end - # source://activerecord/7.1.3.2/lib/active_record/token_for.rb#10 + # source://activerecord/7.1.3.3/lib/active_record/token_for.rb#10 def token_definitions; end - # source://activerecord/7.1.3.2/lib/active_record/token_for.rb#10 + # source://activerecord/7.1.3.3/lib/active_record/token_for.rb#10 def token_definitions=(value); end private - # source://activerecord/7.1.3.2/lib/active_record/model_schema.rb#167 + # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#167 def _inheritance_column=(value); end end end @@ -1205,13 +1198,13 @@ module ActiveStorage # source://activestorage//lib/active_storage.rb#52 def queues=(val); end - # source://railties/7.1.3.2/lib/rails/engine.rb#412 + # source://railties/7.1.3.3/lib/rails/engine.rb#412 def railtie_helpers_paths; end - # source://railties/7.1.3.2/lib/rails/engine.rb#395 + # source://railties/7.1.3.3/lib/rails/engine.rb#395 def railtie_namespace; end - # source://railties/7.1.3.2/lib/rails/engine.rb#416 + # source://railties/7.1.3.3/lib/rails/engine.rb#416 def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end # source://activestorage//lib/active_storage.rb#367 @@ -1250,7 +1243,7 @@ module ActiveStorage # source://activestorage//lib/active_storage.rb#65 def supported_image_processing_methods=(val); end - # source://railties/7.1.3.2/lib/rails/engine.rb#401 + # source://railties/7.1.3.3/lib/rails/engine.rb#401 def table_name_prefix; end # source://activestorage//lib/active_storage.rb#363 @@ -1271,7 +1264,7 @@ module ActiveStorage # source://activestorage//lib/active_storage.rb#357 def urls_expire_in=(val); end - # source://railties/7.1.3.2/lib/rails/engine.rb#408 + # source://railties/7.1.3.3/lib/rails/engine.rb#408 def use_relative_model_naming?; end # source://activestorage//lib/active_storage.rb#59 @@ -1315,10 +1308,10 @@ class ActiveStorage::AnalyzeJob < ::ActiveStorage::BaseJob def perform(blob); end class << self - # source://activejob/7.1.3.2/lib/active_job/queue_name.rb#55 + # source://activejob/7.1.3.3/lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -1848,7 +1841,7 @@ class ActiveStorage::Attached::Many < ::ActiveStorage::Attached # source://activestorage//lib/active_storage/attached/many.rb#25 def detach(*_arg0, **_arg1, &_arg2); end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/delegation.rb#331 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/delegation.rb#331 def method_missing(method, *args, **_arg2, &block); end # source://activestorage//lib/active_storage/attached/many.rb#13 @@ -1865,7 +1858,7 @@ class ActiveStorage::Attached::Many < ::ActiveStorage::Attached # source://activestorage//lib/active_storage/attached/many.rb#71 def purge_many; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/delegation.rb#323 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/delegation.rb#323 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -1924,7 +1917,7 @@ class ActiveStorage::Attached::One < ::ActiveStorage::Attached # source://activestorage//lib/active_storage/attached/one.rb#25 def detach(*_arg0, **_arg1, &_arg2); end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/delegation.rb#331 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/delegation.rb#331 def method_missing(method, *args, **_arg2, &block); end # source://activestorage//lib/active_storage/attached/one.rb#13 @@ -1941,7 +1934,7 @@ class ActiveStorage::Attached::One < ::ActiveStorage::Attached # source://activestorage//lib/active_storage/attached/one.rb#78 def purge_one; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/delegation.rb#323 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/delegation.rb#323 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -1949,13 +1942,13 @@ class ActiveStorage::Attachment < ::ActiveStorage::Record include ::ActiveStorage::Attachment::GeneratedAttributeMethods include ::ActiveStorage::Attachment::GeneratedAssociationMethods - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_blob(*args); end - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_record(*args); end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/delegation.rb#331 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/delegation.rb#331 def method_missing(method, *args, **_arg2, &block); end def preview(transformations); end @@ -1964,7 +1957,7 @@ class ActiveStorage::Attachment < ::ActiveStorage::Record def representation(transformations); end def signed_id(*_arg0, **_arg1, &_arg2); end - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def validate_associated_records_for_blob(*args); end def variant(transformations); end @@ -1977,74 +1970,74 @@ class ActiveStorage::Attachment < ::ActiveStorage::Record def named_variants; end def purge_dependent_blob_later; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/delegation.rb#323 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/delegation.rb#323 def respond_to_missing?(name, include_private = T.unsafe(nil)); end def transform_variants_later; end def transformations_by_name(transformations); end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 def _reflections; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators; end - # source://activerecord/7.1.3.2/lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.2/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 def with_all_variant_records(*args, **_arg1); end end end module ActiveStorage::Attachment::GeneratedAssociationMethods - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 def blob; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 def blob=(value); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/belongs_to.rb#145 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/belongs_to.rb#145 def blob_changed?; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/belongs_to.rb#149 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/belongs_to.rb#149 def blob_previously_changed?; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#32 def build_blob(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#36 def create_blob(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#40 def create_blob!(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 def record; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 def record=(value); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/belongs_to.rb#145 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/belongs_to.rb#145 def record_changed?; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/belongs_to.rb#149 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/belongs_to.rb#149 def record_previously_changed?; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#19 def reload_blob; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#19 def reload_record; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#23 def reset_blob; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#23 def reset_record; end end @@ -2055,19 +2048,17 @@ class ActiveStorage::BaseController < ::ActionController::Base private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end - class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2/lib/action_controller/metal/etag_with_template_digest.rb#29 + # source://actionpack/7.1.3.3/lib/action_controller/metal/etag_with_template_digest.rb#29 def etag_with_template_digest; end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2084,21 +2075,21 @@ class ActiveStorage::Blob < ::ActiveStorage::Record include ::ActionText::Attachable extend ::ActionText::Attachable::ClassMethods - # source://actiontext/7.1.3.2/lib/action_text/engine.rb#47 + # source://actiontext/7.1.3.3/lib/action_text/engine.rb#47 def attachable_plain_text_representation(caption = T.unsafe(nil)); end def audio?; end - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_attachments(*args); end - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_preview_image_attachment(*args); end - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_preview_image_blob(*args); end - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_variant_records(*args); end def compose(keys); end @@ -2113,13 +2104,13 @@ class ActiveStorage::Blob < ::ActiveStorage::Record def mirror_later; end def open(tmpdir: T.unsafe(nil), &block); end - # source://actiontext/7.1.3.2/lib/action_text/engine.rb#43 + # source://actiontext/7.1.3.3/lib/action_text/engine.rb#43 def previewable_attachable?; end def purge; end def purge_later; end - # source://activerecord/7.1.3.2/lib/active_record/secure_token.rb#53 + # source://activerecord/7.1.3.3/lib/active_record/secure_token.rb#53 def regenerate_key; end def service; end @@ -2131,7 +2122,7 @@ class ActiveStorage::Blob < ::ActiveStorage::Record def signed_id(purpose: T.unsafe(nil), expires_in: T.unsafe(nil), expires_at: T.unsafe(nil)); end def text?; end - # source://actiontext/7.1.3.2/lib/action_text/engine.rb#51 + # source://actiontext/7.1.3.3/lib/action_text/engine.rb#51 def to_trix_content_attachment_partial_path; end def unfurl(io, identify: T.unsafe(nil)); end @@ -2139,10 +2130,10 @@ class ActiveStorage::Blob < ::ActiveStorage::Record def upload_without_unfurling(io); end def url(expires_in: T.unsafe(nil), disposition: T.unsafe(nil), filename: T.unsafe(nil), **options); end - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def validate_associated_records_for_attachments(*args); end - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def validate_associated_records_for_variant_records(*args); end def video?; end @@ -2157,19 +2148,19 @@ class ActiveStorage::Blob < ::ActiveStorage::Record def web_image?; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 def _reflections; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators; end # source://activestorage//lib/active_storage/reflection.rb#53 def attachment_reflections; end - # source://activerecord/7.1.3.2/lib/active_record/attributes.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/attributes.rb#11 def attributes_to_define_after_schema_loads; end def build_after_unfurling(io:, filename:, key: T.unsafe(nil), content_type: T.unsafe(nil), metadata: T.unsafe(nil), service_name: T.unsafe(nil), identify: T.unsafe(nil), record: T.unsafe(nil)); end @@ -2179,7 +2170,7 @@ class ActiveStorage::Blob < ::ActiveStorage::Record def create_and_upload!(io:, filename:, key: T.unsafe(nil), content_type: T.unsafe(nil), metadata: T.unsafe(nil), service_name: T.unsafe(nil), identify: T.unsafe(nil), record: T.unsafe(nil)); end def create_before_direct_upload!(filename:, byte_size:, checksum:, key: T.unsafe(nil), content_type: T.unsafe(nil), metadata: T.unsafe(nil), service_name: T.unsafe(nil), record: T.unsafe(nil)); end - # source://activerecord/7.1.3.2/lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 def defined_enums; end def find_signed(id, record: T.unsafe(nil), purpose: T.unsafe(nil)); end @@ -2194,10 +2185,10 @@ class ActiveStorage::Blob < ::ActiveStorage::Record def services?; end def signed_id_verifier; end - # source://activerecord/7.1.3.2/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 def unattached(*args, **_arg1); end - # source://activerecord/7.1.3.2/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 def with_attached_preview_image(*args, **_arg1); end end end @@ -2215,34 +2206,34 @@ module ActiveStorage::Blob::Analyzable end module ActiveStorage::Blob::GeneratedAssociationMethods - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/collection_association.rb#62 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/collection_association.rb#62 def attachment_ids; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/collection_association.rb#72 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/collection_association.rb#72 def attachment_ids=(ids); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 def attachments; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 def attachments=(value); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#32 def build_preview_image_attachment(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#32 def build_preview_image_blob(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#36 def create_preview_image_attachment(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#40 def create_preview_image_attachment!(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#36 def create_preview_image_blob(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#40 def create_preview_image_blob!(*args, &block); end # source://activestorage//lib/active_storage/attached/model.rb#99 @@ -2251,40 +2242,40 @@ module ActiveStorage::Blob::GeneratedAssociationMethods # source://activestorage//lib/active_storage/attached/model.rb#104 def preview_image=(attachable); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 def preview_image_attachment; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 def preview_image_attachment=(value); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 def preview_image_blob; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 def preview_image_blob=(value); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#19 def reload_preview_image_attachment; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#19 def reload_preview_image_blob; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#23 def reset_preview_image_attachment; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#23 def reset_preview_image_blob; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/collection_association.rb#62 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/collection_association.rb#62 def variant_record_ids; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/collection_association.rb#72 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/collection_association.rb#72 def variant_record_ids=(ids); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 def variant_records; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 def variant_records=(value); end end @@ -2345,16 +2336,14 @@ class ActiveStorage::Blobs::ProxyController < ::ActiveStorage::BaseController private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end - class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2366,26 +2355,24 @@ class ActiveStorage::Blobs::RedirectController < ::ActiveStorage::BaseController private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end - class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end class ActiveStorage::Current < ::ActiveSupport::CurrentAttributes class << self - # source://activesupport/7.1.3.2/lib/active_support/current_attributes.rb#127 + # source://activesupport/7.1.3.3/lib/active_support/current_attributes.rb#127 def url_options; end - # source://activesupport/7.1.3.2/lib/active_support/current_attributes.rb#127 + # source://activesupport/7.1.3.3/lib/active_support/current_attributes.rb#127 def url_options=(value); end end end @@ -2395,15 +2382,14 @@ class ActiveStorage::DirectUploadsController < ::ActiveStorage::BaseController private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end def blob_args; end def direct_upload_json(blob); end class << self - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2420,20 +2406,19 @@ class ActiveStorage::DiskController < ::ActiveStorage::BaseController private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end def acceptable_content?(token); end def decode_verified_key; end def decode_verified_token; end def named_disk_service(name); end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2468,7 +2453,7 @@ end # source://activestorage//lib/active_storage/engine.rb#25 class ActiveStorage::Engine < ::Rails::Engine class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end end end @@ -2554,10 +2539,10 @@ class ActiveStorage::FixtureSet include ::ActiveRecord::SecureToken extend ::ActiveRecord::SecureToken::ClassMethods - # source://activesupport/7.1.3.2/lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/7.1.3.3/lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path; end - # source://activesupport/7.1.3.2/lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/7.1.3.3/lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path?; end # source://activestorage//lib/active_storage/fixture_set.rb#70 @@ -2585,13 +2570,13 @@ class ActiveStorage::FixtureSet # source://activestorage//lib/active_storage/fixture_set.rb#66 def blob(filename:, **attributes); end - # source://activesupport/7.1.3.2/lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/7.1.3.3/lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path; end - # source://activesupport/7.1.3.2/lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/7.1.3.3/lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path=(value); end - # source://activesupport/7.1.3.2/lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/7.1.3.3/lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path?; end end end @@ -2655,7 +2640,7 @@ class ActiveStorage::LogSubscriber < ::ActiveSupport::LogSubscriber def log_prefix_for_service(event); end class << self - # source://activesupport/7.1.3.2/lib/active_support/log_subscriber.rb#87 + # source://activesupport/7.1.3.3/lib/active_support/log_subscriber.rb#87 def log_levels; end end end @@ -2664,10 +2649,10 @@ class ActiveStorage::MirrorJob < ::ActiveStorage::BaseJob def perform(key, checksum:); end class << self - # source://activejob/7.1.3.2/lib/active_job/queue_name.rb#55 + # source://activejob/7.1.3.3/lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -2862,10 +2847,10 @@ class ActiveStorage::PurgeJob < ::ActiveStorage::BaseJob def perform(blob); end class << self - # source://activejob/7.1.3.2/lib/active_job/queue_name.rb#55 + # source://activejob/7.1.3.3/lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -2875,10 +2860,10 @@ class ActiveStorage::Record < ::ActiveRecord::Base include ::ActiveStorage::Record::GeneratedAssociationMethods class << self - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators; end - # source://activerecord/7.1.3.2/lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 def defined_enums; end end end @@ -2971,18 +2956,17 @@ class ActiveStorage::Representations::BaseController < ::ActiveStorage::BaseCont private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end def blob_scope; end def set_representation; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2997,16 +2981,14 @@ class ActiveStorage::Representations::ProxyController < ::ActiveStorage::Represe private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end - class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -3016,13 +2998,11 @@ class ActiveStorage::Representations::RedirectController < ::ActiveStorage::Repr private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end - class << self - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -3292,10 +3272,10 @@ class ActiveStorage::TransformJob < ::ActiveStorage::BaseJob def perform(blob, transformations); end class << self - # source://activejob/7.1.3.2/lib/active_job/queue_name.rb#55 + # source://activejob/7.1.3.3/lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -3401,74 +3381,74 @@ class ActiveStorage::VariantRecord < ::ActiveStorage::Record include ::ActiveStorage::VariantRecord::GeneratedAttributeMethods include ::ActiveStorage::VariantRecord::GeneratedAssociationMethods - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_blob(*args); end - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_image_attachment(*args); end - # source://activerecord/7.1.3.2/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_image_blob(*args); end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activerecord/7.1.3.2/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 def _reflections; end - # source://activemodel/7.1.3.2/lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 def _validators; end # source://activestorage//lib/active_storage/reflection.rb#53 def attachment_reflections; end - # source://activerecord/7.1.3.2/lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.2/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 def with_attached_image(*args, **_arg1); end end end module ActiveStorage::VariantRecord::GeneratedAssociationMethods - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 def blob; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 def blob=(value); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/belongs_to.rb#145 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/belongs_to.rb#145 def blob_changed?; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/belongs_to.rb#149 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/belongs_to.rb#149 def blob_previously_changed?; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#32 def build_blob(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#32 def build_image_attachment(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#32 def build_image_blob(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#36 def create_blob(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#40 def create_blob!(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#36 def create_image_attachment(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#40 def create_image_attachment!(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#36 def create_image_blob(*args, &block); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#40 def create_image_blob!(*args, &block); end # source://activestorage//lib/active_storage/attached/model.rb#99 @@ -3477,34 +3457,34 @@ module ActiveStorage::VariantRecord::GeneratedAssociationMethods # source://activestorage//lib/active_storage/attached/model.rb#104 def image=(attachable); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 def image_attachment; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 def image_attachment=(value); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 def image_blob; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 def image_blob=(value); end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#19 def reload_blob; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#19 def reload_image_attachment; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#19 def reload_image_blob; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#23 def reset_blob; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#23 def reset_image_attachment; end - # source://activerecord/7.1.3.2/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#23 def reset_image_blob; end end diff --git a/sorbet/rbi/gems/activesupport@7.1.3.2.rbi b/sorbet/rbi/gems/activesupport@7.1.3.3.rbi similarity index 99% rename from sorbet/rbi/gems/activesupport@7.1.3.2.rbi rename to sorbet/rbi/gems/activesupport@7.1.3.3.rbi index d1c14d3c..fcc31b00 100644 --- a/sorbet/rbi/gems/activesupport@7.1.3.2.rbi +++ b/sorbet/rbi/gems/activesupport@7.1.3.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `activesupport` gem. # Please instead update this file by running `bin/tapioca gem activesupport`. + # :include: activesupport/README.rdoc # # source://activesupport//lib/active_support/deep_mergeable.rb#3 @@ -12498,7 +12499,6 @@ class ActiveSupport::TestCase < ::Minitest::Test include ::ActiveSupport::Testing::ConstantStubbing include ::ActiveSupport::Testing::TimeHelpers include ::ActiveSupport::Testing::FileFixtures - include ::Turbo::TestAssertions extend ::ActiveSupport::Callbacks::ClassMethods extend ::ActiveSupport::DescendantsTracker extend ::ActiveSupport::Testing::SetupAndTeardown::ClassMethods @@ -12522,51 +12522,45 @@ class ActiveSupport::TestCase < ::Minitest::Test # source://activesupport//lib/active_support/callbacks.rb#963 def _teardown_callbacks; end - # source://minitest/5.22.3/lib/minitest/assertions.rb#736 + # source://minitest/5.23.1/lib/minitest/assertions.rb#736 def assert_no_match(matcher, obj, msg = T.unsafe(nil)); end - # source://minitest/5.22.3/lib/minitest/assertions.rb#665 + # source://minitest/5.23.1/lib/minitest/assertions.rb#665 def assert_not_empty(obj, msg = T.unsafe(nil)); end - # source://minitest/5.22.3/lib/minitest/assertions.rb#676 + # source://minitest/5.23.1/lib/minitest/assertions.rb#676 def assert_not_equal(exp, act, msg = T.unsafe(nil)); end - # source://minitest/5.22.3/lib/minitest/assertions.rb#688 + # source://minitest/5.23.1/lib/minitest/assertions.rb#688 def assert_not_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.22.3/lib/minitest/assertions.rb#700 + # source://minitest/5.23.1/lib/minitest/assertions.rb#700 def assert_not_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.22.3/lib/minitest/assertions.rb#707 + # source://minitest/5.23.1/lib/minitest/assertions.rb#707 def assert_not_includes(collection, obj, msg = T.unsafe(nil)); end - # source://minitest/5.22.3/lib/minitest/assertions.rb#718 + # source://minitest/5.23.1/lib/minitest/assertions.rb#718 def assert_not_instance_of(cls, obj, msg = T.unsafe(nil)); end - # source://minitest/5.22.3/lib/minitest/assertions.rb#728 + # source://minitest/5.23.1/lib/minitest/assertions.rb#728 def assert_not_kind_of(cls, obj, msg = T.unsafe(nil)); end - # source://minitest/5.22.3/lib/minitest/assertions.rb#746 + # source://minitest/5.23.1/lib/minitest/assertions.rb#746 def assert_not_nil(obj, msg = T.unsafe(nil)); end - # source://minitest/5.22.3/lib/minitest/assertions.rb#781 + # source://minitest/5.23.1/lib/minitest/assertions.rb#781 def assert_not_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.22.3/lib/minitest/assertions.rb#804 + # source://minitest/5.23.1/lib/minitest/assertions.rb#804 def assert_not_predicate(o1, op, msg = T.unsafe(nil)); end - # source://minitest/5.22.3/lib/minitest/assertions.rb#813 + # source://minitest/5.23.1/lib/minitest/assertions.rb#813 def assert_not_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end - # source://minitest/5.22.3/lib/minitest/assertions.rb#822 + # source://minitest/5.23.1/lib/minitest/assertions.rb#822 def assert_not_same(exp, act, msg = T.unsafe(nil)); end - # source://turbo-rails/2.0.5/lib/turbo/test_assertions.rb#7 - def dom_class(*_arg0, **_arg1, &_arg2); end - - # source://turbo-rails/2.0.5/lib/turbo/test_assertions.rb#7 - def dom_id(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path; end @@ -12576,7 +12570,7 @@ class ActiveSupport::TestCase < ::Minitest::Test # source://activesupport//lib/active_support/test_case.rb#298 def inspect; end - # source://minitest/5.22.3/lib/minitest.rb#332 + # source://minitest/5.23.1/lib/minitest.rb#346 def method_name; end class << self @@ -17830,46 +17824,46 @@ HashWithIndifferentAccess = ActiveSupport::HashWithIndifferentAccess # source://activesupport//lib/active_support/i18n_railtie.rb#8 module I18n class << self - # source://i18n/1.14.4/lib/i18n/backend/cache.rb#64 + # source://i18n/1.14.5/lib/i18n/backend/cache.rb#64 def cache_key_digest; end - # source://i18n/1.14.4/lib/i18n/backend/cache.rb#68 + # source://i18n/1.14.5/lib/i18n/backend/cache.rb#68 def cache_key_digest=(key_digest); end - # source://i18n/1.14.4/lib/i18n/backend/cache.rb#56 + # source://i18n/1.14.5/lib/i18n/backend/cache.rb#56 def cache_namespace; end - # source://i18n/1.14.4/lib/i18n/backend/cache.rb#60 + # source://i18n/1.14.5/lib/i18n/backend/cache.rb#60 def cache_namespace=(namespace); end - # source://i18n/1.14.4/lib/i18n/backend/cache.rb#48 + # source://i18n/1.14.5/lib/i18n/backend/cache.rb#48 def cache_store; end - # source://i18n/1.14.4/lib/i18n/backend/cache.rb#52 + # source://i18n/1.14.5/lib/i18n/backend/cache.rb#52 def cache_store=(store); end - # source://i18n/1.14.4/lib/i18n/backend/fallbacks.rb#17 + # source://i18n/1.14.5/lib/i18n/backend/fallbacks.rb#17 def fallbacks; end - # source://i18n/1.14.4/lib/i18n/backend/fallbacks.rb#23 + # source://i18n/1.14.5/lib/i18n/backend/fallbacks.rb#23 def fallbacks=(fallbacks); end - # source://i18n/1.14.4/lib/i18n/interpolate/ruby.rb#23 + # source://i18n/1.14.5/lib/i18n/interpolate/ruby.rb#23 def interpolate(string, values); end - # source://i18n/1.14.4/lib/i18n/interpolate/ruby.rb#29 + # source://i18n/1.14.5/lib/i18n/interpolate/ruby.rb#29 def interpolate_hash(string, values); end - # source://i18n/1.14.4/lib/i18n.rb#37 + # source://i18n/1.14.5/lib/i18n.rb#37 def new_double_nested_cache; end - # source://i18n/1.14.4/lib/i18n/backend/cache.rb#72 + # source://i18n/1.14.5/lib/i18n/backend/cache.rb#72 def perform_caching?; end - # source://i18n/1.14.4/lib/i18n.rb#45 + # source://i18n/1.14.5/lib/i18n.rb#45 def reserve_key(key); end - # source://i18n/1.14.4/lib/i18n.rb#50 + # source://i18n/1.14.5/lib/i18n.rb#50 def reserved_keys_pattern; end end end @@ -19923,7 +19917,11 @@ module Process extend ::RedisClient::PIDCache::CoreExt extend ::ConnectionPool::ForkTracker extend ::ActiveSupport::ForkTracker::ModernCoreExt - extend ::Sass::ForkTracker::CoreExt + + class << self + # source://activesupport//lib/active_support/fork_tracker.rb#6 + def _fork; end + end end # source://activesupport//lib/active_support/core_ext/object/json.rb#242 diff --git a/sorbet/rbi/gems/addressable@2.8.6.rbi b/sorbet/rbi/gems/addressable@2.8.6.rbi index cc191076..88c0fe90 100644 --- a/sorbet/rbi/gems/addressable@2.8.6.rbi +++ b/sorbet/rbi/gems/addressable@2.8.6.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `addressable` gem. # Please instead update this file by running `bin/tapioca gem addressable`. + # Addressable is a library for processing links and URIs. # # source://addressable//lib/addressable/version.rb#22 diff --git a/sorbet/rbi/gems/android_key_attestation@0.3.0.rbi b/sorbet/rbi/gems/android_key_attestation@0.3.0.rbi index 222291c6..74d5e5af 100644 --- a/sorbet/rbi/gems/android_key_attestation@0.3.0.rbi +++ b/sorbet/rbi/gems/android_key_attestation@0.3.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `android_key_attestation` gem. # Please instead update this file by running `bin/tapioca gem android_key_attestation`. + # source://android_key_attestation//lib/android_key_attestation.rb#3 module AndroidKeyAttestation; end diff --git a/sorbet/rbi/gems/annotate@3.2.0.rbi b/sorbet/rbi/gems/annotate@3.2.0.rbi index 5032220c..7bd9f023 100644 --- a/sorbet/rbi/gems/annotate@3.2.0.rbi +++ b/sorbet/rbi/gems/annotate@3.2.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `annotate` gem. # Please instead update this file by running `bin/tapioca gem annotate`. + # source://annotate//lib/annotate/version.rb#1 module Annotate class << self diff --git a/sorbet/rbi/gems/ast@2.4.2.rbi b/sorbet/rbi/gems/ast@2.4.2.rbi index 3fc4495d..e0ae88ef 100644 --- a/sorbet/rbi/gems/ast@2.4.2.rbi +++ b/sorbet/rbi/gems/ast@2.4.2.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `ast` gem. # Please instead update this file by running `bin/tapioca gem ast`. + # {AST} is a library for manipulating abstract syntax trees. # # It embraces immutability; each AST node is inherently frozen at diff --git a/sorbet/rbi/gems/autoprefixer-rails@10.4.16.0.rbi b/sorbet/rbi/gems/autoprefixer-rails@10.4.16.0.rbi index f1eaf241..9e3fbbf9 100644 --- a/sorbet/rbi/gems/autoprefixer-rails@10.4.16.0.rbi +++ b/sorbet/rbi/gems/autoprefixer-rails@10.4.16.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `autoprefixer-rails` gem. # Please instead update this file by running `bin/tapioca gem autoprefixer-rails`. + # source://autoprefixer-rails//lib/autoprefixer-rails/railtie.rb#10 module AutoprefixedRails; end diff --git a/sorbet/rbi/gems/awrence@1.2.1.rbi b/sorbet/rbi/gems/awrence@1.2.1.rbi index ee1da0e3..567069b2 100644 --- a/sorbet/rbi/gems/awrence@1.2.1.rbi +++ b/sorbet/rbi/gems/awrence@1.2.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `awrence` gem. # Please instead update this file by running `bin/tapioca gem awrence`. + # source://awrence//lib/awrence/ext/array/to_camel_keys.rb#3 class Array include ::Enumerable diff --git a/sorbet/rbi/gems/base64@0.2.0.rbi b/sorbet/rbi/gems/base64@0.2.0.rbi index 7a95020a..087b64e5 100644 --- a/sorbet/rbi/gems/base64@0.2.0.rbi +++ b/sorbet/rbi/gems/base64@0.2.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `base64` gem. # Please instead update this file by running `bin/tapioca gem base64`. + # \Module \Base64 provides methods for: # # - Encoding a binary string (containing non-ASCII characters) diff --git a/sorbet/rbi/gems/better_errors@2.10.1.rbi b/sorbet/rbi/gems/better_errors@2.10.1.rbi index 50a1360f..f40c9679 100644 --- a/sorbet/rbi/gems/better_errors@2.10.1.rbi +++ b/sorbet/rbi/gems/better_errors@2.10.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `better_errors` gem. # Please instead update this file by running `bin/tapioca gem better_errors`. + # @private # # source://better_errors//lib/better_errors/version.rb#1 @@ -470,6 +471,15 @@ module BetterErrors::ErrorPageStyle end end +# source://better_errors//lib/better_errors/exception_extension.rb#2 +module BetterErrors::ExceptionExtension + # source://better_errors//lib/better_errors/exception_extension.rb#13 + def __better_errors_bindings_stack; end + + # source://better_errors//lib/better_errors/exception_extension.rb#5 + def set_backtrace(*_arg0); end +end + # source://better_errors//lib/better_errors/exception_hint.rb#2 class BetterErrors::ExceptionHint # @return [ExceptionHint] a new instance of ExceptionHint @@ -811,3 +821,7 @@ BetterErrors::VERSION = T.let(T.unsafe(nil), String) # source://better_errors//lib/better_errors/inspectable_value.rb#5 class BetterErrors::ValueLargerThanConfiguredMaximum < ::StandardError; end + +class Exception + include ::BetterErrors::ExceptionExtension +end diff --git a/sorbet/rbi/gems/bigdecimal@3.1.7.rbi b/sorbet/rbi/gems/bigdecimal@3.1.8.rbi similarity index 99% rename from sorbet/rbi/gems/bigdecimal@3.1.7.rbi rename to sorbet/rbi/gems/bigdecimal@3.1.8.rbi index 439d14e3..c275b2f7 100644 --- a/sorbet/rbi/gems/bigdecimal@3.1.7.rbi +++ b/sorbet/rbi/gems/bigdecimal@3.1.8.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `bigdecimal` gem. # Please instead update this file by running `bin/tapioca gem bigdecimal`. + # source://bigdecimal//lib/bigdecimal/util.rb#78 class BigDecimal < ::Numeric # call-seq: diff --git a/sorbet/rbi/gems/bindata@2.5.0.rbi b/sorbet/rbi/gems/bindata@2.5.0.rbi index 498979a1..b586835d 100644 --- a/sorbet/rbi/gems/bindata@2.5.0.rbi +++ b/sorbet/rbi/gems/bindata@2.5.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `bindata` gem. # Please instead update this file by running `bin/tapioca gem bindata`. + # source://bindata//lib/bindata/version.rb#1 module BinData extend ::BinData::BitFieldFactory diff --git a/sorbet/rbi/gems/bindex@0.8.1.rbi b/sorbet/rbi/gems/bindex@0.8.1.rbi index 9547ca9d..8d9e1432 100644 --- a/sorbet/rbi/gems/bindex@0.8.1.rbi +++ b/sorbet/rbi/gems/bindex@0.8.1.rbi @@ -4,5 +4,6 @@ # This is an autogenerated file for types exported from the `bindex` gem. # Please instead update this file by running `bin/tapioca gem bindex`. + # THIS IS AN EMPTY RBI FILE. # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/binding_of_caller@1.0.1.rbi b/sorbet/rbi/gems/binding_of_caller@1.0.1.rbi new file mode 100644 index 00000000..24d9f6dc --- /dev/null +++ b/sorbet/rbi/gems/binding_of_caller@1.0.1.rbi @@ -0,0 +1,56 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `binding_of_caller` gem. +# Please instead update this file by running `bin/tapioca gem binding_of_caller`. + + +# source://binding_of_caller//lib/binding_of_caller/mri.rb#61 +class Binding + include ::BindingOfCaller::BindingExtensions +end + +# source://binding_of_caller//lib/binding_of_caller/version.rb#1 +module BindingOfCaller; end + +# source://binding_of_caller//lib/binding_of_caller/mri.rb#4 +module BindingOfCaller::BindingExtensions + # Return bindings for all caller frames. + # + # @return [Array] + # + # source://binding_of_caller//lib/binding_of_caller/mri.rb#18 + def callers; end + + # Number of parent frames available at the point of call. + # + # @return [Fixnum] + # + # source://binding_of_caller//lib/binding_of_caller/mri.rb#38 + def frame_count; end + + # The description of the frame. + # + # @return [String] + # + # source://binding_of_caller//lib/binding_of_caller/mri.rb#54 + def frame_description; end + + # The type of the frame. + # + # @return [Symbol] + # + # source://binding_of_caller//lib/binding_of_caller/mri.rb#44 + def frame_type; end + + # Retrieve the binding of the nth caller of the current frame. + # + # @raise [RuntimeError] + # @return [Binding] + # + # source://binding_of_caller//lib/binding_of_caller/mri.rb#7 + def of_caller(n); end +end + +# source://binding_of_caller//lib/binding_of_caller/version.rb#2 +BindingOfCaller::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/bootsnap@1.18.3.rbi b/sorbet/rbi/gems/bootsnap@1.18.3.rbi index 7e6932ff..56f1cefa 100644 --- a/sorbet/rbi/gems/bootsnap@1.18.3.rbi +++ b/sorbet/rbi/gems/bootsnap@1.18.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `bootsnap` gem. # Please instead update this file by running `bin/tapioca gem bootsnap`. + # source://bootsnap//lib/bootsnap/version.rb#3 module Bootsnap extend ::Bootsnap diff --git a/sorbet/rbi/gems/bootstrap@5.3.2.rbi b/sorbet/rbi/gems/bootstrap@5.3.3.rbi similarity index 90% rename from sorbet/rbi/gems/bootstrap@5.3.2.rbi rename to sorbet/rbi/gems/bootstrap@5.3.3.rbi index de0c7389..45723410 100644 --- a/sorbet/rbi/gems/bootstrap@5.3.2.rbi +++ b/sorbet/rbi/gems/bootstrap@5.3.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `bootstrap` gem. # Please instead update this file by running `bin/tapioca gem bootstrap`. + # source://bootstrap//lib/bootstrap/version.rb#3 module Bootstrap class << self @@ -59,13 +60,13 @@ end # source://bootstrap//lib/bootstrap/version.rb#5 Bootstrap::BOOTSTRAP_SHA = T.let(T.unsafe(nil), String) -# source://bootstrap//lib/bootstrap/engine.rb#13 +# source://bootstrap//lib/bootstrap/engine.rb#23 module Bootstrap::Rails; end -# source://bootstrap//lib/bootstrap/engine.rb#14 +# source://bootstrap//lib/bootstrap/engine.rb#24 class Bootstrap::Rails::Engine < ::Rails::Engine class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end end end diff --git a/sorbet/rbi/gems/builder@3.2.4.rbi b/sorbet/rbi/gems/builder@3.2.4.rbi index f99d4923..6e29b77c 100644 --- a/sorbet/rbi/gems/builder@3.2.4.rbi +++ b/sorbet/rbi/gems/builder@3.2.4.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `builder` gem. # Please instead update this file by running `bin/tapioca gem builder`. + # If the Builder::XChar module is not currently defined, fail on any # name clashes in standard library classes. # diff --git a/sorbet/rbi/gems/capybara@3.40.0.rbi b/sorbet/rbi/gems/capybara@3.40.0.rbi index 674c0435..de29370d 100644 --- a/sorbet/rbi/gems/capybara@3.40.0.rbi +++ b/sorbet/rbi/gems/capybara@3.40.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `capybara` gem. # Please instead update this file by running `bin/tapioca gem capybara`. + # source://capybara//lib/capybara/session/config.rb#5 module Capybara extend ::Capybara::DSL diff --git a/sorbet/rbi/gems/cbor@0.5.9.8.rbi b/sorbet/rbi/gems/cbor@0.5.9.8.rbi index 0b61b0b9..7546ffc9 100644 --- a/sorbet/rbi/gems/cbor@0.5.9.8.rbi +++ b/sorbet/rbi/gems/cbor@0.5.9.8.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `cbor` gem. # Please instead update this file by running `bin/tapioca gem cbor`. + # source://cbor//lib/cbor/version.rb#1 module CBOR private diff --git a/sorbet/rbi/gems/coderay@1.1.3.rbi b/sorbet/rbi/gems/coderay@1.1.3.rbi index 76870c11..f0957243 100644 --- a/sorbet/rbi/gems/coderay@1.1.3.rbi +++ b/sorbet/rbi/gems/coderay@1.1.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `coderay` gem. # Please instead update this file by running `bin/tapioca gem coderay`. + # = CodeRay Library # # CodeRay is a Ruby library for syntax highlighting. diff --git a/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi b/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi index e51423a7..ba0780ea 100644 --- a/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +++ b/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `concurrent-ruby` gem. # Please instead update this file by running `bin/tapioca gem concurrent-ruby`. + # {include:file:README.md} # # source://concurrent-ruby//lib/concurrent-ruby/concurrent/constants.rb#1 diff --git a/sorbet/rbi/gems/connection_pool@2.4.1.rbi b/sorbet/rbi/gems/connection_pool@2.4.1.rbi index d4ff9e99..15ebf0d7 100644 --- a/sorbet/rbi/gems/connection_pool@2.4.1.rbi +++ b/sorbet/rbi/gems/connection_pool@2.4.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `connection_pool` gem. # Please instead update this file by running `bin/tapioca gem connection_pool`. + # Generic connection pool class for sharing a limited number of objects or network connections # among many threads. Note: pool elements are lazily created. # @@ -271,5 +272,4 @@ module Process extend ::RedisClient::PIDCache::CoreExt extend ::ConnectionPool::ForkTracker extend ::ActiveSupport::ForkTracker::ModernCoreExt - extend ::Sass::ForkTracker::CoreExt end diff --git a/sorbet/rbi/gems/cose@1.3.0.rbi b/sorbet/rbi/gems/cose@1.3.0.rbi index bcdc5d0c..4a80729b 100644 --- a/sorbet/rbi/gems/cose@1.3.0.rbi +++ b/sorbet/rbi/gems/cose@1.3.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `cose` gem. # Please instead update this file by running `bin/tapioca gem cose`. + # source://cose//lib/cose/algorithm/base.rb#3 module COSE; end diff --git a/sorbet/rbi/gems/crass@1.0.6.rbi b/sorbet/rbi/gems/crass@1.0.6.rbi index 4d267c08..0979e2f4 100644 --- a/sorbet/rbi/gems/crass@1.0.6.rbi +++ b/sorbet/rbi/gems/crass@1.0.6.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `crass` gem. # Please instead update this file by running `bin/tapioca gem crass`. + # A CSS parser based on the CSS Syntax Module Level 3 spec. # # source://crass//lib/crass/token-scanner.rb#3 diff --git a/sorbet/rbi/gems/csv@3.3.0.rbi b/sorbet/rbi/gems/csv@3.3.0.rbi new file mode 100644 index 00000000..fcafb7d2 --- /dev/null +++ b/sorbet/rbi/gems/csv@3.3.0.rbi @@ -0,0 +1,4696 @@ +# typed: false + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `csv` gem. +# Please instead update this file by running `bin/tapioca gem csv`. + + +# source://csv//lib/csv/core_ext/array.rb#1 +class Array + include ::Enumerable + + # Equivalent to CSV::generate_line(self, options) + # + # ["CSV", "data"].to_csv + # #=> "CSV,data\n" + # + # source://csv//lib/csv/core_ext/array.rb#6 + def to_csv(**options); end +end + +# == \CSV +# +# === \CSV Data +# +# \CSV (comma-separated values) data is a text representation of a table: +# - A _row_ _separator_ delimits table rows. +# A common row separator is the newline character "\n". +# - A _column_ _separator_ delimits fields in a row. +# A common column separator is the comma character ",". +# +# This \CSV \String, with row separator "\n" +# and column separator ",", +# has three rows and two columns: +# "foo,0\nbar,1\nbaz,2\n" +# +# Despite the name \CSV, a \CSV representation can use different separators. +# +# For more about tables, see the Wikipedia article +# "{Table (information)}[https://en.wikipedia.org/wiki/Table_(information)]", +# especially its section +# "{Simple table}[https://en.wikipedia.org/wiki/Table_(information)#Simple_table]" +# +# == \Class \CSV +# +# Class \CSV provides methods for: +# - Parsing \CSV data from a \String object, a \File (via its file path), or an \IO object. +# - Generating \CSV data to a \String object. +# +# To make \CSV available: +# require 'csv' +# +# All examples here assume that this has been done. +# +# == Keeping It Simple +# +# A \CSV object has dozens of instance methods that offer fine-grained control +# of parsing and generating \CSV data. +# For many needs, though, simpler approaches will do. +# +# This section summarizes the singleton methods in \CSV +# that allow you to parse and generate without explicitly +# creating \CSV objects. +# For details, follow the links. +# +# === Simple Parsing +# +# Parsing methods commonly return either of: +# - An \Array of Arrays of Strings: +# - The outer \Array is the entire "table". +# - Each inner \Array is a row. +# - Each \String is a field. +# - A CSV::Table object. For details, see +# {\CSV with Headers}[#class-CSV-label-CSV+with+Headers]. +# +# ==== Parsing a \String +# +# The input to be parsed can be a string: +# string = "foo,0\nbar,1\nbaz,2\n" +# +# \Method CSV.parse returns the entire \CSV data: +# CSV.parse(string) # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] +# +# \Method CSV.parse_line returns only the first row: +# CSV.parse_line(string) # => ["foo", "0"] +# +# \CSV extends class \String with instance method String#parse_csv, +# which also returns only the first row: +# string.parse_csv # => ["foo", "0"] +# +# ==== Parsing Via a \File Path +# +# The input to be parsed can be in a file: +# string = "foo,0\nbar,1\nbaz,2\n" +# path = 't.csv' +# File.write(path, string) +# +# \Method CSV.read returns the entire \CSV data: +# CSV.read(path) # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] +# +# \Method CSV.foreach iterates, passing each row to the given block: +# CSV.foreach(path) do |row| +# p row +# end +# Output: +# ["foo", "0"] +# ["bar", "1"] +# ["baz", "2"] +# +# \Method CSV.table returns the entire \CSV data as a CSV::Table object: +# CSV.table(path) # => # +# +# ==== Parsing from an Open \IO Stream +# +# The input to be parsed can be in an open \IO stream: +# +# \Method CSV.read returns the entire \CSV data: +# File.open(path) do |file| +# CSV.read(file) +# end # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] +# +# As does method CSV.parse: +# File.open(path) do |file| +# CSV.parse(file) +# end # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] +# +# \Method CSV.parse_line returns only the first row: +# File.open(path) do |file| +# CSV.parse_line(file) +# end # => ["foo", "0"] +# +# \Method CSV.foreach iterates, passing each row to the given block: +# File.open(path) do |file| +# CSV.foreach(file) do |row| +# p row +# end +# end +# Output: +# ["foo", "0"] +# ["bar", "1"] +# ["baz", "2"] +# +# \Method CSV.table returns the entire \CSV data as a CSV::Table object: +# File.open(path) do |file| +# CSV.table(file) +# end # => # +# +# === Simple Generating +# +# \Method CSV.generate returns a \String; +# this example uses method CSV#<< to append the rows +# that are to be generated: +# output_string = CSV.generate do |csv| +# csv << ['foo', 0] +# csv << ['bar', 1] +# csv << ['baz', 2] +# end +# output_string # => "foo,0\nbar,1\nbaz,2\n" +# +# \Method CSV.generate_line returns a \String containing the single row +# constructed from an \Array: +# CSV.generate_line(['foo', '0']) # => "foo,0\n" +# +# \CSV extends class \Array with instance method Array#to_csv, +# which forms an \Array into a \String: +# ['foo', '0'].to_csv # => "foo,0\n" +# +# === "Filtering" \CSV +# +# \Method CSV.filter provides a Unix-style filter for \CSV data. +# The input data is processed to form the output data: +# in_string = "foo,0\nbar,1\nbaz,2\n" +# out_string = '' +# CSV.filter(in_string, out_string) do |row| +# row[0] = row[0].upcase +# row[1] *= 4 +# end +# out_string # => "FOO,0000\nBAR,1111\nBAZ,2222\n" +# +# == \CSV Objects +# +# There are three ways to create a \CSV object: +# - \Method CSV.new returns a new \CSV object. +# - \Method CSV.instance returns a new or cached \CSV object. +# - \Method \CSV() also returns a new or cached \CSV object. +# +# === Instance Methods +# +# \CSV has three groups of instance methods: +# - Its own internally defined instance methods. +# - Methods included by module Enumerable. +# - Methods delegated to class IO. See below. +# +# ==== Delegated Methods +# +# For convenience, a CSV object will delegate to many methods in class IO. +# (A few have wrapper "guard code" in \CSV.) You may call: +# * IO#binmode +# * #binmode? +# * IO#close +# * IO#close_read +# * IO#close_write +# * IO#closed? +# * #eof +# * #eof? +# * IO#external_encoding +# * IO#fcntl +# * IO#fileno +# * #flock +# * IO#flush +# * IO#fsync +# * IO#internal_encoding +# * #ioctl +# * IO#isatty +# * #path +# * IO#pid +# * IO#pos +# * IO#pos= +# * IO#reopen +# * #rewind +# * IO#seek +# * #stat +# * IO#string +# * IO#sync +# * IO#sync= +# * IO#tell +# * #to_i +# * #to_io +# * IO#truncate +# * IO#tty? +# +# === Options +# +# The default values for options are: +# DEFAULT_OPTIONS = { +# # For both parsing and generating. +# col_sep: ",", +# row_sep: :auto, +# quote_char: '"', +# # For parsing. +# field_size_limit: nil, +# converters: nil, +# unconverted_fields: nil, +# headers: false, +# return_headers: false, +# header_converters: nil, +# skip_blanks: false, +# skip_lines: nil, +# liberal_parsing: false, +# nil_value: nil, +# empty_value: "", +# strip: false, +# # For generating. +# write_headers: nil, +# quote_empty: true, +# force_quotes: false, +# write_converters: nil, +# write_nil_value: nil, +# write_empty_value: "", +# } +# +# ==== Options for Parsing +# +# Options for parsing, described in detail below, include: +# - +row_sep+: Specifies the row separator; used to delimit rows. +# - +col_sep+: Specifies the column separator; used to delimit fields. +# - +quote_char+: Specifies the quote character; used to quote fields. +# - +field_size_limit+: Specifies the maximum field size + 1 allowed. +# Deprecated since 3.2.3. Use +max_field_size+ instead. +# - +max_field_size+: Specifies the maximum field size allowed. +# - +converters+: Specifies the field converters to be used. +# - +unconverted_fields+: Specifies whether unconverted fields are to be available. +# - +headers+: Specifies whether data contains headers, +# or specifies the headers themselves. +# - +return_headers+: Specifies whether headers are to be returned. +# - +header_converters+: Specifies the header converters to be used. +# - +skip_blanks+: Specifies whether blanks lines are to be ignored. +# - +skip_lines+: Specifies how comments lines are to be recognized. +# - +strip+: Specifies whether leading and trailing whitespace are to be +# stripped from fields. This must be compatible with +col_sep+; if it is not, +# then an +ArgumentError+ exception will be raised. +# - +liberal_parsing+: Specifies whether \CSV should attempt to parse +# non-compliant data. +# - +nil_value+: Specifies the object that is to be substituted for each null (no-text) field. +# - +empty_value+: Specifies the object that is to be substituted for each empty field. +# +# :include: ../doc/csv/options/common/row_sep.rdoc +# +# :include: ../doc/csv/options/common/col_sep.rdoc +# +# :include: ../doc/csv/options/common/quote_char.rdoc +# +# :include: ../doc/csv/options/parsing/field_size_limit.rdoc +# +# :include: ../doc/csv/options/parsing/converters.rdoc +# +# :include: ../doc/csv/options/parsing/unconverted_fields.rdoc +# +# :include: ../doc/csv/options/parsing/headers.rdoc +# +# :include: ../doc/csv/options/parsing/return_headers.rdoc +# +# :include: ../doc/csv/options/parsing/header_converters.rdoc +# +# :include: ../doc/csv/options/parsing/skip_blanks.rdoc +# +# :include: ../doc/csv/options/parsing/skip_lines.rdoc +# +# :include: ../doc/csv/options/parsing/strip.rdoc +# +# :include: ../doc/csv/options/parsing/liberal_parsing.rdoc +# +# :include: ../doc/csv/options/parsing/nil_value.rdoc +# +# :include: ../doc/csv/options/parsing/empty_value.rdoc +# +# ==== Options for Generating +# +# Options for generating, described in detail below, include: +# - +row_sep+: Specifies the row separator; used to delimit rows. +# - +col_sep+: Specifies the column separator; used to delimit fields. +# - +quote_char+: Specifies the quote character; used to quote fields. +# - +write_headers+: Specifies whether headers are to be written. +# - +force_quotes+: Specifies whether each output field is to be quoted. +# - +quote_empty+: Specifies whether each empty output field is to be quoted. +# - +write_converters+: Specifies the field converters to be used in writing. +# - +write_nil_value+: Specifies the object that is to be substituted for each +nil+-valued field. +# - +write_empty_value+: Specifies the object that is to be substituted for each empty field. +# +# :include: ../doc/csv/options/common/row_sep.rdoc +# +# :include: ../doc/csv/options/common/col_sep.rdoc +# +# :include: ../doc/csv/options/common/quote_char.rdoc +# +# :include: ../doc/csv/options/generating/write_headers.rdoc +# +# :include: ../doc/csv/options/generating/force_quotes.rdoc +# +# :include: ../doc/csv/options/generating/quote_empty.rdoc +# +# :include: ../doc/csv/options/generating/write_converters.rdoc +# +# :include: ../doc/csv/options/generating/write_nil_value.rdoc +# +# :include: ../doc/csv/options/generating/write_empty_value.rdoc +# +# === \CSV with Headers +# +# CSV allows to specify column names of CSV file, whether they are in data, or +# provided separately. If headers are specified, reading methods return an instance +# of CSV::Table, consisting of CSV::Row. +# +# # Headers are part of data +# data = CSV.parse(<<~ROWS, headers: true) +# Name,Department,Salary +# Bob,Engineering,1000 +# Jane,Sales,2000 +# John,Management,5000 +# ROWS +# +# data.class #=> CSV::Table +# data.first #=> # +# data.first.to_h #=> {"Name"=>"Bob", "Department"=>"Engineering", "Salary"=>"1000"} +# +# # Headers provided by developer +# data = CSV.parse('Bob,Engineering,1000', headers: %i[name department salary]) +# data.first #=> # +# +# === \Converters +# +# By default, each value (field or header) parsed by \CSV is formed into a \String. +# You can use a _field_ _converter_ or _header_ _converter_ +# to intercept and modify the parsed values: +# - See {Field Converters}[#class-CSV-label-Field+Converters]. +# - See {Header Converters}[#class-CSV-label-Header+Converters]. +# +# Also by default, each value to be written during generation is written 'as-is'. +# You can use a _write_ _converter_ to modify values before writing. +# - See {Write Converters}[#class-CSV-label-Write+Converters]. +# +# ==== Specifying \Converters +# +# You can specify converters for parsing or generating in the +options+ +# argument to various \CSV methods: +# - Option +converters+ for converting parsed field values. +# - Option +header_converters+ for converting parsed header values. +# - Option +write_converters+ for converting values to be written (generated). +# +# There are three forms for specifying converters: +# - A converter proc: executable code to be used for conversion. +# - A converter name: the name of a stored converter. +# - A converter list: an array of converter procs, converter names, and converter lists. +# +# ===== Converter Procs +# +# This converter proc, +strip_converter+, accepts a value +field+ +# and returns field.strip: +# strip_converter = proc {|field| field.strip } +# In this call to CSV.parse, +# the keyword argument converters: string_converter +# specifies that: +# - \Proc +string_converter+ is to be called for each parsed field. +# - The converter's return value is to replace the +field+ value. +# Example: +# string = " foo , 0 \n bar , 1 \n baz , 2 \n" +# array = CSV.parse(string, converters: strip_converter) +# array # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] +# +# A converter proc can receive a second argument, +field_info+, +# that contains details about the field. +# This modified +strip_converter+ displays its arguments: +# strip_converter = proc do |field, field_info| +# p [field, field_info] +# field.strip +# end +# string = " foo , 0 \n bar , 1 \n baz , 2 \n" +# array = CSV.parse(string, converters: strip_converter) +# array # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] +# Output: +# [" foo ", #] +# [" 0 ", #] +# [" bar ", #] +# [" 1 ", #] +# [" baz ", #] +# [" 2 ", #] +# Each CSV::FieldInfo object shows: +# - The 0-based field index. +# - The 1-based line index. +# - The field header, if any. +# +# ===== Stored \Converters +# +# A converter may be given a name and stored in a structure where +# the parsing methods can find it by name. +# +# The storage structure for field converters is the \Hash CSV::Converters. +# It has several built-in converter procs: +# - :integer: converts each \String-embedded integer into a true \Integer. +# - :float: converts each \String-embedded float into a true \Float. +# - :date: converts each \String-embedded date into a true \Date. +# - :date_time: converts each \String-embedded date-time into a true \DateTime +# . +# This example creates a converter proc, then stores it: +# strip_converter = proc {|field| field.strip } +# CSV::Converters[:strip] = strip_converter +# Then the parsing method call can refer to the converter +# by its name, :strip: +# string = " foo , 0 \n bar , 1 \n baz , 2 \n" +# array = CSV.parse(string, converters: :strip) +# array # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] +# +# The storage structure for header converters is the \Hash CSV::HeaderConverters, +# which works in the same way. +# It also has built-in converter procs: +# - :downcase: Downcases each header. +# - :symbol: Converts each header to a \Symbol. +# +# There is no such storage structure for write headers. +# +# In order for the parsing methods to access stored converters in non-main-Ractors, the +# storage structure must be made shareable first. +# Therefore, Ractor.make_shareable(CSV::Converters) and +# Ractor.make_shareable(CSV::HeaderConverters) must be called before the creation +# of Ractors that use the converters stored in these structures. (Since making the storage +# structures shareable involves freezing them, any custom converters that are to be used +# must be added first.) +# +# ===== Converter Lists +# +# A _converter_ _list_ is an \Array that may include any assortment of: +# - Converter procs. +# - Names of stored converters. +# - Nested converter lists. +# +# Examples: +# numeric_converters = [:integer, :float] +# date_converters = [:date, :date_time] +# [numeric_converters, strip_converter] +# [strip_converter, date_converters, :float] +# +# Like a converter proc, a converter list may be named and stored in either +# \CSV::Converters or CSV::HeaderConverters: +# CSV::Converters[:custom] = [strip_converter, date_converters, :float] +# CSV::HeaderConverters[:custom] = [:downcase, :symbol] +# +# There are two built-in converter lists: +# CSV::Converters[:numeric] # => [:integer, :float] +# CSV::Converters[:all] # => [:date_time, :numeric] +# +# ==== Field \Converters +# +# With no conversion, all parsed fields in all rows become Strings: +# string = "foo,0\nbar,1\nbaz,2\n" +# ary = CSV.parse(string) +# ary # => # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] +# +# When you specify a field converter, each parsed field is passed to the converter; +# its return value becomes the stored value for the field. +# A converter might, for example, convert an integer embedded in a \String +# into a true \Integer. +# (In fact, that's what built-in field converter +:integer+ does.) +# +# There are three ways to use field \converters. +# +# - Using option {converters}[#class-CSV-label-Option+converters] with a parsing method: +# ary = CSV.parse(string, converters: :integer) +# ary # => [0, 1, 2] # => [["foo", 0], ["bar", 1], ["baz", 2]] +# - Using option {converters}[#class-CSV-label-Option+converters] with a new \CSV instance: +# csv = CSV.new(string, converters: :integer) +# # Field converters in effect: +# csv.converters # => [:integer] +# csv.read # => [["foo", 0], ["bar", 1], ["baz", 2]] +# - Using method #convert to add a field converter to a \CSV instance: +# csv = CSV.new(string) +# # Add a converter. +# csv.convert(:integer) +# csv.converters # => [:integer] +# csv.read # => [["foo", 0], ["bar", 1], ["baz", 2]] +# +# Installing a field converter does not affect already-read rows: +# csv = CSV.new(string) +# csv.shift # => ["foo", "0"] +# # Add a converter. +# csv.convert(:integer) +# csv.converters # => [:integer] +# csv.read # => [["bar", 1], ["baz", 2]] +# +# There are additional built-in \converters, and custom \converters are also supported. +# +# ===== Built-In Field \Converters +# +# The built-in field converters are in \Hash CSV::Converters: +# - Each key is a field converter name. +# - Each value is one of: +# - A \Proc field converter. +# - An \Array of field converter names. +# +# Display: +# CSV::Converters.each_pair do |name, value| +# if value.kind_of?(Proc) +# p [name, value.class] +# else +# p [name, value] +# end +# end +# Output: +# [:integer, Proc] +# [:float, Proc] +# [:numeric, [:integer, :float]] +# [:date, Proc] +# [:date_time, Proc] +# [:all, [:date_time, :numeric]] +# +# Each of these converters transcodes values to UTF-8 before attempting conversion. +# If a value cannot be transcoded to UTF-8 the conversion will +# fail and the value will remain unconverted. +# +# Converter +:integer+ converts each field that Integer() accepts: +# data = '0,1,2,x' +# # Without the converter +# csv = CSV.parse_line(data) +# csv # => ["0", "1", "2", "x"] +# # With the converter +# csv = CSV.parse_line(data, converters: :integer) +# csv # => [0, 1, 2, "x"] +# +# Converter +:float+ converts each field that Float() accepts: +# data = '1.0,3.14159,x' +# # Without the converter +# csv = CSV.parse_line(data) +# csv # => ["1.0", "3.14159", "x"] +# # With the converter +# csv = CSV.parse_line(data, converters: :float) +# csv # => [1.0, 3.14159, "x"] +# +# Converter +:numeric+ converts with both +:integer+ and +:float+.. +# +# Converter +:date+ converts each field that Date::parse accepts: +# data = '2001-02-03,x' +# # Without the converter +# csv = CSV.parse_line(data) +# csv # => ["2001-02-03", "x"] +# # With the converter +# csv = CSV.parse_line(data, converters: :date) +# csv # => [#, "x"] +# +# Converter +:date_time+ converts each field that DateTime::parse accepts: +# data = '2020-05-07T14:59:00-05:00,x' +# # Without the converter +# csv = CSV.parse_line(data) +# csv # => ["2020-05-07T14:59:00-05:00", "x"] +# # With the converter +# csv = CSV.parse_line(data, converters: :date_time) +# csv # => [#, "x"] +# +# Converter +:numeric+ converts with both +:date_time+ and +:numeric+.. +# +# As seen above, method #convert adds \converters to a \CSV instance, +# and method #converters returns an \Array of the \converters in effect: +# csv = CSV.new('0,1,2') +# csv.converters # => [] +# csv.convert(:integer) +# csv.converters # => [:integer] +# csv.convert(:date) +# csv.converters # => [:integer, :date] +# +# ===== Custom Field \Converters +# +# You can define a custom field converter: +# strip_converter = proc {|field| field.strip } +# string = " foo , 0 \n bar , 1 \n baz , 2 \n" +# array = CSV.parse(string, converters: strip_converter) +# array # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] +# You can register the converter in \Converters \Hash, +# which allows you to refer to it by name: +# CSV::Converters[:strip] = strip_converter +# string = " foo , 0 \n bar , 1 \n baz , 2 \n" +# array = CSV.parse(string, converters: :strip) +# array # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] +# +# ==== Header \Converters +# +# Header converters operate only on headers (and not on other rows). +# +# There are three ways to use header \converters; +# these examples use built-in header converter +:downcase+, +# which downcases each parsed header. +# +# - Option +header_converters+ with a singleton parsing method: +# string = "Name,Count\nFoo,0\n,Bar,1\nBaz,2" +# tbl = CSV.parse(string, headers: true, header_converters: :downcase) +# tbl.class # => CSV::Table +# tbl.headers # => ["name", "count"] +# +# - Option +header_converters+ with a new \CSV instance: +# csv = CSV.new(string, header_converters: :downcase) +# # Header converters in effect: +# csv.header_converters # => [:downcase] +# tbl = CSV.parse(string, headers: true) +# tbl.headers # => ["Name", "Count"] +# +# - Method #header_convert adds a header converter to a \CSV instance: +# csv = CSV.new(string) +# # Add a header converter. +# csv.header_convert(:downcase) +# csv.header_converters # => [:downcase] +# tbl = CSV.parse(string, headers: true) +# tbl.headers # => ["Name", "Count"] +# +# ===== Built-In Header \Converters +# +# The built-in header \converters are in \Hash CSV::HeaderConverters. +# The keys there are the names of the \converters: +# CSV::HeaderConverters.keys # => [:downcase, :symbol] +# +# Converter +:downcase+ converts each header by downcasing it: +# string = "Name,Count\nFoo,0\n,Bar,1\nBaz,2" +# tbl = CSV.parse(string, headers: true, header_converters: :downcase) +# tbl.class # => CSV::Table +# tbl.headers # => ["name", "count"] +# +# Converter +:symbol+ converts each header by making it into a \Symbol: +# string = "Name,Count\nFoo,0\n,Bar,1\nBaz,2" +# tbl = CSV.parse(string, headers: true, header_converters: :symbol) +# tbl.headers # => [:name, :count] +# Details: +# - Strips leading and trailing whitespace. +# - Downcases the header. +# - Replaces embedded spaces with underscores. +# - Removes non-word characters. +# - Makes the string into a \Symbol. +# +# ===== Custom Header \Converters +# +# You can define a custom header converter: +# upcase_converter = proc {|header| header.upcase } +# string = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" +# table = CSV.parse(string, headers: true, header_converters: upcase_converter) +# table # => # +# table.headers # => ["NAME", "VALUE"] +# You can register the converter in \HeaderConverters \Hash, +# which allows you to refer to it by name: +# CSV::HeaderConverters[:upcase] = upcase_converter +# table = CSV.parse(string, headers: true, header_converters: :upcase) +# table # => # +# table.headers # => ["NAME", "VALUE"] +# +# ===== Write \Converters +# +# When you specify a write converter for generating \CSV, +# each field to be written is passed to the converter; +# its return value becomes the new value for the field. +# A converter might, for example, strip whitespace from a field. +# +# Using no write converter (all fields unmodified): +# output_string = CSV.generate do |csv| +# csv << [' foo ', 0] +# csv << [' bar ', 1] +# csv << [' baz ', 2] +# end +# output_string # => " foo ,0\n bar ,1\n baz ,2\n" +# Using option +write_converters+ with two custom write converters: +# strip_converter = proc {|field| field.respond_to?(:strip) ? field.strip : field } +# upcase_converter = proc {|field| field.respond_to?(:upcase) ? field.upcase : field } +# write_converters = [strip_converter, upcase_converter] +# output_string = CSV.generate(write_converters: write_converters) do |csv| +# csv << [' foo ', 0] +# csv << [' bar ', 1] +# csv << [' baz ', 2] +# end +# output_string # => "FOO,0\nBAR,1\nBAZ,2\n" +# +# === Character Encodings (M17n or Multilingualization) +# +# This new CSV parser is m17n savvy. The parser works in the Encoding of the IO +# or String object being read from or written to. Your data is never transcoded +# (unless you ask Ruby to transcode it for you) and will literally be parsed in +# the Encoding it is in. Thus CSV will return Arrays or Rows of Strings in the +# Encoding of your data. This is accomplished by transcoding the parser itself +# into your Encoding. +# +# Some transcoding must take place, of course, to accomplish this multiencoding +# support. For example, :col_sep, :row_sep, and +# :quote_char must be transcoded to match your data. Hopefully this +# makes the entire process feel transparent, since CSV's defaults should just +# magically work for your data. However, you can set these values manually in +# the target Encoding to avoid the translation. +# +# It's also important to note that while all of CSV's core parser is now +# Encoding agnostic, some features are not. For example, the built-in +# converters will try to transcode data to UTF-8 before making conversions. +# Again, you can provide custom converters that are aware of your Encodings to +# avoid this translation. It's just too hard for me to support native +# conversions in all of Ruby's Encodings. +# +# Anyway, the practical side of this is simple: make sure IO and String objects +# passed into CSV have the proper Encoding set and everything should just work. +# CSV methods that allow you to open IO objects (CSV::foreach(), CSV::open(), +# CSV::read(), and CSV::readlines()) do allow you to specify the Encoding. +# +# One minor exception comes when generating CSV into a String with an Encoding +# that is not ASCII compatible. There's no existing data for CSV to use to +# prepare itself and thus you will probably need to manually specify the desired +# Encoding for most of those cases. It will try to guess using the fields in a +# row of output though, when using CSV::generate_line() or Array#to_csv(). +# +# I try to point out any other Encoding issues in the documentation of methods +# as they come up. +# +# This has been tested to the best of my ability with all non-"dummy" Encodings +# Ruby ships with. However, it is brave new code and may have some bugs. +# Please feel free to {report}[mailto:james@grayproductions.net] any issues you +# find with it. +# +# source://csv//lib/csv/fields_converter.rb#3 +class CSV + include ::Enumerable + extend ::Forwardable + + # :call-seq: + # CSV.new(string) + # CSV.new(io) + # CSV.new(string, **options) + # CSV.new(io, **options) + # + # Returns the new \CSV object created using +string+ or +io+ + # and the specified +options+. + # + # - Argument +string+ should be a \String object; + # it will be put into a new StringIO object positioned at the beginning. + # :include: ../doc/csv/arguments/io.rdoc + # - Argument +options+: See: + # * {Options for Parsing}[#class-CSV-label-Options+for+Parsing] + # * {Options for Generating}[#class-CSV-label-Options+for+Generating] + # For performance reasons, the options cannot be overridden + # in a \CSV object, so those specified here will endure. + # + # In addition to the \CSV instance methods, several \IO methods are delegated. + # See {Delegated Methods}[#class-CSV-label-Delegated+Methods]. + # + # --- + # + # Create a \CSV object from a \String object: + # csv = CSV.new('foo,0') + # + # Create a \CSV object from a \File object: + # File.write('t.csv', 'foo,0') + # csv = CSV.new(File.open('t.csv')) + # + # --- + # + # Raises an exception if the argument is +nil+: + # # Raises ArgumentError (Cannot parse nil as CSV): + # CSV.new(nil) + # + # @raise [ArgumentError] + # @return [CSV] a new instance of CSV + # + # source://csv//lib/csv.rb#1905 + def initialize(data, col_sep: T.unsafe(nil), row_sep: T.unsafe(nil), quote_char: T.unsafe(nil), field_size_limit: T.unsafe(nil), max_field_size: T.unsafe(nil), converters: T.unsafe(nil), unconverted_fields: T.unsafe(nil), headers: T.unsafe(nil), return_headers: T.unsafe(nil), write_headers: T.unsafe(nil), header_converters: T.unsafe(nil), skip_blanks: T.unsafe(nil), force_quotes: T.unsafe(nil), skip_lines: T.unsafe(nil), liberal_parsing: T.unsafe(nil), internal_encoding: T.unsafe(nil), external_encoding: T.unsafe(nil), encoding: T.unsafe(nil), nil_value: T.unsafe(nil), empty_value: T.unsafe(nil), strip: T.unsafe(nil), quote_empty: T.unsafe(nil), write_converters: T.unsafe(nil), write_nil_value: T.unsafe(nil), write_empty_value: T.unsafe(nil)); end + + # :call-seq: + # csv << row -> self + # + # Appends a row to +self+. + # + # - Argument +row+ must be an \Array object or a CSV::Row object. + # - The output stream must be open for writing. + # + # --- + # + # Append Arrays: + # CSV.generate do |csv| + # csv << ['foo', 0] + # csv << ['bar', 1] + # csv << ['baz', 2] + # end # => "foo,0\nbar,1\nbaz,2\n" + # + # Append CSV::Rows: + # headers = [] + # CSV.generate do |csv| + # csv << CSV::Row.new(headers, ['foo', 0]) + # csv << CSV::Row.new(headers, ['bar', 1]) + # csv << CSV::Row.new(headers, ['baz', 2]) + # end # => "foo,0\nbar,1\nbaz,2\n" + # + # Headers in CSV::Row objects are not appended: + # headers = ['Name', 'Count'] + # CSV.generate do |csv| + # csv << CSV::Row.new(headers, ['foo', 0]) + # csv << CSV::Row.new(headers, ['bar', 1]) + # csv << CSV::Row.new(headers, ['baz', 2]) + # end # => "foo,0\nbar,1\nbaz,2\n" + # + # --- + # + # Raises an exception if +row+ is not an \Array or \CSV::Row: + # CSV.generate do |csv| + # # Raises NoMethodError (undefined method `collect' for :foo:Symbol) + # csv << :foo + # end + # + # Raises an exception if the output stream is not opened for writing: + # path = 't.csv' + # File.write(path, '') + # File.open(path) do |file| + # CSV.open(file) do |csv| + # # Raises IOError (not opened for writing) + # csv << ['foo', 0] + # end + # end + # + # source://csv//lib/csv.rb#2372 + def <<(row); end + + # :call-seq: + # csv << row -> self + # + # Appends a row to +self+. + # + # - Argument +row+ must be an \Array object or a CSV::Row object. + # - The output stream must be open for writing. + # + # --- + # + # Append Arrays: + # CSV.generate do |csv| + # csv << ['foo', 0] + # csv << ['bar', 1] + # csv << ['baz', 2] + # end # => "foo,0\nbar,1\nbaz,2\n" + # + # Append CSV::Rows: + # headers = [] + # CSV.generate do |csv| + # csv << CSV::Row.new(headers, ['foo', 0]) + # csv << CSV::Row.new(headers, ['bar', 1]) + # csv << CSV::Row.new(headers, ['baz', 2]) + # end # => "foo,0\nbar,1\nbaz,2\n" + # + # Headers in CSV::Row objects are not appended: + # headers = ['Name', 'Count'] + # CSV.generate do |csv| + # csv << CSV::Row.new(headers, ['foo', 0]) + # csv << CSV::Row.new(headers, ['bar', 1]) + # csv << CSV::Row.new(headers, ['baz', 2]) + # end # => "foo,0\nbar,1\nbaz,2\n" + # + # --- + # + # Raises an exception if +row+ is not an \Array or \CSV::Row: + # CSV.generate do |csv| + # # Raises NoMethodError (undefined method `collect' for :foo:Symbol) + # csv << :foo + # end + # + # Raises an exception if the output stream is not opened for writing: + # path = 't.csv' + # File.write(path, '') + # File.open(path) do |file| + # CSV.open(file) do |csv| + # # Raises IOError (not opened for writing) + # csv << ['foo', 0] + # end + # end + # + # source://csv//lib/csv.rb#2372 + def add_row(row); end + + # @return [Boolean] + # + # source://csv//lib/csv.rb#2261 + def binmode?; end + + # :call-seq: + # csv.col_sep -> string + # + # Returns the encoded column separator; used for parsing and writing; + # see {Option +col_sep+}[#class-CSV-label-Option+col_sep]: + # CSV.new('').col_sep # => "," + # + # source://csv//lib/csv.rb#2009 + def col_sep; end + + # :call-seq: + # convert(converter_name) -> array_of_procs + # convert {|field, field_info| ... } -> array_of_procs + # + # - With no block, installs a field converter (a \Proc). + # - With a block, defines and installs a custom field converter. + # - Returns the \Array of installed field converters. + # + # - Argument +converter_name+, if given, should be the name + # of an existing field converter. + # + # See {Field Converters}[#class-CSV-label-Field+Converters]. + # --- + # + # With no block, installs a field converter: + # csv = CSV.new('') + # csv.convert(:integer) + # csv.convert(:float) + # csv.convert(:date) + # csv.converters # => [:integer, :float, :date] + # + # --- + # + # The block, if given, is called for each field: + # - Argument +field+ is the field value. + # - Argument +field_info+ is a CSV::FieldInfo object + # containing details about the field. + # + # The examples here assume the prior execution of: + # string = "foo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # + # Example giving a block: + # csv = CSV.open(path) + # csv.convert {|field, field_info| p [field, field_info]; field.upcase } + # csv.read # => [["FOO", "0"], ["BAR", "1"], ["BAZ", "2"]] + # + # Output: + # ["foo", #] + # ["0", #] + # ["bar", #] + # ["1", #] + # ["baz", #] + # ["2", #] + # + # The block need not return a \String object: + # csv = CSV.open(path) + # csv.convert {|field, field_info| field.to_sym } + # csv.read # => [[:foo, :"0"], [:bar, :"1"], [:baz, :"2"]] + # + # If +converter_name+ is given, the block is not called: + # csv = CSV.open(path) + # csv.convert(:integer) {|field, field_info| fail 'Cannot happen' } + # csv.read # => [["foo", 0], ["bar", 1], ["baz", 2]] + # + # --- + # + # Raises a parse-time exception if +converter_name+ is not the name of a built-in + # field converter: + # csv = CSV.open(path) + # csv.convert(:nosuch) => [nil] + # # Raises NoMethodError (undefined method `arity' for nil:NilClass) + # csv.read + # + # source://csv//lib/csv.rb#2443 + def convert(name = T.unsafe(nil), &converter); end + + # :call-seq: + # csv.converters -> array + # + # Returns an \Array containing field converters; + # see {Field Converters}[#class-CSV-label-Field+Converters]: + # csv = CSV.new('') + # csv.converters # => [] + # csv.convert(:integer) + # csv.converters # => [:integer] + # csv.convert(proc {|x| x.to_s }) + # csv.converters + # + # Notes that you need to call + # +Ractor.make_shareable(CSV::Converters)+ on the main Ractor to use + # this method. + # + # source://csv//lib/csv.rb#2082 + def converters; end + + # :call-seq: + # csv.each -> enumerator + # csv.each {|row| ...} + # + # Calls the block with each successive row. + # The data source must be opened for reading. + # + # Without headers: + # string = "foo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string) + # csv.each do |row| + # p row + # end + # Output: + # ["foo", "0"] + # ["bar", "1"] + # ["baz", "2"] + # + # With headers: + # string = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string, headers: true) + # csv.each do |row| + # p row + # end + # Output: + # + # + # + # + # --- + # + # Raises an exception if the source is not opened for reading: + # string = "foo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string) + # csv.close + # # Raises IOError (not opened for reading) + # csv.each do |row| + # p row + # end + # + # source://csv//lib/csv.rb#2554 + def each(&block); end + + # :call-seq: + # csv.encoding -> encoding + # + # Returns the encoding used for parsing and generating; + # see {Character Encodings (M17n or Multilingualization)}[#class-CSV-label-Character+Encodings+-28M17n+or+Multilingualization-29]: + # CSV.new('').encoding # => # + # + # source://csv//lib/csv.rb#2192 + def encoding; end + + # @return [Boolean] + # + # source://csv//lib/csv.rb#2297 + def eof; end + + # @return [Boolean] + # + # source://csv//lib/csv.rb#2297 + def eof?; end + + # :call-seq: + # csv.field_size_limit -> integer or nil + # + # Returns the limit for field size; used for parsing; + # see {Option +field_size_limit+}[#class-CSV-label-Option+field_size_limit]: + # CSV.new('').field_size_limit # => nil + # + # Deprecated since 3.2.3. Use +max_field_size+ instead. + # + # source://csv//lib/csv.rb#2041 + def field_size_limit; end + + # @raise [NotImplementedError] + # + # source://csv//lib/csv.rb#2269 + def flock(*args); end + + # :call-seq: + # csv.force_quotes? -> true or false + # + # Returns the value that determines whether all output fields are to be quoted; + # used for generating; + # see {Option +force_quotes+}[#class-CSV-label-Option+force_quotes]: + # CSV.new('').force_quotes? # => false + # + # @return [Boolean] + # + # source://csv//lib/csv.rb#2172 + def force_quotes?; end + + # :call-seq: + # csv.shift -> array, csv_row, or nil + # + # Returns the next row of data as: + # - An \Array if no headers are used. + # - A CSV::Row object if headers are used. + # + # The data source must be opened for reading. + # + # Without headers: + # string = "foo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string) + # csv.shift # => ["foo", "0"] + # csv.shift # => ["bar", "1"] + # csv.shift # => ["baz", "2"] + # csv.shift # => nil + # + # With headers: + # string = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string, headers: true) + # csv.shift # => # + # csv.shift # => # + # csv.shift # => # + # csv.shift # => nil + # + # --- + # + # Raises an exception if the source is not opened for reading: + # string = "foo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string) + # csv.close + # # Raises IOError (not opened for reading) + # csv.shift + # + # source://csv//lib/csv.rb#2668 + def gets; end + + # The block need not return a \String object: + # csv = CSV.open(path, headers: true) + # csv.header_convert {|header, field_info| header.to_sym } + # table = csv.read + # table.headers # => [:Name, :Value] + # + # If +converter_name+ is given, the block is not called: + # csv = CSV.open(path, headers: true) + # csv.header_convert(:downcase) {|header, field_info| fail 'Cannot happen' } + # table = csv.read + # table.headers # => ["name", "value"] + # --- + # + # Raises a parse-time exception if +converter_name+ is not the name of a built-in + # field converter: + # csv = CSV.open(path, headers: true) + # csv.header_convert(:nosuch) + # # Raises NoMethodError (undefined method `arity' for nil:NilClass) + # csv.read + # + # source://csv//lib/csv.rb#2509 + def header_convert(name = T.unsafe(nil), &converter); end + + # :call-seq: + # csv.header_converters -> array + # + # Returns an \Array containing header converters; used for parsing; + # see {Header Converters}[#class-CSV-label-Header+Converters]: + # CSV.new('').header_converters # => [] + # + # Notes that you need to call + # +Ractor.make_shareable(CSV::HeaderConverters)+ on the main Ractor + # to use this method. + # + # source://csv//lib/csv.rb#2148 + def header_converters; end + + # :call-seq: + # csv.header_row? -> true or false + # + # Returns +true+ if the next row to be read is a header row\; + # +false+ otherwise. + # + # Without headers: + # string = "foo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string) + # csv.header_row? # => false + # + # With headers: + # string = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string, headers: true) + # csv.header_row? # => true + # csv.shift # => # + # csv.header_row? # => false + # + # --- + # + # Raises an exception if the source is not opened for reading: + # string = "foo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string) + # csv.close + # # Raises IOError (not opened for reading) + # csv.header_row? + # + # @return [Boolean] + # + # source://csv//lib/csv.rb#2631 + def header_row?; end + + # :call-seq: + # csv.headers -> object + # + # Returns the value that determines whether headers are used; used for parsing; + # see {Option +headers+}[#class-CSV-label-Option+headers]: + # CSV.new('').headers # => nil + # + # source://csv//lib/csv.rb#2106 + def headers; end + + # :call-seq: + # csv.inspect -> string + # + # Returns a \String showing certain properties of +self+: + # string = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string, headers: true) + # s = csv.inspect + # + # source://csv//lib/csv.rb#2690 + def inspect; end + + # @raise [NotImplementedError] + # + # source://csv//lib/csv.rb#2274 + def ioctl(*args); end + + # :call-seq: + # csv.liberal_parsing? -> true or false + # + # Returns the value that determines whether illegal input is to be handled; used for parsing; + # see {Option +liberal_parsing+}[#class-CSV-label-Option+liberal_parsing]: + # CSV.new('').liberal_parsing? # => false + # + # @return [Boolean] + # + # source://csv//lib/csv.rb#2182 + def liberal_parsing?; end + + # :call-seq: + # csv.line -> array + # + # Returns the line most recently read: + # string = "foo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # CSV.open(path) do |csv| + # csv.each do |row| + # p [csv.lineno, csv.line] + # end + # end + # Output: + # [1, "foo,0\n"] + # [2, "bar,1\n"] + # [3, "baz,2\n"] + # + # source://csv//lib/csv.rb#2247 + def line; end + + # :call-seq: + # csv.line_no -> integer + # + # Returns the count of the rows parsed or generated. + # + # Parsing: + # string = "foo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # CSV.open(path) do |csv| + # csv.each do |row| + # p [csv.lineno, row] + # end + # end + # Output: + # [1, ["foo", "0"]] + # [2, ["bar", "1"]] + # [3, ["baz", "2"]] + # + # Generating: + # CSV.generate do |csv| + # p csv.lineno; csv << ['foo', 0] + # p csv.lineno; csv << ['bar', 1] + # p csv.lineno; csv << ['baz', 2] + # end + # Output: + # 0 + # 1 + # 2 + # + # source://csv//lib/csv.rb#2223 + def lineno; end + + # :call-seq: + # csv.max_field_size -> integer or nil + # + # Returns the limit for field size; used for parsing; + # see {Option +max_field_size+}[#class-CSV-label-Option+max_field_size]: + # CSV.new('').max_field_size # => nil + # + # Since 3.2.3. + # + # source://csv//lib/csv.rb#2053 + def max_field_size; end + + # source://csv//lib/csv.rb#2279 + def path; end + + # :call-seq: + # csv << row -> self + # + # Appends a row to +self+. + # + # - Argument +row+ must be an \Array object or a CSV::Row object. + # - The output stream must be open for writing. + # + # --- + # + # Append Arrays: + # CSV.generate do |csv| + # csv << ['foo', 0] + # csv << ['bar', 1] + # csv << ['baz', 2] + # end # => "foo,0\nbar,1\nbaz,2\n" + # + # Append CSV::Rows: + # headers = [] + # CSV.generate do |csv| + # csv << CSV::Row.new(headers, ['foo', 0]) + # csv << CSV::Row.new(headers, ['bar', 1]) + # csv << CSV::Row.new(headers, ['baz', 2]) + # end # => "foo,0\nbar,1\nbaz,2\n" + # + # Headers in CSV::Row objects are not appended: + # headers = ['Name', 'Count'] + # CSV.generate do |csv| + # csv << CSV::Row.new(headers, ['foo', 0]) + # csv << CSV::Row.new(headers, ['bar', 1]) + # csv << CSV::Row.new(headers, ['baz', 2]) + # end # => "foo,0\nbar,1\nbaz,2\n" + # + # --- + # + # Raises an exception if +row+ is not an \Array or \CSV::Row: + # CSV.generate do |csv| + # # Raises NoMethodError (undefined method `collect' for :foo:Symbol) + # csv << :foo + # end + # + # Raises an exception if the output stream is not opened for writing: + # path = 't.csv' + # File.write(path, '') + # File.open(path) do |file| + # CSV.open(file) do |csv| + # # Raises IOError (not opened for writing) + # csv << ['foo', 0] + # end + # end + # + # source://csv//lib/csv.rb#2372 + def puts(row); end + + # :call-seq: + # csv.quote_char -> character + # + # Returns the encoded quote character; used for parsing and writing; + # see {Option +quote_char+}[#class-CSV-label-Option+quote_char]: + # CSV.new('').quote_char # => "\"" + # + # source://csv//lib/csv.rb#2029 + def quote_char; end + + # :call-seq: + # csv.read -> array or csv_table + # + # Forms the remaining rows from +self+ into: + # - A CSV::Table object, if headers are in use. + # - An \Array of Arrays, otherwise. + # + # The data source must be opened for reading. + # + # Without headers: + # string = "foo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # csv = CSV.open(path) + # csv.read # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] + # + # With headers: + # string = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # csv = CSV.open(path, headers: true) + # csv.read # => # + # + # --- + # + # Raises an exception if the source is not opened for reading: + # string = "foo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string) + # csv.close + # # Raises IOError (not opened for reading) + # csv.read + # + # source://csv//lib/csv.rb#2595 + def read; end + + # :call-seq: + # csv.shift -> array, csv_row, or nil + # + # Returns the next row of data as: + # - An \Array if no headers are used. + # - A CSV::Row object if headers are used. + # + # The data source must be opened for reading. + # + # Without headers: + # string = "foo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string) + # csv.shift # => ["foo", "0"] + # csv.shift # => ["bar", "1"] + # csv.shift # => ["baz", "2"] + # csv.shift # => nil + # + # With headers: + # string = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string, headers: true) + # csv.shift # => # + # csv.shift # => # + # csv.shift # => # + # csv.shift # => nil + # + # --- + # + # Raises an exception if the source is not opened for reading: + # string = "foo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string) + # csv.close + # # Raises IOError (not opened for reading) + # csv.shift + # + # source://csv//lib/csv.rb#2668 + def readline; end + + # :call-seq: + # csv.read -> array or csv_table + # + # Forms the remaining rows from +self+ into: + # - A CSV::Table object, if headers are in use. + # - An \Array of Arrays, otherwise. + # + # The data source must be opened for reading. + # + # Without headers: + # string = "foo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # csv = CSV.open(path) + # csv.read # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] + # + # With headers: + # string = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # csv = CSV.open(path, headers: true) + # csv.read # => # + # + # --- + # + # Raises an exception if the source is not opened for reading: + # string = "foo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string) + # csv.close + # # Raises IOError (not opened for reading) + # csv.read + # + # source://csv//lib/csv.rb#2595 + def readlines; end + + # :call-seq: + # csv.return_headers? -> true or false + # + # Returns the value that determines whether headers are to be returned; used for parsing; + # see {Option +return_headers+}[#class-CSV-label-Option+return_headers]: + # CSV.new('').return_headers? # => false + # + # @return [Boolean] + # + # source://csv//lib/csv.rb#2124 + def return_headers?; end + + # Rewinds the underlying IO object and resets CSV's lineno() counter. + # + # source://csv//lib/csv.rb#2312 + def rewind; end + + # :call-seq: + # csv.row_sep -> string + # + # Returns the encoded row separator; used for parsing and writing; + # see {Option +row_sep+}[#class-CSV-label-Option+row_sep]: + # CSV.new('').row_sep # => "\n" + # + # source://csv//lib/csv.rb#2019 + def row_sep; end + + # :call-seq: + # csv.shift -> array, csv_row, or nil + # + # Returns the next row of data as: + # - An \Array if no headers are used. + # - A CSV::Row object if headers are used. + # + # The data source must be opened for reading. + # + # Without headers: + # string = "foo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string) + # csv.shift # => ["foo", "0"] + # csv.shift # => ["bar", "1"] + # csv.shift # => ["baz", "2"] + # csv.shift # => nil + # + # With headers: + # string = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string, headers: true) + # csv.shift # => # + # csv.shift # => # + # csv.shift # => # + # csv.shift # => nil + # + # --- + # + # Raises an exception if the source is not opened for reading: + # string = "foo,0\nbar,1\nbaz,2\n" + # csv = CSV.new(string) + # csv.close + # # Raises IOError (not opened for reading) + # csv.shift + # + # source://csv//lib/csv.rb#2668 + def shift; end + + # :call-seq: + # csv.skip_blanks? -> true or false + # + # Returns the value that determines whether blank lines are to be ignored; used for parsing; + # see {Option +skip_blanks+}[#class-CSV-label-Option+skip_blanks]: + # CSV.new('').skip_blanks? # => false + # + # @return [Boolean] + # + # source://csv//lib/csv.rb#2161 + def skip_blanks?; end + + # :call-seq: + # csv.skip_lines -> regexp or nil + # + # Returns the \Regexp used to identify comment lines; used for parsing; + # see {Option +skip_lines+}[#class-CSV-label-Option+skip_lines]: + # CSV.new('').skip_lines # => nil + # + # source://csv//lib/csv.rb#2063 + def skip_lines; end + + # @raise [NotImplementedError] + # + # source://csv//lib/csv.rb#2283 + def stat(*args); end + + # @raise [NotImplementedError] + # + # source://csv//lib/csv.rb#2288 + def to_i; end + + # source://csv//lib/csv.rb#2293 + def to_io; end + + # :call-seq: + # csv.unconverted_fields? -> object + # + # Returns the value that determines whether unconverted fields are to be + # available; used for parsing; + # see {Option +unconverted_fields+}[#class-CSV-label-Option+unconverted_fields]: + # CSV.new('').unconverted_fields? # => nil + # + # @return [Boolean] + # + # source://csv//lib/csv.rb#2096 + def unconverted_fields?; end + + # :call-seq: + # csv.write_headers? -> true or false + # + # Returns the value that determines whether headers are to be written; used for generating; + # see {Option +write_headers+}[#class-CSV-label-Option+write_headers]: + # CSV.new('').write_headers? # => nil + # + # @return [Boolean] + # + # source://csv//lib/csv.rb#2134 + def write_headers?; end + + private + + # source://csv//lib/csv.rb#2822 + def build_fields_converter(initial_converters, options); end + + # source://csv//lib/csv.rb#2804 + def build_header_fields_converter; end + + # source://csv//lib/csv.rb#2792 + def build_parser_fields_converter; end + + # source://csv//lib/csv.rb#2817 + def build_writer_fields_converter; end + + # Processes +fields+ with @converters, or @header_converters + # if +headers+ is passed as +true+, returning the converted field set. Any + # converter that changes the field into something other than a String halts + # the pipeline of conversion for that field. This is primarily an efficiency + # shortcut. + # + # source://csv//lib/csv.rb#2767 + def convert_fields(fields, headers = T.unsafe(nil)); end + + # source://csv//lib/csv.rb#2730 + def determine_encoding(encoding, internal_encoding); end + + # source://csv//lib/csv.rb#2800 + def header_fields_converter; end + + # source://csv//lib/csv.rb#2745 + def normalize_converters(converters); end + + # source://csv//lib/csv.rb#2830 + def parser; end + + # source://csv//lib/csv.rb#2839 + def parser_enumerator; end + + # source://csv//lib/csv.rb#2788 + def parser_fields_converter; end + + # source://csv//lib/csv.rb#2834 + def parser_options; end + + # Returns the encoding of the internal IO object. + # + # source://csv//lib/csv.rb#2778 + def raw_encoding; end + + # source://csv//lib/csv.rb#2843 + def writer; end + + # source://csv//lib/csv.rb#2813 + def writer_fields_converter; end + + # source://csv//lib/csv.rb#2847 + def writer_options; end + + class << self + # :call-seq: + # filter(in_string_or_io, **options) {|row| ... } -> array_of_arrays or csv_table + # filter(in_string_or_io, out_string_or_io, **options) {|row| ... } -> array_of_arrays or csv_table + # filter(**options) {|row| ... } -> array_of_arrays or csv_table + # + # - Parses \CSV from a source (\String, \IO stream, or ARGF). + # - Calls the given block with each parsed row: + # - Without headers, each row is an \Array. + # - With headers, each row is a CSV::Row. + # - Generates \CSV to an output (\String, \IO stream, or STDOUT). + # - Returns the parsed source: + # - Without headers, an \Array of \Arrays. + # - With headers, a CSV::Table. + # + # When +in_string_or_io+ is given, but not +out_string_or_io+, + # parses from the given +in_string_or_io+ + # and generates to STDOUT. + # + # \String input without headers: + # + # in_string = "foo,0\nbar,1\nbaz,2" + # CSV.filter(in_string) do |row| + # row[0].upcase! + # row[1] = - row[1].to_i + # end # => [["FOO", 0], ["BAR", -1], ["BAZ", -2]] + # + # Output (to STDOUT): + # + # FOO,0 + # BAR,-1 + # BAZ,-2 + # + # \String input with headers: + # + # in_string = "Name,Value\nfoo,0\nbar,1\nbaz,2" + # CSV.filter(in_string, headers: true) do |row| + # row[0].upcase! + # row[1] = - row[1].to_i + # end # => # + # + # Output (to STDOUT): + # + # Name,Value + # FOO,0 + # BAR,-1 + # BAZ,-2 + # + # \IO stream input without headers: + # + # File.write('t.csv', "foo,0\nbar,1\nbaz,2") + # File.open('t.csv') do |in_io| + # CSV.filter(in_io) do |row| + # row[0].upcase! + # row[1] = - row[1].to_i + # end + # end # => [["FOO", 0], ["BAR", -1], ["BAZ", -2]] + # + # Output (to STDOUT): + # + # FOO,0 + # BAR,-1 + # BAZ,-2 + # + # \IO stream input with headers: + # + # File.write('t.csv', "Name,Value\nfoo,0\nbar,1\nbaz,2") + # File.open('t.csv') do |in_io| + # CSV.filter(in_io, headers: true) do |row| + # row[0].upcase! + # row[1] = - row[1].to_i + # end + # end # => # + # + # Output (to STDOUT): + # + # Name,Value + # FOO,0 + # BAR,-1 + # BAZ,-2 + # + # When both +in_string_or_io+ and +out_string_or_io+ are given, + # parses from +in_string_or_io+ and generates to +out_string_or_io+. + # + # \String output without headers: + # + # in_string = "foo,0\nbar,1\nbaz,2" + # out_string = '' + # CSV.filter(in_string, out_string) do |row| + # row[0].upcase! + # row[1] = - row[1].to_i + # end # => [["FOO", 0], ["BAR", -1], ["BAZ", -2]] + # out_string # => "FOO,0\nBAR,-1\nBAZ,-2\n" + # + # \String output with headers: + # + # in_string = "Name,Value\nfoo,0\nbar,1\nbaz,2" + # out_string = '' + # CSV.filter(in_string, out_string, headers: true) do |row| + # row[0].upcase! + # row[1] = - row[1].to_i + # end # => # + # out_string # => "Name,Value\nFOO,0\nBAR,-1\nBAZ,-2\n" + # + # \IO stream output without headers: + # + # in_string = "foo,0\nbar,1\nbaz,2" + # File.open('t.csv', 'w') do |out_io| + # CSV.filter(in_string, out_io) do |row| + # row[0].upcase! + # row[1] = - row[1].to_i + # end + # end # => [["FOO", 0], ["BAR", -1], ["BAZ", -2]] + # File.read('t.csv') # => "FOO,0\nBAR,-1\nBAZ,-2\n" + # + # \IO stream output with headers: + # + # in_string = "Name,Value\nfoo,0\nbar,1\nbaz,2" + # File.open('t.csv', 'w') do |out_io| + # CSV.filter(in_string, out_io, headers: true) do |row| + # row[0].upcase! + # row[1] = - row[1].to_i + # end + # end # => # + # File.read('t.csv') # => "Name,Value\nFOO,0\nBAR,-1\nBAZ,-2\n" + # + # When neither +in_string_or_io+ nor +out_string_or_io+ given, + # parses from {ARGF}[rdoc-ref:ARGF] + # and generates to STDOUT. + # + # Without headers: + # + # # Put Ruby code into a file. + # ruby = <<-EOT + # require 'csv' + # CSV.filter do |row| + # row[0].upcase! + # row[1] = - row[1].to_i + # end + # EOT + # File.write('t.rb', ruby) + # # Put some CSV into a file. + # File.write('t.csv', "foo,0\nbar,1\nbaz,2") + # # Run the Ruby code with CSV filename as argument. + # system(Gem.ruby, "t.rb", "t.csv") + # + # Output (to STDOUT): + # + # FOO,0 + # BAR,-1 + # BAZ,-2 + # + # With headers: + # + # # Put Ruby code into a file. + # ruby = <<-EOT + # require 'csv' + # CSV.filter(headers: true) do |row| + # row[0].upcase! + # row[1] = - row[1].to_i + # end + # EOT + # File.write('t.rb', ruby) + # # Put some CSV into a file. + # File.write('t.csv', "Name,Value\nfoo,0\nbar,1\nbaz,2") + # # Run the Ruby code with CSV filename as argument. + # system(Gem.ruby, "t.rb", "t.csv") + # + # Output (to STDOUT): + # + # Name,Value + # FOO,0 + # BAR,-1 + # BAZ,-2 + # + # Arguments: + # + # * Argument +in_string_or_io+ must be a \String or an \IO stream. + # * Argument +out_string_or_io+ must be a \String or an \IO stream. + # * Arguments **options must be keyword options. + # See {Options for Parsing}[#class-CSV-label-Options+for+Parsing]. + # + # source://csv//lib/csv.rb#1202 + def filter(input = T.unsafe(nil), output = T.unsafe(nil), **options); end + + # :call-seq: + # foreach(path_or_io, mode='r', **options) {|row| ... ) + # foreach(path_or_io, mode='r', **options) -> new_enumerator + # + # Calls the block with each row read from source +path_or_io+. + # + # \Path input without headers: + # + # string = "foo,0\nbar,1\nbaz,2\n" + # in_path = 't.csv' + # File.write(in_path, string) + # CSV.foreach(in_path) {|row| p row } + # + # Output: + # + # ["foo", "0"] + # ["bar", "1"] + # ["baz", "2"] + # + # \Path input with headers: + # + # string = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # in_path = 't.csv' + # File.write(in_path, string) + # CSV.foreach(in_path, headers: true) {|row| p row } + # + # Output: + # + # + # + # + # + # \IO stream input without headers: + # + # string = "foo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # File.open('t.csv') do |in_io| + # CSV.foreach(in_io) {|row| p row } + # end + # + # Output: + # + # ["foo", "0"] + # ["bar", "1"] + # ["baz", "2"] + # + # \IO stream input with headers: + # + # string = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # File.open('t.csv') do |in_io| + # CSV.foreach(in_io, headers: true) {|row| p row } + # end + # + # Output: + # + # + # + # + # + # With no block given, returns an \Enumerator: + # + # string = "foo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # CSV.foreach(path) # => # + # + # Arguments: + # * Argument +path_or_io+ must be a file path or an \IO stream. + # * Argument +mode+, if given, must be a \File mode. + # See {Access Modes}[https://docs.ruby-lang.org/en/master/File.html#class-File-label-Access+Modes]. + # * Arguments **options must be keyword options. + # See {Options for Parsing}[#class-CSV-label-Options+for+Parsing]. + # * This method optionally accepts an additional :encoding option + # that you can use to specify the Encoding of the data read from +path+ or +io+. + # You must provide this unless your data is in the encoding + # given by Encoding::default_external. + # Parsing will use this to determine how to parse the data. + # You may provide a second Encoding to + # have the data transcoded as it is read. For example, + # would read +UTF-32BE+ data from the file + # but transcode it to +UTF-8+ before parsing. + # + # source://csv//lib/csv.rb#1332 + def foreach(path, mode = T.unsafe(nil), **options, &block); end + + # :call-seq: + # generate(csv_string, **options) {|csv| ... } + # generate(**options) {|csv| ... } + # + # * Argument +csv_string+, if given, must be a \String object; + # defaults to a new empty \String. + # * Arguments +options+, if given, should be generating options. + # See {Options for Generating}[#class-CSV-label-Options+for+Generating]. + # + # --- + # + # Creates a new \CSV object via CSV.new(csv_string, **options); + # calls the block with the \CSV object, which the block may modify; + # returns the \String generated from the \CSV object. + # + # Note that a passed \String *is* modified by this method. + # Pass csv_string.dup if the \String must be preserved. + # + # This method has one additional option: :encoding, + # which sets the base Encoding for the output if no no +str+ is specified. + # CSV needs this hint if you plan to output non-ASCII compatible data. + # + # --- + # + # Add lines: + # input_string = "foo,0\nbar,1\nbaz,2\n" + # output_string = CSV.generate(input_string) do |csv| + # csv << ['bat', 3] + # csv << ['bam', 4] + # end + # output_string # => "foo,0\nbar,1\nbaz,2\nbat,3\nbam,4\n" + # input_string # => "foo,0\nbar,1\nbaz,2\nbat,3\nbam,4\n" + # output_string.equal?(input_string) # => true # Same string, modified + # + # Add lines into new string, preserving old string: + # input_string = "foo,0\nbar,1\nbaz,2\n" + # output_string = CSV.generate(input_string.dup) do |csv| + # csv << ['bat', 3] + # csv << ['bam', 4] + # end + # output_string # => "foo,0\nbar,1\nbaz,2\nbat,3\nbam,4\n" + # input_string # => "foo,0\nbar,1\nbaz,2\n" + # output_string.equal?(input_string) # => false # Different strings + # + # Create lines from nothing: + # output_string = CSV.generate do |csv| + # csv << ['foo', 0] + # csv << ['bar', 1] + # csv << ['baz', 2] + # end + # output_string # => "foo,0\nbar,1\nbaz,2\n" + # + # --- + # + # Raises an exception if +csv_string+ is not a \String object: + # # Raises TypeError (no implicit conversion of Integer into String) + # CSV.generate(0) + # + # @yield [csv] + # + # source://csv//lib/csv.rb#1398 + def generate(str = T.unsafe(nil), **options); end + + # :call-seq: + # CSV.generate_line(ary) + # CSV.generate_line(ary, **options) + # + # Returns the \String created by generating \CSV from +ary+ + # using the specified +options+. + # + # Argument +ary+ must be an \Array. + # + # Special options: + # * Option :row_sep defaults to "\n"> on Ruby 3.0 or later + # and $INPUT_RECORD_SEPARATOR ($/) otherwise.: + # $INPUT_RECORD_SEPARATOR # => "\n" + # * This method accepts an additional option, :encoding, which sets the base + # Encoding for the output. This method will try to guess your Encoding from + # the first non-+nil+ field in +row+, if possible, but you may need to use + # this parameter as a backup plan. + # + # For other +options+, + # see {Options for Generating}[#class-CSV-label-Options+for+Generating]. + # + # --- + # + # Returns the \String generated from an \Array: + # CSV.generate_line(['foo', '0']) # => "foo,0\n" + # + # --- + # + # Raises an exception if +ary+ is not an \Array: + # # Raises NoMethodError (undefined method `find' for :foo:Symbol) + # CSV.generate_line(:foo) + # + # source://csv//lib/csv.rb#1446 + def generate_line(row, **options); end + + # :call-seq: + # CSV.generate_lines(rows) + # CSV.generate_lines(rows, **options) + # + # Returns the \String created by generating \CSV from + # using the specified +options+. + # + # Argument +rows+ must be an \Array of row. Row is \Array of \String or \CSV::Row. + # + # Special options: + # * Option :row_sep defaults to "\n" on Ruby 3.0 or later + # and $INPUT_RECORD_SEPARATOR ($/) otherwise.: + # $INPUT_RECORD_SEPARATOR # => "\n" + # * This method accepts an additional option, :encoding, which sets the base + # Encoding for the output. This method will try to guess your Encoding from + # the first non-+nil+ field in +row+, if possible, but you may need to use + # this parameter as a backup plan. + # + # For other +options+, + # see {Options for Generating}[#class-CSV-label-Options+for+Generating]. + # + # --- + # + # Returns the \String generated from an + # CSV.generate_lines([['foo', '0'], ['bar', '1'], ['baz', '2']]) # => "foo,0\nbar,1\nbaz,2\n" + # + # --- + # + # Raises an exception + # # Raises NoMethodError (undefined method `each' for :foo:Symbol) + # CSV.generate_lines(:foo) + # + # source://csv//lib/csv.rb#1501 + def generate_lines(rows, **options); end + + # :call-seq: + # instance(string, **options) + # instance(io = $stdout, **options) + # instance(string, **options) {|csv| ... } + # instance(io = $stdout, **options) {|csv| ... } + # + # Creates or retrieves cached \CSV objects. + # For arguments and options, see CSV.new. + # + # This API is not Ractor-safe. + # + # --- + # + # With no block given, returns a \CSV object. + # + # The first call to +instance+ creates and caches a \CSV object: + # s0 = 's0' + # csv0 = CSV.instance(s0) + # csv0.class # => CSV + # + # Subsequent calls to +instance+ with that _same_ +string+ or +io+ + # retrieve that same cached object: + # csv1 = CSV.instance(s0) + # csv1.class # => CSV + # csv1.equal?(csv0) # => true # Same CSV object + # + # A subsequent call to +instance+ with a _different_ +string+ or +io+ + # creates and caches a _different_ \CSV object. + # s1 = 's1' + # csv2 = CSV.instance(s1) + # csv2.equal?(csv0) # => false # Different CSV object + # + # All the cached objects remains available: + # csv3 = CSV.instance(s0) + # csv3.equal?(csv0) # true # Same CSV object + # csv4 = CSV.instance(s1) + # csv4.equal?(csv2) # true # Same CSV object + # + # --- + # + # When a block is given, calls the block with the created or retrieved + # \CSV object; returns the block's return value: + # CSV.instance(s0) {|csv| :foo } # => :foo + # + # source://csv//lib/csv.rb#1006 + def instance(data = T.unsafe(nil), **options); end + + # :call-seq: + # open(file_path, mode = "rb", **options ) -> new_csv + # open(io, mode = "rb", **options ) -> new_csv + # open(file_path, mode = "rb", **options ) { |csv| ... } -> object + # open(io, mode = "rb", **options ) { |csv| ... } -> object + # + # possible options elements: + # keyword form: + # :invalid => nil # raise error on invalid byte sequence (default) + # :invalid => :replace # replace invalid byte sequence + # :undef => :replace # replace undefined conversion + # :replace => string # replacement string ("?" or "\uFFFD" if not specified) + # + # * Argument +path+, if given, must be the path to a file. + # :include: ../doc/csv/arguments/io.rdoc + # * Argument +mode+, if given, must be a \File mode. + # See {Access Modes}[https://docs.ruby-lang.org/en/master/File.html#class-File-label-Access+Modes]. + # * Arguments **options must be keyword options. + # See {Options for Generating}[#class-CSV-label-Options+for+Generating]. + # * This method optionally accepts an additional :encoding option + # that you can use to specify the Encoding of the data read from +path+ or +io+. + # You must provide this unless your data is in the encoding + # given by Encoding::default_external. + # Parsing will use this to determine how to parse the data. + # You may provide a second Encoding to + # have the data transcoded as it is read. For example, + # would read +UTF-32BE+ data from the file + # but transcode it to +UTF-8+ before parsing. + # + # --- + # + # These examples assume prior execution of: + # string = "foo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # + # --- + # + # With no block given, returns a new \CSV object. + # + # Create a \CSV object using a file path: + # csv = CSV.open(path) + # + # Create a \CSV object using an open \File: + # csv = CSV.open(File.open(path)) + # + # --- + # + # With a block given, calls the block with the created \CSV object; + # returns the block's return value: + # + # Using a file path: + # csv = CSV.open(path) {|csv| p csv} + # Output: + # + # Using an open \File: + # csv = CSV.open(File.open(path)) {|csv| p csv} + # Output: + # + # --- + # + # Raises an exception if the argument is not a \String object or \IO object: + # # Raises TypeError (no implicit conversion of Symbol into String) + # CSV.open(:foo) + # + # source://csv//lib/csv.rb#1581 + def open(filename, mode = T.unsafe(nil), **options); end + + # :call-seq: + # parse(string) -> array_of_arrays + # parse(io) -> array_of_arrays + # parse(string, headers: ..., **options) -> csv_table + # parse(io, headers: ..., **options) -> csv_table + # parse(string, **options) {|row| ... } + # parse(io, **options) {|row| ... } + # + # Parses +string+ or +io+ using the specified +options+. + # + # - Argument +string+ should be a \String object; + # it will be put into a new StringIO object positioned at the beginning. + # :include: ../doc/csv/arguments/io.rdoc + # - Argument +options+: see {Options for Parsing}[#class-CSV-label-Options+for+Parsing] + # + # ====== Without Option +headers+ + # + # Without {option +headers+}[#class-CSV-label-Option+headers] case. + # + # These examples assume prior execution of: + # string = "foo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # + # --- + # + # With no block given, returns an \Array of Arrays formed from the source. + # + # Parse a \String: + # a_of_a = CSV.parse(string) + # a_of_a # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] + # + # Parse an open \File: + # a_of_a = File.open(path) do |file| + # CSV.parse(file) + # end + # a_of_a # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] + # + # --- + # + # With a block given, calls the block with each parsed row: + # + # Parse a \String: + # CSV.parse(string) {|row| p row } + # + # Output: + # ["foo", "0"] + # ["bar", "1"] + # ["baz", "2"] + # + # Parse an open \File: + # File.open(path) do |file| + # CSV.parse(file) {|row| p row } + # end + # + # Output: + # ["foo", "0"] + # ["bar", "1"] + # ["baz", "2"] + # + # ====== With Option +headers+ + # + # With {option +headers+}[#class-CSV-label-Option+headers] case. + # + # These examples assume prior execution of: + # string = "Name,Count\nfoo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # + # --- + # + # With no block given, returns a CSV::Table object formed from the source. + # + # Parse a \String: + # csv_table = CSV.parse(string, headers: ['Name', 'Count']) + # csv_table # => # + # + # Parse an open \File: + # csv_table = File.open(path) do |file| + # CSV.parse(file, headers: ['Name', 'Count']) + # end + # csv_table # => # + # + # --- + # + # With a block given, calls the block with each parsed row, + # which has been formed into a CSV::Row object: + # + # Parse a \String: + # CSV.parse(string, headers: ['Name', 'Count']) {|row| p row } + # + # Output: + # # + # # + # # + # + # Parse an open \File: + # File.open(path) do |file| + # CSV.parse(file, headers: ['Name', 'Count']) {|row| p row } + # end + # + # Output: + # # + # # + # # + # + # --- + # + # Raises an exception if the argument is not a \String object or \IO object: + # # Raises NoMethodError (undefined method `close' for :foo:Symbol) + # CSV.parse(:foo) + # + # source://csv//lib/csv.rb#1732 + def parse(str, **options, &block); end + + # :call-seq: + # CSV.parse_line(string) -> new_array or nil + # CSV.parse_line(io) -> new_array or nil + # CSV.parse_line(string, **options) -> new_array or nil + # CSV.parse_line(io, **options) -> new_array or nil + # CSV.parse_line(string, headers: true, **options) -> csv_row or nil + # CSV.parse_line(io, headers: true, **options) -> csv_row or nil + # + # Returns the data created by parsing the first line of +string+ or +io+ + # using the specified +options+. + # + # - Argument +string+ should be a \String object; + # it will be put into a new StringIO object positioned at the beginning. + # :include: ../doc/csv/arguments/io.rdoc + # - Argument +options+: see {Options for Parsing}[#class-CSV-label-Options+for+Parsing] + # + # ====== Without Option +headers+ + # + # Without option +headers+, returns the first row as a new \Array. + # + # These examples assume prior execution of: + # string = "foo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # + # Parse the first line from a \String object: + # CSV.parse_line(string) # => ["foo", "0"] + # + # Parse the first line from a File object: + # File.open(path) do |file| + # CSV.parse_line(file) # => ["foo", "0"] + # end # => ["foo", "0"] + # + # Returns +nil+ if the argument is an empty \String: + # CSV.parse_line('') # => nil + # + # ====== With Option +headers+ + # + # With {option +headers+}[#class-CSV-label-Option+headers], + # returns the first row as a CSV::Row object. + # + # These examples assume prior execution of: + # string = "Name,Count\nfoo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # + # Parse the first line from a \String object: + # CSV.parse_line(string, headers: true) # => # + # + # Parse the first line from a File object: + # File.open(path) do |file| + # CSV.parse_line(file, headers: true) + # end # => # + # + # --- + # + # Raises an exception if the argument is +nil+: + # # Raises ArgumentError (Cannot parse nil as CSV): + # CSV.parse_line(nil) + # + # source://csv//lib/csv.rb#1805 + def parse_line(line, **options); end + + # :call-seq: + # read(source, **options) -> array_of_arrays + # read(source, headers: true, **options) -> csv_table + # + # Opens the given +source+ with the given +options+ (see CSV.open), + # reads the source (see CSV#read), and returns the result, + # which will be either an \Array of Arrays or a CSV::Table. + # + # Without headers: + # string = "foo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # CSV.read(path) # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] + # + # With headers: + # string = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # CSV.read(path, headers: true) # => # + # + # source://csv//lib/csv.rb#1829 + def read(path, **options); end + + # :call-seq: + # CSV.readlines(source, **options) + # + # Alias for CSV.read. + # + # source://csv//lib/csv.rb#1837 + def readlines(path, **options); end + + # :call-seq: + # CSV.table(source, **options) + # + # Calls CSV.read with +source+, +options+, and certain default options: + # - +headers+: +true+ + # - +converters+: +:numeric+ + # - +header_converters+: +:symbol+ + # + # Returns a CSV::Table object. + # + # Example: + # string = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # path = 't.csv' + # File.write(path, string) + # CSV.table(path) # => # + # + # source://csv//lib/csv.rb#1856 + def table(path, **options); end + end +end + +# The encoding used by all converters. +# +# source://csv//lib/csv.rb#883 +CSV::ConverterEncoding = T.let(T.unsafe(nil), Encoding) + +# A \Hash containing the names and \Procs for the built-in field converters. +# See {Built-In Field Converters}[#class-CSV-label-Built-In+Field+Converters]. +# +# This \Hash is intentionally left unfrozen, and may be extended with +# custom field converters. +# See {Custom Field Converters}[#class-CSV-label-Custom+Field+Converters]. +# +# source://csv//lib/csv.rb#891 +CSV::Converters = T.let(T.unsafe(nil), Hash) + +# A Regexp used to find and convert some common Date formats. +# +# source://csv//lib/csv.rb#872 +CSV::DateMatcher = T.let(T.unsafe(nil), Regexp) + +# A Regexp used to find and convert some common DateTime formats. +# +# source://csv//lib/csv.rb#875 +CSV::DateTimeMatcher = T.let(T.unsafe(nil), Regexp) + +# Note: Don't use this class directly. This is an internal class. +# +# source://csv//lib/csv/fields_converter.rb#5 +class CSV::FieldsConverter + include ::Enumerable + + # A CSV::FieldsConverter is a data structure for storing the + # fields converter properties to be passed as a parameter + # when parsing a new file (e.g. CSV::Parser.new(@io, parser_options)) + # + # @return [FieldsConverter] a new instance of FieldsConverter + # + # source://csv//lib/csv/fields_converter.rb#13 + def initialize(options = T.unsafe(nil)); end + + # source://csv//lib/csv/fields_converter.rb#23 + def add_converter(name = T.unsafe(nil), &converter); end + + # source://csv//lib/csv/fields_converter.rb#47 + def convert(fields, headers, lineno, quoted_fields); end + + # source://csv//lib/csv/fields_converter.rb#39 + def each(&block); end + + # @return [Boolean] + # + # source://csv//lib/csv/fields_converter.rb#43 + def empty?; end + + private + + # source://csv//lib/csv/fields_converter.rb#85 + def builtin_converters; end + + # @return [Boolean] + # + # source://csv//lib/csv/fields_converter.rb#80 + def need_convert?; end + + # @return [Boolean] + # + # source://csv//lib/csv/fields_converter.rb#76 + def need_static_convert?; end +end + +# A \Hash containing the names and \Procs for the built-in header converters. +# See {Built-In Header Converters}[#class-CSV-label-Built-In+Header+Converters]. +# +# This \Hash is intentionally left unfrozen, and may be extended with +# custom field converters. +# See {Custom Header Converters}[#class-CSV-label-Custom+Header+Converters]. +# +# source://csv//lib/csv.rb#924 +CSV::HeaderConverters = T.let(T.unsafe(nil), Hash) + +# source://csv//lib/csv/input_record_separator.rb#5 +module CSV::InputRecordSeparator + class << self + # source://csv//lib/csv/input_record_separator.rb#8 + def value; end + end +end + +# The error thrown when the parser encounters invalid encoding in CSV. +# +# source://csv//lib/csv.rb#850 +class CSV::InvalidEncodingError < ::CSV::MalformedCSVError + # @return [InvalidEncodingError] a new instance of InvalidEncodingError + # + # source://csv//lib/csv.rb#852 + def initialize(encoding, line_number); end + + # Returns the value of attribute encoding. + # + # source://csv//lib/csv.rb#851 + def encoding; end +end + +# The error thrown when the parser encounters illegal CSV formatting. +# +# source://csv//lib/csv.rb#840 +class CSV::MalformedCSVError < ::RuntimeError + # @return [MalformedCSVError] a new instance of MalformedCSVError + # + # source://csv//lib/csv.rb#843 + def initialize(message, line_number); end + + # Returns the value of attribute line_number. + # + # source://csv//lib/csv.rb#841 + def line_number; end + + # Returns the value of attribute line_number. + # + # source://csv//lib/csv.rb#841 + def lineno; end +end + +# Note: Don't use this class directly. This is an internal class. +# +# source://csv//lib/csv/parser.rb#11 +class CSV::Parser + # @return [Parser] a new instance of Parser + # + # source://csv//lib/csv/parser.rb#335 + def initialize(input, options); end + + # source://csv//lib/csv/parser.rb#343 + def column_separator; end + + # source://csv//lib/csv/parser.rb#355 + def field_size_limit; end + + # @return [Boolean] + # + # source://csv//lib/csv/parser.rb#375 + def header_row?; end + + # source://csv//lib/csv/parser.rb#371 + def headers; end + + # @return [Boolean] + # + # source://csv//lib/csv/parser.rb#387 + def liberal_parsing?; end + + # source://csv//lib/csv/parser.rb#395 + def line; end + + # source://csv//lib/csv/parser.rb#391 + def lineno; end + + # source://csv//lib/csv/parser.rb#359 + def max_field_size; end + + # source://csv//lib/csv/parser.rb#399 + def parse(&block); end + + # source://csv//lib/csv/parser.rb#351 + def quote_character; end + + # @return [Boolean] + # + # source://csv//lib/csv/parser.rb#379 + def return_headers?; end + + # source://csv//lib/csv/parser.rb#347 + def row_separator; end + + # @return [Boolean] + # + # source://csv//lib/csv/parser.rb#383 + def skip_blanks?; end + + # source://csv//lib/csv/parser.rb#363 + def skip_lines; end + + # @return [Boolean] + # + # source://csv//lib/csv/parser.rb#367 + def unconverted_fields?; end + + # @return [Boolean] + # + # source://csv//lib/csv/parser.rb#440 + def use_headers?; end + + private + + # This method injects an instance variable unconverted_fields into + # +row+ and an accessor method for +row+ called unconverted_fields(). The + # variable is set to the contents of +fields+. + # + # source://csv//lib/csv/parser.rb#1289 + def add_unconverted_fields(row, fields); end + + # source://csv//lib/csv/parser.rb#803 + def adjust_headers(headers, quoted_fields); end + + # source://csv//lib/csv/parser.rb#871 + def build_scanner; end + + # source://csv//lib/csv/parser.rb#725 + def detect_row_separator(sample, cr, lf); end + + # @yield [row] + # + # source://csv//lib/csv/parser.rb#1260 + def emit_row(row, quoted_fields, &block); end + + # source://csv//lib/csv/parser.rb#1245 + def ignore_broken_line; end + + # source://csv//lib/csv/parser.rb#755 + def last_line; end + + # @return [Boolean] + # + # source://csv//lib/csv/parser.rb#813 + def may_quoted?; end + + # source://csv//lib/csv/parser.rb#1200 + def parse_column_end; end + + # source://csv//lib/csv/parser.rb#1100 + def parse_column_value; end + + # source://csv//lib/csv/parser.rb#789 + def parse_headers(row); end + + # source://csv//lib/csv/parser.rb#938 + def parse_no_quote(&block); end + + # source://csv//lib/csv/parser.rb#969 + def parse_quotable_loose(&block); end + + # source://csv//lib/csv/parser.rb#1030 + def parse_quotable_robust(&block); end + + # source://csv//lib/csv/parser.rb#1158 + def parse_quoted_column_value; end + + # source://csv//lib/csv/parser.rb#1214 + def parse_row_end; end + + # source://csv//lib/csv/parser.rb#1130 + def parse_unquoted_column_value; end + + # A set of tasks to prepare the file in order to parse it + # + # source://csv//lib/csv/parser.rb#446 + def prepare; end + + # source://csv//lib/csv/parser.rb#503 + def prepare_backslash; end + + # source://csv//lib/csv/parser.rb#763 + def prepare_header; end + + # source://csv//lib/csv/parser.rb#749 + def prepare_line; end + + # source://csv//lib/csv/parser.rb#809 + def prepare_parser; end + + # source://csv//lib/csv/parser.rb#487 + def prepare_quote_character; end + + # source://csv//lib/csv/parser.rb#645 + def prepare_quoted; end + + # source://csv//lib/csv/parser.rb#577 + def prepare_separators; end + + # source://csv//lib/csv/parser.rb#518 + def prepare_skip_lines; end + + # source://csv//lib/csv/parser.rb#535 + def prepare_strip; end + + # source://csv//lib/csv/parser.rb#672 + def prepare_unquoted; end + + # source://csv//lib/csv/parser.rb#461 + def prepare_variable; end + + # source://csv//lib/csv/parser.rb#685 + def resolve_row_separator(separator); end + + # @return [Boolean] + # + # source://csv//lib/csv/parser.rb#918 + def skip_line?(line); end + + # source://csv//lib/csv/parser.rb#901 + def skip_needless_lines; end + + # source://csv//lib/csv/parser.rb#1251 + def start_row; end + + # source://csv//lib/csv/parser.rb#1227 + def strip_value(value); end + + # @raise [MalformedCSVError] + # + # source://csv//lib/csv/parser.rb#930 + def validate_field_size(field); end + + # This method verifies that there are no (obvious) ambiguities with the + # provided +col_sep+ and +strip+ parsing options. For example, if +col_sep+ + # and +strip+ were both equal to +\t+, then there would be no clear way to + # parse the input. + # + # source://csv//lib/csv/parser.rb#627 + def validate_strip_and_col_sep_options; end +end + +# CSV::InputsScanner receives IO inputs, encoding and the chunk_size. +# It also controls the life cycle of the object with its methods +keep_start+, +# +keep_end+, +keep_back+, +keep_drop+. +# +# CSV::InputsScanner.scan() tries to match with pattern at the current position. +# If there's a match, the scanner advances the "scan pointer" and returns the matched string. +# Otherwise, the scanner returns nil. +# +# CSV::InputsScanner.rest() returns the "rest" of the string (i.e. everything after the scan pointer). +# If there is no more data (eos? = true), it returns "". +# +# source://csv//lib/csv/parser.rb#86 +class CSV::Parser::InputsScanner + # @return [InputsScanner] a new instance of InputsScanner + # + # source://csv//lib/csv/parser.rb#87 + def initialize(inputs, encoding, row_separator, chunk_size: T.unsafe(nil)); end + + # source://csv//lib/csv/parser.rb#257 + def check(pattern); end + + # @yield [buffer] + # + # source://csv//lib/csv/parser.rb#97 + def each_line(row_separator); end + + # @return [Boolean] + # + # source://csv//lib/csv/parser.rb#170 + def eos?; end + + # source://csv//lib/csv/parser.rb#197 + def keep_back; end + + # source://csv//lib/csv/parser.rb#236 + def keep_drop; end + + # source://csv//lib/csv/parser.rb#181 + def keep_end; end + + # source://csv//lib/csv/parser.rb#174 + def keep_start; end + + # source://csv//lib/csv/parser.rb#253 + def rest; end + + # source://csv//lib/csv/parser.rb#143 + def scan(pattern); end + + # source://csv//lib/csv/parser.rb#154 + def scan_all(pattern); end + + private + + # source://csv//lib/csv/parser.rb#266 + def adjust_last_keep; end + + # source://csv//lib/csv/parser.rb#294 + def read_chunk; end + + # source://csv//lib/csv/parser.rb#262 + def trace(*args); end +end + +# Raised when encoding is invalid. +# +# source://csv//lib/csv/parser.rb#22 +class CSV::Parser::InvalidEncoding < ::StandardError; end + +# source://csv//lib/csv/parser.rb#845 +CSV::Parser::SCANNER_TEST = T.let(T.unsafe(nil), FalseClass) + +# source://csv//lib/csv/parser.rb#574 +CSV::Parser::STRING_SCANNER_SCAN_ACCEPT_STRING = T.let(T.unsafe(nil), TrueClass) + +# CSV::Scanner receives a CSV output, scans it and return the content. +# It also controls the life cycle of the object with its methods +keep_start+, +# +keep_end+, +keep_back+, +keep_drop+. +# +# Uses StringScanner (the official strscan gem). Strscan provides lexical +# scanning operations on a String. We inherit its object and take advantage +# on the methods. For more information, please visit: +# https://ruby-doc.org/stdlib-2.6.1/libdoc/strscan/rdoc/StringScanner.html +# +# source://csv//lib/csv/parser.rb#39 +class CSV::Parser::Scanner < ::StringScanner + # @return [Scanner] a new instance of Scanner + # + # source://csv//lib/csv/parser.rb#42 + def initialize(*args); end + + # source://csv//lib/csv/parser.rb#47 + def each_line(row_separator); end + + # source://csv//lib/csv/parser.rb#65 + def keep_back; end + + # source://csv//lib/csv/parser.rb#69 + def keep_drop; end + + # source://csv//lib/csv/parser.rb#60 + def keep_end; end + + # source://csv//lib/csv/parser.rb#56 + def keep_start; end + + def scan_all(_arg0); end +end + +# Raised when unexpected case is happen. +# +# source://csv//lib/csv/parser.rb#26 +class CSV::Parser::UnexpectedError < ::StandardError; end + +# source://csv//lib/csv/parser.rb#827 +class CSV::Parser::UnoptimizedStringIO + # @return [UnoptimizedStringIO] a new instance of UnoptimizedStringIO + # + # source://csv//lib/csv/parser.rb#828 + def initialize(string); end + + # source://csv//lib/csv/parser.rb#836 + def each_line(*args, &block); end + + # @return [Boolean] + # + # source://csv//lib/csv/parser.rb#840 + def eof?; end + + # source://csv//lib/csv/parser.rb#832 + def gets(*args); end +end + +# = \CSV::Row +# A \CSV::Row instance represents a \CSV table row. +# (see {class CSV}[../CSV.html]). +# +# The instance may have: +# - Fields: each is an object, not necessarily a \String. +# - Headers: each serves a key, and also need not be a \String. +# +# === Instance Methods +# +# \CSV::Row has three groups of instance methods: +# - Its own internally defined instance methods. +# - Methods included by module Enumerable. +# - Methods delegated to class Array.: +# * Array#empty? +# * Array#length +# * Array#size +# +# == Creating a \CSV::Row Instance +# +# Commonly, a new \CSV::Row instance is created by parsing \CSV source +# that has headers: +# source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" +# table = CSV.parse(source, headers: true) +# table.each {|row| p row } +# Output: +# # +# # +# # +# +# You can also create a row directly. See ::new. +# +# == Headers +# +# Like a \CSV::Table, a \CSV::Row has headers. +# +# A \CSV::Row that was created by parsing \CSV source +# inherits its headers from the table: +# source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" +# table = CSV.parse(source, headers: true) +# row = table.first +# row.headers # => ["Name", "Value"] +# +# You can also create a new row with headers; +# like the keys in a \Hash, the headers need not be Strings: +# row = CSV::Row.new([:name, :value], ['foo', 0]) +# row.headers # => [:name, :value] +# +# The new row retains its headers even if added to a table +# that has headers: +# table << row # => # +# row.headers # => [:name, :value] +# row[:name] # => "foo" +# row['Name'] # => nil +# +# +# +# == Accessing Fields +# +# You may access a field in a \CSV::Row with either its \Integer index +# (\Array-style) or its header (\Hash-style). +# +# Fetch a field using method #[]: +# row = CSV::Row.new(['Name', 'Value'], ['foo', 0]) +# row[1] # => 0 +# row['Value'] # => 0 +# +# Set a field using method #[]=: +# row = CSV::Row.new(['Name', 'Value'], ['foo', 0]) +# row # => # +# row[0] = 'bar' +# row['Value'] = 1 +# row # => # +# +# source://csv//lib/csv/row.rb#80 +class CSV::Row + include ::Enumerable + extend ::Forwardable + + # :call-seq: + # CSV::Row.new(headers, fields, header_row = false) -> csv_row + # + # Returns the new \CSV::Row instance constructed from + # arguments +headers+ and +fields+; both should be Arrays; + # note that the fields need not be Strings: + # row = CSV::Row.new(['Name', 'Value'], ['foo', 0]) + # row # => # + # + # If the \Array lengths are different, the shorter is +nil+-filled: + # row = CSV::Row.new(['Name', 'Value', 'Date', 'Size'], ['foo', 0]) + # row # => # + # + # Each \CSV::Row object is either a field row or a header row; + # by default, a new row is a field row; for the row created above: + # row.field_row? # => true + # row.header_row? # => false + # + # If the optional argument +header_row+ is given as +true+, + # the created row is a header row: + # row = CSV::Row.new(['Name', 'Value'], ['foo', 0], header_row = true) + # row # => # + # row.field_row? # => false + # row.header_row? # => true + # + # @return [Row] a new instance of Row + # + # source://csv//lib/csv/row.rb#105 + def initialize(headers, fields, header_row = T.unsafe(nil)); end + + # :call-seq: + # row << [header, value] -> self + # row << hash -> self + # row << value -> self + # + # Adds a field to +self+; returns +self+: + # + # If the argument is a 2-element \Array [header, value], + # a field is added with the given +header+ and +value+: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row << ['NAME', 'Bat'] + # row # => # + # + # If the argument is a \Hash, each key-value pair is added + # as a field with header +key+ and value +value+. + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row << {NAME: 'Bat', name: 'Bam'} + # row # => # + # + # Otherwise, the given +value+ is added as a field with no header. + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row << 'Bag' + # row # => # + # + # source://csv//lib/csv/row.rb#389 + def <<(arg); end + + # :call-seq: + # row == other -> true or false + # + # Returns +true+ if +other+ is a /CSV::Row that has the same + # fields (headers and values) in the same order as +self+; + # otherwise returns +false+: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # other_row = table[0] + # row == other_row # => true + # other_row = table[1] + # row == other_row # => false + # + # source://csv//lib/csv/row.rb#633 + def ==(other); end + + # :call-seq: + # field(index) -> value + # field(header) -> value + # field(header, offset) -> value + # + # Returns the field value for the given +index+ or +header+. + # + # --- + # + # Fetch field value by \Integer index: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.field(0) # => "foo" + # row.field(1) # => "bar" + # + # Counts backward from the last column if +index+ is negative: + # row.field(-1) # => "0" + # row.field(-2) # => "foo" + # + # Returns +nil+ if +index+ is out of range: + # row.field(2) # => nil + # row.field(-3) # => nil + # + # --- + # + # Fetch field value by header (first found): + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.field('Name') # => "Foo" + # + # Fetch field value by header, ignoring +offset+ leading fields: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.field('Name', 2) # => "Baz" + # + # Returns +nil+ if the header does not exist. + # + # source://csv//lib/csv/row.rb#203 + def [](header_or_index, minimum_index = T.unsafe(nil)); end + + # :call-seq: + # row[index] = value -> value + # row[header, offset] = value -> value + # row[header] = value -> value + # + # Assigns the field value for the given +index+ or +header+; + # returns +value+. + # + # --- + # + # Assign field value by \Integer index: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row[0] = 'Bat' + # row[1] = 3 + # row # => # + # + # Counts backward from the last column if +index+ is negative: + # row[-1] = 4 + # row[-2] = 'Bam' + # row # => # + # + # Extends the row with nil:nil if positive +index+ is not in the row: + # row[4] = 5 + # row # => # + # + # Raises IndexError if negative +index+ is too small (too far from zero). + # + # --- + # + # Assign field value by header (first found): + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row['Name'] = 'Bat' + # row # => # + # + # Assign field value by header, ignoring +offset+ leading fields: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row['Name', 2] = 4 + # row # => # + # + # Append new field by (new) header: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row['New'] = 6 + # row# => # + # + # source://csv//lib/csv/row.rb#339 + def []=(*args); end + + # :call-seq: + # row.deconstruct -> array + # + # Returns the new \Array suitable for pattern matching containing the values + # of the row. + # + # source://csv//lib/csv/row.rb#682 + def deconstruct; end + + # :call-seq: + # row.deconstruct_keys(keys) -> hash + # + # Returns the new \Hash suitable for pattern matching containing only the + # keys specified as an argument. + # + # source://csv//lib/csv/row.rb#667 + def deconstruct_keys(keys); end + + # :call-seq: + # delete(index) -> [header, value] or nil + # delete(header) -> [header, value] or empty_array + # delete(header, offset) -> [header, value] or empty_array + # + # Removes a specified field from +self+; returns the 2-element \Array + # [header, value] if the field exists. + # + # If an \Integer argument +index+ is given, + # removes and returns the field at offset +index+, + # or returns +nil+ if the field does not exist: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.delete(1) # => ["Name", "Bar"] + # row.delete(50) # => nil + # + # Otherwise, if the single argument +header+ is given, + # removes and returns the first-found field with the given header, + # of returns a new empty \Array if the field does not exist: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.delete('Name') # => ["Name", "Foo"] + # row.delete('NAME') # => [] + # + # If argument +header+ and \Integer argument +offset+ are given, + # removes and returns the first-found field with the given header + # whose +index+ is at least as large as +offset+: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.delete('Name', 1) # => ["Name", "Bar"] + # row.delete('NAME', 1) # => [] + # + # source://csv//lib/csv/row.rb#451 + def delete(header_or_index, minimum_index = T.unsafe(nil)); end + + # :call-seq: + # row.delete_if {|header, value| ... } -> self + # + # Removes fields from +self+ as selected by the block; returns +self+. + # + # Removes each field for which the block returns a truthy value: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.delete_if {|header, value| value.start_with?('B') } # => true + # row # => # + # row.delete_if {|header, value| header.start_with?('B') } # => false + # + # If no block is given, returns a new Enumerator: + # row.delete_if # => #:delete_if> + # + # source://csv//lib/csv/row.rb#476 + def delete_if(&block); end + + # :call-seq: + # row.dig(index_or_header, *identifiers) -> object + # + # Finds and returns the object in nested object that is specified + # by +index_or_header+ and +specifiers+. + # + # The nested objects may be instances of various classes. + # See {Dig Methods}[rdoc-ref:dig_methods.rdoc]. + # + # Examples: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.dig(1) # => "0" + # row.dig('Value') # => "0" + # row.dig(5) # => nil + # + # source://csv//lib/csv/row.rb#715 + def dig(index_or_header, *indexes); end + + # :call-seq: + # row.each {|header, value| ... } -> self + # + # Calls the block with each header-value pair; returns +self+: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.each {|header, value| p [header, value] } + # Output: + # ["Name", "Foo"] + # ["Name", "Bar"] + # ["Name", "Baz"] + # + # If no block is given, returns a new Enumerator: + # row.each # => #:each> + # + # source://csv//lib/csv/row.rb#610 + def each(&block); end + + # :call-seq: + # row.each {|header, value| ... } -> self + # + # Calls the block with each header-value pair; returns +self+: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.each {|header, value| p [header, value] } + # Output: + # ["Name", "Foo"] + # ["Name", "Bar"] + # ["Name", "Baz"] + # + # If no block is given, returns a new Enumerator: + # row.each # => #:each> + # + # source://csv//lib/csv/row.rb#610 + def each_pair(&block); end + + # :call-seq: + # fetch(header) -> value + # fetch(header, default) -> value + # fetch(header) {|row| ... } -> value + # + # Returns the field value as specified by +header+. + # + # --- + # + # With the single argument +header+, returns the field value + # for that header (first found): + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.fetch('Name') # => "Foo" + # + # Raises exception +KeyError+ if the header does not exist. + # + # --- + # + # With arguments +header+ and +default+ given, + # returns the field value for the header (first found) + # if the header exists, otherwise returns +default+: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.fetch('Name', '') # => "Foo" + # row.fetch(:nosuch, '') # => "" + # + # --- + # + # With argument +header+ and a block given, + # returns the field value for the header (first found) + # if the header exists; otherwise calls the block + # and returns its return value: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.fetch('Name') {|header| fail 'Cannot happen' } # => "Foo" + # row.fetch(:nosuch) {|header| "Header '#{header} not found'" } # => "Header 'nosuch not found'" + # + # @raise [ArgumentError] + # + # source://csv//lib/csv/row.rb#258 + def fetch(header, *varargs); end + + # :call-seq: + # field(index) -> value + # field(header) -> value + # field(header, offset) -> value + # + # Returns the field value for the given +index+ or +header+. + # + # --- + # + # Fetch field value by \Integer index: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.field(0) # => "foo" + # row.field(1) # => "bar" + # + # Counts backward from the last column if +index+ is negative: + # row.field(-1) # => "0" + # row.field(-2) # => "foo" + # + # Returns +nil+ if +index+ is out of range: + # row.field(2) # => nil + # row.field(-3) # => nil + # + # --- + # + # Fetch field value by header (first found): + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.field('Name') # => "Foo" + # + # Fetch field value by header, ignoring +offset+ leading fields: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.field('Name', 2) # => "Baz" + # + # Returns +nil+ if the header does not exist. + # + # source://csv//lib/csv/row.rb#203 + def field(header_or_index, minimum_index = T.unsafe(nil)); end + + # :call-seq: + # row.field?(value) -> true or false + # + # Returns +true+ if +value+ is a field in this row, +false+ otherwise: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.field?('Bar') # => true + # row.field?('BAR') # => false + # + # @return [Boolean] + # + # source://csv//lib/csv/row.rb#589 + def field?(data); end + + # :call-seq: + # row.field_row? -> true or false + # + # Returns +true+ if this is a field row, +false+ otherwise. + # + # @return [Boolean] + # + # source://csv//lib/csv/row.rb#148 + def field_row?; end + + # :call-seq: + # self.fields(*specifiers) -> array_of_fields + # + # Returns field values per the given +specifiers+, which may be any mixture of: + # - \Integer index. + # - \Range of \Integer indexes. + # - 2-element \Array containing a header and offset. + # - Header. + # - \Range of headers. + # + # For +specifier+ in one of the first four cases above, + # returns the result of self.field(specifier); see #field. + # + # Although there may be any number of +specifiers+, + # the examples here will illustrate one at a time. + # + # When the specifier is an \Integer +index+, + # returns self.field(index)L + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.fields(1) # => ["Bar"] + # + # When the specifier is a \Range of \Integers +range+, + # returns self.field(range): + # row.fields(1..2) # => ["Bar", "Baz"] + # + # When the specifier is a 2-element \Array +array+, + # returns self.field(array)L + # row.fields('Name', 1) # => ["Foo", "Bar"] + # + # When the specifier is a header +header+, + # returns self.field(header)L + # row.fields('Name') # => ["Foo"] + # + # When the specifier is a \Range of headers +range+, + # forms a new \Range +new_range+ from the indexes of + # range.start and range.end, + # and returns self.field(new_range): + # source = "Name,NAME,name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.fields('Name'..'NAME') # => ["Foo", "Bar"] + # + # Returns all fields if no argument given: + # row.fields # => ["Foo", "Bar", "Baz"] + # + # source://csv//lib/csv/row.rb#530 + def fields(*headers_and_or_indices); end + + # :call-seq: + # row.has_key?(header) -> true or false + # + # Returns +true+ if there is a field with the given +header+, + # +false+ otherwise. + # + # @return [Boolean] + # + # source://csv//lib/csv/row.rb#279 + def has_key?(header); end + + # :call-seq: + # row.has_key?(header) -> true or false + # + # Returns +true+ if there is a field with the given +header+, + # +false+ otherwise. + # + # @return [Boolean] + # + # source://csv//lib/csv/row.rb#279 + def header?(header); end + + # :call-seq: + # row.header_row? -> true or false + # + # Returns +true+ if this is a header row, +false+ otherwise. + # + # @return [Boolean] + # + # source://csv//lib/csv/row.rb#140 + def header_row?; end + + # :call-seq: + # row.headers -> array_of_headers + # + # Returns the headers for this row: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # row = table.first + # row.headers # => ["Name", "Value"] + # + # source://csv//lib/csv/row.rb#160 + def headers; end + + # :call-seq: + # row.has_key?(header) -> true or false + # + # Returns +true+ if there is a field with the given +header+, + # +false+ otherwise. + # + # @return [Boolean] + # + # source://csv//lib/csv/row.rb#279 + def include?(header); end + + # :call-seq: + # index(header) -> index + # index(header, offset) -> index + # + # Returns the index for the given header, if it exists; + # otherwise returns +nil+. + # + # With the single argument +header+, returns the index + # of the first-found field with the given +header+: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.index('Name') # => 0 + # row.index('NAME') # => nil + # + # With arguments +header+ and +offset+, + # returns the index of the first-found field with given +header+, + # but ignoring the first +offset+ fields: + # row.index('Name', 1) # => 1 + # row.index('Name', 3) # => nil + # + # source://csv//lib/csv/row.rb#573 + def index(header, minimum_index = T.unsafe(nil)); end + + # :call-seq: + # row.inspect -> string + # + # Returns an ASCII-compatible \String showing: + # - Class \CSV::Row. + # - Header-value pairs. + # Example: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.inspect # => "#" + # + # source://csv//lib/csv/row.rb#740 + def inspect; end + + # :call-seq: + # row.has_key?(header) -> true or false + # + # Returns +true+ if there is a field with the given +header+, + # +false+ otherwise. + # + # @return [Boolean] + # + # source://csv//lib/csv/row.rb#279 + def key?(header); end + + # :call-seq: + # row.has_key?(header) -> true or false + # + # Returns +true+ if there is a field with the given +header+, + # +false+ otherwise. + # + # @return [Boolean] + # + # source://csv//lib/csv/row.rb#279 + def member?(header); end + + # :call-seq: + # row.push(*values) -> self + # + # Appends each of the given +values+ to +self+ as a field; returns +self+: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.push('Bat', 'Bam') + # row # => # + # + # source://csv//lib/csv/row.rb#410 + def push(*args); end + + # :call-seq: + # row.to_csv -> csv_string + # + # Returns the row as a \CSV String. Headers are not included: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.to_csv # => "foo,0\n" + # + # source://csv//lib/csv/row.rb#694 + def to_csv(**options); end + + # :call-seq: + # row.to_h -> hash + # + # Returns the new \Hash formed by adding each header-value pair in +self+ + # as a key-value pair in the \Hash. + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.to_h # => {"Name"=>"foo", "Value"=>"0"} + # + # Header order is preserved, but repeated headers are ignored: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.to_h # => {"Name"=>"Foo"} + # + # source://csv//lib/csv/row.rb#653 + def to_h; end + + # :call-seq: + # row.to_h -> hash + # + # Returns the new \Hash formed by adding each header-value pair in +self+ + # as a key-value pair in the \Hash. + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.to_h # => {"Name"=>"foo", "Value"=>"0"} + # + # Header order is preserved, but repeated headers are ignored: + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.to_h # => {"Name"=>"Foo"} + # + # source://csv//lib/csv/row.rb#653 + def to_hash; end + + # :call-seq: + # row.to_csv -> csv_string + # + # Returns the row as a \CSV String. Headers are not included: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.to_csv # => "foo,0\n" + # + # source://csv//lib/csv/row.rb#694 + def to_s(**options); end + + # :call-seq: + # self.fields(*specifiers) -> array_of_fields + # + # Returns field values per the given +specifiers+, which may be any mixture of: + # - \Integer index. + # - \Range of \Integer indexes. + # - 2-element \Array containing a header and offset. + # - Header. + # - \Range of headers. + # + # For +specifier+ in one of the first four cases above, + # returns the result of self.field(specifier); see #field. + # + # Although there may be any number of +specifiers+, + # the examples here will illustrate one at a time. + # + # When the specifier is an \Integer +index+, + # returns self.field(index)L + # source = "Name,Name,Name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.fields(1) # => ["Bar"] + # + # When the specifier is a \Range of \Integers +range+, + # returns self.field(range): + # row.fields(1..2) # => ["Bar", "Baz"] + # + # When the specifier is a 2-element \Array +array+, + # returns self.field(array)L + # row.fields('Name', 1) # => ["Foo", "Bar"] + # + # When the specifier is a header +header+, + # returns self.field(header)L + # row.fields('Name') # => ["Foo"] + # + # When the specifier is a \Range of headers +range+, + # forms a new \Range +new_range+ from the indexes of + # range.start and range.end, + # and returns self.field(new_range): + # source = "Name,NAME,name\nFoo,Bar,Baz\n" + # table = CSV.parse(source, headers: true) + # row = table[0] + # row.fields('Name'..'NAME') # => ["Foo", "Bar"] + # + # Returns all fields if no argument given: + # row.fields # => ["Foo", "Bar", "Baz"] + # + # source://csv//lib/csv/row.rb#530 + def values_at(*headers_and_or_indices); end + + protected + + # Internal data format used to compare equality. + # + # source://csv//lib/csv/row.rb#118 + def row; end + + private + + # :call-seq: + # row.initialize_copy(other_row) -> self + # + # Calls superclass method. + # + # source://csv//lib/csv/row.rb#130 + def initialize_copy(other); end +end + +# = \CSV::Table +# A \CSV::Table instance represents \CSV data. +# (see {class CSV}[../CSV.html]). +# +# The instance may have: +# - Rows: each is a Table::Row object. +# - Headers: names for the columns. +# +# === Instance Methods +# +# \CSV::Table has three groups of instance methods: +# - Its own internally defined instance methods. +# - Methods included by module Enumerable. +# - Methods delegated to class Array.: +# * Array#empty? +# * Array#length +# * Array#size +# +# == Creating a \CSV::Table Instance +# +# Commonly, a new \CSV::Table instance is created by parsing \CSV source +# using headers: +# source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" +# table = CSV.parse(source, headers: true) +# table.class # => CSV::Table +# +# You can also create an instance directly. See ::new. +# +# == Headers +# +# If a table has headers, the headers serve as labels for the columns of data. +# Each header serves as the label for its column. +# +# The headers for a \CSV::Table object are stored as an \Array of Strings. +# +# Commonly, headers are defined in the first row of \CSV source: +# source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" +# table = CSV.parse(source, headers: true) +# table.headers # => ["Name", "Value"] +# +# If no headers are defined, the \Array is empty: +# table = CSV::Table.new([]) +# table.headers # => [] +# +# == Access Modes +# +# \CSV::Table provides three modes for accessing table data: +# - \Row mode. +# - Column mode. +# - Mixed mode (the default for a new table). +# +# The access mode for a\CSV::Table instance affects the behavior +# of some of its instance methods: +# - #[] +# - #[]= +# - #delete +# - #delete_if +# - #each +# - #values_at +# +# === \Row Mode +# +# Set a table to row mode with method #by_row!: +# source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" +# table = CSV.parse(source, headers: true) +# table.by_row! # => # +# +# Specify a single row by an \Integer index: +# # Get a row. +# table[1] # => # +# # Set a row, then get it. +# table[1] = CSV::Row.new(['Name', 'Value'], ['bam', 3]) +# table[1] # => # +# +# Specify a sequence of rows by a \Range: +# # Get rows. +# table[1..2] # => [#, #] +# # Set rows, then get them. +# table[1..2] = [ +# CSV::Row.new(['Name', 'Value'], ['bat', 4]), +# CSV::Row.new(['Name', 'Value'], ['bad', 5]), +# ] +# table[1..2] # => [["Name", #], ["Value", #]] +# +# === Column Mode +# +# Set a table to column mode with method #by_col!: +# source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" +# table = CSV.parse(source, headers: true) +# table.by_col! # => # +# +# Specify a column by an \Integer index: +# # Get a column. +# table[0] +# # Set a column, then get it. +# table[0] = ['FOO', 'BAR', 'BAZ'] +# table[0] # => ["FOO", "BAR", "BAZ"] +# +# Specify a column by its \String header: +# # Get a column. +# table['Name'] # => ["FOO", "BAR", "BAZ"] +# # Set a column, then get it. +# table['Name'] = ['Foo', 'Bar', 'Baz'] +# table['Name'] # => ["Foo", "Bar", "Baz"] +# +# === Mixed Mode +# +# In mixed mode, you can refer to either rows or columns: +# - An \Integer index refers to a row. +# - A \Range index refers to multiple rows. +# - A \String index refers to a column. +# +# Set a table to mixed mode with method #by_col_or_row!: +# source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" +# table = CSV.parse(source, headers: true) +# table.by_col_or_row! # => # +# +# Specify a single row by an \Integer index: +# # Get a row. +# table[1] # => # +# # Set a row, then get it. +# table[1] = CSV::Row.new(['Name', 'Value'], ['bam', 3]) +# table[1] # => # +# +# Specify a sequence of rows by a \Range: +# # Get rows. +# table[1..2] # => [#, #] +# # Set rows, then get them. +# table[1] = CSV::Row.new(['Name', 'Value'], ['bat', 4]) +# table[2] = CSV::Row.new(['Name', 'Value'], ['bad', 5]) +# table[1..2] # => [["Name", #], ["Value", #]] +# +# Specify a column by its \String header: +# # Get a column. +# table['Name'] # => ["foo", "bat", "bad"] +# # Set a column, then get it. +# table['Name'] = ['Foo', 'Bar', 'Baz'] +# table['Name'] # => ["Foo", "Bar", "Baz"] +# +# source://csv//lib/csv/table.rb#144 +class CSV::Table + include ::Enumerable + extend ::Forwardable + + # :call-seq: + # CSV::Table.new(array_of_rows, headers = nil) -> csv_table + # + # Returns a new \CSV::Table object. + # + # - Argument +array_of_rows+ must be an \Array of CSV::Row objects. + # - Argument +headers+, if given, may be an \Array of Strings. + # + # --- + # + # Create an empty \CSV::Table object: + # table = CSV::Table.new([]) + # table # => # + # + # Create a non-empty \CSV::Table object: + # rows = [ + # CSV::Row.new([], []), + # CSV::Row.new([], []), + # CSV::Row.new([], []), + # ] + # table = CSV::Table.new(rows) + # table # => # + # + # --- + # + # If argument +headers+ is an \Array of Strings, + # those Strings become the table's headers: + # table = CSV::Table.new([], headers: ['Name', 'Age']) + # table.headers # => ["Name", "Age"] + # + # If argument +headers+ is not given and the table has rows, + # the headers are taken from the first row: + # rows = [ + # CSV::Row.new(['Foo', 'Bar'], []), + # CSV::Row.new(['foo', 'bar'], []), + # CSV::Row.new(['FOO', 'BAR'], []), + # ] + # table = CSV::Table.new(rows) + # table.headers # => ["Foo", "Bar"] + # + # If argument +headers+ is not given and the table is empty (has no rows), + # the headers are also empty: + # table = CSV::Table.new([]) + # table.headers # => [] + # + # --- + # + # Raises an exception if argument +array_of_rows+ is not an \Array object: + # # Raises NoMethodError (undefined method `first' for :foo:Symbol): + # CSV::Table.new(:foo) + # + # Raises an exception if an element of +array_of_rows+ is not a \CSV::Table object: + # # Raises NoMethodError (undefined method `headers' for :foo:Symbol): + # CSV::Table.new([:foo]) + # + # @return [Table] a new instance of Table + # + # source://csv//lib/csv/table.rb#199 + def initialize(array_of_rows, headers: T.unsafe(nil)); end + + # :call-seq: + # table << row_or_array -> self + # + # If +row_or_array+ is a \CSV::Row object, + # it is appended to the table: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table << CSV::Row.new(table.headers, ['bat', 3]) + # table[3] # => # + # + # If +row_or_array+ is an \Array, it is used to create a new + # \CSV::Row object which is then appended to the table: + # table << ['bam', 4] + # table[4] # => # + # + # source://csv//lib/csv/table.rb#762 + def <<(row_or_array); end + + # :call-seq: + # table == other_table -> true or false + # + # Returns +true+ if all each row of +self+ == + # the corresponding row of +other_table+, otherwise, +false+. + # + # The access mode does no affect the result. + # + # Equal tables: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # other_table = CSV.parse(source, headers: true) + # table == other_table # => true + # + # Different row count: + # other_table.delete(2) + # table == other_table # => false + # + # Different last row: + # other_table << ['bat', 3] + # table == other_table # => false + # + # source://csv//lib/csv/table.rb#965 + def ==(other); end + + # :call-seq: + # table[n] -> row or column_data + # table[range] -> array_of_rows or array_of_column_data + # table[header] -> array_of_column_data + # + # Returns data from the table; does not modify the table. + # + # --- + # + # Fetch a \Row by Its \Integer Index:: + # - Form: table[n], +n+ an integer. + # - Access mode: :row or :col_or_row. + # - Return value: _nth_ row of the table, if that row exists; + # otherwise +nil+. + # + # Returns the _nth_ row of the table if that row exists: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.by_row! # => # + # table[1] # => # + # table.by_col_or_row! # => # + # table[1] # => # + # + # Counts backward from the last row if +n+ is negative: + # table[-1] # => # + # + # Returns +nil+ if +n+ is too large or too small: + # table[4] # => nil + # table[-4] # => nil + # + # Raises an exception if the access mode is :row + # and +n+ is not an \Integer: + # table.by_row! # => # + # # Raises TypeError (no implicit conversion of String into Integer): + # table['Name'] + # + # --- + # + # Fetch a Column by Its \Integer Index:: + # - Form: table[n], +n+ an \Integer. + # - Access mode: :col. + # - Return value: _nth_ column of the table, if that column exists; + # otherwise an \Array of +nil+ fields of length self.size. + # + # Returns the _nth_ column of the table if that column exists: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.by_col! # => # + # table[1] # => ["0", "1", "2"] + # + # Counts backward from the last column if +n+ is negative: + # table[-2] # => ["foo", "bar", "baz"] + # + # Returns an \Array of +nil+ fields if +n+ is too large or too small: + # table[4] # => [nil, nil, nil] + # table[-4] # => [nil, nil, nil] + # + # --- + # + # Fetch Rows by \Range:: + # - Form: table[range], +range+ a \Range object. + # - Access mode: :row or :col_or_row. + # - Return value: rows from the table, beginning at row range.start, + # if those rows exists. + # + # Returns rows from the table, beginning at row range.first, + # if those rows exist: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.by_row! # => # + # rows = table[1..2] # => # + # rows # => [#, #] + # table.by_col_or_row! # => # + # rows = table[1..2] # => # + # rows # => [#, #] + # + # If there are too few rows, returns all from range.start to the end: + # rows = table[1..50] # => # + # rows # => [#, #] + # + # Special case: if range.start == table.size, returns an empty \Array: + # table[table.size..50] # => [] + # + # If range.end is negative, calculates the ending index from the end: + # rows = table[0..-1] + # rows # => [#, #, #] + # + # If range.start is negative, calculates the starting index from the end: + # rows = table[-1..2] + # rows # => [#] + # + # If range.start is larger than table.size, returns +nil+: + # table[4..4] # => nil + # + # --- + # + # Fetch Columns by \Range:: + # - Form: table[range], +range+ a \Range object. + # - Access mode: :col. + # - Return value: column data from the table, beginning at column range.start, + # if those columns exist. + # + # Returns column values from the table, if the column exists; + # the values are arranged by row: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.by_col! + # table[0..1] # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] + # + # Special case: if range.start == headers.size, + # returns an \Array (size: table.size) of empty \Arrays: + # table[table.headers.size..50] # => [[], [], []] + # + # If range.end is negative, calculates the ending index from the end: + # table[0..-1] # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] + # + # If range.start is negative, calculates the starting index from the end: + # table[-2..2] # => [["foo", "0"], ["bar", "1"], ["baz", "2"]] + # + # If range.start is larger than table.size, + # returns an \Array of +nil+ values: + # table[4..4] # => [nil, nil, nil] + # + # --- + # + # Fetch a Column by Its \String Header:: + # - Form: table[header], +header+ a \String header. + # - Access mode: :col or :col_or_row + # - Return value: column data from the table, if that +header+ exists. + # + # Returns column values from the table, if the column exists: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.by_col! # => # + # table['Name'] # => ["foo", "bar", "baz"] + # table.by_col_or_row! # => # + # col = table['Name'] + # col # => ["foo", "bar", "baz"] + # + # Modifying the returned column values does not modify the table: + # col[0] = 'bat' + # col # => ["bat", "bar", "baz"] + # table['Name'] # => ["foo", "bar", "baz"] + # + # Returns an \Array of +nil+ values if there is no such column: + # table['Nosuch'] # => [nil, nil, nil] + # + # source://csv//lib/csv/table.rb#514 + def [](index_or_header); end + + # :call-seq: + # table[n] = row -> row + # table[n] = field_or_array_of_fields -> field_or_array_of_fields + # table[header] = field_or_array_of_fields -> field_or_array_of_fields + # + # Puts data onto the table. + # + # --- + # + # Set a \Row by Its \Integer Index:: + # - Form: table[n] = row, +n+ an \Integer, + # +row+ a \CSV::Row instance or an \Array of fields. + # - Access mode: :row or :col_or_row. + # - Return value: +row+. + # + # If the row exists, it is replaced: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # new_row = CSV::Row.new(['Name', 'Value'], ['bat', 3]) + # table.by_row! # => # + # return_value = table[0] = new_row + # return_value.equal?(new_row) # => true # Returned the row + # table[0].to_h # => {"Name"=>"bat", "Value"=>3} + # + # With access mode :col_or_row: + # table.by_col_or_row! # => # + # table[0] = CSV::Row.new(['Name', 'Value'], ['bam', 4]) + # table[0].to_h # => {"Name"=>"bam", "Value"=>4} + # + # With an \Array instead of a \CSV::Row, inherits headers from the table: + # array = ['bad', 5] + # return_value = table[0] = array + # return_value.equal?(array) # => true # Returned the array + # table[0].to_h # => {"Name"=>"bad", "Value"=>5} + # + # If the row does not exist, extends the table by adding rows: + # assigns rows with +nil+ as needed: + # table.size # => 3 + # table[5] = ['bag', 6] + # table.size # => 6 + # table[3] # => nil + # table[4]# => nil + # table[5].to_h # => {"Name"=>"bag", "Value"=>6} + # + # Note that the +nil+ rows are actually +nil+, not a row of +nil+ fields. + # + # --- + # + # Set a Column by Its \Integer Index:: + # - Form: table[n] = array_of_fields, +n+ an \Integer, + # +array_of_fields+ an \Array of \String fields. + # - Access mode: :col. + # - Return value: +array_of_fields+. + # + # If the column exists, it is replaced: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # new_col = [3, 4, 5] + # table.by_col! # => # + # return_value = table[1] = new_col + # return_value.equal?(new_col) # => true # Returned the column + # table[1] # => [3, 4, 5] + # # The rows, as revised: + # table.by_row! # => # + # table[0].to_h # => {"Name"=>"foo", "Value"=>3} + # table[1].to_h # => {"Name"=>"bar", "Value"=>4} + # table[2].to_h # => {"Name"=>"baz", "Value"=>5} + # table.by_col! # => # + # + # If there are too few values, fills with +nil+ values: + # table[1] = [0] + # table[1] # => [0, nil, nil] + # + # If there are too many values, ignores the extra values: + # table[1] = [0, 1, 2, 3, 4] + # table[1] # => [0, 1, 2] + # + # If a single value is given, replaces all fields in the column with that value: + # table[1] = 'bat' + # table[1] # => ["bat", "bat", "bat"] + # + # --- + # + # Set a Column by Its \String Header:: + # - Form: table[header] = field_or_array_of_fields, + # +header+ a \String header, +field_or_array_of_fields+ a field value + # or an \Array of \String fields. + # - Access mode: :col or :col_or_row. + # - Return value: +field_or_array_of_fields+. + # + # If the column exists, it is replaced: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # new_col = [3, 4, 5] + # table.by_col! # => # + # return_value = table['Value'] = new_col + # return_value.equal?(new_col) # => true # Returned the column + # table['Value'] # => [3, 4, 5] + # # The rows, as revised: + # table.by_row! # => # + # table[0].to_h # => {"Name"=>"foo", "Value"=>3} + # table[1].to_h # => {"Name"=>"bar", "Value"=>4} + # table[2].to_h # => {"Name"=>"baz", "Value"=>5} + # table.by_col! # => # + # + # If there are too few values, fills with +nil+ values: + # table['Value'] = [0] + # table['Value'] # => [0, nil, nil] + # + # If there are too many values, ignores the extra values: + # table['Value'] = [0, 1, 2, 3, 4] + # table['Value'] # => [0, 1, 2] + # + # If the column does not exist, extends the table by adding columns: + # table['Note'] = ['x', 'y', 'z'] + # table['Note'] # => ["x", "y", "z"] + # # The rows, as revised: + # table.by_row! + # table[0].to_h # => {"Name"=>"foo", "Value"=>0, "Note"=>"x"} + # table[1].to_h # => {"Name"=>"bar", "Value"=>1, "Note"=>"y"} + # table[2].to_h # => {"Name"=>"baz", "Value"=>2, "Note"=>"z"} + # table.by_col! + # + # If a single value is given, replaces all fields in the column with that value: + # table['Value'] = 'bat' + # table['Value'] # => ["bat", "bat", "bat"] + # + # source://csv//lib/csv/table.rb#649 + def []=(index_or_header, value); end + + # :call-seq: + # table.by_col -> table_dup + # + # Returns a duplicate of +self+, in column mode + # (see {Column Mode}[#class-CSV::Table-label-Column+Mode]): + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.mode # => :col_or_row + # dup_table = table.by_col + # dup_table.mode # => :col + # dup_table.equal?(table) # => false # It's a dup + # + # This may be used to chain method calls without changing the mode + # (but also will affect performance and memory usage): + # dup_table.by_col['Name'] + # + # Also note that changes to the duplicate table will not affect the original. + # + # source://csv//lib/csv/table.rb#242 + def by_col; end + + # :call-seq: + # table.by_col! -> self + # + # Sets the mode for +self+ to column mode + # (see {Column Mode}[#class-CSV::Table-label-Column+Mode]); returns +self+: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.mode # => :col_or_row + # table1 = table.by_col! + # table.mode # => :col + # table1.equal?(table) # => true # Returned self + # + # source://csv//lib/csv/table.rb#257 + def by_col!; end + + # :call-seq: + # table.by_col_or_row -> table_dup + # + # Returns a duplicate of +self+, in mixed mode + # (see {Mixed Mode}[#class-CSV::Table-label-Mixed+Mode]): + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true).by_col! + # table.mode # => :col + # dup_table = table.by_col_or_row + # dup_table.mode # => :col_or_row + # dup_table.equal?(table) # => false # It's a dup + # + # This may be used to chain method calls without changing the mode + # (but also will affect performance and memory usage): + # dup_table.by_col_or_row['Name'] + # + # Also note that changes to the duplicate table will not affect the original. + # + # source://csv//lib/csv/table.rb#280 + def by_col_or_row; end + + # :call-seq: + # table.by_col_or_row! -> self + # + # Sets the mode for +self+ to mixed mode + # (see {Mixed Mode}[#class-CSV::Table-label-Mixed+Mode]); returns +self+: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true).by_col! + # table.mode # => :col + # table1 = table.by_col_or_row! + # table.mode # => :col_or_row + # table1.equal?(table) # => true # Returned self + # + # source://csv//lib/csv/table.rb#295 + def by_col_or_row!; end + + # :call-seq: + # table.by_row -> table_dup + # + # Returns a duplicate of +self+, in row mode + # (see {Row Mode}[#class-CSV::Table-label-Row+Mode]): + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.mode # => :col_or_row + # dup_table = table.by_row + # dup_table.mode # => :row + # dup_table.equal?(table) # => false # It's a dup + # + # This may be used to chain method calls without changing the mode + # (but also will affect performance and memory usage): + # dup_table.by_row[1] + # + # Also note that changes to the duplicate table will not affect the original. + # + # source://csv//lib/csv/table.rb#318 + def by_row; end + + # :call-seq: + # table.by_row! -> self + # + # Sets the mode for +self+ to row mode + # (see {Row Mode}[#class-CSV::Table-label-Row+Mode]); returns +self+: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.mode # => :col_or_row + # table1 = table.by_row! + # table.mode # => :row + # table1.equal?(table) # => true # Returned self + # + # source://csv//lib/csv/table.rb#333 + def by_row!; end + + # :call-seq: + # table.delete(*indexes) -> deleted_values + # table.delete(*headers) -> deleted_values + # + # If the access mode is :row or :col_or_row, + # and each argument is either an \Integer or a \Range, + # returns deleted rows. + # Otherwise, returns deleted columns data. + # + # In either case, the returned values are in the order + # specified by the arguments. Arguments may be repeated. + # + # --- + # + # Returns rows as an \Array of \CSV::Row objects. + # + # One index: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # deleted_values = table.delete(0) + # deleted_values # => [#] + # + # Two indexes: + # table = CSV.parse(source, headers: true) + # deleted_values = table.delete(2, 0) + # deleted_values # => [#, #] + # + # --- + # + # Returns columns data as column Arrays. + # + # One header: + # table = CSV.parse(source, headers: true) + # deleted_values = table.delete('Name') + # deleted_values # => ["foo", "bar", "baz"] + # + # Two headers: + # table = CSV.parse(source, headers: true) + # deleted_values = table.delete('Value', 'Name') + # deleted_values # => [["0", "1", "2"], ["foo", "bar", "baz"]] + # + # source://csv//lib/csv/table.rb#834 + def delete(*indexes_or_headers); end + + # :call-seq: + # table.delete_if {|row_or_column| ... } -> self + # + # Removes rows or columns for which the block returns a truthy value; + # returns +self+. + # + # Removes rows when the access mode is :row or :col_or_row; + # calls the block with each \CSV::Row object: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.by_row! # => # + # table.size # => 3 + # table.delete_if {|row| row['Name'].start_with?('b') } + # table.size # => 1 + # + # Removes columns when the access mode is :col; + # calls the block with each column as a 2-element array + # containing the header and an \Array of column fields: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.by_col! # => # + # table.headers.size # => 2 + # table.delete_if {|column_data| column_data[1].include?('2') } + # table.headers.size # => 1 + # + # Returns a new \Enumerator if no block is given: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.delete_if # => #:delete_if> + # + # source://csv//lib/csv/table.rb#887 + def delete_if(&block); end + + # Extracts the nested value specified by the sequence of +index+ or +header+ objects by calling dig at each step, + # returning nil if any intermediate step is nil. + # + # source://csv//lib/csv/table.rb#1021 + def dig(index_or_header, *index_or_headers); end + + # :call-seq: + # table.each {|row_or_column| ... ) -> self + # + # Calls the block with each row or column; returns +self+. + # + # When the access mode is :row or :col_or_row, + # calls the block with each \CSV::Row object: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.by_row! # => # + # table.each {|row| p row } + # Output: + # # + # # + # # + # + # When the access mode is :col, + # calls the block with each column as a 2-element array + # containing the header and an \Array of column fields: + # table.by_col! # => # + # table.each {|column_data| p column_data } + # Output: + # ["Name", ["foo", "bar", "baz"]] + # ["Value", ["0", "1", "2"]] + # + # Returns a new \Enumerator if no block is given: + # table.each # => #:each> + # + # source://csv//lib/csv/table.rb#930 + def each(&block); end + + # :call-seq: + # table.headers -> array_of_headers + # + # Returns a new \Array containing the \String headers for the table. + # + # If the table is not empty, returns the headers from the first row: + # rows = [ + # CSV::Row.new(['Foo', 'Bar'], []), + # CSV::Row.new(['FOO', 'BAR'], []), + # CSV::Row.new(['foo', 'bar'], []), + # ] + # table = CSV::Table.new(rows) + # table.headers # => ["Foo", "Bar"] + # table.delete(0) + # table.headers # => ["FOO", "BAR"] + # table.delete(0) + # table.headers # => ["foo", "bar"] + # + # If the table is empty, returns a copy of the headers in the table itself: + # table.delete(0) + # table.headers # => ["Foo", "Bar"] + # + # source://csv//lib/csv/table.rb#360 + def headers; end + + # :call-seq: + # table.inspect => string + # + # Returns a US-ASCII-encoded \String showing table: + # - Class: CSV::Table. + # - Access mode: :row, :col, or :col_or_row. + # - Size: Row count, including the header row. + # + # Example: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.inspect # => "#\nName,Value\nfoo,0\nbar,1\nbaz,2\n" + # + # source://csv//lib/csv/table.rb#1048 + def inspect; end + + # The current access mode for indexing and iteration. + # + # source://csv//lib/csv/table.rb#214 + def mode; end + + # :call-seq: + # table.push(*rows_or_arrays) -> self + # + # A shortcut for appending multiple rows. Equivalent to: + # rows.each {|row| self << row } + # + # Each argument may be either a \CSV::Row object or an \Array: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # rows = [ + # CSV::Row.new(table.headers, ['bat', 3]), + # ['bam', 4] + # ] + # table.push(*rows) + # table[3..4] # => [#, #] + # + # source://csv//lib/csv/table.rb#788 + def push(*rows); end + + # :call-seq: + # table.to_a -> array_of_arrays + # + # Returns the table as an \Array of \Arrays; + # the headers are in the first row: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.to_a # => [["Name", "Value"], ["foo", "0"], ["bar", "1"], ["baz", "2"]] + # + # source://csv//lib/csv/table.rb#978 + def to_a; end + + # :call-seq: + # table.to_csv(**options) -> csv_string + # + # Returns the table as \CSV string. + # See {Options for Generating}[../CSV.html#class-CSV-label-Options+for+Generating]. + # + # Defaults option +write_headers+ to +true+: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.to_csv # => "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # + # Omits the headers if option +write_headers+ is given as +false+ + # (see {Option +write_headers+}[../CSV.html#class-CSV-label-Option+write_headers]): + # table.to_csv(write_headers: false) # => "foo,0\nbar,1\nbaz,2\n" + # + # Limit rows if option +limit+ is given like +2+: + # table.to_csv(limit: 2) # => "Name,Value\nfoo,0\nbar,1\n" + # + # source://csv//lib/csv/table.rb#1004 + def to_csv(write_headers: T.unsafe(nil), limit: T.unsafe(nil), **options); end + + # :call-seq: + # table.to_csv(**options) -> csv_string + # + # Returns the table as \CSV string. + # See {Options for Generating}[../CSV.html#class-CSV-label-Options+for+Generating]. + # + # Defaults option +write_headers+ to +true+: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.to_csv # => "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # + # Omits the headers if option +write_headers+ is given as +false+ + # (see {Option +write_headers+}[../CSV.html#class-CSV-label-Option+write_headers]): + # table.to_csv(write_headers: false) # => "foo,0\nbar,1\nbaz,2\n" + # + # Limit rows if option +limit+ is given like +2+: + # table.to_csv(limit: 2) # => "Name,Value\nfoo,0\nbar,1\n" + # + # source://csv//lib/csv/table.rb#1004 + def to_s(write_headers: T.unsafe(nil), limit: T.unsafe(nil), **options); end + + # :call-seq: + # table.values_at(*indexes) -> array_of_rows + # table.values_at(*headers) -> array_of_columns_data + # + # If the access mode is :row or :col_or_row, + # and each argument is either an \Integer or a \Range, + # returns rows. + # Otherwise, returns columns data. + # + # In either case, the returned values are in the order + # specified by the arguments. Arguments may be repeated. + # + # --- + # + # Returns rows as an \Array of \CSV::Row objects. + # + # No argument: + # source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" + # table = CSV.parse(source, headers: true) + # table.values_at # => [] + # + # One index: + # values = table.values_at(0) + # values # => [#] + # + # Two indexes: + # values = table.values_at(2, 0) + # values # => [#, #] + # + # One \Range: + # values = table.values_at(1..2) + # values # => [#, #] + # + # \Ranges and indexes: + # values = table.values_at(0..1, 1..2, 0, 2) + # pp values + # Output: + # [#, + # #, + # #, + # #, + # #, + # #] + # + # --- + # + # Returns columns data as row Arrays, + # each consisting of the specified columns data for that row: + # values = table.values_at('Name') + # values # => [["foo"], ["bar"], ["baz"]] + # values = table.values_at('Value', 'Name') + # values # => [["0", "foo"], ["1", "bar"], ["2", "baz"]] + # + # source://csv//lib/csv/table.rb#734 + def values_at(*indices_or_headers); end + + protected + + # Internal data format used to compare equality. + # + # source://csv//lib/csv/table.rb#217 + def table; end +end + +# Note: Don't use this class directly. This is an internal class. +# +# source://csv//lib/csv/writer.rb#8 +class CSV::Writer + # @return [Writer] a new instance of Writer + # + # source://csv//lib/csv/writer.rb#16 + def initialize(output, options); end + + # Adds a new row + # + # source://csv//lib/csv/writer.rb#31 + def <<(row); end + + # Returns the value of attribute headers. + # + # source://csv//lib/csv/writer.rb#14 + def headers; end + + # A CSV::Writer receives an output, prepares the header, format and output. + # It allows us to write new rows in the object and rewind it. + # + # source://csv//lib/csv/writer.rb#13 + def lineno; end + + # Winds back to the beginning + # + # source://csv//lib/csv/writer.rb#64 + def rewind; end + + private + + # source://csv//lib/csv/writer.rb#70 + def prepare; end + + # source://csv//lib/csv/writer.rb#106 + def prepare_force_quotes_fields(force_quotes); end + + # source://csv//lib/csv/writer.rb#133 + def prepare_format; end + + # source://csv//lib/csv/writer.rb#78 + def prepare_header; end + + # source://csv//lib/csv/writer.rb#163 + def prepare_output; end + + # source://csv//lib/csv/writer.rb#190 + def quote(field, i); end + + # source://csv//lib/csv/writer.rb#181 + def quote_field(field); end +end + +class Object < ::BasicObject + include ::Kernel + include ::PP::ObjectMixin + + private + + # source://csv//lib/csv.rb#2876 + def CSV(*args, **options, &block); end +end + +# source://csv//lib/csv/core_ext/string.rb#1 +class String + include ::Comparable + + # Equivalent to CSV::parse_line(self, options) + # + # "CSV,data".parse_csv + # #=> ["CSV", "data"] + # + # source://csv//lib/csv/core_ext/string.rb#6 + def parse_csv(**options); end +end diff --git a/sorbet/rbi/gems/dartsass-rails@0.5.0.rbi b/sorbet/rbi/gems/dartsass-rails@0.5.0.rbi deleted file mode 100644 index 3daa66d6..00000000 --- a/sorbet/rbi/gems/dartsass-rails@0.5.0.rbi +++ /dev/null @@ -1,19 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `dartsass-rails` gem. -# Please instead update this file by running `bin/tapioca gem dartsass-rails`. - -# source://dartsass-rails//lib/dartsass-rails.rb#1 -module Dartsass; end - -# source://dartsass-rails//lib/dartsass/engine.rb#4 -class Dartsass::Engine < ::Rails::Engine - class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 - def __callbacks; end - end -end - -# source://dartsass-rails//lib/dartsass/version.rb#2 -Dartsass::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/date@3.3.4.rbi b/sorbet/rbi/gems/date@3.3.4.rbi index be2da327..8da23521 100644 --- a/sorbet/rbi/gems/date@3.3.4.rbi +++ b/sorbet/rbi/gems/date@3.3.4.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `date` gem. # Please instead update this file by running `bin/tapioca gem date`. + class Date include ::Comparable diff --git a/sorbet/rbi/gems/debug_inspector@1.2.0.rbi b/sorbet/rbi/gems/debug_inspector@1.2.0.rbi new file mode 100644 index 00000000..d4e06545 --- /dev/null +++ b/sorbet/rbi/gems/debug_inspector@1.2.0.rbi @@ -0,0 +1,27 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `debug_inspector` gem. +# Please instead update this file by running `bin/tapioca gem debug_inspector`. + + +# source://debug_inspector//lib/debug_inspector/version.rb#1 +class DebugInspector + def backtrace_locations; end + def frame_binding(_arg0); end + def frame_class(_arg0); end + def frame_iseq(_arg0); end + def frame_self(_arg0); end + + class << self + def open; end + end +end + +# Don't forget to update the version string in the gemspec file. +# +# source://debug_inspector//lib/debug_inspector/version.rb#3 +DebugInspector::VERSION = T.let(T.unsafe(nil), String) + +# source://debug_inspector//lib/debug_inspector.rb#20 +RubyVM::DebugInspector = DebugInspector diff --git a/sorbet/rbi/gems/declarative@0.0.20.rbi b/sorbet/rbi/gems/declarative@0.0.20.rbi new file mode 100644 index 00000000..5f89fb27 --- /dev/null +++ b/sorbet/rbi/gems/declarative@0.0.20.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `declarative` gem. +# Please instead update this file by running `bin/tapioca gem declarative`. + + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/diff-lcs@1.5.1.rbi b/sorbet/rbi/gems/diff-lcs@1.5.1.rbi index 7c80d241..8fcd4d70 100644 --- a/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +++ b/sorbet/rbi/gems/diff-lcs@1.5.1.rbi @@ -4,5 +4,6 @@ # This is an autogenerated file for types exported from the `diff-lcs` gem. # Please instead update this file by running `bin/tapioca gem diff-lcs`. + # THIS IS AN EMPTY RBI FILE. # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/digest-crc@0.6.5.rbi b/sorbet/rbi/gems/digest-crc@0.6.5.rbi new file mode 100644 index 00000000..108d282b --- /dev/null +++ b/sorbet/rbi/gems/digest-crc@0.6.5.rbi @@ -0,0 +1,393 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `digest-crc` gem. +# Please instead update this file by running `bin/tapioca gem digest-crc`. + + +# Base class for all CRC algorithms. +# +# source://digest-crc//lib/digest/crc.rb#7 +class Digest::CRC < ::Digest::Class + # Initializes the CRC checksum. + # + # @return [CRC] a new instance of CRC + # + # source://digest-crc//lib/digest/crc.rb#57 + def initialize; end + + # @see #update + # + # source://digest-crc//lib/digest/crc.rb#100 + def <<(data); end + + # The input block length. + # + # @return [1] + # + # source://digest-crc//lib/digest/crc.rb#71 + def block_length; end + + # The resulting CRC checksum. + # + # @return [Integer] The resulting CRC checksum. + # + # source://digest-crc//lib/digest/crc.rb#121 + def checksum; end + + # The length of the digest. + # + # @return [Integer] The length in bytes. + # + # source://digest-crc//lib/digest/crc.rb#81 + def digest_length; end + + # Finishes the CRC checksum calculation. + # + # @see pack + # + # source://digest-crc//lib/digest/crc.rb#130 + def finish; end + + # Resets the CRC checksum. + # + # @return [Integer] The default value of the CRC checksum. + # + # source://digest-crc//lib/digest/crc.rb#111 + def reset; end + + # Updates the CRC checksum with the given data. + # + # @abstract + # @param data [String] The data to update the CRC checksum with. + # @raise [NotImplementedError] + # + # source://digest-crc//lib/digest/crc.rb#93 + def update(data); end + + class << self + # Calculates the CRC checksum. + # + # @param data [String] The given data. + # @return [Integer] The CRC checksum. + # + # source://digest-crc//lib/digest/crc.rb#32 + def checksum(data); end + + # Packs the given CRC checksum. + # + # @abstract + # @param crc [Integer] The raw CRC checksum. + # @raise [NotImplementedError] + # @return [String] The packed CRC checksum. + # + # source://digest-crc//lib/digest/crc.rb#50 + def pack(crc); end + end +end + +# Implements the CRC1 algorithm. +# +# source://digest-crc//lib/digest/crc1.rb#7 +class Digest::CRC1 < ::Digest::CRC + # Updates the CRC1 checksum. + # + # @param data [String] The data to update the checksum with. + # + # source://digest-crc//lib/digest/crc1.rb#25 + def update(data); end + + class << self + # Packs the CRC1 checksum. + # + # @return [String] The CRC1 checksum. + # + # source://digest-crc//lib/digest/crc1.rb#15 + def pack(crc); end + end +end + +# Implements the CRC15 algorithm. +# +# @since 0.5.0 +# +# source://digest-crc//lib/digest/crc15.rb#9 +class Digest::CRC15 < ::Digest::CRC + # Updates the CRC15 checksum. + # + # @param data [String] The data to update the checksum with. + # @since 0.5.0 + def update(_arg0); end + + class << self + # Packs the CRC15 checksum. + # + # @param crc [Integer] The CRC15 checksum to pack. + # @return [String] The packed CRC15 checksum. + # @since 0.5.0 + # + # source://digest-crc//lib/digest/crc15.rb#42 + def pack(crc); end + end +end + +# Generated by `./pycrc.py --algorithm=table-driven --model=crc-16 --generate=c` +# +# @since 0.5.0 +# +# source://digest-crc//lib/digest/crc15.rb#14 +Digest::CRC15::TABLE = T.let(T.unsafe(nil), Array) + +# @since 0.5.0 +# +# source://digest-crc//lib/digest/crc15.rb#11 +Digest::CRC15::WIDTH = T.let(T.unsafe(nil), Integer) + +# Implements the CRC16 algorithm. +# +# source://digest-crc//lib/digest/crc16.rb#7 +class Digest::CRC16 < ::Digest::CRC + # Updates the CRC16 checksum. + # + # @param data [String] The data to update the checksum with. + def update(_arg0); end + + class << self + # Packs the CRC16 checksum. + # + # @param crc [Integer] The CRC16 checksum to pack. + # @return [String] The packed CRC16 checksum. + # + # source://digest-crc//lib/digest/crc16.rb#58 + def pack(crc); end + end +end + +# source://digest-crc//lib/digest/crc16.rb#11 +Digest::CRC16::INIT_CRC = T.let(T.unsafe(nil), Integer) + +# Generated by `./pycrc.py --algorithm=table-driven --model=crc-16` +# +# source://digest-crc//lib/digest/crc16.rb#14 +Digest::CRC16::TABLE = T.let(T.unsafe(nil), Array) + +# source://digest-crc//lib/digest/crc16.rb#9 +Digest::CRC16::WIDTH = T.let(T.unsafe(nil), Integer) + +# Implements the CRC24 algorithm. +# +# source://digest-crc//lib/digest/crc24.rb#7 +class Digest::CRC24 < ::Digest::CRC + # Updates the CRC24 checksum. + # + # @param data [String] The data to update the checksum with. + def update(_arg0); end + + class << self + # Packs the CRC24 checksum. + # + # @param crc [Integer] The checksum to pack. + # @return [String] The packed checksum. + # + # source://digest-crc//lib/digest/crc24.rb#58 + def pack(crc); end + end +end + +# source://digest-crc//lib/digest/crc24.rb#11 +Digest::CRC24::INIT_CRC = T.let(T.unsafe(nil), Integer) + +# Generated by `./pycrc.py --algorithm=table-drive --model=crc24 --generate=c` +# +# source://digest-crc//lib/digest/crc24.rb#14 +Digest::CRC24::TABLE = T.let(T.unsafe(nil), Array) + +# source://digest-crc//lib/digest/crc24.rb#9 +Digest::CRC24::WIDTH = T.let(T.unsafe(nil), Integer) + +# Implements the CRC32 algorithm. +# +# source://digest-crc//lib/digest/crc32.rb#7 +class Digest::CRC32 < ::Digest::CRC + # Updates the CRC32 checksum. + # + # @param data [String] The data to update the checksum with. + def update(_arg0); end + + class << self + # Packs the CRC32 checksum. + # + # @param crc [Integer] The checksum to pack. + # @return [String] The packed checksum. + # + # source://digest-crc//lib/digest/crc32.rb#92 + def pack(crc); end + end +end + +# source://digest-crc//lib/digest/crc32.rb#11 +Digest::CRC32::INIT_CRC = T.let(T.unsafe(nil), Integer) + +# Generated by `./pycrc.py --algorithm=table-driven --model=crc-32 --generate=c` +# +# source://digest-crc//lib/digest/crc32.rb#16 +Digest::CRC32::TABLE = T.let(T.unsafe(nil), Array) + +# source://digest-crc//lib/digest/crc32.rb#9 +Digest::CRC32::WIDTH = T.let(T.unsafe(nil), Integer) + +# source://digest-crc//lib/digest/crc32.rb#13 +Digest::CRC32::XOR_MASK = T.let(T.unsafe(nil), Integer) + +# Implements the CRC32c algorithm. +# +# source://digest-crc//lib/digest/crc32c.rb#7 +class Digest::CRC32c < ::Digest::CRC32 + def update(_arg0); end +end + +# Generated by `./pycrc.py --algorithm=table-driven --model=crc-32c --generate=c` +# +# source://digest-crc//lib/digest/crc32c.rb#10 +Digest::CRC32c::TABLE = T.let(T.unsafe(nil), Array) + +# Implements the CRC5 algorithm. +# +# source://digest-crc//lib/digest/crc5.rb#7 +class Digest::CRC5 < ::Digest::CRC + # Initializes the CRC5 instance. + # + # @return [CRC5] a new instance of CRC5 + # + # source://digest-crc//lib/digest/crc5.rb#40 + def initialize; end + + # Updates the CRC5 checksum. + # + # @param data [String] The data to update the checksum with. + def update(_arg0); end + + class << self + # Packs the CRC8 checksum. + # + # @param crc [Integer] The checksum to pack. + # @return [String] The packed checksum. + # + # source://digest-crc//lib/digest/crc5.rb#55 + def pack(crc); end + end +end + +# source://digest-crc//lib/digest/crc5.rb#15 +Digest::CRC5::CRC_MASK = T.let(T.unsafe(nil), Integer) + +# source://digest-crc//lib/digest/crc5.rb#11 +Digest::CRC5::INIT_CRC = T.let(T.unsafe(nil), Integer) + +# Generated by `./pycrc.py --algorithm=table-driven --model=crc-5 --generate=c` +# +# source://digest-crc//lib/digest/crc5.rb#18 +Digest::CRC5::TABLE = T.let(T.unsafe(nil), Array) + +# source://digest-crc//lib/digest/crc5.rb#9 +Digest::CRC5::WIDTH = T.let(T.unsafe(nil), Integer) + +# source://digest-crc//lib/digest/crc5.rb#13 +Digest::CRC5::XOR_MASK = T.let(T.unsafe(nil), Integer) + +# Implements the CRC64 algorithm. +# +# source://digest-crc//lib/digest/crc64.rb#7 +class Digest::CRC64 < ::Digest::CRC + # Updates the CRC64 checksum. + # + # @param data [String] The data to update the checksum with. + def update(_arg0); end + + class << self + # Packs the CRC64 checksum. + # + # @param crc [Integer] The checksum to pack. + # @return [String] The packed checksum. + # + # source://digest-crc//lib/digest/crc64.rb#92 + def pack(crc); end + end +end + +# source://digest-crc//lib/digest/crc64.rb#11 +Digest::CRC64::INIT_CRC = T.let(T.unsafe(nil), Integer) + +# Generated by `./pycrc.py --algorithm=table-driven --model=crc-64 --generate=c` +# +# source://digest-crc//lib/digest/crc64.rb#16 +Digest::CRC64::TABLE = T.let(T.unsafe(nil), Array) + +# source://digest-crc//lib/digest/crc64.rb#9 +Digest::CRC64::WIDTH = T.let(T.unsafe(nil), Integer) + +# source://digest-crc//lib/digest/crc64.rb#13 +Digest::CRC64::XOR_MASK = T.let(T.unsafe(nil), Integer) + +# Implements the CRC8 algorithm. +# +# source://digest-crc//lib/digest/crc8.rb#7 +class Digest::CRC8 < ::Digest::CRC + # Updates the CRC8 checksum. + # + # @param data [String] The data to update the checksum with. + def update(_arg0); end + + class << self + # Packs the CRC8 checksum. + # + # @param crc [Integer] The checksum to pack. + # @return [String] The packed checksum. + # + # source://digest-crc//lib/digest/crc8.rb#42 + def pack(crc); end + end +end + +# source://digest-crc//lib/digest/crc8.rb#11 +Digest::CRC8::INIT_CRC = T.let(T.unsafe(nil), Integer) + +# Generated by `./pycrc.py --algorithm=table-driven --model=crc-8 --generate=c` +# +# source://digest-crc//lib/digest/crc8.rb#14 +Digest::CRC8::TABLE = T.let(T.unsafe(nil), Array) + +# source://digest-crc//lib/digest/crc8.rb#9 +Digest::CRC8::WIDTH = T.let(T.unsafe(nil), Integer) + +# Implements the CRC8 1-Wire algorithm. +# +# source://digest-crc//lib/digest/crc8_1wire.rb#7 +class Digest::CRC8_1Wire < ::Digest::CRC8 + def update(_arg0); end +end + +# Generated by `./pycrc.py --algorithm=table-driven --model=dallas-1-wire --generate=c` +# +# source://digest-crc//lib/digest/crc8_1wire.rb#10 +Digest::CRC8_1Wire::TABLE = T.let(T.unsafe(nil), Array) + +# The initial value of the CRC checksum +# +# source://digest-crc//lib/digest/crc.rb#12 +Digest::CRC::INIT_CRC = T.let(T.unsafe(nil), Integer) + +# Default place holder CRC table +# +# source://digest-crc//lib/digest/crc.rb#21 +Digest::CRC::TABLE = T.let(T.unsafe(nil), Array) + +# The bit width of the CRC checksum +# +# source://digest-crc//lib/digest/crc.rb#18 +Digest::CRC::WIDTH = T.let(T.unsafe(nil), Integer) + +# The XOR mask to apply to the resulting CRC checksum +# +# source://digest-crc//lib/digest/crc.rb#15 +Digest::CRC::XOR_MASK = T.let(T.unsafe(nil), Integer) diff --git a/sorbet/rbi/gems/dotenv@3.1.0.rbi b/sorbet/rbi/gems/dotenv@3.1.2.rbi similarity index 94% rename from sorbet/rbi/gems/dotenv@3.1.0.rbi rename to sorbet/rbi/gems/dotenv@3.1.2.rbi index 99583b91..11364f38 100644 --- a/sorbet/rbi/gems/dotenv@3.1.0.rbi +++ b/sorbet/rbi/gems/dotenv@3.1.2.rbi @@ -4,32 +4,33 @@ # This is an autogenerated file for types exported from the `dotenv` gem. # Please instead update this file by running `bin/tapioca gem dotenv`. + # Shim to load environment variables from `.env files into `ENV`. # -# source://dotenv//lib/dotenv/substitutions/variable.rb#3 +# source://dotenv//lib/dotenv/version.rb#1 module Dotenv extend ::Dotenv # Returns the value of attribute instrumenter. # - # source://dotenv//lib/dotenv.rb#14 + # source://dotenv//lib/dotenv.rb#15 def instrumenter; end # Sets the attribute instrumenter # # @param value the value to set the attribute instrumenter to. # - # source://dotenv//lib/dotenv.rb#14 + # source://dotenv//lib/dotenv.rb#15 def instrumenter=(_arg0); end # Loads environment variables from one or more `.env` files. See `#parse` for more details. # - # source://dotenv//lib/dotenv.rb#17 + # source://dotenv//lib/dotenv.rb#18 def load(*filenames, overwrite: T.unsafe(nil), ignore: T.unsafe(nil)); end # Same as `#load`, but raises Errno::ENOENT if any files don't exist # - # source://dotenv//lib/dotenv.rb#26 + # source://dotenv//lib/dotenv.rb#27 def load!(*filenames); end # Modify `ENV` for the block and restore it to its previous state afterwards. @@ -39,27 +40,27 @@ module Dotenv # # @param env [Hash] Hash of keys and values to set in `ENV` # - # source://dotenv//lib/dotenv.rb#112 + # source://dotenv//lib/dotenv.rb#116 def modify(env = T.unsafe(nil), &block); end # same as `#load`, but will overwrite existing values in `ENV` # - # source://dotenv//lib/dotenv.rb#31 + # source://dotenv//lib/dotenv.rb#32 def overload(*filenames); end # same as `#overwrite`, but raises Errno::ENOENT if any files don't exist # - # source://dotenv//lib/dotenv.rb#37 + # source://dotenv//lib/dotenv.rb#38 def overload!(*filenames); end # same as `#load`, but will overwrite existing values in `ENV` # - # source://dotenv//lib/dotenv.rb#31 + # source://dotenv//lib/dotenv.rb#32 def overwrite(*filenames); end # same as `#overwrite`, but raises Errno::ENOENT if any files don't exist # - # source://dotenv//lib/dotenv.rb#37 + # source://dotenv//lib/dotenv.rb#38 def overwrite!(*filenames); end # Parses the given files, yielding for each file if a block is given. @@ -70,12 +71,12 @@ module Dotenv # @param block [Proc] Block to yield for each parsed `Dotenv::Environment` # @return [Hash] parsed key/value pairs # - # source://dotenv//lib/dotenv.rb#49 + # source://dotenv//lib/dotenv.rb#50 def parse(*filenames, overwrite: T.unsafe(nil), ignore: T.unsafe(nil), &block); end # @raise [MissingKeys] # - # source://dotenv//lib/dotenv.rb#122 + # source://dotenv//lib/dotenv.rb#126 def require_keys(*keys); end # Restore `ENV` to a given state @@ -83,12 +84,12 @@ module Dotenv # @param env [Hash] Hash of keys and values to restore, defaults to the last saved state # @param safe [Boolean] Is it safe to modify `ENV`? Defaults to `true` in the main thread, otherwise raises an error. # - # source://dotenv//lib/dotenv.rb#76 + # source://dotenv//lib/dotenv.rb#77 def restore(env = T.unsafe(nil), safe: T.unsafe(nil)); end # Save the current `ENV` to be restored later # - # source://dotenv//lib/dotenv.rb#66 + # source://dotenv//lib/dotenv.rb#67 def save; end # Update `ENV` with the given hash of keys and values @@ -96,12 +97,12 @@ module Dotenv # @param env [Hash] Hash of keys and values to set in `ENV` # @param overwrite [Boolean] Overwrite existing `ENV` values # - # source://dotenv//lib/dotenv.rb#94 + # source://dotenv//lib/dotenv.rb#98 def update(env = T.unsafe(nil), overwrite: T.unsafe(nil)); end private - # source://dotenv//lib/dotenv.rb#130 + # source://dotenv//lib/dotenv.rb#134 def instrument(name, payload = T.unsafe(nil), &block); end end @@ -400,7 +401,7 @@ end # An internal monitor to synchronize access to ENV in multi-threaded environments. # -# source://dotenv//lib/dotenv.rb#11 +# source://dotenv//lib/dotenv.rb#12 Dotenv::SEMAPHORE = T.let(T.unsafe(nil), Monitor) # source://dotenv//lib/dotenv/substitutions/variable.rb#4 @@ -435,3 +436,6 @@ module Dotenv::Substitutions::Variable def substitute(match, variable, env); end end end + +# source://dotenv//lib/dotenv/version.rb#2 +Dotenv::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/drb@2.2.1.rbi b/sorbet/rbi/gems/drb@2.2.1.rbi index 0be7dc71..d97695d9 100644 --- a/sorbet/rbi/gems/drb@2.2.1.rbi +++ b/sorbet/rbi/gems/drb@2.2.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `drb` gem. # Please instead update this file by running `bin/tapioca gem drb`. + # for ruby-1.8.0 # # source://drb//lib/drb/eq.rb#2 diff --git a/sorbet/rbi/gems/dry-cli@1.0.0.rbi b/sorbet/rbi/gems/dry-cli@1.0.0.rbi index 11632dad..fabc0f19 100644 --- a/sorbet/rbi/gems/dry-cli@1.0.0.rbi +++ b/sorbet/rbi/gems/dry-cli@1.0.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `dry-cli` gem. # Please instead update this file by running `bin/tapioca gem dry-cli`. + # Dry # # @since 0.1.0 diff --git a/sorbet/rbi/gems/erubi@1.12.0.rbi b/sorbet/rbi/gems/erubi@1.12.0.rbi index c52738fa..d16b6105 100644 --- a/sorbet/rbi/gems/erubi@1.12.0.rbi +++ b/sorbet/rbi/gems/erubi@1.12.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `erubi` gem. # Please instead update this file by running `bin/tapioca gem erubi`. + # source://erubi//lib/erubi.rb#3 module Erubi class << self diff --git a/sorbet/rbi/gems/execjs@2.9.1.rbi b/sorbet/rbi/gems/execjs@2.9.1.rbi index b5567e96..ac37e0e1 100644 --- a/sorbet/rbi/gems/execjs@2.9.1.rbi +++ b/sorbet/rbi/gems/execjs@2.9.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `execjs` gem. # Please instead update this file by running `bin/tapioca gem execjs`. + # source://execjs//lib/execjs/version.rb#1 module ExecJS class << self diff --git a/sorbet/rbi/gems/factory_bot@6.4.6.rbi b/sorbet/rbi/gems/factory_bot@6.4.6.rbi index d3ad44dd..aaa7016c 100644 --- a/sorbet/rbi/gems/factory_bot@6.4.6.rbi +++ b/sorbet/rbi/gems/factory_bot@6.4.6.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `factory_bot` gem. # Please instead update this file by running `bin/tapioca gem factory_bot`. + # source://factory_bot//lib/factory_bot/internal.rb#1 module FactoryBot extend ::FactoryBot::Syntax::Methods diff --git a/sorbet/rbi/gems/factory_bot_rails@6.4.3.rbi b/sorbet/rbi/gems/factory_bot_rails@6.4.3.rbi index 722684f4..95fc73e3 100644 --- a/sorbet/rbi/gems/factory_bot_rails@6.4.3.rbi +++ b/sorbet/rbi/gems/factory_bot_rails@6.4.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `factory_bot_rails` gem. # Please instead update this file by running `bin/tapioca gem factory_bot_rails`. + # source://factory_bot_rails//lib/factory_bot_rails/generators/rspec_generator.rb#1 module FactoryBotRails; end diff --git a/sorbet/rbi/gems/faker@3.3.1.rbi b/sorbet/rbi/gems/faker@3.3.1.rbi index 0e0cdd3a..a59b7461 100644 --- a/sorbet/rbi/gems/faker@3.3.1.rbi +++ b/sorbet/rbi/gems/faker@3.3.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `faker` gem. # Please instead update this file by running `bin/tapioca gem faker`. + # source://faker//lib/helpers/base58.rb#3 module Faker include ::Faker::Deprecator diff --git a/sorbet/rbi/gems/faraday-net_http@3.1.0.rbi b/sorbet/rbi/gems/faraday-net_http@3.1.0.rbi index 57741c52..6f42313f 100644 --- a/sorbet/rbi/gems/faraday-net_http@3.1.0.rbi +++ b/sorbet/rbi/gems/faraday-net_http@3.1.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `faraday-net_http` gem. # Please instead update this file by running `bin/tapioca gem faraday-net_http`. + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#12 module Faraday class << self diff --git a/sorbet/rbi/gems/ffi@1.16.3.rbi b/sorbet/rbi/gems/ffi@1.16.3.rbi index deed6162..18ef46d9 100644 --- a/sorbet/rbi/gems/ffi@1.16.3.rbi +++ b/sorbet/rbi/gems/ffi@1.16.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `ffi` gem. # Please instead update this file by running `bin/tapioca gem ffi`. + # source://ffi//lib/ffi/compat.rb#32 module FFI private diff --git a/sorbet/rbi/gems/geocoder@1.8.2.rbi b/sorbet/rbi/gems/geocoder@1.8.3.rbi similarity index 99% rename from sorbet/rbi/gems/geocoder@1.8.2.rbi rename to sorbet/rbi/gems/geocoder@1.8.3.rbi index 48ca2c7a..fd522267 100644 --- a/sorbet/rbi/gems/geocoder@1.8.2.rbi +++ b/sorbet/rbi/gems/geocoder@1.8.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `geocoder` gem. # Please instead update this file by running `bin/tapioca gem geocoder`. + class ActionDispatch::Request include ::Geocoder::Request end @@ -738,7 +739,7 @@ module Geocoder::Lookup # Use this instead of Geocoder::Lookup::X.new to get an # already-configured Lookup object. # - # source://geocoder//lib/geocoder/lookup.rb#108 + # source://geocoder//lib/geocoder/lookup.rb#110 def get(name); end # All IP address lookup services, default first. @@ -750,7 +751,7 @@ module Geocoder::Lookup # # @param value the value to set the attribute ip_services to. # - # source://geocoder//lib/geocoder/lookup.rb#101 + # source://geocoder//lib/geocoder/lookup.rb#103 def ip_services=(_arg0); end # All street address lookup services, default first. @@ -762,24 +763,24 @@ module Geocoder::Lookup # # @param value the value to set the attribute street_services to. # - # source://geocoder//lib/geocoder/lookup.rb#101 + # source://geocoder//lib/geocoder/lookup.rb#103 def street_services=(_arg0); end private # Convert an "underscore" version of a name into a "class" version. # - # source://geocoder//lib/geocoder/lookup.rb#134 + # source://geocoder//lib/geocoder/lookup.rb#136 def classify_name(filename); end # Safely instantiate Lookup # - # source://geocoder//lib/geocoder/lookup.rb#141 + # source://geocoder//lib/geocoder/lookup.rb#143 def instantiate_lookup(name); end # Spawn a Lookup of the given name. # - # source://geocoder//lib/geocoder/lookup.rb#120 + # source://geocoder//lib/geocoder/lookup.rb#122 def spawn(name); end end diff --git a/sorbet/rbi/gems/globalid@1.2.1.rbi b/sorbet/rbi/gems/globalid@1.2.1.rbi index 51b02b4e..5b22464c 100644 --- a/sorbet/rbi/gems/globalid@1.2.1.rbi +++ b/sorbet/rbi/gems/globalid@1.2.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `globalid` gem. # Please instead update this file by running `bin/tapioca gem globalid`. + # source://globalid//lib/global_id/global_id.rb#7 class GlobalID extend ::ActiveSupport::Autoload diff --git a/sorbet/rbi/gems/google-apis-core@0.15.0.rbi b/sorbet/rbi/gems/google-apis-core@0.15.0.rbi new file mode 100644 index 00000000..6c803a2e --- /dev/null +++ b/sorbet/rbi/gems/google-apis-core@0.15.0.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `google-apis-core` gem. +# Please instead update this file by running `bin/tapioca gem google-apis-core`. + + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/google-apis-iamcredentials_v1@0.20.0.rbi b/sorbet/rbi/gems/google-apis-iamcredentials_v1@0.20.0.rbi new file mode 100644 index 00000000..69f956d8 --- /dev/null +++ b/sorbet/rbi/gems/google-apis-iamcredentials_v1@0.20.0.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `google-apis-iamcredentials_v1` gem. +# Please instead update this file by running `bin/tapioca gem google-apis-iamcredentials_v1`. + + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/google-apis-storage_v1@0.38.0.rbi b/sorbet/rbi/gems/google-apis-storage_v1@0.38.0.rbi new file mode 100644 index 00000000..f8c89b06 --- /dev/null +++ b/sorbet/rbi/gems/google-apis-storage_v1@0.38.0.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `google-apis-storage_v1` gem. +# Please instead update this file by running `bin/tapioca gem google-apis-storage_v1`. + + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/google-cloud-core@1.7.0.rbi b/sorbet/rbi/gems/google-cloud-core@1.7.0.rbi new file mode 100644 index 00000000..d81ec673 --- /dev/null +++ b/sorbet/rbi/gems/google-cloud-core@1.7.0.rbi @@ -0,0 +1,528 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `google-cloud-core` gem. +# Please instead update this file by running `bin/tapioca gem google-cloud-core`. + + +# # Google Cloud +# +# The google-cloud library is the official library for interacting with Google +# Cloud Platform. Google Cloud Platform is a set of modular cloud-based services +# that allow you to create anything from simple websites to complex +# applications. +# +# The goal of google-cloud is to provide an API that is comfortable to +# Rubyists. Your authentication credentials are detected automatically in +# Google Cloud Platform environments such as Google Compute Engine, Google +# App Engine and Google Kubernetes Engine. In other environments you can +# configure authentication easily, either directly in your code or via +# environment variables. Read more about the options for connecting in the +# {file:AUTHENTICATION.md Authentication Guide}. +# +# source://google-cloud-core//lib/google/cloud/config.rb#16 +module Google; end + +# source://google-cloud-core//lib/google/cloud/config.rb#17 +module Google::Cloud + # source://google-cloud-storage/1.51.0/lib/google-cloud-storage.rb#79 + def storage(scope: T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil), open_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil), send_timeout: T.unsafe(nil), max_elapsed_time: T.unsafe(nil), base_interval: T.unsafe(nil), max_interval: T.unsafe(nil), multiplier: T.unsafe(nil), upload_chunk_size: T.unsafe(nil)); end + + class << self + # Find all google-cloud-* files for available gems. + # + # @private + # + # source://google-cloud-core//lib/google/cloud.rb#158 + def auto_load_files; end + + # Safely load all google-cloud-* gems. + # + # @private + # + # source://google-cloud-core//lib/google/cloud.rb#128 + def auto_load_gems; end + + # Configure the default parameter for Google::Cloud. The values defined on + # this top level will be shared across all Google::Cloud libraries, which + # may also add fields to this object or add sub configuration options under + # this object. + # + # Possible configuration parameters: + # + # * `project_id`: The Google Cloud Project ID. Automatically discovered + # when running from GCP environments. + # * `credentials`: The service account JSON file path. Automatically + # discovered when running from GCP environments. + # * `on_error`: A Proc to be run when an error is encountered during on a + # background thread. The Proc must take the error object as + # the single argument. + # + # @return [Google::Cloud::Config] The top-level configuration object for + # Google::Cloud libraries. + # @yield [@config] + # + # source://google-cloud-core//lib/google/cloud.rb#91 + def configure; end + + # source://google-cloud-env/2.1.1/lib/google/cloud/env.rb#517 + def env; end + + # Initialize toplevel configuration + # + # @private + # + # source://google-cloud-core//lib/google/cloud.rb#103 + def init_configuration; end + + # Find files that are currently loaded. + # + # @private + # + # source://google-cloud-core//lib/google/cloud.rb#142 + def loaded_files; end + + # Creates a new object for connecting to Google Cloud. + # + # For more information on connecting to Google Cloud see the + # {file:AUTHENTICATION.md Authentication Guide}. + # + # @example + # require "google/cloud" + # + # gcloud = Google::Cloud.new + # datastore = gcloud.datastore + # pubsub = gcloud.pubsub + # storage = gcloud.storage + # @param project_id [String] Project identifier for the service you are + # connecting to. + # @param credentials [String, Hash, Google::Auth::Credentials] The path to + # the keyfile as a String, the contents of the keyfile as a Hash, or a + # Google::Auth::Credentials object. + # @param retries [Integer] Number of times to retry requests on server + # error. The default value is `3`. Optional. + # @param timeout [Integer] Default timeout to use in requests. Optional. + # @return [Google::Cloud] + # + # source://google-cloud-core//lib/google/cloud.rb#62 + def new(project_id = T.unsafe(nil), credentials = T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil)); end + + # source://google-cloud-storage/1.51.0/lib/google-cloud-storage.rb#142 + def storage(project_id = T.unsafe(nil), credentials = T.unsafe(nil), scope: T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil), open_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil), send_timeout: T.unsafe(nil), max_elapsed_time: T.unsafe(nil), base_interval: T.unsafe(nil), max_interval: T.unsafe(nil), multiplier: T.unsafe(nil), upload_chunk_size: T.unsafe(nil)); end + end +end + +# Configuration mechanism for Google Cloud libraries. A Config object +# contains a list of predefined keys, some of which are values and others +# of which are subconfigurations, i.e. categories. Field access is +# generally validated to ensure that the field is defined, and when a +# a value is set, it is validated for the correct type. Warnings are +# printed when a validation fails. +# +# You generally access fields and subconfigs by calling accessor methods. +# Methods meant for "administration" such as adding options, are named +# with a trailing "!" or "?" so they don't pollute the method namespace. +# It is also possible to access a field using the `[]` operator. +# +# Note that config objects inherit from `BasicObject`. This means it does +# not define many methods you might expect to find in most Ruby objects. +# For example, `to_s`, `inspect`, `is_a?`, `instance_variable_get`, and so +# forth. +# +# @example +# require "google/cloud/config" +# +# config = Google::Cloud::Config.create do |c| +# c.add_field! :opt1, 10 +# c.add_field! :opt2, :one, enum: [:one, :two, :three] +# c.add_field! :opt3, "hi", match: [String, Symbol] +# c.add_field! :opt4, "hi", match: /^[a-z]+$/, allow_nil: true +# c.add_config! :sub do |c2| +# c2.add_field! :opt5, false +# end +# end +# +# config.opt1 #=> 10 +# config.opt1 = 20 #=> 20 +# config.opt1 #=> 20 +# config.opt1 = "hi" #=> "hi" (but prints a warning) +# config.opt1 = nil #=> nil (but prints a warning) +# +# config.opt2 #=> :one +# config.opt2 = :two #=> :two +# config.opt2 #=> :two +# config.opt2 = :four #=> :four (but prints a warning) +# +# config.opt3 #=> "hi" +# config.opt3 = "hiho" #=> "hiho" +# config.opt3 #=> "hiho" +# config.opt3 = "HI" #=> "HI" (but prints a warning) +# +# config.opt4 #=> "yo" +# config.opt4 = :yo #=> :yo (Strings and Symbols allowed) +# config.opt4 #=> :yo +# config.opt4 = 3.14 #=> 3.14 (but prints a warning) +# config.opt4 = nil #=> nil (no warning: nil allowed) +# +# config.sub #=> +# +# config.sub.opt5 #=> false +# config.sub.opt5 = true #=> true (true and false allowed) +# config.sub.opt5 #=> true +# config.sub.opt5 = nil #=> nil (but prints a warning) +# +# config.opt9 = "hi" #=> "hi" (warning about unknown key) +# config.opt9 #=> "hi" (no warning: key now known) +# config.sub.opt9 #=> nil (warning about unknown key) +# +# source://google-cloud-core//lib/google/cloud/config.rb#82 +class Google::Cloud::Config < ::BasicObject + # Internal constructor. Generally you should not call `new` directly, + # but instead use the `Config.create` method. The initializer is used + # directly by a few older clients that expect a legacy interface. + # + # @private + # @return [Config] a new instance of Config + # + # source://google-cloud-core//lib/google/cloud/config.rb#115 + def initialize(legacy_categories = T.unsafe(nil), opts = T.unsafe(nil)); end + + # Get the option or subconfig with the given name. + # + # @param key [Symbol, String] The option or subconfig name + # @return [Object] The option value or subconfig object + # + # source://google-cloud-core//lib/google/cloud/config.rb#308 + def [](key); end + + # Assign an option with the given name to the given value. + # + # @param key [Symbol, String] The option name + # @param value [Object] The new option value + # + # source://google-cloud-core//lib/google/cloud/config.rb#296 + def []=(key, value); end + + # Cause a key to be an alias of another key. The two keys will refer to + # the same field. + # + # source://google-cloud-core//lib/google/cloud/config.rb#235 + def add_alias!(key, to_key); end + + # Add a subconfiguration field to this configuration. + # + # You must provide a key, which becomes the method name that you use to + # navigate to the subconfig. Names may comprise only letters, numerals, + # and underscores, and must begin with a letter. + # + # If you provide a block, the subconfig object is passed to the block, + # so you can easily add fields to the subconfig. + # + # You may also pass in a config object that already exists. This will + # "attach" that configuration in this location. + # + # @param key [String, Symbol] The name of the subconfig + # @param config [Config] A config object to attach here. If not provided, + # creates a new config. + # @return [Config] self for chaining + # + # source://google-cloud-core//lib/google/cloud/config.rb#218 + def add_config!(key, config = T.unsafe(nil), &block); end + + # Add a value field to this configuration. + # + # You must provide a key, which becomes the field name in this config. + # Field names may comprise only letters, numerals, and underscores, and + # must begin with a letter. This will create accessor methods for the + # new configuration key. + # + # You may pass an initial value (which defaults to nil if not provided). + # + # You may also specify how values are validated. Validation is defined + # as follows: + # + # * If you provide a block or a `:validator` option, it is used as the + # validator. A proposed value is passed to the proc, which should + # return `true` or `false` to indicate whether the value is valid. + # * If you provide a `:match` option, it is compared to the proposed + # value using the `===` operator. You may, for example, provide a + # class, a regular expression, or a range. If you pass an array, + # the value is accepted if _any_ of the elements match. + # * If you provide an `:enum` option, it should be an `Enumerable`. + # A proposed value is valid if it is included. + # * Otherwise if you do not provide any of the above options, then a + # default validation strategy is inferred from the initial value: + # * If the initial is `true` or `false`, then either boolean value + # is considered valid. This is the same as `enum: [true, false]`. + # * If the initial is `nil`, then any object is considered valid. + # * Otherwise, any object of the same class as the initial value is + # considered valid. This is effectively the same as + # `match: initial.class`. + # * You may also provide the `:allow_nil` option, which, if set to + # true, alters any of the above validators to allow `nil` values. + # + # In many cases, you may find that the default validation behavior + # (interpreted from the initial value) is sufficient. If you want to + # accept any value, use `match: Object`. + # + # @param key [String, Symbol] The name of the option + # @param initial [Object] Initial value (defaults to nil) + # @param opts [Hash] Validation options + # @return [Config] self for chaining + # + # source://google-cloud-core//lib/google/cloud/config.rb#188 + def add_field!(key, initial = T.unsafe(nil), opts = T.unsafe(nil), &block); end + + # Legacy method of adding subconfigs. This is used by older versions of + # the stackdriver client libraries but should not be used in new code. + # + # @deprecated + # @private + # + # source://google-cloud-core//lib/google/cloud/config.rb#130 + def add_options(legacy_categories); end + + # Check if the given key has been explicitly added as an alias. + # If so, return the target, otherwise return nil. + # + # @param key [Symbol] The key to check for. + # @return [Symbol, nil] The alias target, or nil if not an alias. + # + # source://google-cloud-core//lib/google/cloud/config.rb#357 + def alias?(key); end + + # Return a list of alias names. + # + # @return [Array] a list of alias names as symbols. + # + # source://google-cloud-core//lib/google/cloud/config.rb#385 + def aliases!; end + + # Remove the given key from the configuration, deleting any validation + # and value. If the key is omitted, delete all keys. If the key is an + # alias, deletes the alias but leaves the original. + # + # @param key [Symbol, nil] The key to delete. If omitted or `nil`, + # delete all fields and subconfigs. + # + # source://google-cloud-core//lib/google/cloud/config.rb#277 + def delete!(key = T.unsafe(nil)); end + + # Check if the given key has been explicitly added as a field name. + # + # @param key [Symbol] The key to check for. + # @return [boolean] + # + # source://google-cloud-core//lib/google/cloud/config.rb#335 + def field?(key); end + + # Return a list of explicitly added field names. + # + # @return [Array] a list of field names as symbols. + # + # source://google-cloud-core//lib/google/cloud/config.rb#367 + def fields!; end + + # Returns a string representation of this configuration state, including + # subconfigs. Only explicitly added fields and subconfigs are included. + # + # @return [String] + # + # source://google-cloud-core//lib/google/cloud/config.rb#395 + def inspect; end + + # Dynamic methods accessed as keys. + # + # @private + # + # source://google-cloud-core//lib/google/cloud/config.rb#457 + def method_missing(name, *args); end + + # Implement standard nil check + # + # @private + # @return [false] + # + # source://google-cloud-core//lib/google/cloud/config.rb#482 + def nil?; end + + # Check if the given key has been set in this object. Returns true if the + # key has been added as a normal field, subconfig, or alias, or if it has + # not been added explicitly but still has a value. + # + # @param key [Symbol] The key to check for. + # @return [boolean] + # + # source://google-cloud-core//lib/google/cloud/config.rb#324 + def option?(key); end + + # Restore the original default value of the given key. + # If the key is omitted, restore the original defaults for all keys, + # and all keys of subconfigs, recursively. + # + # @param key [Symbol, nil] The key to reset. If omitted or `nil`, + # recursively reset all fields and subconfigs. + # + # source://google-cloud-core//lib/google/cloud/config.rb#251 + def reset!(key = T.unsafe(nil)); end + + # Check if the given key has been explicitly added as a field name. + # + # @param key [Symbol] The key to check for. + # @return [boolean] + # + # source://google-cloud-core//lib/google/cloud/config.rb#335 + def respond_to?(key); end + + # Check if the given key has been explicitly added as a subconfig name. + # + # @param key [Symbol] The key to check for. + # @return [boolean] + # + # source://google-cloud-core//lib/google/cloud/config.rb#346 + def subconfig?(key); end + + # Return a list of explicitly added subconfig names. + # + # @return [Array] a list of subconfig names as symbols. + # + # source://google-cloud-core//lib/google/cloud/config.rb#376 + def subconfigs!; end + + # Returns a nested hash representation of this configuration state, + # including subconfigs. Only explicitly added fields and subconfigs are + # included. + # + # @return [Hash] + # + # source://google-cloud-core//lib/google/cloud/config.rb#412 + def to_h!; end + + # Returns a string representation of this configuration state, including + # subconfigs. Only explicitly added fields and subconfigs are included. + # + # @return [String] + # + # source://google-cloud-core//lib/google/cloud/config.rb#395 + def to_s!; end + + # Check if the given key has been set in this object. Returns true if the + # key has been added as a normal field, subconfig, or alias, or if it has + # not been added explicitly but still has a value. + # + # @param key [Symbol] The key to check for. + # @return [boolean] + # + # source://google-cloud-core//lib/google/cloud/config.rb#324 + def value_set?(key); end + + private + + # source://google-cloud-core//lib/google/cloud/config.rb#553 + def build_enum_validator!(allowed, allow_nil); end + + # source://google-cloud-core//lib/google/cloud/config.rb#547 + def build_match_validator!(matches, allow_nil); end + + # source://google-cloud-core//lib/google/cloud/config.rb#559 + def build_proc_validator!(proc, allow_nil); end + + # source://google-cloud-core//lib/google/cloud/config.rb#513 + def resolve_key!(key); end + + # source://google-cloud-core//lib/google/cloud/config.rb#529 + def resolve_validator!(initial, opts); end + + # Dynamic methods accessed as keys. + # + # @private + # @return [Boolean] + # + # source://google-cloud-core//lib/google/cloud/config.rb#471 + def respond_to_missing?(name, include_private); end + + # source://google-cloud-core//lib/google/cloud/config.rb#519 + def validate_new_key!(key); end + + # source://google-cloud-core//lib/google/cloud/config.rb#563 + def validate_value!(key, validator, value); end + + # source://google-cloud-core//lib/google/cloud/config.rb#579 + def warn!(msg); end + + class << self + # Determines if the given object is a config. Useful because Config + # does not define the `is_a?` method. + # + # @return [boolean] + # + # source://google-cloud-core//lib/google/cloud/config.rb#104 + def config?(obj); end + + # Constructs a Config object. If a block is given, yields `self` to the + # block, which makes it convenient to initialize the structure by making + # calls to `add_field!` and `add_config!`. + # + # @param show_warnings [boolean] Whether to print warnings when a + # validation fails. Defaults to `true`. + # @return [Config] The constructed Config object. + # @yield [config] + # + # source://google-cloud-core//lib/google/cloud/config.rb#92 + def create(show_warnings: T.unsafe(nil)); end + + # Search the given environment variable names for valid credential data + # that can be passed to `Google::Auth::Credentials.new`. + # If a variable contains a valid file path, returns that path as a string. + # If a variable contains valid JSON, returns the parsed JSON as a hash. + # If no variables contain valid data, returns nil. + # + # @private + # + # source://google-cloud-core//lib/google/cloud/config.rb#429 + def credentials_from_env(*vars); end + + # Create a configuration value that will be invoked when retrieved. + # + # @private + # + # source://google-cloud-core//lib/google/cloud/config.rb#449 + def deferred(&block); end + end +end + +# @private +# +# source://google-cloud-core//lib/google/cloud/config.rb#590 +class Google::Cloud::Config::DeferredValue + # @return [DeferredValue] a new instance of DeferredValue + # + # source://google-cloud-core//lib/google/cloud/config.rb#591 + def initialize(&block); end + + # source://google-cloud-core//lib/google/cloud/config.rb#595 + def call; end +end + +# they clash with method names. +# +# @private a list of key names that are technically illegal because +# +# source://google-cloud-core//lib/google/cloud/config.rb#497 +Google::Cloud::Config::ILLEGAL_KEYS = T.let(T.unsafe(nil), Array) + +# @private A validator that allows all values +# +# source://google-cloud-core//lib/google/cloud/config.rb#491 +Google::Cloud::Config::OPEN_VALIDATOR = T.let(T.unsafe(nil), Proc) + +# @private sentinel indicating a subconfig in the validators hash +# +# source://google-cloud-core//lib/google/cloud/config.rb#511 +Google::Cloud::Config::SUBCONFIG = T.let(T.unsafe(nil), Object) + +# source://google-cloud-core//lib/google/cloud/core/version.rb#18 +module Google::Cloud::Core; end + +# source://google-cloud-core//lib/google/cloud/core/version.rb#19 +Google::Cloud::Core::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/google-cloud-env@2.1.1.rbi b/sorbet/rbi/gems/google-cloud-env@2.1.1.rbi new file mode 100644 index 00000000..ce69208a --- /dev/null +++ b/sorbet/rbi/gems/google-cloud-env@2.1.1.rbi @@ -0,0 +1,1988 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `google-cloud-env` gem. +# Please instead update this file by running `bin/tapioca gem google-cloud-env`. + + +# Namespace of Google products +# +# source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#19 +module Google; end + +# Namespace of Google Cloud products +# +# source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#20 +module Google::Cloud + # source://google-cloud-storage/1.51.0/lib/google-cloud-storage.rb#79 + def storage(scope: T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil), open_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil), send_timeout: T.unsafe(nil), max_elapsed_time: T.unsafe(nil), base_interval: T.unsafe(nil), max_interval: T.unsafe(nil), multiplier: T.unsafe(nil), upload_chunk_size: T.unsafe(nil)); end + + class << self + # source://google-cloud-core/1.7.0/lib/google/cloud.rb#158 + def auto_load_files; end + + # source://google-cloud-core/1.7.0/lib/google/cloud.rb#128 + def auto_load_gems; end + + # source://google-cloud-core/1.7.0/lib/google/cloud.rb#91 + def configure; end + + # Returns the global instance of {Google::Cloud::Env}. + # + # @return [Google::Cloud::Env] + # + # source://google-cloud-env//lib/google/cloud/env.rb#517 + def env; end + + # source://google-cloud-core/1.7.0/lib/google/cloud.rb#103 + def init_configuration; end + + # source://google-cloud-core/1.7.0/lib/google/cloud.rb#142 + def loaded_files; end + + # source://google-cloud-core/1.7.0/lib/google/cloud.rb#62 + def new(project_id = T.unsafe(nil), credentials = T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil)); end + + # source://google-cloud-storage/1.51.0/lib/google-cloud-storage.rb#142 + def storage(project_id = T.unsafe(nil), credentials = T.unsafe(nil), scope: T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil), open_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil), send_timeout: T.unsafe(nil), max_elapsed_time: T.unsafe(nil), base_interval: T.unsafe(nil), max_interval: T.unsafe(nil), multiplier: T.unsafe(nil), upload_chunk_size: T.unsafe(nil)); end + end +end + +# ## Google Cloud hosting environment +# +# This library provides access to information about the application's +# hosting environment if it is running on Google Cloud Platform. You can +# use this library to determine which Google Cloud product is hosting your +# application (e.g. App Engine, Kubernetes Engine), information about the +# Google Cloud project hosting the application, information about the +# virtual machine instance, authentication information, and so forth. +# +# ### Usage +# +# Obtain an instance of the environment info with: +# +# ```ruby +# require "google/cloud/env" +# env = Google::Cloud.env +# ``` +# +# Then you can interrogate any fields using methods on the object. +# +# ```ruby +# if env.app_engine? +# # App engine specific logic +# end +# ``` +# +# Any item that does not apply to the current environment will return nil. +# For example: +# +# ```ruby +# unless env.app_engine? +# service = env.app_engine_service_id # => nil +# end +# ``` +# +# source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#21 +class Google::Cloud::Env + # Create a new instance of the environment information. + # Most clients should not need to call this directly. Obtain a singleton + # instance of the information from `Google::Cloud.env`. + # + # @return [Env] a new instance of Env + # + # source://google-cloud-env//lib/google/cloud/env.rb#72 + def initialize; end + + # Determine whether the application is running on Google App Engine. + # + # @return [boolean] + # + # source://google-cloud-env//lib/google/cloud/env.rb#212 + def app_engine?; end + + # Determine whether the application is running on Google App Engine + # Flexible Environment. + # + # @return [boolean] + # + # source://google-cloud-env//lib/google/cloud/env.rb#222 + def app_engine_flexible?; end + + # Returns the amount of memory reserved for the current App Engine + # instance, or `nil` if the current code is not running in App Engine. + # + # @return [Integer, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#463 + def app_engine_memory_mb; end + + # Returns the name of the running App Engine service, or `nil` if the + # current code is not running in App Engine. + # + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#442 + def app_engine_service_id; end + + # Returns the name of the running App Engine service, or `nil` if the + # current code is not running in App Engine. + # + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#442 + def app_engine_service_name; end + + # Returns the version of the running App Engine service, or `nil` if the + # current code is not running in App Engine. + # + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#453 + def app_engine_service_version; end + + # Determine whether the application is running on Google App Engine + # Standard Environment. + # + # @return [boolean] + # + # source://google-cloud-env//lib/google/cloud/env.rb#232 + def app_engine_standard?; end + + # Determine whether the application is running on Google Cloud Shell. + # + # @return [boolean] + # + # source://google-cloud-env//lib/google/cloud/env.rb#252 + def cloud_shell?; end + + # Determine whether the application is running on Google Compute Engine. + # + # Note that most other products (e.g. App Engine, Kubernetes Engine, + # Cloud Shell) themselves use Compute Engine under the hood, so this + # method will return true for all the above products. If you want to + # determine whether the application is running on a "raw" Compute Engine + # VM without using a higher level hosting product, use + # {Env#raw_compute_engine?}. + # + # @return [boolean] + # + # source://google-cloud-env//lib/google/cloud/env.rb#268 + def compute_engine?; end + + # The compute metadata access object. Use this to make direct calls to + # compute metadata or configure how metadata server queries are done, or + # to mock out the metadata server for testing. + # + # @return [Google::Cloud::Env::ComputeMetadata] + # + # source://google-cloud-env//lib/google/cloud/env.rb#113 + def compute_metadata; end + + # The compute SMBIOS access object. Use this to make direct queries for + # compute SMBIOS information, or to mock out the SMBIOS for testing. + # + # @return [Google::Cloud::Env::ComputeSMBIOS] + # + # source://google-cloud-env//lib/google/cloud/env.rb#104 + def compute_smbios; end + + # Determine whether the application is running on Google Kubernetes + # Engine (GKE). + # + # @return [boolean] + # + # source://google-cloud-env//lib/google/cloud/env.rb#242 + def container_engine?; end + + # Returns the name of the Kubernetes Engine cluster hosting the + # application, or `nil` if the current code is not running in + # Kubernetes Engine. + # + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#475 + def container_engine_cluster_name; end + + # Returns the name of the Kubernetes Engine namespace hosting the + # application, or `nil` if the current code is not running in + # Kubernetes Engine. + # + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#489 + def container_engine_namespace_id; end + + # Assert that the Metadata Server should be present, and wait for a + # confirmed connection to ensure it is up. In general, this will run at + # most {ComputeMetadata::DEFAULT_WARMUP_TIME} seconds to wait out the + # expected maximum warmup time, but a shorter timeout can be provided. + # + # This method is useful call during application initialization to wait + # for the Metadata Server to warm up and ensure that subsequent lookups + # should succeed. + # + # @param timeout [Numeric, nil] a timeout in seconds, or nil to wait + # until we have conclusively decided one way or the other. + # @raise [MetadataServerNotResponding] if we were unable to confirm + # connection with the Metadata Server, either because the timeout + # expired or because the server seems to be down + # @return [:confirmed] if we were able to confirm connection. + # + # source://google-cloud-env//lib/google/cloud/env.rb#149 + def ensure_metadata(timeout: T.unsafe(nil)); end + + # The variables access object. Use this to make direct queries for + # information from the file system, or to mock out the file system for + # testing. + # + # @return [Google::Cloud::Env::FileSystem] + # + # source://google-cloud-env//lib/google/cloud/env.rb#96 + def file_system; end + + # Returns the value of the given instance attribute for the VM instance + # hosting the application, or `nil` if the given key does not exist or + # application is not running on Google Cloud. + # + # @param key [String] Attribute key to look up. + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#409 + def instance_attribute(key); end + + # Returns an array (which may be empty) of all attribute keys present + # for the VM instance hosting the application, or `nil` if the + # application is not running on Google Cloud. + # + # @return [Array, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#394 + def instance_attribute_keys; end + + # Returns the description field (which may be the empty string) of the + # VM instance hosting the application, or `nil` if the application is + # not running on Google Cloud. + # + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#340 + def instance_description; end + + # Returns the machine type of the VM instance hosting the application, + # or `nil` if the application is not running on Google Cloud. + # + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#366 + def instance_machine_type; end + + # Returns the name of the VM instance hosting the application, or `nil` + # if the application is not running on Google Cloud. + # + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#327 + def instance_name; end + + # Returns an array (which may be empty) of all tags set on the VM + # instance hosting the application, or `nil` if the application is not + # running on Google Cloud. + # + # @return [Array, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#380 + def instance_tags; end + + # Returns the zone (for example "`us-central1-c`") in which the instance + # hosting the application lives. Returns `nil` if the application is + # not running on Google Cloud. + # + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#353 + def instance_zone; end + + # Determine whether the application is running on a Knative-based + # hosting platform, such as Cloud Run or Cloud Functions. + # + # @return [boolean] + # + # source://google-cloud-env//lib/google/cloud/env.rb#203 + def knative?; end + + # Returns the name of the running Knative service, or `nil` if the + # current code is not running on Knative. + # + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#421 + def knative_service_id; end + + # Returns the name of the running Knative service, or `nil` if the + # current code is not running on Knative. + # + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#421 + def knative_service_name; end + + # Returns the revision of the running Knative service, or `nil` if the + # current code is not running on Knative. + # + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#432 + def knative_service_revision; end + + # Determine whether the application is running on Google Kubernetes + # Engine (GKE). + # + # @return [boolean] + # + # source://google-cloud-env//lib/google/cloud/env.rb#242 + def kubernetes_engine?; end + + # Returns the name of the Kubernetes Engine cluster hosting the + # application, or `nil` if the current code is not running in + # Kubernetes Engine. + # + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#475 + def kubernetes_engine_cluster_name; end + + # Returns the name of the Kubernetes Engine namespace hosting the + # application, or `nil` if the current code is not running in + # Kubernetes Engine. + # + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#489 + def kubernetes_engine_namespace_id; end + + # Retrieve info from the Google Compute Engine Metadata Service. + # Returns `nil` if the given data is not present. + # + # @param type [String] Type of metadata to look up. Currently supported + # values are "project" and "instance". + # @param entry [String] Metadata entry path to look up. + # @param query [Hash{String => String}] Any additional query parameters + # to send with the request. + # @raise [MetadataServerNotResponding] if the Metadata Server is not + # responding. This could either be because the metadata service is + # not present in the current environment, or if it is expected to be + # present but is overloaded or has not finished initializing. + # @return [String] the data + # @return [nil] if there is no data for the specified type and entry + # + # source://google-cloud-env//lib/google/cloud/env.rb#170 + def lookup_metadata(type, entry, query: T.unsafe(nil)); end + + # Retrieve an HTTP response from the Google Compute Engine Metadata + # Service. Returns a {ComputeMetadata::Response} with a status code, + # data, and headers. The response could be 200 for success, 404 if the + # given entry is not present, or other HTTP result code for authorization + # or other errors. + # + # @param type [String] Type of metadata to look up. Currently supported + # values are "project" and "instance". + # @param entry [String] Metadata entry path to look up. + # @param query [Hash{String => String}] Any additional query parameters + # to send with the request. + # @raise [MetadataServerNotResponding] if the Metadata Server is not + # responding. This could either be because the metadata service is + # not present in the current environment, or if it is expected to be + # present but is overloaded or has not finished initializing. + # @return [Google::Cloud::Env::ComputeMetadata::Response] the response + # + # source://google-cloud-env//lib/google/cloud/env.rb#193 + def lookup_metadata_response(type, entry, query: T.unsafe(nil)); end + + # Determine whether the Google Compute Engine Metadata Service is running. + # + # This method is conservative. It may block for a short period (up to + # about 1.5 seconds) while attempting to contact the server, but if this + # fails, this method will return false, even though it is possible that a + # future call could succeed. In particular, this might happen in + # environments where there is a warmup time for the Metadata Server. + # Early calls before the Server has warmed up may return false, while + # later calls return true. + # + # @return [boolean] + # + # source://google-cloud-env//lib/google/cloud/env.rb#128 + def metadata?; end + + # Returns the unique numeric ID of the project hosting the application, + # or `nil` if the application is not running on Google Cloud. + # + # Caveat: this method does not work and returns `nil` on CloudShell. + # + # @return [Integer, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#306 + def numeric_project_id; end + + # Returns the unique string ID of the project hosting the application, + # or `nil` if the application is not running on Google Cloud. + # + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env.rb#289 + def project_id; end + + # Determine whether the application is running on "raw" Google Compute + # Engine without using a higher level hosting product such as App + # Engine or Kubernetes Engine. + # + # @return [boolean] + # + # source://google-cloud-env//lib/google/cloud/env.rb#279 + def raw_compute_engine?; end + + # The variables access object. Use this to make direct queries for + # environment variable information, or to mock out environment variables + # for testing. + # + # @return [Google::Cloud::Env::Variables] + # + # source://google-cloud-env//lib/google/cloud/env.rb#87 + def variables; end + + class << self + # Returns the global instance of {Google::Cloud::Env}. + # + # @return [Google::Cloud::Env] + # + # source://google-cloud-env//lib/google/cloud/env.rb#505 + def get; end + end +end + +# A client for the Google metadata service. +# +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#30 +class Google::Cloud::Env::ComputeMetadata + # Create a compute metadata access object. + # + # @param variables [Google::Cloud::Env::Variables] Access object for + # environment variables. If not provided, a default is created. + # @param compute_smbios [Google::Cloud::Env::ComputeSMBIOS] Access + # object for SMBIOS information. If not provided, a default is + # created. + # @return [ComputeMetadata] a new instance of ComputeMetadata + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#247 + def initialize(variables: T.unsafe(nil), compute_smbios: T.unsafe(nil)); end + + # The underlying LazyDict. Can be used to customize the cache for + # testing. + # + # @private + # @return [Google::Cloud::Env::LazyDict] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#610 + def cache; end + + # Return detailed information about whether we think Metadata is + # available. If we have not previously confirmed existence one way or + # another, this could block while trying to contact the server through + # the given timeouts and retries. + # + # @param open_timeout [Numeric] Timeout for opening http connections. + # Defaults to {#open_timeout}. + # @param request_timeout [Numeric] Timeout for entire http requests. + # Defaults to {#request_timeout}. + # @param retry_count [Integer, nil] Number of times to retry. A value of + # 1 means 2 attempts (i.e. 1 retry). A value of nil indicates + # retries are limited only by the timeout. Defaults to + # {#retry_count}. + # @param retry_timeout [Numeric, nil] Total timeout for retries. A value + # of nil indicates no time limit, and retries are limited only by + # count. Defaults to {#retry_timeout}. + # @return [:no] if we know the metadata server is not present + # @return [:unconfirmed] if we believe metadata should be present but we + # haven't gotten a confirmed response from it. This can happen if + # SMBIOS says we're on GCE but we can't contact the Metadata Server + # even through retries. + # @return [:confirmed] if we have a confirmed response from metadata. + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#480 + def check_existence(open_timeout: T.unsafe(nil), request_timeout: T.unsafe(nil), retry_count: T.unsafe(nil), retry_timeout: T.unsafe(nil)); end + + # The compute SMBIOS access object + # + # @private + # @return [Google::Cloud::Env::ComputeSMBIOS] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#624 + def compute_smbios; end + + # The underlying Faraday connection. Can be used to customize the + # connection for testing. + # + # @private + # @return [Faraday::Connection] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#602 + def connection; end + + # Assert that the Metadata Server should be present, and wait for a + # confirmed connection to ensure it is up. This will generally run + # at most {#warmup_time} seconds to wait out the expected maximum + # warmup time, but a shorter timeout can be provided. + # + # @param timeout [Numeric, nil] a timeout in seconds, or nil to wait + # until we have conclusively decided one way or the other. + # @raise [MetadataServerNotResponding] if we were unable to confirm + # connection with the Metadata Server, either because the timeout + # expired or because the server seems to be down + # @return [:confirmed] if we were able to confirm connection. + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#525 + def ensure_existence(timeout: T.unsafe(nil)); end + + # The current detailed existence status, without blocking on any + # attempt to contact the metadata server. + # + # @return [nil] if we have no information at all yet + # @return [:no] if we know the metadata server is not present + # @return [:unconfirmed] if we believe metadata should be present but we + # haven't gotten a confirmed response from it. + # @return [:confirmed] if we have a confirmed response from metadata. + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#508 + def existence_immediate; end + + # Get the expiration time for the given path. Returns the monotonic + # time if the data has been retrieved and has an expiration, nil if the + # data has been retrieved but has no expiration, or false if the data + # has not yet been retrieved. + # + # @return [Numeric, nil, false] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#541 + def expiration_time_of(path, query: T.unsafe(nil)); end + + # The host URL for the metadata server, including `http://`. + # + # @return [String] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#262 + def host; end + + # The host URL for the metadata server, including `http://`. + # + # @param new_host [String] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#269 + def host=(new_host); end + + # Look up a particular key from the metadata server and return the data + # as a string. Could return a cached value if the key has been queried + # before, otherwise this could block while trying to contact the server + # through the given timeouts and retries. + # + # This returns the HTTP body as a string, only if the call succeeds. If + # the key is inaccessible or missing (i.e. the HTTP status was not 200) + # or does not have the correct `Metadata-Flavor` header, then nil is + # returned. If you need more detailed information, use + # {#lookup_response}. + # + # @param path [String] The key path (e.g. `project/project-id`) + # @param query [Hash{String => String}] Any additional query parameters + # to send with the request. + # @param open_timeout [Numeric] Timeout for opening http connections. + # Defaults to {#open_timeout}. + # @param request_timeout [Numeric] Timeout for entire http requests. + # Defaults to {#request_timeout}. + # @param retry_count [Integer, nil] Number of times to retry. A value of + # 1 means 2 attempts (i.e. 1 retry). A value of nil indicates + # retries are limited only by the timeout. Defaults to + # {#retry_count}. + # @param retry_timeout [Numeric, nil] Total timeout for retries. A value + # of nil indicates no time limit, and retries are limited only by + # count. Defaults to {#retry_timeout}. + # @raise [MetadataServerNotResponding] if the Metadata Server is not + # responding + # @return [String] the data from the metadata server + # @return [nil] if the key is not present + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#439 + def lookup(path, query: T.unsafe(nil), open_timeout: T.unsafe(nil), request_timeout: T.unsafe(nil), retry_count: T.unsafe(nil), retry_timeout: T.unsafe(nil)); end + + # Look up a particular key from the metadata server, and return a full + # {Response} object. Could return a cached value if the key has been + # queried before, otherwise this could block while trying to contact + # the server through the given timeouts and retries. + # + # This returns a Response object even if the HTTP status is 404, so be + # sure to check the status code to determine whether the key actually + # exists. Unlike {#lookup}, this method does not return nil. + # + # @param path [String] The key path (e.g. `project/project-id`) + # @param query [Hash{String => String}] Any additional query parameters + # to send with the request. + # @param open_timeout [Numeric] Timeout for opening http connections. + # Defaults to {#open_timeout}. + # @param request_timeout [Numeric] Timeout for entire http requests. + # Defaults to {#request_timeout}. + # @param retry_count [Integer, nil] Number of times to retry. A value of + # 1 means 2 attempts (i.e. 1 retry). A value of nil indicates + # retries are limited only by the timeout. Defaults to + # {#retry_count}. + # @param retry_timeout [Numeric, nil] Total timeout for retries. A value + # of nil indicates no time limit, and retries are limited only by + # count. Defaults to {#retry_timeout}. + # @raise [MetadataServerNotResponding] if the Metadata Server is not + # responding + # @return [Response] the data from the metadata server + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#385 + def lookup_response(path, query: T.unsafe(nil), open_timeout: T.unsafe(nil), request_timeout: T.unsafe(nil), retry_count: T.unsafe(nil), retry_timeout: T.unsafe(nil)); end + + # The timeout for opening http connections in seconds. + # + # @return [Numeric] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#325 + def open_timeout; end + + # The timeout for opening http connections in seconds. + # + # @param timeout [Numeric] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#334 + def open_timeout=(timeout); end + + # The overrides, or nil if overrides are not present. + # If present, overrides will answer all metadata queries, and actual + # calls to the metadata server will be blocked. + # + # @return [Overrides, nil] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#554 + def overrides; end + + # Set the overrides. You can also set nil to disable overrides. + # If present, overrides will answer all metadata queries, and actual + # calls to the metadata server will be blocked. + # + # @param new_overrides [Overrides, nil] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#563 + def overrides=(new_overrides); end + + # The total timeout for an HTTP request in seconds. + # + # @return [Numeric] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#343 + def request_timeout; end + + # The total timeout for an HTTP request in seconds. + # + # @param timeout [Numeric] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#352 + def request_timeout=(timeout); end + + # Reset the cache, overrides, and all settings to default, for testing. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#630 + def reset!; end + + # Clear the existence cache, for testing. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#650 + def reset_existence!; end + + # The default maximum number of times to retry a query for a key. + # A value of 1 means 2 attempts (i.e. 1 retry). A value of nil means + # there is no limit to the number of retries, although there could be + # an overall timeout. + # + # Defaults to {DEFAULT_RETRY_COUNT}. + # + # @return [Integer, nil] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#285 + def retry_count; end + + # The default maximum number of times to retry a query for a key. + # A value of 1 means 2 attempts (i.e. 1 retry). A value of nil means + # there is no limit to the number of retries, although there could be + # an overall timeout. + # + # Defaults to {DEFAULT_RETRY_COUNT}. + # + # @return [Integer, nil] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#285 + def retry_count=(_arg0); end + + # The time in seconds between retries. This time includes the time + # spent by the previous attempt. + # + # Defaults to {DEFAULT_RETRY_INTERVAL}. + # + # @return [Numeric] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#306 + def retry_interval; end + + # The time in seconds between retries. This time includes the time + # spent by the previous attempt. + # + # Defaults to {DEFAULT_RETRY_INTERVAL}. + # + # @return [Numeric] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#306 + def retry_interval=(_arg0); end + + # The default overall timeout across all retries of a lookup, in + # seconds. A value of nil means there is no timeout, although there + # could be a limit to the number of retries. + # + # Defaults to {DEFAULT_RETRY_TIMEOUT}. + # + # @return [Numeric, nil] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#296 + def retry_timeout; end + + # The default overall timeout across all retries of a lookup, in + # seconds. A value of nil means there is no timeout, although there + # could be a limit to the number of retries. + # + # Defaults to {DEFAULT_RETRY_TIMEOUT}. + # + # @return [Numeric, nil] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#296 + def retry_timeout=(_arg0); end + + # The variables access object + # + # @private + # @return [Google::Cloud::Env::Variables] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#617 + def variables; end + + # A time in seconds allotted to environment warmup, during which + # retries will not be ended. This handles certain environments in which + # the Metadata Server might not be fully awake until some time after + # application startup. A value of nil disables this warmup period. + # + # Defaults to {DEFAULT_WARMUP_TIME}. + # + # @return [Numeric, nil] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#318 + def warmup_time; end + + # A time in seconds allotted to environment warmup, during which + # retries will not be ended. This handles certain environments in which + # the Metadata Server might not be fully awake until some time after + # application startup. A value of nil disables this warmup period. + # + # Defaults to {DEFAULT_WARMUP_TIME}. + # + # @return [Numeric, nil] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#318 + def warmup_time=(_arg0); end + + # Run the given block with the overrides replaced with the given set + # (or nil to disable overrides in the block). The original overrides + # setting is restored at the end of the block. This is used for + # debugging/testing/mocking. + # + # @param temp_overrides [Overrides, nil] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#578 + def with_overrides(temp_overrides); end + + private + + # Extract the lifetime of an access token + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#807 + def access_token_lifetime(data); end + + # Stringify keys in a query hash + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#833 + def canonicalize_query(query); end + + # Create and return a new LazyDict cache for the metadata + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#737 + def create_cache; end + + # Compute the lifetime of data, given the path and data. Returns the + # value in seconds, or nil for nonexpiring data. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#794 + def determine_data_lifetime(path, data); end + + # Attempt to determine if we're on GCE (if we haven't previously), and + # update the existence flag. Return true if we *could* be on GCE, or + # false if we're definitely not. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#704 + def gce_check; end + + # Extract the lifetime of an identity token + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#819 + def identity_token_lifetime(data); end + + # Look up the given path, without using the cache. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#752 + def internal_lookup(path, query, open_timeout, request_timeout); end + + # Lookup from overrides and return the result or raise. + # This must be called from within the mutex, and assumes that + # overrides is non-nil. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#843 + def lookup_override(path, query); end + + # @private + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#729 + def maybe_gae; end + + # @private + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#719 + def maybe_gcf; end + + # @private + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#724 + def maybe_gcr; end + + # Update existence based on a received result + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#777 + def post_update_existence(success, current_time = T.unsafe(nil)); end +end + +# The default host for the metadata server +# +# @return [String] +# +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#35 +Google::Cloud::Env::ComputeMetadata::DEFAULT_HOST = T.let(T.unsafe(nil), String) + +# The default timeout in seconds for opening http connections +# +# @return [Numeric] +# +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#41 +Google::Cloud::Env::ComputeMetadata::DEFAULT_OPEN_TIMEOUT = T.let(T.unsafe(nil), Float) + +# The default timeout in seconds for request responses +# +# @return [Numeric] +# +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#47 +Google::Cloud::Env::ComputeMetadata::DEFAULT_REQUEST_TIMEOUT = T.let(T.unsafe(nil), Float) + +# The default number of retries +# +# @return [Integer] +# +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#53 +Google::Cloud::Env::ComputeMetadata::DEFAULT_RETRY_COUNT = T.let(T.unsafe(nil), Integer) + +# The default interval between retries, in seconds +# +# @return [Numeric] +# +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#65 +Google::Cloud::Env::ComputeMetadata::DEFAULT_RETRY_INTERVAL = T.let(T.unsafe(nil), Float) + +# The default timeout across retries +# +# @return [nil] +# +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#59 +Google::Cloud::Env::ComputeMetadata::DEFAULT_RETRY_TIMEOUT = T.let(T.unsafe(nil), T.untyped) + +# The default time in seconds to wait for environment warmup. +# +# @return [Numeric] +# +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#71 +Google::Cloud::Env::ComputeMetadata::DEFAULT_WARMUP_TIME = T.let(T.unsafe(nil), Integer) + +# The standard set of headers +# +# @private +# @return [Hash{String=>String}] +# +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#85 +Google::Cloud::Env::ComputeMetadata::FLAVOR_HEADER = T.let(T.unsafe(nil), Hash) + +# A set of overrides for metadata access. This is used in +# {ComputeMetadata#overrides=} and {ComputeMetadata#with_overrides}. +# Generally, you should create and populate an overrides object, then +# set it using one of those methods. +# +# An empty overrides object that contains no data is interpreted as a +# metadata server that does not respond and raises +# MetadataServerNotResponding. Otherwise, the overrides specifies what +# responses are returned for specified queries, and any query not +# explicitly set will result in a 404. +# +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#156 +class Google::Cloud::Env::ComputeMetadata::Overrides + # Create an empty overrides object. + # + # @return [Overrides] a new instance of Overrides + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#160 + def initialize; end + + # Add an override to the object, providing just a body string. + # + # @param path [String] The key path (e.g. `project/project-id`) + # @param string [String] The response string to return. + # @param query [Hash{String => String}] Any additional query + # parameters for the request. + # @return [self] for chaining + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#189 + def add(path, string, query: T.unsafe(nil), headers: T.unsafe(nil)); end + + # Add an override for the ping request. + # + # @return [self] for chaining + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#200 + def add_ping; end + + # Add an override to the object, providing a full response. + # + # @param path [String] The key path (e.g. `project/project-id`) + # @param response [Response] The response object to return. + # @param query [Hash{String => String}] Any additional query + # parameters for the request. + # @return [self] for chaining + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#174 + def add_response(path, response, query: T.unsafe(nil)); end + + # Clear all data from these overrides + # + # @return [self] for chaining + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#209 + def clear; end + + # Returns true if there is at least one override present + # + # @return [true, false] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#233 + def empty?; end + + # Look up a response from the override data. + # + # @param path [String] The key path (e.g. `project/project-id`) + # @param query [Hash{String => String}] Any additional query + # parameters for the request. + # @return [String] The response + # @return [nil] if there is no data for the given query + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#224 + def lookup(path, query: T.unsafe(nil)); end +end + +# The base path of metadata server queries. +# +# @private +# @return [String] +# +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#78 +Google::Cloud::Env::ComputeMetadata::PATH_BASE = T.let(T.unsafe(nil), String) + +# Basic HTTP response object, returned by +# {ComputeMetadata#lookup_response}. +# +# This object duck-types the `status`, `body`, and `headers` fields of +# `Faraday::Response`. It also includes the CLOCK_MONOTONIC time when +# the data was retrieved. +# +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#95 +class Google::Cloud::Env::ComputeMetadata::Response + # Create a response object. + # + # @param status [Integer] The HTTP status, normally 200 + # @param body [String] The HTTP body as a string + # @param headers [Hash{String=>String}] The HTTP response headers. + # Normally, the `Metadata-Flavor` header must be set to the value + # `Google`. + # @return [Response] a new instance of Response + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#105 + def initialize(status, body, headers); end + + # The HTTP response body + # + # @return [String] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#122 + def body; end + + # Returns true if the metadata-flavor is correct for Google Cloud + # + # @return [boolean] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#139 + def google_flavor?; end + + # The HTTP response headers + # + # @return [Hash{String=>String}] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#128 + def headers; end + + # The CLOCK_MONOTONIC time at which this response was retrieved. + # + # @return [Numeric] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#133 + def retrieval_monotonic_time; end + + # The HTTP status code + # + # @return [Integer] + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#116 + def status; end +end + +# A buffer in seconds for token expiry. Our cache for the token will +# expire approximately this many seconds before the declared expiry +# time of the token itself. +# +# We want this value to be positive so that we provide some buffer to +# offset any clock skew and Metadata Server latency that might affect +# our calculation of the expiry time, but more importantly so that a +# client has approximately this amount of time to use a token we give +# them before it expires. +# +# We don't want this to be much higher, however, to keep the load down +# on the Metadata Server. We've been advised by the compute/serverless +# engineering teams to set this value less than 4 minutes because the +# Metadata Server can refresh the token as late as 4 minutes before the +# actual expiry of the previous token. If our cache expires and we +# request a new token, we actually want to receive a new token rather +# than the previous old token. See internal issue b/311414224. +# +# @private +# +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#695 +Google::Cloud::Env::ComputeMetadata::TOKEN_EXPIRY_BUFFER = T.let(T.unsafe(nil), Integer) + +# A list of exceptions that are considered transient. They trigger a +# retry if received from an HTTP attempt, and they are not cached (i.e. +# the cache lifetime is set to 0.) +# +# @private +# +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#666 +Google::Cloud::Env::ComputeMetadata::TRANSIENT_EXCEPTIONS = T.let(T.unsafe(nil), Array) + +# Access to the SMBIOS information needed to determine if this Ruby +# process is running on a Google compute platform. +# +# This information lives at a file system path on Linux, but in the +# Registry on Windows. +# +# You can provide an override to "mock out" the behavior of this object. +# +# source://google-cloud-env//lib/google/cloud/env/compute_smbios.rb#31 +class Google::Cloud::Env::ComputeSMBIOS + # Create an SMBIOS access object + # + # @return [ComputeSMBIOS] a new instance of ComputeSMBIOS + # + # source://google-cloud-env//lib/google/cloud/env/compute_smbios.rb#35 + def initialize; end + + # Determine whether the SMBIOS state suggests that we are running on a + # Google compute platform. + # + # This method may read the file system (on Linux) or registry (on + # Windows) the first time it is called, but it will cache the result + # for subsequent calls. + # + # @return [true, false] + # + # source://google-cloud-env//lib/google/cloud/env/compute_smbios.rb#82 + def google_compute?; end + + # The current override value for the product name, either a string + # value, or nil to disable mocking. + # + # @return [nil, String] + # + # source://google-cloud-env//lib/google/cloud/env/compute_smbios.rb#92 + def override_product_name; end + + # The current override value for the product name, either a string + # value, or nil to disable mocking. + # + # @return [nil, String] + # + # source://google-cloud-env//lib/google/cloud/env/compute_smbios.rb#92 + def override_product_name=(_arg0); end + + # Read the product name. On a Google compute platform, this should + # include the word "Google". + # + # This method may read the file system (on Linux) or registry (on + # Windows) the first time it is called, but it will cache the result + # for subsequent calls. + # + # @return [String] Product name, or the empty string if not found. + # + # source://google-cloud-env//lib/google/cloud/env/compute_smbios.rb#50 + def product_name; end + + # The source of the product name data. Will be one of the following: + # + # * `:linux` - The data comes from the Linux SMBIOS under /sys + # * `:windows` - The data comes from the Windows Registry + # * `:error` - The data could not be obtained + # * `:override` - The data comes from an override + # + # This method may read the file system (on Linux) or registry (on + # Windows) the first time it is called, but it will cache the result + # for subsequent calls. + # + # @return [Symbol] The source + # + # source://google-cloud-env//lib/google/cloud/env/compute_smbios.rb#68 + def product_name_source; end + + # Run the given block with the product name mock modified. This is + # generally used for debugging/testing/mocking. + # + # @param override_name [nil, String] + # + # source://google-cloud-env//lib/google/cloud/env/compute_smbios.rb#100 + def with_override_product_name(override_name); end + + private + + # source://google-cloud-env//lib/google/cloud/env/compute_smbios.rb#121 + def load_product_name; end +end + +# @private The Linux file path +# +# source://google-cloud-env//lib/google/cloud/env/compute_smbios.rb#117 +Google::Cloud::Env::ComputeSMBIOS::LINUX_FILEPATH = T.let(T.unsafe(nil), String) + +# @private The Windows registry key name +# +# source://google-cloud-env//lib/google/cloud/env/compute_smbios.rb#115 +Google::Cloud::Env::ComputeSMBIOS::WINDOWS_KEYNAME = T.let(T.unsafe(nil), String) + +# @private The Windows registry key path +# +# source://google-cloud-env//lib/google/cloud/env/compute_smbios.rb#113 +Google::Cloud::Env::ComputeSMBIOS::WINDOWS_KEYPATH = T.let(T.unsafe(nil), String) + +# Access to file system contents. +# +# This is a simple class that reads the contents of objects in the file +# system, caching data so that subsequent accesses do not need to reread +# the file system. +# +# You can also "mock" the file system by providing a hash of overrides. +# If overrides are present, actual file system access is disabled; that +# is, overrides are "all or nothing". +# +# This class does not provide any controls for data size. If you read a +# large file, its contents will stay in memory for the lifetime of the +# Ruby process. +# +# source://google-cloud-env//lib/google/cloud/env/file_system.rb#37 +class Google::Cloud::Env::FileSystem + # Create a file system access object with no overrides. + # + # @return [FileSystem] a new instance of FileSystem + # + # source://google-cloud-env//lib/google/cloud/env/file_system.rb#41 + def initialize; end + + # The overrides hash, or nil if overrides are not present. + # The hash maps paths to contents of the file at that path. + # + # @return [Hash{String => String}, nil] + # + # source://google-cloud-env//lib/google/cloud/env/file_system.rb#86 + def overrides; end + + # Set the overrides hash. You can either provide a hash of file paths + # to content, or nil to disable overrides. If overrides are present, + # actual filesystem access is disabled; overrides are "all or nothing". + # + # @param new_overrides [Hash{String => String}, nil] + # + # source://google-cloud-env//lib/google/cloud/env/file_system.rb#95 + def overrides=(new_overrides); end + + # Read the given file from the file system and return its contents. + # + # @param path [String] The path to the file. + # @param binary [boolean] Whether to read in binary mode. Defaults to + # false. This must be consistent across multiple requests for the + # same path; if it is not, an error will be raised. + # @return [String] if the file exists. + # @return [nil] if the file does not exist. + # + # source://google-cloud-env//lib/google/cloud/env/file_system.rb#68 + def read(path, binary: T.unsafe(nil)); end + + # Run the given block with the overrides replaced with the given hash + # (or nil to disable overrides in the block). The original overrides + # setting is restored at the end of the block. This is used for + # debugging/testing/mocking. + # + # @param temp_overrides [nil, Hash{String => String}] + # + # source://google-cloud-env//lib/google/cloud/env/file_system.rb#109 + def with_overrides(temp_overrides); end +end + +# This expands on {LazyValue} by providing a lazy key-value dictionary. +# Each key uses a separate LazyValue; hence multiple keys can be in the +# process of computation concurrently and independently. +# +# We keep this private for now so we can move it in the future if we need +# it to be available to other libraries. Currently it should not be used +# outside of Google::Cloud::Env. +# +# @private +# +# source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#677 +class Google::Cloud::Env::LazyDict + # Create a LazyDict. + # + # You must pass a block that will be called to compute the value the + # first time it is accessed. The block takes the key as an argument and + # should evaluate to the value for that key, or raise an exception on + # error. To specify a value that expires, use + # {LazyValue.expiring_value}. To raise an exception that expires, use + # {LazyValue.raise_expiring_error}. + # + # You can optionally pass a retry manager, which controls how + # subsequent accesses might try calling the block again if a compute + # attempt fails with an exception. A retry manager should either be an + # instance of {Retries} or an object that duck types it. + # + # @param retries [Retries, Proc] A retry manager. The default is a retry + # manager that tries only once. You can provide either a static + # retry manager or a Proc that returns a retry manager. + # @param block [Proc] A block that can be called to attempt to compute + # the value given the key. + # @return [LazyDict] a new instance of LazyDict + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#699 + def initialize(retries: T.unsafe(nil), &block); end + + # Returns the value for the given key. This will either return the + # value or raise an error indicating failure to compute the value. If + # the value was previously cached, it will return that cached value, + # otherwise it will either run the computation to try to determine the + # value, or wait for another thread that is already running the + # computation. + # + # Any arguments beyond the initial key argument will be passed to the + # block if it is called, but are ignored if a cached value is returned. + # + # @param key [Object] the key + # @param extra_args [Array] extra arguments to pass to the block + # @raise [Exception] if an error happened while computing the value + # @return [Object] the value + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#722 + def [](key, *extra_args); end + + # This method calls {#get} repeatedly until a final result is available + # or retries have exhausted. + # + # Note: this method spins on {#get}, although honoring any retry delay. + # Thus, it is best to call this only if retries are limited or a retry + # delay has been configured. + # + # @param key [Object] the key + # @param extra_args [Array] extra arguments to pass to the block + # @param transient_errors [Array] An array of exception classes + # that will be treated as transient and will allow await to + # continue retrying. Exceptions omitted from this list will be + # treated as fatal errors and abort the call. Default is + # `[StandardError]`. + # @param max_tries [Integer, nil] The maximum number of times this will + # call {#get} before giving up, or nil for a potentially unlimited + # number of attempts. Default is 1. + # @param max_time [Numeric, nil] The maximum time in seconds this will + # spend before giving up, or nil (the default) for a potentially + # unlimited timeout. + # @raise [Exception] if a fatal error happened, or retries have been + # exhausted. + # @return [Object] the value + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#753 + def await(key, *extra_args, transient_errors: T.unsafe(nil), max_tries: T.unsafe(nil), max_time: T.unsafe(nil)); end + + # Force the cache for the given key to expire immediately, if + # computation is complete. + # + # Any cached value will be cleared, the retry count is reset, and the + # next access will call the compute block as if it were the first + # access. Returns true if this took place. Has no effect and returns + # false if the computation is not yet complete (i.e. if a thread is + # currently computing, or if the last attempt failed and retries have + # not yet been exhausted.) + # + # @param key [Object] the key + # @return [true, false] whether the cache was expired + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#785 + def expire!(key); end + + # Force the values for all keys to expire immediately. + # + # @return [Array] A list of keys that were expired. A key is + # *not* included if its computation is not yet complete (i.e. if a + # thread is currently computing, or if the last attempt failed and + # retries have not yet been exhausted.) + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#797 + def expire_all!; end + + # Returns the value for the given key. This will either return the + # value or raise an error indicating failure to compute the value. If + # the value was previously cached, it will return that cached value, + # otherwise it will either run the computation to try to determine the + # value, or wait for another thread that is already running the + # computation. + # + # Any arguments beyond the initial key argument will be passed to the + # block if it is called, but are ignored if a cached value is returned. + # + # @param key [Object] the key + # @param extra_args [Array] extra arguments to pass to the block + # @raise [Exception] if an error happened while computing the value + # @return [Object] the value + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#722 + def get(key, *extra_args); end + + # Returns the current low-level state for the given key. Does not block + # for computation. See {LazyValue#internal_state} for details. + # + # @param key [Object] the key + # @return [Array] the low-level state + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#767 + def internal_state(key); end + + # Set the cache value for the given key explicitly and immediately. + # If a computation is in progress, it is "detached" and its result will + # no longer be considered. + # + # @param key [Object] the key + # @param value [Object] the value to set + # @param lifetime [Numeric] the lifetime until expiration in seconds, + # or nil (the default) for no expiration. + # @return [Object] the value + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#818 + def set!(key, value, lifetime: T.unsafe(nil)); end + + private + + # Ensures that exactly one LazyValue exists for the given key, and + # returns it. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#829 + def lookup_key(key); end +end + +# A lazy value box with thread-safe memoization. The first time accessed +# it will call a given block to compute its value, and will cache that +# value. Subsequent requests will return the cached value. +# +# At most one thread will be allowed to run the computation; if another +# thread is already in the middle of a computation, any new threads +# requesting the value will wait until the existing computation is +# complete, and will use that computation's result rather than kicking +# off their own computation. +# +# If a computation fails with an exception, that exception will also be +# memoized and reraised on subsequent accesses. A LazyValue can also be +# configured so subsequent accesses will retry the computation if the +# previous computation failed. The maximum number of retries is +# configurable, as is the retry "interval", i.e. the time since the last +# failure before an access will retry the computation. +# +# By default, a computation's memoized value (or final error after +# retries have been exhausted) is maintained for the lifetime of the Ruby +# process. However, a computation can also cause its result (or error) to +# expire after a specified number of seconds, forcing a recomputation on +# the next access following expiration, by calling +# {LazyValue.expiring_value} or {LazyValue.raise_expiring_error}. +# +# We keep this private for now so we can move it in the future if we need +# it to be available to other libraries. Currently it should not be used +# outside of Google::Cloud::Env. +# +# @private +# +# source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#53 +class Google::Cloud::Env::LazyValue + # Create a LazyValue. + # + # You must pass a block that will be called to compute the value the + # first time it is accessed. The block should evaluate to the desired + # value, or raise an exception on error. To specify a value that + # expires, use {LazyValue.expiring_value}. To raise an exception that + # expires, use {LazyValue.raise_expiring_error}. + # + # You can optionally pass a retry manager, which controls how + # subsequent accesses might try calling the block again if a compute + # attempt fails with an exception. A retry manager should either be an + # instance of {Retries} or an object that duck types it. + # + # @param retries [Retries] A retry manager. The default is a retry + # manager that tries only once. + # @param block [Proc] A block that can be called to attempt to compute + # the value. + # @raise [ArgumentError] + # @return [LazyValue] a new instance of LazyValue + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#118 + def initialize(retries: T.unsafe(nil), &block); end + + # This method calls {#get} repeatedly until a final result is available + # or retries have exhausted. + # + # Note: this method spins on {#get}, although honoring any retry delay. + # Thus, it is best to call this only if retries are limited or a retry + # delay has been configured. + # + # @param extra_args [Array] extra arguments to pass to the block + # @param transient_errors [Array] An array of exception classes + # that will be treated as transient and will allow await to + # continue retrying. Exceptions omitted from this list will be + # treated as fatal errors and abort the call. Default is + # `[StandardError]`. + # @param max_tries [Integer, nil] The maximum number of times this will + # call {#get} before giving up, or nil for a potentially unlimited + # number of attempts. Default is 1. + # @param max_time [Numeric, nil] The maximum time in seconds this will + # spend before giving up, or nil (the default) for a potentially + # unlimited timeout. + # @param delay_epsilon [Numeric] An extra delay in seconds to ensure + # that retries happen after the retry delay period + # @raise [Exception] if a fatal error happened, or retries have been + # exhausted. + # @return [Object] the value + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#309 + def await(*extra_args, transient_errors: T.unsafe(nil), max_tries: T.unsafe(nil), max_time: T.unsafe(nil), delay_epsilon: T.unsafe(nil)); end + + # Force this cache to expire immediately, if computation is complete. + # Any cached value will be cleared, the retry count is reset, and the + # next access will call the compute block as if it were the first + # access. Returns true if this took place. Has no effect and returns + # false if the computation is not yet complete (i.e. if a thread is + # currently computing, or if the last attempt failed and retries have + # not yet been exhausted.) + # + # @return [true, false] whether the cache was expired + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#393 + def expire!; end + + # Returns the value. This will either return the value or raise an + # error indicating failure to compute the value. + # + # If the value was previously cached, it will return that cached value, + # otherwise it will either run the computation to try to determine the + # value, or wait for another thread that is already running the + # computation. Thus, this method could block. + # + # Any arguments passed will be forwarded to the block if called, but + # are ignored if a cached value is returned. + # + # @raise [Exception] if an error happened while computing the value + # @return [Object] the value + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#252 + def get(*extra_args); end + + # Returns the current low-level state immediately without waiting for + # computation. Returns a 3-tuple (i.e. a 3-element array) in which the + # first element is a symbol indicating the overall state, as described + # below, and the second and third elements are set accordingly. + # + # States (the first tuple element) are: + # * `:pending` - The value has not been computed, or previous + # computation attempts have failed but there are retries pending. The + # second element will be the most recent error, or nil if no + # computation attempt has yet happened. The third element will be the + # monotonic time of the end of the current retry delay, or nil if + # there will be no delay. + # * `:computing` - A thread is currently computing the value. The + # second element is nil. The third elements is the monotonic time + # when the computation started. + # * `:success` - The computation is finished, and the value is returned + # in the second element. The third element may be a numeric value + # indicating the expiration monotonic time, or nil for no expiration. + # * `:failed` - The computation failed finally and no more retries will + # be done. The error is returned in the second element. The third + # element may be a numeric value indicating the expiration monotonic + # time, or nil for no expiration. + # + # Future updates may add array elements without warning. Callers should + # be prepared to ignore additional unexpected elements. + # + # @return [Array] + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#366 + def internal_state; end + + # Set the cache value explicitly and immediately. If a computation is + # in progress, it is "detached" and its result will no longer be + # considered. + # + # @param value [Object] the value to set + # @param lifetime [Numeric] the lifetime until expiration in seconds, + # or nil (the default) for no expiration. + # @return [Object] the value + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#412 + def set!(value, lifetime: T.unsafe(nil)); end + + private + + # Either return the cached value or raise the cached error. + # This must be called from within the mutex. + # + # @private + # @raise [@error] + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#477 + def cached_value; end + + # Determines the delay until the next retry during an await + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#639 + def determine_await_retry_delay(state, expiry_time, delay_epsilon); end + + # Determines the expires_at value in monotonic time, given a lifetime. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#661 + def determine_expiry(lifetime); end + + # Reset this cache, transitioning to the Pending state and resetting + # the retry count. + # This must be called from within the mutex. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#498 + def do_expire; end + + # Checks for any threads that need backfill, and if so triggers + # backfill mode. + # This must be called from within the mutex. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#564 + def enter_backfill; end + + # Initializes compute mode. + # This must be called from within the mutex. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#540 + def enter_compute(cur_time); end + + # Sets state to reflect a failed computation (as long as this + # computation wasn't interrupted by someone calling #set!). + # Then raises the error. + # This must be called from within the mutex. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#612 + def handle_failure(error); end + + # Sets state to reflect a successful computation (as long as this + # computation wasn't interrupted by someone calling #set!). + # Then returns the computed value. + # This must be called from within the mutex. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#588 + def handle_success(value); end + + # Checks whether all threads are done with backfill, and if so notifies + # threads waiting for backfill to finish. + # This must be called from within the mutex. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#575 + def leave_backfill; end + + # Finishes compute mode, notifying threads waiting on it. + # This must be called from within the mutex. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#552 + def leave_compute; end + + # Perform computation, and transition state on completion. + # This must be called from outside the mutex. + # Returns the final value, or raises the final error. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#461 + def perform_compute(extra_args); end + + # Determine whether we should expire a cached value and compute a new + # one. Happens in the Finished state if @expires_at is in the past. + # This must be called from within the mutex. + # + # @private + # @return [Boolean] + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#488 + def should_expire?; end + + # Wait for backfill to complete if it is in progress, otherwise just + # return immediately. + # This must be called from within the mutex. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#509 + def wait_backfill; end + + # Wait for computation to complete. + # Also adds the current thread to the backfill list, ensuring that the + # computing thread will enter the backfill phase on completion. Once + # computation is done, also checks whether the current thread is the + # last one to backfill, and if so, turns off backfill mode. + # This must be called from within the mutex. + # + # @private + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#522 + def wait_compute; end + + class << self + # Creates a special object that can be returned from a computation to + # indicate that a value expires after the given number of seconds. + # Any access after the expiration will cause a recomputation. + # + # @param lifetime [Numeric] timeout in seconds + # @param value [Object] the computation result + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#63 + def expiring_value(lifetime, value); end + + # Raise an error that, if it is the final result (i.e. retries have + # been exhausted), will expire after the given number of seconds. Any + # access after the expiration will cause a recomputation. If retries + # will not have been exhausted, expiration is ignored. + # + # The error can be specified as an exception object, a string (in + # which case a RuntimeError will be raised), or a class that descends + # from Exception (in which case an error of that type will be + # created, and passed any additional args given). + # + # @param lifetime [Numeric] timeout in seconds + # @param error [String, Exception, Class] the error to raise + # @param args [Array] any arguments to pass to an error constructor + # @raise [ExpiringError] + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#83 + def raise_expiring_error(lifetime, error, *args); end + end +end + +# Internal type signaling an error with an expiration. +# +# @private +# +# source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#446 +class Google::Cloud::Env::LazyValue::ExpiringError < ::StandardError + # @return [ExpiringError] a new instance of ExpiringError + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#447 + def initialize(lifetime); end + + # Returns the value of attribute lifetime. + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#452 + def lifetime; end +end + +# Internal type signaling a value with an expiration +# +# @private +# +# source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#432 +class Google::Cloud::Env::LazyValue::ExpiringValue + # @return [ExpiringValue] a new instance of ExpiringValue + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#433 + def initialize(lifetime, value); end + + # Returns the value of attribute lifetime. + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#438 + def lifetime; end + + # Returns the value of attribute value. + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#439 + def value; end +end + +# Error raised when the compute metadata server is expected to be +# present in the current environment, but couldn't be contacted. +# +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#859 +class Google::Cloud::Env::MetadataServerNotResponding < ::StandardError + # Create a new MetadataServerNotResponding. + # + # @param message [String] Error message. If not provided, defaults to + # {DEFAULT_MESSAGE}. + # @return [MetadataServerNotResponding] a new instance of MetadataServerNotResponding + # + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#876 + def initialize(message = T.unsafe(nil)); end +end + +# Default message for the error +# +# @return [String] +# +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#864 +Google::Cloud::Env::MetadataServerNotResponding::DEFAULT_MESSAGE = T.let(T.unsafe(nil), String) + +# A simple retry manager with optional delay and backoff. It retries +# until either a configured maximum number of attempts has been +# reached, or a configurable total time has elapsed since the first +# failure. +# +# This class is not thread-safe by itself. Access should be protected +# by an external mutex. +# +# We keep this private for now so we can move it in the future if we need +# it to be available to other libraries. Currently it should not be used +# outside of Google::Cloud::Env. +# +# @private +# +# source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#865 +class Google::Cloud::Env::Retries + # Create and initialize a retry manager. + # + # @param max_tries [Integer, nil] Maximum number of attempts before we + # give up altogether, or nil for no maximum. Default is 1, + # indicating one attempt and no retries. + # @param max_time [Numeric, nil] The maximum amount of time in seconds + # until we give up altogether, or nil for no maximum. Default is + # nil. + # @param initial_delay [Numeric] Initial delay between attempts, in + # seconds. Default is 0. + # @param max_delay [Numeric, nil] Maximum delay between attempts, in + # seconds, or nil for no max. Default is nil. + # @param delay_multiplier [Numeric] Multipler applied to the delay + # between attempts. Default is 1 for no change. + # @param delay_adder [Numeric] Value added to the delay between + # attempts. Default is 0 for no change. + # @param delay_includes_time_elapsed [true, false] Whether to deduct any + # time already elapsed from the retry delay. Default is false. + # @raise [ArgumentError] + # @return [Retries] a new instance of Retries + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#886 + def initialize(max_tries: T.unsafe(nil), max_time: T.unsafe(nil), initial_delay: T.unsafe(nil), max_delay: T.unsafe(nil), delay_multiplier: T.unsafe(nil), delay_adder: T.unsafe(nil), delay_includes_time_elapsed: T.unsafe(nil)); end + + # Cause the retry limit to be reached immediately. + # + # @return [self] + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#946 + def finish!; end + + # Returns true if the retry limit has been reached. + # + # @return [true, false] + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#927 + def finished?; end + + # Advance to the next attempt. + # + # Returns nil if the retry limit has been reached. Otherwise, returns + # the delay in seconds until the next retry (0 for no delay). Raises an + # error if the previous call already returned nil. + # + # @param start_time [Numeric, nil] Optional start time in monotonic time + # units. Used if delay_includes_time_elapsed is set. + # @return [Numeric, nil] + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#962 + def next(start_time: T.unsafe(nil)); end + + # Reset to the initial attempt. + # + # @return [self] + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#936 + def reset!; end + + # Create a duplicate in the reset state + # + # @return [Retries] + # + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#912 + def reset_dup; end + + private + + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#992 + def adjusted_delay(start_time, cur_time); end + + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#982 + def advance_delay; end + + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#987 + def advance_retry(cur_time); end + + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#976 + def setup_first_retry(cur_time); end +end + +# Library version +# +# @return [String] +# +# source://google-cloud-env//lib/google/cloud/env/version.rb#23 +Google::Cloud::Env::VERSION = T.let(T.unsafe(nil), String) + +# Access to system environment variables. +# +# This is a hashlike object that controls access to environment variable +# data. It supports temporarily changing the data source (i.e. swapping +# ::ENV out for a different set of data) for mocking. +# +# source://google-cloud-env//lib/google/cloud/env/variables.rb#28 +class Google::Cloud::Env::Variables + # Create an enviroment variables access object. This is initially + # backed by the actual environment variables (i.e. ENV). + # + # @return [Variables] a new instance of Variables + # + # source://google-cloud-env//lib/google/cloud/env/variables.rb#33 + def initialize; end + + # Fetch the given environment variable from the backing data. + # + # @param key [String] + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env/variables.rb#43 + def [](key); end + + # The backing data is a hash or hash-like object that represents the + # environment variable data. This can either be the actual environment + # variables object (i.e. ENV) or a substitute hash used for mocking. + # + # @return [Hash{String=>String}] + # + # source://google-cloud-env//lib/google/cloud/env/variables.rb#55 + def backing_data; end + + # The backing data is a hash or hash-like object that represents the + # environment variable data. This can either be the actual environment + # variables object (i.e. ENV) or a substitute hash used for mocking. + # + # @return [Hash{String=>String}] + # + # source://google-cloud-env//lib/google/cloud/env/variables.rb#55 + def backing_data=(_arg0); end + + # Fetch the given environment variable from the backing data. + # + # @param key [String] + # @return [String, nil] + # + # source://google-cloud-env//lib/google/cloud/env/variables.rb#43 + def get(key); end + + # Run the given block with the backing data replaced with the given + # hash. The original backing data is restored afterward. This is used + # for debugging/testing/mocking. + # + # @param temp_backing_data [Hash{String=>String}] + # + # source://google-cloud-env//lib/google/cloud/env/variables.rb#64 + def with_backing_data(temp_backing_data); end +end diff --git a/sorbet/rbi/gems/google-cloud-errors@1.4.0.rbi b/sorbet/rbi/gems/google-cloud-errors@1.4.0.rbi new file mode 100644 index 00000000..3a278e8c --- /dev/null +++ b/sorbet/rbi/gems/google-cloud-errors@1.4.0.rbi @@ -0,0 +1,456 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `google-cloud-errors` gem. +# Please instead update this file by running `bin/tapioca gem google-cloud-errors`. + + +# source://google-cloud-errors//lib/google/cloud/errors.rb#18 +module Google; end + +# source://google-cloud-errors//lib/google/cloud/errors.rb#19 +module Google::Cloud + # source://google-cloud-storage/1.51.0/lib/google-cloud-storage.rb#79 + def storage(scope: T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil), open_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil), send_timeout: T.unsafe(nil), max_elapsed_time: T.unsafe(nil), base_interval: T.unsafe(nil), max_interval: T.unsafe(nil), multiplier: T.unsafe(nil), upload_chunk_size: T.unsafe(nil)); end + + class << self + # source://google-cloud-core/1.7.0/lib/google/cloud.rb#158 + def auto_load_files; end + + # source://google-cloud-core/1.7.0/lib/google/cloud.rb#128 + def auto_load_gems; end + + # source://google-cloud-core/1.7.0/lib/google/cloud.rb#91 + def configure; end + + # source://google-cloud-env/2.1.1/lib/google/cloud/env.rb#517 + def env; end + + # source://google-cloud-core/1.7.0/lib/google/cloud.rb#103 + def init_configuration; end + + # source://google-cloud-core/1.7.0/lib/google/cloud.rb#142 + def loaded_files; end + + # source://google-cloud-core/1.7.0/lib/google/cloud.rb#62 + def new(project_id = T.unsafe(nil), credentials = T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil)); end + + # source://google-cloud-storage/1.51.0/lib/google-cloud-storage.rb#142 + def storage(project_id = T.unsafe(nil), credentials = T.unsafe(nil), scope: T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil), open_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil), send_timeout: T.unsafe(nil), max_elapsed_time: T.unsafe(nil), base_interval: T.unsafe(nil), max_interval: T.unsafe(nil), multiplier: T.unsafe(nil), upload_chunk_size: T.unsafe(nil)); end + end +end + +# Aborted indicates the operation was aborted, typically due to a +# concurrency issue like sequencer check failures, transaction aborts, +# etc. +# +# See litmus test above for deciding between FailedPrecondition, +# Aborted, and Unavailable. +# +# source://google-cloud-errors//lib/google/cloud/errors.rb#383 +class Google::Cloud::AbortedError < ::Google::Cloud::Error + # gRPC error code for ABORTED + # + # @return [Integer] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#388 + def code; end +end + +# AlreadyExists means an attempt to create an entity failed because one +# already exists. +# +# source://google-cloud-errors//lib/google/cloud/errors.rb#306 +class Google::Cloud::AlreadyExistsError < ::Google::Cloud::Error + # gRPC error code for ALREADY_EXISTS + # + # @return [Integer] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#311 + def code; end +end + +# Canceled indicates the operation was cancelled (typically by the caller). +# +# source://google-cloud-errors//lib/google/cloud/errors.rb#233 +class Google::Cloud::CanceledError < ::Google::Cloud::Error + # gRPC error code for CANCELLED + # + # @return [Integer] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#238 + def code; end +end + +# DataLoss indicates unrecoverable data loss or corruption. +# +# source://google-cloud-errors//lib/google/cloud/errors.rb#465 +class Google::Cloud::DataLossError < ::Google::Cloud::Error + # gRPC error code for DATA_LOSS + # + # @return [Integer] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#470 + def code; end +end + +# DeadlineExceeded means operation expired before completion. +# For operations that change the state of the system, this error may be +# returned even if the operation has completed successfully. For +# example, a successful response from a server could have been delayed +# long enough for the deadline to expire. +# +# source://google-cloud-errors//lib/google/cloud/errors.rb#280 +class Google::Cloud::DeadlineExceededError < ::Google::Cloud::Error + # gRPC error code for DEADLINE_EXCEEDED + # + # @return [Integer] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#285 + def code; end +end + +# Base google-cloud exception class. +# +# source://google-cloud-errors//lib/google/cloud/errors.rb#22 +class Google::Cloud::Error < ::StandardError + # Construct a new Google::Cloud::Error object, optionally passing in a + # message. + # + # @param msg [String, nil] an error message + # @return [Error] a new instance of Error + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#28 + def initialize(msg = T.unsafe(nil)); end + + # Returns the value of `body` from the underlying cause error + # object, if both are present. Otherwise returns `nil`. + # + # This is typically present on errors originating from calls to an API + # over HTTP/REST. + # + # @return [Object, nil] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#53 + def body; end + + # Returns the value of `code` from the underlying cause error + # object, if both are present. Otherwise returns `nil`. + # + # This is typically present on errors originating from calls to an API + # over gRPC. + # + # @return [Object, nil] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#79 + def code; end + + # Returns the value of `details` from the underlying cause error + # object, if both are present. Otherwise returns `nil`. + # + # This is typically present on errors originating from calls to an API + # over gRPC. + # + # @return [Object, nil] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#92 + def details; end + + # Returns the value of `domain` from the `::Google::Rpc::ErrorInfo` + # object, if it exists in the `status_details` array. + # + # This is typically present on errors originating from calls to an API + # over gRPC. + # + # @return [Object, nil] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#154 + def domain; end + + # Returns the `::Google::Rpc::ErrorInfo` object present in the `status_details` + # or `details` array, given that the following is true: + # * either `status_details` or `details` exists and is an array + # * there is exactly one `::Google::Rpc::ErrorInfo` object in that array. + # Looks in `status_details` first, then in `details`. + # + # @return [::Google::Rpc::ErrorInfo, nil] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#131 + def error_info; end + + # Returns the value of `metadata` from the `::Google::Rpc::ErrorInfo` + # object, if it exists in the `status_details` array. + # + # This is typically present on errors originating from calls to an API + # over gRPC. + # + # @return [Hash, nil] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#180 + def error_metadata; end + + # Returns the value of `header` from the underlying cause error + # object, if both are present. Otherwise returns `nil`. + # + # This is typically present on errors originating from calls to an API + # over HTTP/REST. + # + # @return [Object, nil] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#66 + def header; end + + # Returns the value of `metadata` from the underlying cause error + # object, if both are present. Otherwise returns `nil`. + # + # This is typically present on errors originating from calls to an API + # over gRPC. + # + # @return [Object, nil] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#105 + def metadata; end + + # Returns the value of `reason` from the `::Google::Rpc::ErrorInfo` + # object, if it exists in the `status_details` array. + # + # This is typically present on errors originating from calls to an API + # over gRPC. + # + # @return [Object, nil] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#167 + def reason; end + + # Returns the value of `status_code` from the underlying cause error + # object, if both are present. Otherwise returns `nil`. + # + # This is typically present on errors originating from calls to an API + # over HTTP/REST. + # + # @return [Object, nil] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#40 + def status_code; end + + # Returns the value of `status_details` from the underlying cause error + # object, if both are present. Otherwise returns `nil`. + # + # This is typically present on errors originating from calls to an API + # over gRPC. + # + # @return [Object, nil] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#118 + def status_details; end + + class << self + # @private Create a new error object from a client error + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#186 + def from_error(error); end + + # @private Identify the subclass for a Google API Client error + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#212 + def gapi_error_class_for(http_status_code); end + + # @private Identify the subclass for a gRPC error + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#198 + def grpc_error_class_for(grpc_error_code); end + end +end + +# source://google-cloud-errors//lib/google/cloud/errors/version.rb#18 +module Google::Cloud::Errors; end + +# source://google-cloud-errors//lib/google/cloud/errors/version.rb#19 +Google::Cloud::Errors::VERSION = T.let(T.unsafe(nil), String) + +# FailedPrecondition indicates operation was rejected because the +# system is not in a state required for the operation's execution. +# For example, directory to be deleted may be non-empty, an rmdir +# operation is applied to a non-directory, etc. +# +# A litmus test that may help a service implementor in deciding +# between FailedPrecondition, Aborted, and Unavailable: +# (a) Use Unavailable if the client can retry just the failing call. +# (b) Use Aborted if the client should retry at a higher-level +# (e.g., restarting a read-modify-write sequence). +# (c) Use FailedPrecondition if the client should not retry until +# the system state has been explicitly fixed. E.g., if an "rmdir" +# fails because the directory is non-empty, FailedPrecondition +# should be returned since the client should not retry unless +# they have first fixed up the directory by deleting files from it. +# (d) Use FailedPrecondition if the client performs conditional +# REST Get/Update/Delete on a resource and the resource on the +# server does not match the condition. E.g., conflicting +# read-modify-write on the same resource. +# +# source://google-cloud-errors//lib/google/cloud/errors.rb#366 +class Google::Cloud::FailedPreconditionError < ::Google::Cloud::Error + # gRPC error code for FAILED_PRECONDITION + # + # @return [Integer] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#371 + def code; end +end + +# Internal errors. Means some invariants expected by underlying +# system has been broken. If you see one of these errors, +# something is very broken. +# +# source://google-cloud-errors//lib/google/cloud/errors.rb#436 +class Google::Cloud::InternalError < ::Google::Cloud::Error + # gRPC error code for INTERNAL + # + # @return [Integer] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#441 + def code; end +end + +# InvalidArgument indicates client specified an invalid argument. +# Note that this differs from FailedPrecondition. It indicates arguments +# that are problematic regardless of the state of the system +# (e.g., a malformed file name). +# +# source://google-cloud-errors//lib/google/cloud/errors.rb#264 +class Google::Cloud::InvalidArgumentError < ::Google::Cloud::Error + # gRPC error code for INVALID_ARGUMENT + # + # @return [Integer] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#269 + def code; end +end + +# NotFound means some requested entity (e.g., file or directory) was +# not found. +# +# source://google-cloud-errors//lib/google/cloud/errors.rb#293 +class Google::Cloud::NotFoundError < ::Google::Cloud::Error + # gRPC error code for NOT_FOUND + # + # @return [Integer] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#298 + def code; end +end + +# OutOfRange means operation was attempted past the valid range. +# E.g., seeking or reading past end of file. +# +# Unlike InvalidArgument, this error indicates a problem that may +# be fixed if the system state changes. For example, a 32-bit file +# system will generate InvalidArgument if asked to read at an +# offset that is not in the range [0,2^32-1], but it will generate +# OutOfRange if asked to read from an offset past the current +# file size. +# +# There is a fair bit of overlap between FailedPrecondition and +# OutOfRange. We recommend using OutOfRange (the more specific +# error) when it applies so that callers who are iterating through +# a space can easily look for an OutOfRange error to detect when +# they are done. +# +# source://google-cloud-errors//lib/google/cloud/errors.rb#409 +class Google::Cloud::OutOfRangeError < ::Google::Cloud::Error + # gRPC error code for OUT_OF_RANGE + # + # @return [Integer] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#414 + def code; end +end + +# PermissionDenied indicates the caller does not have permission to +# execute the specified operation. It must not be used for rejections +# caused by exhausting some resource (use ResourceExhausted +# instead for those errors). It must not be +# used if the caller cannot be identified (use Unauthenticated +# instead for those errors). +# +# source://google-cloud-errors//lib/google/cloud/errors.rb#323 +class Google::Cloud::PermissionDeniedError < ::Google::Cloud::Error + # gRPC error code for PERMISSION_DENIED + # + # @return [Integer] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#328 + def code; end +end + +# ResourceExhausted indicates some resource has been exhausted, perhaps +# a per-user quota, or perhaps the entire file system is out of space. +# +# source://google-cloud-errors//lib/google/cloud/errors.rb#336 +class Google::Cloud::ResourceExhaustedError < ::Google::Cloud::Error + # gRPC error code for RESOURCE_EXHAUSTED + # + # @return [Integer] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#341 + def code; end +end + +# Unauthenticated indicates the request does not have valid +# authentication credentials for the operation. +# +# source://google-cloud-errors//lib/google/cloud/errors.rb#478 +class Google::Cloud::UnauthenticatedError < ::Google::Cloud::Error + # gRPC error code for UNAUTHENTICATED + # + # @return [Integer] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#483 + def code; end +end + +# Unavailable indicates the service is currently unavailable. +# This is a most likely a transient condition and may be corrected +# by retrying with a backoff. +# +# See litmus test above for deciding between FailedPrecondition, +# Aborted, and Unavailable. +# +# source://google-cloud-errors//lib/google/cloud/errors.rb#453 +class Google::Cloud::UnavailableError < ::Google::Cloud::Error + # gRPC error code for UNAVAILABLE + # + # @return [Integer] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#458 + def code; end +end + +# Unimplemented indicates operation is not implemented or not +# supported/enabled in this service. +# +# source://google-cloud-errors//lib/google/cloud/errors.rb#422 +class Google::Cloud::UnimplementedError < ::Google::Cloud::Error + # gRPC error code for UNIMPLEMENTED + # + # @return [Integer] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#427 + def code; end +end + +# Unknown error. An example of where this error may be returned is +# if a Status value received from another address space belongs to +# an error-space that is not known in this address space. Also +# errors raised by APIs that do not return enough error information +# may be converted to this error. +# +# source://google-cloud-errors//lib/google/cloud/errors.rb#249 +class Google::Cloud::UnknownError < ::Google::Cloud::Error + # gRPC error code for UNKNOWN + # + # @return [Integer] + # + # source://google-cloud-errors//lib/google/cloud/errors.rb#254 + def code; end +end diff --git a/sorbet/rbi/gems/google-cloud-storage@1.51.0.rbi b/sorbet/rbi/gems/google-cloud-storage@1.51.0.rbi index 4e4ef02b..2e33c388 100644 --- a/sorbet/rbi/gems/google-cloud-storage@1.51.0.rbi +++ b/sorbet/rbi/gems/google-cloud-storage@1.51.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `google-cloud-storage` gem. # Please instead update this file by running `bin/tapioca gem google-cloud-storage`. + # source://google-cloud-storage//lib/google-cloud-storage.rb#26 module Google; end diff --git a/sorbet/rbi/gems/google-protobuf@4.26.1.rbi b/sorbet/rbi/gems/google-protobuf@4.26.1.rbi deleted file mode 100644 index 40617ecb..00000000 --- a/sorbet/rbi/gems/google-protobuf@4.26.1.rbi +++ /dev/null @@ -1,674 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `google-protobuf` gem. -# Please instead update this file by running `bin/tapioca gem google-protobuf`. - -# We define these before requiring the platform-specific modules. -# That way the module init can grab references to these. -# -# source://google-protobuf//lib/google/protobuf/message_exts.rb#8 -module Google; end - -# source://google-protobuf//lib/google/protobuf/message_exts.rb#9 -module Google::Protobuf - class << self - # source://google-protobuf//lib/google/protobuf.rb#38 - def decode(klass, proto, options = T.unsafe(nil)); end - - # source://google-protobuf//lib/google/protobuf.rb#42 - def decode_json(klass, json, options = T.unsafe(nil)); end - - def deep_copy(_arg0); end - - # @raise [FrozenError] - def discard_unknown(_arg0); end - - # source://google-protobuf//lib/google/protobuf.rb#30 - def encode(msg, options = T.unsafe(nil)); end - - # source://google-protobuf//lib/google/protobuf.rb#34 - def encode_json(msg, options = T.unsafe(nil)); end - end -end - -# source://google-protobuf//lib/google/protobuf/message_exts.rb#29 -class Google::Protobuf::AbstractMessage - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - def initialize(*_arg0); end - - def ==(_arg0); end - def [](_arg0); end - def []=(_arg0, _arg1); end - def clone; end - def dup; end - def eql?(_arg0); end - def freeze; end - def hash; end - def inspect; end - def method_missing(*_arg0); end - def to_h; end - def to_s; end - - private - - def respond_to_missing?(*_arg0); end - - class << self - def decode(*_arg0); end - def decode_json(*_arg0); end - def descriptor; end - def encode(*_arg0); end - def encode_json(*_arg0); end - end -end - -# Message Descriptor - Descriptor for short. -class Google::Protobuf::Descriptor - include ::Enumerable - - # @return [Descriptor] a new instance of Descriptor - def initialize(_arg0, _arg1, _arg2); end - - def each; end - def each_oneof; end - def file_descriptor; end - def lookup(_arg0); end - def lookup_oneof(_arg0); end - def msgclass; end - def name; end - def options; end -end - -class Google::Protobuf::DescriptorPool - # @raise [ArgumentError] - def add_serialized_file(_arg0); end - - def lookup(_arg0); end - - class << self - def generated_pool; end - end -end - -class Google::Protobuf::EnumDescriptor - include ::Enumerable - - # @return [EnumDescriptor] a new instance of EnumDescriptor - def initialize(_arg0, _arg1, _arg2); end - - def each; end - def enummodule; end - def file_descriptor; end - def is_closed?; end - def lookup_name(_arg0); end - def lookup_value(_arg0); end - def name; end - def options; end -end - -# source://google-protobuf//lib/google/protobuf.rb#16 -class Google::Protobuf::Error < ::StandardError; end - -class Google::Protobuf::FieldDescriptor - # @return [FieldDescriptor] a new instance of FieldDescriptor - def initialize(_arg0, _arg1, _arg2); end - - # @param msg [Google::Protobuf::Message] - def clear(_arg0); end - - def default; end - - # Tests if this field has been set on the argument message. - # - # @param msg [Google::Protobuf::Message] - # @raise [TypeError] If the field is not defined on this message. - # @return [Object] Value of the field on this message. - def get(_arg0); end - - # Tests if this field has been set on the argument message. - # - # @param msg [Google::Protobuf::Message] - # @raise [TypeError] If this field does not exist on the message - # @raise [ArgumentError] If this field does not track presence - # @return [Boolean] True iff message has this field set - def has?(_arg0); end - - # Tests if this field tracks presence. - # - # @return [Boolean] True iff this field tracks presence - def has_presence?; end - - # Tests if this is a repeated field that uses packed encoding. - # - # @return [Boolean] True iff this field is packed - def is_packed?; end - - def json_name; end - def label; end - def name; end - def number; end - def options; end - - # call-seq: - # FieldDescriptor.set(message, value) - # - # Sets the value corresponding to this field to the given value on the given - # message. Raises an exception if message is of the wrong type. Performs the - # ordinary type-checks for field setting. - # - # @param msg [Google::Protobuf::Message] - # @param value [Object] - def set(_arg0, _arg1); end - - def submsg_name; end - def subtype; end - def type; end -end - -class Google::Protobuf::FileDescriptor - # @return [FileDescriptor] a new instance of FileDescriptor - def initialize(_arg0, _arg1, _arg2); end - - def name; end - def options; end -end - -# source://google-protobuf//lib/google/protobuf.rb#46 -Google::Protobuf::IMPLEMENTATION = T.let(T.unsafe(nil), Symbol) - -# source://google-protobuf//lib/google/protobuf/internal/object_cache.rb#10 -module Google::Protobuf::Internal; end - -class Google::Protobuf::Internal::Arena; end - -# source://google-protobuf//lib/google/protobuf/internal/object_cache.rb#42 -class Google::Protobuf::Internal::LegacyObjectCache - # @return [LegacyObjectCache] a new instance of LegacyObjectCache - # - # source://google-protobuf//lib/google/protobuf/internal/object_cache.rb#43 - def initialize; end - - # source://google-protobuf//lib/google/protobuf/internal/object_cache.rb#49 - def get(key); end - - # source://google-protobuf//lib/google/protobuf/internal/object_cache.rb#71 - def try_add(key, value); end - - private - - # source://google-protobuf//lib/google/protobuf/internal/object_cache.rb#86 - def purge; end -end - -Google::Protobuf::Internal::OBJECT_CACHE = T.let(T.unsafe(nil), Google::Protobuf::Internal::ObjectCache) - -# A pointer -> Ruby Object cache that keeps references to Ruby wrapper -# objects. This allows us to look up any Ruby wrapper object by the address -# of the object it is wrapping. That way we can avoid ever creating two -# different wrapper objects for the same C object, which saves memory and -# preserves object identity. -# -# We use WeakMap for the cache. If sizeof(long) > sizeof(VALUE), we also -# need a secondary Hash to store WeakMap keys, because our pointer keys may -# need to be stored as Bignum instead of Fixnum. Since WeakMap is weak for -# both keys and values, a Bignum key will cause the WeakMap entry to be -# collected immediately unless there is another reference to the Bignum. -# This happens on 64-bit Windows, on which pointers are 64 bits but longs -# are 32 bits. In this case, we enable the secondary Hash to hold the keys -# and prevent them from being collected. -# -# source://google-protobuf//lib/google/protobuf/internal/object_cache.rb#25 -class Google::Protobuf::Internal::ObjectCache - # @return [ObjectCache] a new instance of ObjectCache - # - # source://google-protobuf//lib/google/protobuf/internal/object_cache.rb#26 - def initialize; end - - # source://google-protobuf//lib/google/protobuf/internal/object_cache.rb#31 - def get(key); end - - # source://google-protobuf//lib/google/protobuf/internal/object_cache.rb#35 - def try_add(key, value); end -end - -Google::Protobuf::Internal::SIZEOF_LONG = T.let(T.unsafe(nil), Integer) -Google::Protobuf::Internal::SIZEOF_VALUE = T.let(T.unsafe(nil), Integer) - -class Google::Protobuf::Map - include ::Enumerable - - # @return [Map] a new instance of Map - def initialize(*_arg0); end - - # call-seq: - # Map.==(other) => boolean - # - # Compares this map to another. Maps are equal if they have identical key sets, - # and for each key, the values in both maps compare equal. Elements are - # compared as per normal Ruby semantics, by calling their :== methods (or - # performing a more efficient comparison for primitive types). - # - # Maps with dissimilar key types or value types/typeclasses are never equal, - # even if value comparison (for example, between integers and floats) would - # have otherwise indicated that every element has equal value. - def ==(_arg0); end - - # call-seq: - # Map.[](key) => value - # - # Accesses the element at the given key. Throws an exception if the key type is - # incorrect. Returns nil when the key is not present in the map. - def [](_arg0); end - - # call-seq: - # Map.[]=(key, value) => value - # - # Inserts or overwrites the value at the given key with the given new value. - # Throws an exception if the key type is incorrect. Returns the new value that - # was just inserted. - def []=(_arg0, _arg1); end - - def clear; end - - # call-seq: - # Map.dup => new_map - # - # Duplicates this map with a shallow copy. References to all non-primitive - # element objects (e.g., submessages) are shared. - def clone; end - - # call-seq: - # Map.delete(key) => old_value - # - # Deletes the value at the given key, if any, returning either the old value or - # nil if none was present. Throws an exception if the key is of the wrong type. - def delete(_arg0); end - - # call-seq: - # Map.dup => new_map - # - # Duplicates this map with a shallow copy. References to all non-primitive - # element objects (e.g., submessages) are shared. - def dup; end - - # call-seq: - # Map.each(&block) - # - # Invokes &block on each |key, value| pair in the map, in unspecified order. - # Note that Map also includes Enumerable; map thus acts like a normal Ruby - # sequence. - def each; end - - def freeze; end - - # @return [Boolean] - def has_key?(_arg0); end - - def hash; end - def inspect; end - - # call-seq: - # Map.keys => [list_of_keys] - # - # Returns the list of keys contained in the map, in unspecified order. - def keys; end - - def length; end - - # call-seq: - # Map.merge(other_map) => map - # - # Copies key/value pairs from other_map into a copy of this map. If a key is - # set in other_map and this map, the value from other_map overwrites the value - # in the new copy of this map. Returns the new copy of this map with merged - # contents. - def merge(_arg0); end - - def size; end - - # call-seq: - # Map.to_h => {} - # - # Returns a Ruby Hash object containing all the values within the map - def to_h; end - - # call-seq: - # Map.values => [list_of_values] - # - # Returns the list of values contained in the map, in unspecified order. - def values; end -end - -# source://google-protobuf//lib/google/protobuf/message_exts.rb#10 -module Google::Protobuf::MessageExts - mixes_in_class_methods ::Google::Protobuf::MessageExts::ClassMethods - - # source://google-protobuf//lib/google/protobuf/message_exts.rb#20 - def to_json(options = T.unsafe(nil)); end - - # source://google-protobuf//lib/google/protobuf/message_exts.rb#24 - def to_proto(options = T.unsafe(nil)); end - - class << self - # this is only called in jruby; mri loades the ClassMethods differently - # - # source://google-protobuf//lib/google/protobuf/message_exts.rb#13 - def included(klass); end - end -end - -# source://google-protobuf//lib/google/protobuf/message_exts.rb#17 -module Google::Protobuf::MessageExts::ClassMethods; end - -class Google::Protobuf::OneofDescriptor - include ::Enumerable - - # @return [OneofDescriptor] a new instance of OneofDescriptor - def initialize(_arg0, _arg1, _arg2); end - - def each; end - def name; end - def options; end -end - -# source://google-protobuf//lib/google/protobuf.rb#20 -Google::Protobuf::PREFER_FFI = T.let(T.unsafe(nil), FalseClass) - -# source://google-protobuf//lib/google/protobuf.rb#17 -class Google::Protobuf::ParseError < ::Google::Protobuf::Error; end - -# source://google-protobuf//lib/google/protobuf/repeated_field.rb#27 -class Google::Protobuf::RepeatedField - include ::Enumerable - extend ::Forwardable - - # @return [RepeatedField] a new instance of RepeatedField - def initialize(*_arg0); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def &(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def *(*args, **_arg1, &block); end - - def +(_arg0); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def -(*args, **_arg1, &block); end - - # @raise [FrozenError] - def <<(_arg0); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def <=>(*args, **_arg1, &block); end - - def ==(_arg0); end - def [](*_arg0); end - - # @raise [FrozenError] - def []=(_arg0, _arg1); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def assoc(*args, **_arg1, &block); end - - def at(*_arg0); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def bsearch(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def bsearch_index(*args, **_arg1, &block); end - - # @raise [FrozenError] - def clear; end - - def clone; end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#116 - def collect!(*args, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def combination(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def compact(*args, **_arg1, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#116 - def compact!(*args, &block); end - - def concat(_arg0); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def count(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def cycle(*args, **_arg1, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#104 - def delete(*args, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#104 - def delete_at(*args, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#116 - def delete_if(*args, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def dig(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def drop(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def drop_while(*args, **_arg1, &block); end - - def dup; end - - # call-seq: - # RepeatedField.each(&block) - # - # Invokes the block once for each element of the repeated field. RepeatedField - # also includes Enumerable; combined with this method, the repeated field thus - # acts like an ordinary Ruby sequence. - def each; end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#116 - def each_index(*args, &block); end - - # @return [Boolean] - # - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#92 - def empty?; end - - # source://forwardable/1.3.3/forwardable.rb#231 - def eql?(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def fetch(*args, **_arg1, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#116 - def fill(*args, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def find_index(*args, **_arg1, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#58 - def first(n = T.unsafe(nil)); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def flatten(*args, **_arg1, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#116 - def flatten!(*args, &block); end - - def freeze; end - def hash; end - - # source://forwardable/1.3.3/forwardable.rb#231 - def include?(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def index(*args, **_arg1, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#116 - def insert(*args, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def inspect(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def join(*args, **_arg1, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#116 - def keep_if(*args, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#69 - def last(n = T.unsafe(nil)); end - - def length; end - def map; end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#116 - def map!(*args, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def pack(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def permutation(*args, **_arg1, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#81 - def pop(n = T.unsafe(nil)); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def pretty_print(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def pretty_print_cycle(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def product(*args, **_arg1, &block); end - - # @raise [FrozenError] - def push(*_arg0); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def rassoc(*args, **_arg1, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#116 - def reject!(*args, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def repeated_combination(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def repeated_permutation(*args, **_arg1, &block); end - - # @raise [FrozenError] - def replace(_arg0); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def reverse(*args, **_arg1, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#116 - def reverse!(*args, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def rindex(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def rotate(*args, **_arg1, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#116 - def rotate!(*args, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def sample(*args, **_arg1, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#116 - def select!(*args, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def shelljoin(*args, **_arg1, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#104 - def shift(*args, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def shuffle(*args, **_arg1, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#116 - def shuffle!(*args, &block); end - - def size; end - - # array aliases into enumerable - def slice(*_arg0); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#104 - def slice!(*args, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#116 - def sort!(*args, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#116 - def sort_by!(*args, &block); end - - # call-seq: - # RepeatedField.to_ary => array - # - # Used when converted implicitly into array, e.g. compared to an Array. - # Also called as a fallback of Object#to_a - def to_ary; end - - # source://forwardable/1.3.3/forwardable.rb#231 - def to_s(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def transpose(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def uniq(*args, **_arg1, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#116 - def uniq!(*args, &block); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#104 - def unshift(*args, &block); end - - def values_at; end - - # source://forwardable/1.3.3/forwardable.rb#231 - def |(*args, **_arg1, &block); end - - private - - # @raise [FrozenError] - def pop_one; end - - class << self - private - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#103 - def define_array_wrapper_method(method_name); end - - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#115 - def define_array_wrapper_with_result_method(method_name); end - end -end - -# propagates changes made by user of enumerator back to the original repeated field. -# This only applies in cases where the calling function which created the enumerator, -# such as #sort!, modifies itself rather than a new array, such as #sort -# -# source://google-protobuf//lib/google/protobuf/repeated_field.rb#159 -class Google::Protobuf::RepeatedField::ProxyingEnumerator < ::Struct - # source://google-protobuf//lib/google/protobuf/repeated_field.rb#160 - def each(*args, &block); end -end - -# source://google-protobuf//lib/google/protobuf.rb#18 -class Google::Protobuf::TypeError < ::TypeError; end diff --git a/sorbet/rbi/gems/googleauth@1.11.0.rbi b/sorbet/rbi/gems/googleauth@1.11.0.rbi new file mode 100644 index 00000000..d2f5f2bc --- /dev/null +++ b/sorbet/rbi/gems/googleauth@1.11.0.rbi @@ -0,0 +1,2958 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `googleauth` gem. +# Please instead update this file by running `bin/tapioca gem googleauth`. + + +# source://googleauth//lib/googleauth/base_client.rb#15 +module Google; end + +# Module Auth provides classes that provide Google-specific authorization +# used to access Google APIs. +# +# source://googleauth//lib/googleauth/base_client.rb#18 +module Google::Auth + private + + # Obtains the default credentials implementation to use in this + # environment. + # + # Use this to obtain the Application Default Credentials for accessing + # Google APIs. Application Default Credentials are described in detail + # at https://cloud.google.com/docs/authentication/production. + # + # If supplied, scope is used to create the credentials instance, when it can + # be applied. E.g, on google compute engine and for user credentials the + # scope is ignored. + # + # @param scope [string|array|nil] the scope(s) to access + # @param options [Hash] Connection options. These may be used to configure + # the `Faraday::Connection` used for outgoing HTTP requests. For + # example, if a connection proxy must be used in the current network, + # you may provide a connection with with the needed proxy options. + # The following keys are recognized: + # * `:default_connection` The connection object to use for token + # refresh requests. + # * `:connection_builder` A `Proc` that creates and returns a + # connection to use for token refresh requests. + # * `:connection` The connection to use to determine whether GCE + # metadata credentials are available. + # + # source://googleauth//lib/googleauth/application_default.rb#53 + def get_application_default(scope = T.unsafe(nil), options = T.unsafe(nil)); end + + class << self + # Obtains the default credentials implementation to use in this + # environment. + # + # Use this to obtain the Application Default Credentials for accessing + # Google APIs. Application Default Credentials are described in detail + # at https://cloud.google.com/docs/authentication/production. + # + # If supplied, scope is used to create the credentials instance, when it can + # be applied. E.g, on google compute engine and for user credentials the + # scope is ignored. + # + # @param scope [string|array|nil] the scope(s) to access + # @param options [Hash] Connection options. These may be used to configure + # the `Faraday::Connection` used for outgoing HTTP requests. For + # example, if a connection proxy must be used in the current network, + # you may provide a connection with with the needed proxy options. + # The following keys are recognized: + # * `:default_connection` The connection object to use for token + # refresh requests. + # * `:connection_builder` A `Proc` that creates and returns a + # connection to use for token refresh requests. + # * `:connection` The connection to use to determine whether GCE + # metadata credentials are available. + # @raise [NOT_FOUND_ERROR] + # + # source://googleauth//lib/googleauth/application_default.rb#53 + def get_application_default(scope = T.unsafe(nil), options = T.unsafe(nil)); end + end +end + +# BaseClient is a class used to contain common methods that are required by any +# Credentials Client, including AwsCredentials, ServiceAccountCredentials, +# and UserRefreshCredentials. This is a superclass of Signet::OAuth2::Client +# and has been created to create a generic interface for all credentials clients +# to use, including ones which do not inherit from Signet::OAuth2::Client. +# +# source://googleauth//lib/googleauth/base_client.rb#24 +module Google::Auth::BaseClient + # Returns a clone of a_hash updated with the authentication token + # + # source://googleauth//lib/googleauth/base_client.rb#36 + def apply(a_hash, opts = T.unsafe(nil)); end + + # Updates a_hash updated with the authentication token + # + # source://googleauth//lib/googleauth/base_client.rb#28 + def apply!(a_hash, opts = T.unsafe(nil)); end + + # @raise [NotImplementedError] + # @return [Boolean] + # + # source://googleauth//lib/googleauth/base_client.rb#65 + def expires_within?; end + + # Whether the id_token or access_token is missing or about to expire. + # + # @return [Boolean] + # + # source://googleauth//lib/googleauth/base_client.rb#43 + def needs_access_token?; end + + # source://googleauth//lib/googleauth/base_client.rb#58 + def notify_refresh_listeners; end + + # source://googleauth//lib/googleauth/base_client.rb#53 + def on_refresh(&block); end + + # Returns a reference to the #apply method, suitable for passing as + # a closure + # + # source://googleauth//lib/googleauth/base_client.rb#49 + def updater_proc; end + + private + + # @raise [NotImplementedError] + # + # source://googleauth//lib/googleauth/base_client.rb#75 + def fetch_access_token!; end + + # @raise [NotImplementedError] + # + # source://googleauth//lib/googleauth/base_client.rb#71 + def token_type; end +end + +# source://googleauth//lib/googleauth/base_client.rb#25 +Google::Auth::BaseClient::AUTH_METADATA_KEY = T.let(T.unsafe(nil), Symbol) + +# Representation of an application's identity for user authorization flows. +# +# source://googleauth//lib/googleauth/client_id.rb#23 +class Google::Auth::ClientId + # Initialize the Client ID. Both id and secret must be non-nil. + # + # @note Direct instantiation is discouraged to avoid embedding IDs + # and secrets in source. See {#from_file} to load from + # `client_secrets.json` files. + # @param id [String] Text identifier of the client ID + # @param secret [String] Secret associated with the client ID + # @return [ClientId] a new instance of ClientId + # + # source://googleauth//lib/googleauth/client_id.rb#66 + def initialize(id, secret); end + + # Text identifier of the client ID + # + # @return [String] + # + # source://googleauth//lib/googleauth/client_id.rb#43 + def id; end + + # Secret associated with the client ID + # + # @return [String] + # + # source://googleauth//lib/googleauth/client_id.rb#49 + def secret; end + + class << self + # Returns the value of attribute default. + # + # source://googleauth//lib/googleauth/client_id.rb#52 + def default; end + + # Sets the attribute default + # + # @param value the value to set the attribute default to. + # + # source://googleauth//lib/googleauth/client_id.rb#52 + def default=(_arg0); end + + # Constructs a Client ID from a JSON file downloaded from the + # Google Developers Console. + # + # @param file [String, File] Path of file to read from + # @return [Google::Auth::ClientID] + # + # source://googleauth//lib/googleauth/client_id.rb#81 + def from_file(file); end + + # Constructs a Client ID from a previously loaded JSON file. The hash + # structure should match the expected JSON format. + # + # @param config [hash] Parsed contents of the JSON file + # @raise [MISSING_TOP_LEVEL_ELEMENT_ERROR] + # @return [Google::Auth::ClientID] + # + # source://googleauth//lib/googleauth/client_id.rb#98 + def from_hash(config); end + end +end + +# JSON key for the client ID within an app configuration. +# +# source://googleauth//lib/googleauth/client_id.rb#31 +Google::Auth::ClientId::CLIENT_ID = T.let(T.unsafe(nil), String) + +# JSON key for the client secret within an app configuration. +# +# source://googleauth//lib/googleauth/client_id.rb#33 +Google::Auth::ClientId::CLIENT_SECRET = T.let(T.unsafe(nil), String) + +# Toplevel JSON key for the an installed app configuration. +# Must include client_id and client_secret subkeys if present. +# +# source://googleauth//lib/googleauth/client_id.rb#26 +Google::Auth::ClientId::INSTALLED_APP = T.let(T.unsafe(nil), String) + +# An error message raised when none of the expected toplevel properties +# can be found. +# +# source://googleauth//lib/googleauth/client_id.rb#36 +Google::Auth::ClientId::MISSING_TOP_LEVEL_ELEMENT_ERROR = T.let(T.unsafe(nil), String) + +# Toplevel JSON key for the a webapp configuration. +# Must include client_id and client_secret subkeys if present. +# +# source://googleauth//lib/googleauth/client_id.rb#29 +Google::Auth::ClientId::WEB_APP = T.let(T.unsafe(nil), String) + +# Credentials is a high-level base class used by Google's API client +# libraries to represent the authentication when connecting to an API. +# In most cases, it is subclassed by API-specific credential classes that +# can be instantiated by clients. +# +# ## Options +# +# Credentials classes are configured with options that dictate default +# values for parameters such as scope and audience. These defaults are +# expressed as class attributes, and may differ from endpoint to endpoint. +# Normally, an API client will provide subclasses specific to each +# endpoint, configured with appropriate values. +# +# Note that these options inherit up the class hierarchy. If a particular +# options is not set for a subclass, its superclass is queried. +# +# Some older users of this class set options via constants. This usage is +# deprecated. For example, instead of setting the `AUDIENCE` constant on +# your subclass, call the `audience=` method. +# +# ## Example +# +# class MyCredentials < Google::Auth::Credentials +# # Set the default scope for these credentials +# self.scope = "http://example.com/my_scope" +# end +# +# # creds is a credentials object suitable for Google API clients +# creds = MyCredentials.default +# creds.scope # => ["http://example.com/my_scope"] +# +# class SubCredentials < MyCredentials +# # Override the default scope for this subclass +# self.scope = "http://example.com/sub_scope" +# end +# +# creds2 = SubCredentials.default +# creds2.scope # => ["http://example.com/sub_scope"] +# +# source://googleauth//lib/googleauth/credentials.rb#63 +class Google::Auth::Credentials + extend ::Forwardable + + # Creates a new Credentials instance with the provided auth credentials, and with the default + # values configured on the class. + # + # @param keyfile [String, Hash, Signet::OAuth2::Client] The keyfile can be provided as one of the following: + # + # * The path to a JSON keyfile (as a +String+) + # * The contents of a JSON keyfile (as a +Hash+) + # * A +Signet::OAuth2::Client+ object + # @param options [Hash] The options for configuring the credentials instance. The following is supported: + # + # * +:scope+ - the scope for the client + # * +"project_id"+ (and optionally +"project"+) - the project identifier for the client + # * +:connection_builder+ - the connection builder to use for the client + # * +:default_connection+ - the default connection to use for the client + # @return [Credentials] a new instance of Credentials + # + # source://googleauth//lib/googleauth/credentials.rb#357 + def initialize(keyfile, options = T.unsafe(nil)); end + + # @return [String] The target audience ID when issuing assertions. Used only by the + # assertion grant type. + # + # source://forwardable/1.3.3/forwardable.rb#231 + def audience(*args, **_arg1, &block); end + + # The Signet::OAuth2::Client object the Credentials instance is using. + # + # @return [Signet::OAuth2::Client] + # + # source://googleauth//lib/googleauth/credentials.rb#286 + def client; end + + # The Signet::OAuth2::Client object the Credentials instance is using. + # + # @return [Signet::OAuth2::Client] + # + # source://googleauth//lib/googleauth/credentials.rb#286 + def client=(_arg0); end + + # @return [String] The issuer ID associated with this client. + # + # source://forwardable/1.3.3/forwardable.rb#231 + def issuer(*args, **_arg1, &block); end + + # Identifier for the project the client is authenticating with. + # + # @return [String] + # + # source://googleauth//lib/googleauth/credentials.rb#293 + def project_id; end + + # Identifier for a separate project used for billing/quota, if any. + # + # @return [String, nil] + # + # source://googleauth//lib/googleauth/credentials.rb#300 + def quota_project_id; end + + # @return [String, Array] The scope for this client. A scope is an access range + # defined by the authorization server. The scope can be a single value or a list of values. + # + # source://forwardable/1.3.3/forwardable.rb#231 + def scope(*args, **_arg1, &block); end + + # @return [String, OpenSSL::PKey] The signing key associated with this client. + # + # source://forwardable/1.3.3/forwardable.rb#231 + def signing_key(*args, **_arg1, &block); end + + # @return [String] The final target audience for ID tokens returned by this credential. + # + # source://forwardable/1.3.3/forwardable.rb#231 + def target_audience(*args, **_arg1, &block); end + + # @return [String] The token credential URI. The URI is the authorization server's HTTP + # endpoint capable of issuing tokens and refreshing expired tokens. + # + # source://forwardable/1.3.3/forwardable.rb#231 + def token_credential_uri(*args, **_arg1, &block); end + + # @return [String] The universe domain issuing these credentials. + # + # source://forwardable/1.3.3/forwardable.rb#231 + def universe_domain(*args, **_arg1, &block); end + + # @return [String] The universe domain issuing these credentials. + # + # source://forwardable/1.3.3/forwardable.rb#231 + def universe_domain=(*args, **_arg1, &block); end + + # @return [Proc] Returns a reference to the {Signet::OAuth2::Client#apply} method, + # suitable for passing as a closure. + # + # source://forwardable/1.3.3/forwardable.rb#231 + def updater_proc(*args, **_arg1, &block); end + + protected + + # Initializes the Signet client. + # + # source://googleauth//lib/googleauth/credentials.rb#488 + def init_client(hash, options = T.unsafe(nil)); end + + # returns a new Hash with string keys instead of symbol keys. + # + # source://googleauth//lib/googleauth/credentials.rb#496 + def stringify_hash_keys(hash); end + + # returns a new Hash with symbol keys instead of string keys. + # + # source://googleauth//lib/googleauth/credentials.rb#501 + def symbolize_hash_keys(hash); end + + # source://googleauth//lib/googleauth/credentials.rb#505 + def update_client_options(options); end + + # source://googleauth//lib/googleauth/credentials.rb#537 + def update_from_filepath(path, options); end + + # source://googleauth//lib/googleauth/credentials.rb#528 + def update_from_hash(hash, options); end + + # source://googleauth//lib/googleauth/credentials.rb#522 + def update_from_signet(client); end + + # Verify that the keyfile argument is a file. + # + # source://googleauth//lib/googleauth/credentials.rb#482 + def verify_keyfile_exists!(keyfile); end + + # Verify that the keyfile argument is provided. + # + # source://googleauth//lib/googleauth/credentials.rb#476 + def verify_keyfile_provided!(keyfile); end + + class << self + # The default target audience ID to be used when none is provided during initialization. + # Used only by the assertion grant type. + # + # @return [String] + # + # source://googleauth//lib/googleauth/credentials.rb#102 + def audience; end + + # Sets the default target audience ID to be used when none is provided during initialization. + # + # @param new_audience [String] + # + # source://googleauth//lib/googleauth/credentials.rb#113 + def audience=(new_audience); end + + # Creates a new Credentials instance with auth credentials acquired by searching the + # environment variables and paths configured on the class, and with the default values + # configured on the class. + # + # The auth credentials are searched for in the following order: + # + # 1. configured environment variables (see {Credentials.env_vars}) + # 2. configured default file paths (see {Credentials.paths}) + # 3. application default (see {Google::Auth.get_application_default}) + # + # @param options [Hash] The options for configuring the credentials instance. The following is supported: + # + # * +:scope+ - the scope for the client + # * +"project_id"+ (and optionally +"project"+) - the project identifier for the client + # * +:connection_builder+ - the connection builder to use for the client + # * +:default_connection+ - the default connection to use for the client + # @return [Credentials] + # + # source://googleauth//lib/googleauth/credentials.rb#398 + def default(options = T.unsafe(nil)); end + + # The environment variables to search for credentials. Values can either be a file path to the + # credentials file, or the JSON contents of the credentials file. + # The env_vars will never be nil. If there are no vars, the empty array is returned. + # + # @return [Array] + # + # source://googleauth//lib/googleauth/credentials.rb#184 + def env_vars; end + + # Sets the environment variables to search for credentials. + # Setting to `nil` "unsets" the value, and defaults to the superclass + # (or to the empty array if there is no superclass). + # + # @param new_env_vars [String, Array, nil] + # + # source://googleauth//lib/googleauth/credentials.rb#208 + def env_vars=(new_env_vars); end + + # Internal recursive lookup for env_vars. + # + # @private + # + # source://googleauth//lib/googleauth/credentials.rb#192 + def env_vars_internal; end + + # Return the given parameter value, defaulting up the class hierarchy. + # + # First returns the value of the instance variable, if set. + # Next, calls the given block if provided. (This is generally used to + # look up legacy constant-based values.) + # Otherwise, calls the superclass method if present. + # Returns nil if all steps fail. + # + # @param name [Symbol] The parameter name + # @param method_name [Symbol] The lookup method name, if different + # @private + # @return [Object] The value + # + # source://googleauth//lib/googleauth/credentials.rb#261 + def lookup_auth_param(name, method_name = T.unsafe(nil)); end + + # Return the value of the given constant if it is defined directly in + # this class, or nil if not. + # + # @param Name [Symbol] of the constant + # @private + # @return [Object] The value + # + # source://googleauth//lib/googleauth/credentials.rb#277 + def lookup_local_constant(name); end + + # The file paths to search for credentials files. + # The paths will never be nil. If there are no paths, the empty array is returned. + # + # @return [Array] + # + # source://googleauth//lib/googleauth/credentials.rb#219 + def paths; end + + # Set the file paths to search for credentials files. + # Setting to `nil` "unsets" the value, and defaults to the superclass + # (or to the empty array if there is no superclass). + # + # @param new_paths [String, Array, nil] + # + # source://googleauth//lib/googleauth/credentials.rb#242 + def paths=(new_paths); end + + # Internal recursive lookup for paths. + # + # @private + # + # source://googleauth//lib/googleauth/credentials.rb#227 + def paths_internal; end + + # The default scope to be used when none is provided during initialization. + # A scope is an access range defined by the authorization server. + # The scope can be a single value or a list of values. + # + # Either {#scope} or {#target_audience}, but not both, should be non-nil. + # If {#scope} is set, this credential will produce access tokens. + # If {#target_audience} is set, this credential will produce ID tokens. + # + # @return [String, Array, nil] + # + # source://googleauth//lib/googleauth/credentials.rb#128 + def scope; end + + # Sets the default scope to be used when none is provided during initialization. + # + # Either {#scope} or {#target_audience}, but not both, should be non-nil. + # If {#scope} is set, this credential will produce access tokens. + # If {#target_audience} is set, this credential will produce ID tokens. + # + # @param new_scope [String, Array, nil] + # + # source://googleauth//lib/googleauth/credentials.rb#144 + def scope=(new_scope); end + + # The default final target audience for ID tokens, to be used when none + # is provided during initialization. + # + # Either {#scope} or {#target_audience}, but not both, should be non-nil. + # If {#scope} is set, this credential will produce access tokens. + # If {#target_audience} is set, this credential will produce ID tokens. + # + # @return [String, nil] + # + # source://googleauth//lib/googleauth/credentials.rb#159 + def target_audience; end + + # Sets the default final target audience for ID tokens, to be used when none + # is provided during initialization. + # + # Either {#scope} or {#target_audience}, but not both, should be non-nil. + # If {#scope} is set, this credential will produce access tokens. + # If {#target_audience} is set, this credential will produce ID tokens. + # + # @param new_target_audience [String, nil] + # + # source://googleauth//lib/googleauth/credentials.rb#173 + def target_audience=(new_target_audience); end + + # The default token credential URI to be used when none is provided during initialization. + # The URI is the authorization server's HTTP endpoint capable of issuing tokens and + # refreshing expired tokens. + # + # @return [String] + # + # source://googleauth//lib/googleauth/credentials.rb#81 + def token_credential_uri; end + + # Set the default token credential URI to be used when none is provided during initialization. + # + # @param new_token_credential_uri [String] + # + # source://googleauth//lib/googleauth/credentials.rb#92 + def token_credential_uri=(new_token_credential_uri); end + + private + + # @private Lookup Credentials using Google::Auth.get_application_default. + # + # source://googleauth//lib/googleauth/credentials.rb#442 + def from_application_default(options); end + + # @private Lookup Credentials from default file paths. + # + # source://googleauth//lib/googleauth/credentials.rb#431 + def from_default_paths(options); end + + # @private Lookup Credentials from environment variables. + # + # source://googleauth//lib/googleauth/credentials.rb#412 + def from_env_vars(options); end + + # @private Read credentials from a JSON stream. + # + # source://googleauth//lib/googleauth/credentials.rb#455 + def from_io(io, options); end + end +end + +# The default target audience ID to be used when none is provided during initialization. +# +# source://googleauth//lib/googleauth/credentials.rb#70 +Google::Auth::Credentials::AUDIENCE = T.let(T.unsafe(nil), String) + +# The default token credential URI to be used when none is provided during initialization. +# +# source://googleauth//lib/googleauth/credentials.rb#66 +Google::Auth::Credentials::TOKEN_CREDENTIAL_URI = T.let(T.unsafe(nil), String) + +# CredentialsLoader contains the behaviour used to locate and find default +# credentials files on the file system. +# +# source://googleauth//lib/googleauth/credentials_loader.rb#24 +module Google::Auth::CredentialsLoader + # Creates an instance from the path specified in an environment + # variable. + # + # @param scope [string|array|nil] the scope(s) to access + # @param options [Hash] Connection options. These may be used to configure + # how OAuth tokens are retrieved, by providing a suitable + # `Faraday::Connection`. For example, if a connection proxy must be + # used in the current network, you may provide a connection with + # with the needed proxy options. + # The following keys are recognized: + # * `:default_connection` The connection object to use. + # * `:connection_builder` A `Proc` that returns a connection. + # + # source://googleauth//lib/googleauth/credentials_loader.rb#74 + def from_env(scope = T.unsafe(nil), options = T.unsafe(nil)); end + + # Creates an instance from the system default path + # + # @param scope [string|array|nil] the scope(s) to access + # @param options [Hash] Connection options. These may be used to configure + # how OAuth tokens are retrieved, by providing a suitable + # `Faraday::Connection`. For example, if a connection proxy must be + # used in the current network, you may provide a connection with + # with the needed proxy options. + # The following keys are recognized: + # * `:default_connection` The connection object to use. + # * `:connection_builder` A `Proc` that returns a connection. + # + # source://googleauth//lib/googleauth/credentials_loader.rb#126 + def from_system_default_path(scope = T.unsafe(nil), options = T.unsafe(nil)); end + + # Creates an instance from a well known path. + # + # @param scope [string|array|nil] the scope(s) to access + # @param options [Hash] Connection options. These may be used to configure + # how OAuth tokens are retrieved, by providing a suitable + # `Faraday::Connection`. For example, if a connection proxy must be + # used in the current network, you may provide a connection with + # with the needed proxy options. + # The following keys are recognized: + # * `:default_connection` The connection object to use. + # * `:connection_builder` A `Proc` that returns a connection. + # + # source://googleauth//lib/googleauth/credentials_loader.rb#100 + def from_well_known_path(scope = T.unsafe(nil), options = T.unsafe(nil)); end + + # make_creds proxies the construction of a credentials instance + # + # By default, it calls #new on the current class, but this behaviour can + # be modified, allowing different instances to be created. + # + # source://googleauth//lib/googleauth/credentials_loader.rb#56 + def make_creds(*args); end + + private + + # source://googleauth//lib/googleauth/credentials_loader.rb#172 + def authorized_user_env_vars?; end + + # source://googleauth//lib/googleauth/credentials_loader.rb#158 + def interpret_options(scope, options); end + + # Finds project_id from gcloud CLI configuration + # + # source://googleauth//lib/googleauth/credentials_loader.rb#146 + def load_gcloud_project_id; end + + # source://googleauth//lib/googleauth/credentials_loader.rb#167 + def service_account_env_vars?; end + + class << self + # Finds project_id from gcloud CLI configuration + # + # source://googleauth//lib/googleauth/credentials_loader.rb#146 + def load_gcloud_project_id; end + end +end + +# source://googleauth//lib/googleauth/credentials_loader.rb#31 +Google::Auth::CredentialsLoader::ACCOUNT_TYPE_VAR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#35 +Google::Auth::CredentialsLoader::AWS_ACCESS_KEY_ID_VAR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#34 +Google::Auth::CredentialsLoader::AWS_DEFAULT_REGION_VAR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#33 +Google::Auth::CredentialsLoader::AWS_REGION_VAR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#36 +Google::Auth::CredentialsLoader::AWS_SECRET_ACCESS_KEY_VAR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#37 +Google::Auth::CredentialsLoader::AWS_SESSION_TOKEN_VAR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#27 +Google::Auth::CredentialsLoader::CLIENT_EMAIL_VAR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#28 +Google::Auth::CredentialsLoader::CLIENT_ID_VAR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#29 +Google::Auth::CredentialsLoader::CLIENT_SECRET_VAR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#49 +Google::Auth::CredentialsLoader::CLOUD_SDK_CLIENT_ID = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#42 +Google::Auth::CredentialsLoader::CREDENTIALS_FILE_NAME = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#25 +Google::Auth::CredentialsLoader::ENV_VAR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#40 +Google::Auth::CredentialsLoader::GCLOUD_CONFIG_COMMAND = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#38 +Google::Auth::CredentialsLoader::GCLOUD_POSIX_COMMAND = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#39 +Google::Auth::CredentialsLoader::GCLOUD_WINDOWS_COMMAND = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#43 +Google::Auth::CredentialsLoader::NOT_FOUND_ERROR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#26 +Google::Auth::CredentialsLoader::PRIVATE_KEY_VAR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#32 +Google::Auth::CredentialsLoader::PROJECT_ID_VAR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#30 +Google::Auth::CredentialsLoader::REFRESH_TOKEN_VAR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#47 +Google::Auth::CredentialsLoader::SYSTEM_DEFAULT_ERROR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#45 +Google::Auth::CredentialsLoader::WELL_KNOWN_ERROR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/credentials_loader.rb#44 +Google::Auth::CredentialsLoader::WELL_KNOWN_PATH = T.let(T.unsafe(nil), String) + +# DefaultCredentials is used to preload the credentials file, to determine +# which type of credentials should be loaded. +# +# source://googleauth//lib/googleauth/default_credentials.rb#29 +class Google::Auth::DefaultCredentials + extend ::Google::Auth::CredentialsLoader + + class << self + # Reads the input json and determines which creds class to use. + # + # source://googleauth//lib/googleauth/default_credentials.rb#63 + def determine_creds_class(json_key_io); end + + # override CredentialsLoader#make_creds to use the class determined by + # loading the json. + # + # source://googleauth//lib/googleauth/default_credentials.rb#34 + def make_creds(options = T.unsafe(nil)); end + + # source://googleauth//lib/googleauth/default_credentials.rb#46 + def read_creds; end + end +end + +# Authenticates requests using External Account credentials, such +# as those provided by the AWS provider. +# +# source://googleauth//lib/googleauth/external_account/base_credentials.rb#23 +module Google::Auth::ExternalAccount; end + +# This module handles the retrieval of credentials from Google Cloud by utilizing the AWS EC2 metadata service and +# then exchanging the credentials for a short-lived Google Cloud access token. +# +# source://googleauth//lib/googleauth/external_account/aws_credentials.rb#26 +class Google::Auth::ExternalAccount::AwsCredentials + include ::Google::Auth::BaseClient + include ::Google::Auth::Helpers::Connection + include ::Google::Auth::ExternalAccount::BaseCredentials + include ::Google::Auth::ExternalAccount::ExternalAccountUtils + extend ::Google::Auth::CredentialsLoader + + # @return [AwsCredentials] a new instance of AwsCredentials + # + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#37 + def initialize(options = T.unsafe(nil)); end + + # Will always be nil, but method still gets used. + # + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#35 + def client_id; end + + # Retrieves the subject token using the credential_source object. + # The subject token is a serialized [AWS GetCallerIdentity signed request]( + # https://cloud.google.com/iam/docs/access-resources-aws#exchange-token). + # + # The logic is summarized as: + # + # Retrieve the AWS region from the AWS_REGION or AWS_DEFAULT_REGION environment variable or from the AWS + # metadata server availability-zone if not found in the environment variable. + # + # Check AWS credentials in environment variables. If not found, retrieve from the AWS metadata server + # security-credentials endpoint. + # + # When retrieving AWS credentials from the metadata server security-credentials endpoint, the AWS role needs to + # be determined by # calling the security-credentials endpoint without any argument. + # Then the credentials can be retrieved via: security-credentials/role_name + # + # Generate the signed request to AWS STS GetCallerIdentity action. + # + # Inject x-goog-cloud-target-resource into header and serialize the signed request. + # This will be the subject-token to pass to GCP STS. + # + # @return [string] The retrieved subject token. + # + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#78 + def retrieve_subject_token!; end + + private + + # Retrieves the AWS role currently attached to the current AWS workload by querying the AWS metadata server. + # This is needed for the AWS metadata server security credentials endpoint in order to retrieve the AWS security + # credentials needed to sign requests to AWS APIs. + # + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#184 + def fetch_metadata_role_name; end + + # Retrieves the AWS security credentials required for signing AWS requests from the AWS metadata server. + # + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#193 + def fetch_metadata_security_credentials(role_name); end + + # Retrieves the AWS security credentials required for signing AWS requests from either the AWS security + # credentials environment variables or from the AWS metadata server. + # + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#157 + def fetch_security_credentials; end + + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#130 + def get_aws_resource(url, name, data: T.unsafe(nil), headers: T.unsafe(nil)); end + + # @raise [Faraday::Error] + # + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#109 + def imdsv2_session_token; end + + # @return [Boolean] + # + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#125 + def imdsv2_session_token_invalid?; end + + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#198 + def region; end + + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#147 + def uri_escape(string); end +end + +# Constant for imdsv2 session token expiration in seconds +# +# source://googleauth//lib/googleauth/external_account/aws_credentials.rb#28 +Google::Auth::ExternalAccount::AwsCredentials::IMDSV2_TOKEN_EXPIRATION_IN_SECONDS = T.let(T.unsafe(nil), Integer) + +# Implements an AWS request signer based on the AWS Signature Version 4 signing process. +# https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html +# +# source://googleauth//lib/googleauth/external_account/aws_credentials.rb#213 +class Google::Auth::ExternalAccount::AwsRequestSigner + # Instantiates an AWS request signer used to compute authenticated signed requests to AWS APIs based on the AWS + # Signature Version 4 signing process. + # + # @param region_name [string] The AWS region to use. + # @return [AwsRequestSigner] a new instance of AwsRequestSigner + # + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#219 + def initialize(region_name); end + + # Generates the signed request for the provided HTTP request for calling + # an AWS API. This follows the steps described at: + # https://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html + # + # @param aws_security_credentials [Hash[string, string]] A dictionary containing the AWS security credentials. + # @param url [string] The AWS service URL containing the canonical URI and query string. + # @param method [string] The HTTP method used to call this API. + # @return [hash{string => string}] The AWS signed request dictionary object. + # + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#237 + def generate_signed_request(aws_credentials, original_request); end + + private + + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#267 + def aws_headers(aws_credentials, original_request, datetime); end + + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#278 + def build_authorization_header(headers, sts, aws_credentials, service_name, date); end + + # Generates the canonical query string given a raw query string. + # Logic is based on + # https://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html + # Code is from the AWS SDK for Ruby + # https://github.com/aws/aws-sdk-ruby/blob/0ac3d0a393ed216290bfb5f0383380376f6fb1f1/gems/aws-sigv4/lib/aws-sigv4/signer.rb#L532 + # + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#357 + def build_canonical_querystring(query); end + + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#335 + def canonical_request(http_method, uri, headers, content_sha256); end + + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#304 + def credential(access_key_id, date, service); end + + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#308 + def credential_scope(date, service); end + + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#300 + def hexhmac(key, value); end + + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#296 + def hmac(key, value); end + + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#326 + def host(uri); end + + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#348 + def sha256_hexdigest(string); end + + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#287 + def signature(secret_access_key, date, string_to_sign, service); end + + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#317 + def string_to_sign(datetime, canonical_request, service); end +end + +# Authenticates requests using External Account credentials, such +# as those provided by the AWS provider or OIDC provider like Azure, etc. +# +# source://googleauth//lib/googleauth/external_account/base_credentials.rb#26 +module Google::Auth::ExternalAccount::BaseCredentials + include ::Google::Auth::BaseClient + include ::Google::Auth::Helpers::Connection + + # Returns the value of attribute access_token. + # + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#44 + def access_token; end + + # Sets the attribute access_token + # + # @param value the value to set the attribute access_token to. + # + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#44 + def access_token=(_arg0); end + + # Returns the value of attribute expires_at. + # + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#43 + def expires_at; end + + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#52 + def expires_at=(new_expires_at); end + + # @return [Boolean] + # + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#47 + def expires_within?(seconds); end + + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#56 + def fetch_access_token!(_options = T.unsafe(nil)); end + + # Returns whether the credentials represent a workforce pool (True) or + # workload (False) based on the credentials' audience. + # + # @return [bool] true if the credentials represent a workforce pool. + # false if they represent a workload. + # + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#88 + def is_workforce_pool?; end + + # Retrieves the subject token using the credential_source object. + # + # @raise [NotImplementedError] + # @return [string] The retrieved subject token. + # + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#78 + def retrieve_subject_token!; end + + # Returns the value of attribute universe_domain. + # + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#45 + def universe_domain; end + + # Sets the attribute universe_domain + # + # @param value the value to set the attribute universe_domain to. + # + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#45 + def universe_domain=(_arg0); end + + private + + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#99 + def base_setup(options); end + + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#127 + def exchange_token; end + + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#143 + def get_impersonated_access_token(token, _options = T.unsafe(nil)); end + + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#94 + def token_type; end +end + +# External account JSON type identifier. +# +# source://googleauth//lib/googleauth/external_account/base_credentials.rb#32 +Google::Auth::ExternalAccount::BaseCredentials::EXTERNAL_ACCOUNT_JSON_TYPE = T.let(T.unsafe(nil), String) + +# Default IAM_SCOPE +# +# source://googleauth//lib/googleauth/external_account/base_credentials.rb#38 +Google::Auth::ExternalAccount::BaseCredentials::IAM_SCOPE = T.let(T.unsafe(nil), Array) + +# The token exchange grant_type used for exchanging credentials. +# +# source://googleauth//lib/googleauth/external_account/base_credentials.rb#34 +Google::Auth::ExternalAccount::BaseCredentials::STS_GRANT_TYPE = T.let(T.unsafe(nil), String) + +# The token exchange requested_token_type. This is always an access_token. +# +# source://googleauth//lib/googleauth/external_account/base_credentials.rb#36 +Google::Auth::ExternalAccount::BaseCredentials::STS_REQUESTED_TOKEN_TYPE = T.let(T.unsafe(nil), String) + +# Provides an entrypoint for all Exernal Account credential classes. +# +# source://googleauth//lib/googleauth/external_account.rb#30 +class Google::Auth::ExternalAccount::Credentials + class << self + # Create a ExternalAccount::Credentials + # + # @param json_key_io [IO] an IO from which the JSON key can be read + # @param scope [String, Array, nil] the scope(s) to access + # @raise [MISSING_CREDENTIAL_SOURCE] + # + # source://googleauth//lib/googleauth/external_account.rb#40 + def make_creds(options = T.unsafe(nil)); end + + # Reads the required fields from the JSON. + # + # source://googleauth//lib/googleauth/external_account.rb#55 + def read_json_key(json_key_io); end + + private + + # source://googleauth//lib/googleauth/external_account.rb#69 + def make_aws_credentials(user_creds, scope); end + + # @raise [INVALID_EXTERNAL_ACCOUNT_TYPE] + # + # source://googleauth//lib/googleauth/external_account.rb#81 + def make_external_account_credentials(user_creds); end + end +end + +# The subject token type used for AWS external_account credentials. +# +# source://googleauth//lib/googleauth/external_account.rb#32 +Google::Auth::ExternalAccount::Credentials::AWS_SUBJECT_TOKEN_TYPE = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/external_account.rb#34 +Google::Auth::ExternalAccount::Credentials::INVALID_EXTERNAL_ACCOUNT_TYPE = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/external_account.rb#33 +Google::Auth::ExternalAccount::Credentials::MISSING_CREDENTIAL_SOURCE = T.let(T.unsafe(nil), String) + +# Authenticates requests using External Account credentials, such +# as those provided by the AWS provider or OIDC provider like Azure, etc. +# +# source://googleauth//lib/googleauth/external_account/external_account_utils.rb#26 +module Google::Auth::ExternalAccount::ExternalAccountUtils + # source://googleauth//lib/googleauth/external_account/external_account_utils.rb#77 + def normalize_timestamp(time); end + + # Retrieves the project ID corresponding to the workload identity or workforce pool. + # For workforce pool credentials, it returns the project ID corresponding to the workforce_pool_user_project. + # When not determinable, None is returned. + # + # The resource may not have permission (resourcemanager.projects.get) to + # call this API or the required scopes may not be selected: + # https://cloud.google.com/resource-manager/reference/rest/v1/projects/get#authorization-scopes + # + # @return [string, nil] The project ID corresponding to the workload identity pool or workforce pool if determinable. + # + # source://googleauth//lib/googleauth/external_account/external_account_utils.rb#42 + def project_id; end + + # Retrieve the project number corresponding to workload identity pool + # STS audience pattern: + # `//iam.googleapis.com/projects/$PROJECT_NUMBER/locations/...` + # + # @return [string, nil] + # + # source://googleauth//lib/googleauth/external_account/external_account_utils.rb#70 + def project_number; end + + # source://googleauth//lib/googleauth/external_account/external_account_utils.rb#90 + def service_account_email; end +end + +# Cloud resource manager URL used to retrieve project information. +# +# source://googleauth//lib/googleauth/external_account/external_account_utils.rb#28 +Google::Auth::ExternalAccount::ExternalAccountUtils::CLOUD_RESOURCE_MANAGER = T.let(T.unsafe(nil), String) + +# This module handles the retrieval of credentials from Google Cloud by utilizing the any 3PI +# provider then exchanging the credentials for a short-lived Google Cloud access token. +# +# source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#25 +class Google::Auth::ExternalAccount::IdentityPoolCredentials + include ::Google::Auth::BaseClient + include ::Google::Auth::Helpers::Connection + include ::Google::Auth::ExternalAccount::BaseCredentials + include ::Google::Auth::ExternalAccount::ExternalAccountUtils + extend ::Google::Auth::CredentialsLoader + + # Initialize from options map. + # + # @param audience [string] + # @param credential_source [hash{symbol => value}] credential_source is a hash that contains either source file or url. + # credential_source_format is either text or json. To define how we parse the credential response. + # @return [IdentityPoolCredentials] a new instance of IdentityPoolCredentials + # + # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#40 + def initialize(options = T.unsafe(nil)); end + + # Will always be nil, but method still gets used. + # + # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#31 + def client_id; end + + # Implementation of BaseCredentials retrieve_subject_token! + # + # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#54 + def retrieve_subject_token!; end + + private + + # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#98 + def file_data; end + + # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#94 + def token_data; end + + # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#104 + def url_data; end + + # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#73 + def validate_credential_source; end +end + +# This module handles the retrieval of credentials from Google Cloud by utilizing the any 3PI +# provider then exchanging the credentials for a short-lived Google Cloud access token. +# +# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#26 +class Google::Auth::ExternalAccount::PluggableAuthCredentials + include ::Google::Auth::BaseClient + include ::Google::Auth::Helpers::Connection + include ::Google::Auth::ExternalAccount::BaseCredentials + include ::Google::Auth::ExternalAccount::ExternalAccountUtils + extend ::Google::Auth::CredentialsLoader + + # Initialize from options map. + # + # @param audience [string] + # @param credential_source [hash{symbol => value}] credential_source is a hash that contains either source file or url. + # credential_source_format is either text or json. To define how we parse the credential response. + # @return [PluggableAuthCredentials] a new instance of PluggableAuthCredentials + # + # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#49 + def initialize(options = T.unsafe(nil)); end + + # Will always be nil, but method still gets used. + # + # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#40 + def client_id; end + + # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#69 + def retrieve_subject_token!; end + + private + + # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#130 + def inject_environment_variables; end + + # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#87 + def load_subject_token_from_output_file; end + + # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#105 + def parse_subject_token(response); end + + # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#144 + def subprocess_with_timeout(environment_vars, command, timeout_seconds); end + + # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#122 + def validate_response_schema(response); end +end + +# constant for pluggable auth enablement in environment variable. +# +# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#28 +Google::Auth::ExternalAccount::PluggableAuthCredentials::ENABLE_PLUGGABLE_ENV = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#29 +Google::Auth::ExternalAccount::PluggableAuthCredentials::EXECUTABLE_SUPPORTED_MAX_VERSION = T.let(T.unsafe(nil), Integer) + +# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#30 +Google::Auth::ExternalAccount::PluggableAuthCredentials::EXECUTABLE_TIMEOUT_MILLIS_DEFAULT = T.let(T.unsafe(nil), Integer) + +# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#31 +Google::Auth::ExternalAccount::PluggableAuthCredentials::EXECUTABLE_TIMEOUT_MILLIS_LOWER_BOUND = T.let(T.unsafe(nil), Integer) + +# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#32 +Google::Auth::ExternalAccount::PluggableAuthCredentials::EXECUTABLE_TIMEOUT_MILLIS_UPPER_BOUND = T.let(T.unsafe(nil), Integer) + +# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#33 +Google::Auth::ExternalAccount::PluggableAuthCredentials::ID_TOKEN_TYPE = T.let(T.unsafe(nil), Array) + +# Extends Signet::OAuth2::Client so that the auth token is obtained from +# the GCE metadata server. +# +# source://googleauth//lib/googleauth/compute_engine.rb#35 +class Google::Auth::GCECredentials < ::Signet::OAuth2::Client + # Construct a GCECredentials + # + # @return [GCECredentials] a new instance of GCECredentials + # + # source://googleauth//lib/googleauth/compute_engine.rb#84 + def initialize(options = T.unsafe(nil)); end + + # Overrides the super class method to change how access tokens are + # fetched. + # + # source://googleauth//lib/googleauth/compute_engine.rb#93 + def fetch_access_token(_options = T.unsafe(nil)); end + + private + + # source://googleauth//lib/googleauth/compute_engine.rb#123 + def build_token_hash(body, content_type, retrieval_time); end + + class << self + # @private Unused and deprecated + # + # source://googleauth//lib/googleauth/compute_engine.rb#60 + def compute_auth_token_uri; end + + # @private Unused and deprecated + # + # source://googleauth//lib/googleauth/compute_engine.rb#55 + def compute_check_uri; end + + # @private Unused and deprecated + # + # source://googleauth//lib/googleauth/compute_engine.rb#65 + def compute_id_token_uri; end + + # @private Unused and deprecated + # + # source://googleauth//lib/googleauth/compute_engine.rb#50 + def metadata_host; end + + # Detect if this appear to be a GCE instance, by checking if metadata + # is available. + # The parameters are deprecated and unused. + # + # @return [Boolean] + # + # source://googleauth//lib/googleauth/compute_engine.rb#72 + def on_gce?(_options = T.unsafe(nil), _reload = T.unsafe(nil)); end + + # source://googleauth//lib/googleauth/compute_engine.rb#76 + def reset_cache; end + + # source://googleauth//lib/googleauth/compute_engine.rb#76 + def unmemoize_all; end + end +end + +# @private Unused and deprecated but retained to prevent breaking changes +# +# source://googleauth//lib/googleauth/compute_engine.rb#40 +Google::Auth::GCECredentials::COMPUTE_AUTH_TOKEN_URI = T.let(T.unsafe(nil), String) + +# @private Unused and deprecated but retained to prevent breaking changes +# +# source://googleauth//lib/googleauth/compute_engine.rb#46 +Google::Auth::GCECredentials::COMPUTE_CHECK_URI = T.let(T.unsafe(nil), String) + +# @private Unused and deprecated but retained to prevent breaking changes +# +# source://googleauth//lib/googleauth/compute_engine.rb#43 +Google::Auth::GCECredentials::COMPUTE_ID_TOKEN_URI = T.let(T.unsafe(nil), String) + +# @private Unused and deprecated but retained to prevent breaking changes +# +# source://googleauth//lib/googleauth/compute_engine.rb#37 +Google::Auth::GCECredentials::DEFAULT_METADATA_HOST = T.let(T.unsafe(nil), String) + +# Helpers provides utility methods for Google::Auth. +# +# source://googleauth//lib/googleauth/helpers/connection.rb#22 +module Google::Auth::Helpers; end + +# Connection provides a Faraday connection for use with Google::Auth. +# +# source://googleauth//lib/googleauth/helpers/connection.rb#24 +module Google::Auth::Helpers::Connection + private + + # source://googleauth//lib/googleauth/helpers/connection.rb#29 + def connection; end + + # source://googleauth//lib/googleauth/helpers/connection.rb#27 + def default_connection; end + + # source://googleauth//lib/googleauth/helpers/connection.rb#27 + def default_connection=(_arg0); end + + class << self + # source://googleauth//lib/googleauth/helpers/connection.rb#29 + def connection; end + end +end + +# ## Verifying Google ID tokens +# +# This module verifies ID tokens issued by Google. This can be used to +# authenticate signed-in users using OpenID Connect. See +# https://developers.google.com/identity/sign-in/web/backend-auth for more +# information. +# +# ### Basic usage +# +# To verify an ID token issued by Google accounts: +# +# payload = Google::Auth::IDTokens.verify_oidc the_token, +# aud: "my-app-client-id" +# +# If verification succeeds, you will receive the token's payload as a hash. +# If verification fails, an exception (normally a subclass of +# {Google::Auth::IDTokens::VerificationError}) will be raised. +# +# To verify an ID token issued by the Google identity-aware proxy (IAP): +# +# payload = Google::Auth::IDTokens.verify_iap the_token, +# aud: "my-app-client-id" +# +# These methods will automatically download and cache the Google public +# keys necessary to verify these tokens. They will also automatically +# verify the issuer (`iss`) field for their respective types of ID tokens. +# +# ### Advanced usage +# +# If you want to provide your own public keys, either by pointing at a +# custom URI or by providing the key data directly, use the Verifier class +# and pass in a key source. +# +# To point to a custom URI that returns a JWK set: +# +# source = Google::Auth::IDTokens::JwkHttpKeySource.new "https://example.com/jwk" +# verifier = Google::Auth::IDTokens::Verifier.new key_source: source +# payload = verifier.verify the_token, aud: "my-app-client-id" +# +# To provide key data directly: +# +# jwk_data = { +# keys: [ +# { +# alg: "ES256", +# crv: "P-256", +# kid: "LYyP2g", +# kty: "EC", +# use: "sig", +# x: "SlXFFkJ3JxMsXyXNrqzE3ozl_0913PmNbccLLWfeQFU", +# y: "GLSahrZfBErmMUcHP0MGaeVnJdBwquhrhQ8eP05NfCI" +# } +# ] +# } +# source = Google::Auth::IDTokens::StaticKeySource.from_jwk_set jwk_data +# verifier = Google::Auth::IDTokens::Verifier key_source: source +# payload = verifier.verify the_token, aud: "my-app-client-id" +# +# source://googleauth//lib/googleauth/id_tokens/errors.rb#20 +module Google::Auth::IDTokens + class << self + # Reset all convenience key sources. Used for testing. + # + # @private + # + # source://googleauth//lib/googleauth/id_tokens.rb#136 + def forget_sources!; end + + # The key source providing public keys that can be used to verify + # ID tokens issued by Google IAP. + # + # @return [Google::Auth::IDTokens::JwkHttpKeySource] + # + # source://googleauth//lib/googleauth/id_tokens.rb#128 + def iap_key_source; end + + # The key source providing public keys that can be used to verify + # ID tokens issued by Google OIDC. + # + # @return [Google::Auth::IDTokens::JwkHttpKeySource] + # + # source://googleauth//lib/googleauth/id_tokens.rb#118 + def oidc_key_source; end + + # A convenience method that verifies a token allegedly issued by Google + # IAP. + # + # @param token [String] The ID token to verify + # @param aud [String, Array, nil] The expected audience. At least + # one `aud` field in the token must match at least one of the + # provided audiences, or the verification will fail with + # {Google::Auth::IDToken::AudienceMismatchError}. If `nil` (the + # default), no audience checking is performed. + # @param azp [String, Array, nil] The expected authorized party + # (azp). At least one `azp` field in the token must match at least + # one of the provided values, or the verification will fail with + # {Google::Auth::IDToken::AuthorizedPartyMismatchError}. If `nil` + # (the default), no azp checking is performed. + # @param iss [String, Array, nil] The expected issuer. At least + # one `iss` field in the token must match at least one of the + # provided issuers, or the verification will fail with + # {Google::Auth::IDToken::IssuerMismatchError}. If `nil`, no issuer + # checking is performed. Default is to check against {IAP_ISSUERS}. + # @raise [KeySourceError] if the key source failed to obtain public keys + # @raise [VerificationError] if the token verification failed. + # Additional data may be available in the error subclass and message. + # @return [Hash] The decoded token payload. + # + # source://googleauth//lib/googleauth/id_tokens.rb#205 + def verify_iap(token, aud: T.unsafe(nil), azp: T.unsafe(nil), iss: T.unsafe(nil)); end + + # A convenience method that verifies a token allegedly issued by Google + # OIDC. + # + # @param token [String] The ID token to verify + # @param aud [String, Array, nil] The expected audience. At least + # one `aud` field in the token must match at least one of the + # provided audiences, or the verification will fail with + # {Google::Auth::IDToken::AudienceMismatchError}. If `nil` (the + # default), no audience checking is performed. + # @param azp [String, Array, nil] The expected authorized party + # (azp). At least one `azp` field in the token must match at least + # one of the provided values, or the verification will fail with + # {Google::Auth::IDToken::AuthorizedPartyMismatchError}. If `nil` + # (the default), no azp checking is performed. + # @param iss [String, Array, nil] The expected issuer. At least + # one `iss` field in the token must match at least one of the + # provided issuers, or the verification will fail with + # {Google::Auth::IDToken::IssuerMismatchError}. If `nil`, no issuer + # checking is performed. Default is to check against {OIDC_ISSUERS}. + # @raise [KeySourceError] if the key source failed to obtain public keys + # @raise [VerificationError] if the token verification failed. + # Additional data may be available in the error subclass and message. + # @return [Hash] The decoded token payload. + # + # source://googleauth//lib/googleauth/id_tokens.rb#167 + def verify_oidc(token, aud: T.unsafe(nil), azp: T.unsafe(nil), iss: T.unsafe(nil)); end + end +end + +# A key source that aggregates other key sources. This means it will +# aggregate the keys provided by its constituent sources. Additionally, +# when asked to refresh, it will refresh all its constituent sources. +# +# source://googleauth//lib/googleauth/id_tokens/key_sources.rb#351 +class Google::Auth::IDTokens::AggregateKeySource + # Create a key source that aggregates other key sources. + # + # @param sources [Array] The key sources to aggregate. + # @return [AggregateKeySource] a new instance of AggregateKeySource + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#357 + def initialize(sources); end + + # Return the current keys, without attempting to refresh. + # + # @return [Array] + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#366 + def current_keys; end + + # Attempt to refresh keys and return the new keys. + # + # @raise [KeySourceError] if key retrieval failed. + # @return [Array] + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#376 + def refresh_keys; end +end + +# Failed to verify a token because its audience did not match. +# +# source://googleauth//lib/googleauth/id_tokens/errors.rb#49 +class Google::Auth::IDTokens::AudienceMismatchError < ::Google::Auth::IDTokens::VerificationError; end + +# Failed to verify a token because its authorized party did not match. +# +# source://googleauth//lib/googleauth/id_tokens/errors.rb#54 +class Google::Auth::IDTokens::AuthorizedPartyMismatchError < ::Google::Auth::IDTokens::VerificationError; end + +# Failed to verify a token because it is expired. +# +# source://googleauth//lib/googleauth/id_tokens/errors.rb#34 +class Google::Auth::IDTokens::ExpiredTokenError < ::Google::Auth::IDTokens::VerificationError; end + +# A base key source that downloads keys from a URI. Subclasses should +# override {HttpKeySource#interpret_json} to parse the response. +# +# source://googleauth//lib/googleauth/id_tokens/key_sources.rb#222 +class Google::Auth::IDTokens::HttpKeySource + # Create an HTTP key source. + # + # @param uri [String, URI] The URI from which to download keys. + # @param retry_interval [Integer, nil] Override the retry interval in + # seconds. This is the minimum time between retries of failed key + # downloads. + # @return [HttpKeySource] a new instance of HttpKeySource + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#238 + def initialize(uri, retry_interval: T.unsafe(nil)); end + + # Return the current keys, without attempting to re-download. + # + # @return [Array] + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#257 + def current_keys; end + + # Attempt to re-download keys (if the retry interval has expired) and + # return the new keys. + # + # @raise [KeySourceError] if key retrieval failed. + # @return [Array] + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#266 + def refresh_keys; end + + # The URI from which to download keys. + # + # @return [Array] + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#250 + def uri; end + + protected + + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#286 + def interpret_json(_data); end +end + +# The default interval between retries in seconds (3600s = 1hr). +# +# @return [Integer] +# +# source://googleauth//lib/googleauth/id_tokens/key_sources.rb#228 +Google::Auth::IDTokens::HttpKeySource::DEFAULT_RETRY_INTERVAL = T.let(T.unsafe(nil), Integer) + +# A list of issuers expected for Google IAP-issued tokens. +# +# @return [Array] +# +# source://googleauth//lib/googleauth/id_tokens.rb#95 +Google::Auth::IDTokens::IAP_ISSUERS = T.let(T.unsafe(nil), Array) + +# The URL for Google IAP public keys +# +# @return [String] +# +# source://googleauth//lib/googleauth/id_tokens.rb#109 +Google::Auth::IDTokens::IAP_JWK_URL = T.let(T.unsafe(nil), String) + +# Failed to verify a token because its issuer did not match. +# +# source://googleauth//lib/googleauth/id_tokens/errors.rb#44 +class Google::Auth::IDTokens::IssuerMismatchError < ::Google::Auth::IDTokens::VerificationError; end + +# A key source that downloads a JWK set. +# +# source://googleauth//lib/googleauth/id_tokens/key_sources.rb#326 +class Google::Auth::IDTokens::JwkHttpKeySource < ::Google::Auth::IDTokens::HttpKeySource + # Create a key source that downloads a JWT Set. + # + # @param uri [String, URI] The URI from which to download keys. + # @param retry_interval [Integer, nil] Override the retry interval in + # seconds. This is the minimum time between retries of failed key + # downloads. + # @return [JwkHttpKeySource] a new instance of JwkHttpKeySource + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#335 + def initialize(uri, retry_interval: T.unsafe(nil)); end + + protected + + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#341 + def interpret_json(data); end +end + +# A public key used for verifying ID tokens. +# +# This includes the public key data, ID, and the algorithm used for +# signature verification. RSA and Elliptical Curve (EC) keys are +# supported. +# +# source://googleauth//lib/googleauth/id_tokens/key_sources.rb#36 +class Google::Auth::IDTokens::KeyInfo + # Create a public key info structure. + # + # @param id [String] The key ID. + # @param key [OpenSSL::PKey::RSA, OpenSSL::PKey::EC] The key itself. + # @param algorithm [String] The algorithm (normally `RS256` or `ES256`) + # @return [KeyInfo] a new instance of KeyInfo + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#44 + def initialize(id: T.unsafe(nil), key: T.unsafe(nil), algorithm: T.unsafe(nil)); end + + # The signature algorithm. (normally `RS256` or `ES256`) + # + # @return [String] + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#66 + def algorithm; end + + # The key ID. + # + # @return [String] + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#54 + def id; end + + # The key itself. + # + # @return [OpenSSL::PKey::RSA, OpenSSL::PKey::EC] + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#60 + def key; end + + class << self + # Create a KeyInfo from a single JWK, which may be given as either a + # hash or an unparsed JSON string. + # + # @param jwk [Hash, String] The JWK specification. + # @raise [KeySourceError] If the key could not be extracted from the + # JWK. + # @return [KeyInfo] + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#78 + def from_jwk(jwk); end + + # Create an array of KeyInfo from a JWK Set, which may be given as + # either a hash or an unparsed JSON string. + # + # @param jwk [Hash, String] The JWK Set specification. + # @raise [KeySourceError] If a key could not be extracted from the + # JWK Set. + # @return [Array] + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#102 + def from_jwk_set(jwk_set); end + + private + + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#111 + def ensure_json_parsed(input); end + + # @raise [KeySourceError] + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#146 + def extract_ec_key(jwk); end + + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#124 + def extract_rsa_key(jwk); end + + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#118 + def symbolize_keys(hash); end + end +end + +# Failed to obtain keys from the key source. +# +# source://googleauth//lib/googleauth/id_tokens/errors.rb#24 +class Google::Auth::IDTokens::KeySourceError < ::StandardError; end + +# The URL for Google OAuth2 V3 public certs +# +# @return [String] +# +# source://googleauth//lib/googleauth/id_tokens.rb#102 +Google::Auth::IDTokens::OAUTH2_V3_CERTS_URL = T.let(T.unsafe(nil), String) + +# A list of issuers expected for Google OIDC-issued tokens. +# +# @return [Array] +# +# source://googleauth//lib/googleauth/id_tokens.rb#88 +Google::Auth::IDTokens::OIDC_ISSUERS = T.let(T.unsafe(nil), Array) + +# Failed to verify a token because its signature did not match. +# +# source://googleauth//lib/googleauth/id_tokens/errors.rb#39 +class Google::Auth::IDTokens::SignatureError < ::Google::Auth::IDTokens::VerificationError; end + +# A key source that contains a static set of keys. +# +# source://googleauth//lib/googleauth/id_tokens/key_sources.rb#173 +class Google::Auth::IDTokens::StaticKeySource + # Create a static key source with the given keys. + # + # @param keys [Array] The keys + # @return [StaticKeySource] a new instance of StaticKeySource + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#179 + def initialize(keys); end + + # Return the current keys. Does not perform any refresh. + # + # @return [Array] + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#188 + def current_keys; end + + # Return the current keys. Does not perform any refresh. + # + # @return [Array] + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#188 + def refresh_keys; end + + class << self + # Create a static key source containing a single key parsed from a + # single JWK, which may be given as either a hash or an unparsed + # JSON string. + # + # @param jwk [Hash, String] The JWK specification. + # @return [StaticKeySource] + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#200 + def from_jwk(jwk); end + + # Create a static key source containing multiple keys parsed from a + # JWK Set, which may be given as either a hash or an unparsed JSON + # string. + # + # @param jwk_set [Hash, String] The JWK Set specification. + # @return [StaticKeySource] + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#212 + def from_jwk_set(jwk_set); end + end +end + +# Failed to verify a token. +# +# source://googleauth//lib/googleauth/id_tokens/errors.rb#29 +class Google::Auth::IDTokens::VerificationError < ::StandardError; end + +# An object that can verify ID tokens. +# +# A verifier maintains a set of default settings, including the key +# source and fields to verify. However, individual verification calls can +# override any of these settings. +# +# source://googleauth//lib/googleauth/id_tokens/verifier.rb#29 +class Google::Auth::IDTokens::Verifier + # Create a verifier. + # + # @param key_source [key source] The default key source to use. All + # verification calls must have a key source, so if no default key + # source is provided here, then calls to {#verify} _must_ provide + # a key source. + # @param aud [String, nil] The default audience (`aud`) check, or `nil` + # for no check. + # @param azp [String, nil] The default authorized party (`azp`) check, + # or `nil` for no check. + # @param iss [String, nil] The default issuer (`iss`) check, or `nil` + # for no check. + # @return [Verifier] a new instance of Verifier + # + # source://googleauth//lib/googleauth/id_tokens/verifier.rb#44 + def initialize(key_source: T.unsafe(nil), aud: T.unsafe(nil), azp: T.unsafe(nil), iss: T.unsafe(nil)); end + + # Verify the given token. + # + # @param token [String] the ID token to verify. + # @param key_source [key source] If given, override the key source. + # @param aud [String, nil] If given, override the `aud` check. + # @param azp [String, nil] If given, override the `azp` check. + # @param iss [String, nil] If given, override the `iss` check. + # @raise [KeySourceError] if the key source failed to obtain public keys + # @raise [VerificationError] if the token verification failed. + # Additional data may be available in the error subclass and message. + # @return [Hash] the decoded payload, if verification succeeded. + # + # source://googleauth//lib/googleauth/id_tokens/verifier.rb#68 + def verify(token, key_source: T.unsafe(nil), aud: T.unsafe(nil), azp: T.unsafe(nil), iss: T.unsafe(nil)); end + + private + + # source://googleauth//lib/googleauth/id_tokens/verifier.rb#91 + def decode_token(token, keys, aud, azp, iss); end + + # source://googleauth//lib/googleauth/id_tokens/verifier.rb#106 + def normalize_and_verify_payload(payload, aud, azp, iss); end +end + +# A key source that downloads X509 certificates. +# Used by the legacy OAuth V1 public certs endpoint. +# +# source://googleauth//lib/googleauth/id_tokens/key_sources.rb#295 +class Google::Auth::IDTokens::X509CertHttpKeySource < ::Google::Auth::IDTokens::HttpKeySource + # Create a key source that downloads X509 certificates. + # + # @param uri [String, URI] The URI from which to download keys. + # @param algorithm [String] The algorithm to use for signature + # verification. Defaults to "`RS256`". + # @param retry_interval [Integer, nil] Override the retry interval in + # seconds. This is the minimum time between retries of failed key + # downloads. + # @return [X509CertHttpKeySource] a new instance of X509CertHttpKeySource + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#306 + def initialize(uri, algorithm: T.unsafe(nil), retry_interval: T.unsafe(nil)); end + + protected + + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#313 + def interpret_json(data); end +end + +# JsonKeyReader contains the behaviour used to read private key and +# client email fields from the service account +# +# source://googleauth//lib/googleauth/json_key_reader.rb#21 +module Google::Auth::JsonKeyReader + # source://googleauth//lib/googleauth/json_key_reader.rb#22 + def read_json_key(json_key_io); end +end + +# source://googleauth//lib/googleauth/application_default.rb#22 +Google::Auth::NOT_FOUND_ERROR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/compute_engine.rb#22 +Google::Auth::NO_METADATA_SERVER_ERROR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/oauth2/sts_client.rb#19 +module Google::Auth::OAuth2; end + +# OAuth 2.0 Token Exchange Spec. +# This module defines a token exchange utility based on the +# [OAuth 2.0 Token Exchange](https://tools.ietf.org/html/rfc8693) spec. This will be mainly +# used to exchange external credentials for GCP access tokens in workload identity pools to +# access Google APIs. +# The implementation will support various types of client authentication as allowed in the spec. +# +# A deviation on the spec will be for additional Google specific options that cannot be easily +# mapped to parameters defined in the RFC. +# The returned dictionary response will be based on the [rfc8693 section 2.2.1] +# (https://tools.ietf.org/html/rfc8693#section-2.2.1) spec JSON response. +# +# source://googleauth//lib/googleauth/oauth2/sts_client.rb#32 +class Google::Auth::OAuth2::STSClient + include ::Google::Auth::Helpers::Connection + + # Create a new instance of the STSClient. + # + # @param token_exchange_endpoint [String] The token exchange endpoint. + # @return [STSClient] a new instance of STSClient + # + # source://googleauth//lib/googleauth/oauth2/sts_client.rb#41 + def initialize(options = T.unsafe(nil)); end + + # Exchanges the provided token for another type of token based on the + # rfc8693 spec + # + # A callable faraday instance used to make HTTP requests. + # + # @param connection [Faraday instance] + # @param grant_type [String] The OAuth 2.0 token exchange grant type. + # @param subject_token [String] The OAuth 2.0 token exchange subject token. + # @param subject_token_type [String] The OAuth 2.0 token exchange subject token type. + # @param resource [String] The optional OAuth 2.0 token exchange resource field. + # @param audience [String] The optional OAuth 2.0 token exchange audience field. + # @param scopes [Array] The optional list of scopes to use. + # @param requested_token_type [String] The optional OAuth 2.0 token exchange requested token type. + # @param additional_headers [Hash] : + # The optional additional headers to pass to the token exchange endpoint. + # @return [Hash] A hash containing the token exchange response. + # + # source://googleauth//lib/googleauth/oauth2/sts_client.rb#70 + def exchange_token(options = T.unsafe(nil)); end + + private + + # source://googleauth//lib/googleauth/oauth2/sts_client.rb#92 + def make_request(options = T.unsafe(nil)); end +end + +# source://googleauth//lib/googleauth/oauth2/sts_client.rb#35 +Google::Auth::OAuth2::STSClient::URLENCODED_HEADERS = T.let(T.unsafe(nil), Hash) + +# Small utility for normalizing scopes into canonical form. +# +# The canonical form of scopes is as an array of strings, each in the form +# of a full URL. This utility converts space-delimited scope strings into +# this form, and handles a small number of common aliases. +# +# This is used by UserRefreshCredentials to verify that a credential grants +# a requested scope. +# +# source://googleauth//lib/googleauth/scope_util.rb#31 +module Google::Auth::ScopeUtil + class << self + # Ensure the input is an array. If a single string is passed in, splits + # it via whitespace. Does not interpret aliases. + # + # @param scope [String, Array] Input scope(s) + # @raise ArgumentError If the input is not a string or array of strings + # @return [Array] Always an array of strings + # + # source://googleauth//lib/googleauth/scope_util.rb#62 + def as_array(scope); end + + # Normalize the input, which may be an array of scopes or a whitespace- + # delimited scope string. The output is always an array, even if a single + # scope is input. + # + # @param scope [String, Array] Input scope(s) + # @return [Array] An array of scopes in canonical form. + # + # source://googleauth//lib/googleauth/scope_util.rb#49 + def normalize(scope); end + end +end + +# Aliases understood by this utility +# +# source://googleauth//lib/googleauth/scope_util.rb#35 +Google::Auth::ScopeUtil::ALIASES = T.let(T.unsafe(nil), Hash) + +# Authenticates requests using Google's Service Account credentials via an +# OAuth access token. +# +# This class allows authorizing requests for service accounts directly +# from credentials from a json key file downloaded from the developer +# console (via 'Generate new Json Key'). +# +# cf [Application Default Credentials](https://cloud.google.com/docs/authentication/production) +# +# source://googleauth//lib/googleauth/service_account.rb#34 +class Google::Auth::ServiceAccountCredentials < ::Signet::OAuth2::Client + extend ::Google::Auth::CredentialsLoader + extend ::Google::Auth::JsonKeyReader + + # @return [ServiceAccountCredentials] a new instance of ServiceAccountCredentials + # + # source://googleauth//lib/googleauth/service_account.rb#92 + def initialize(options = T.unsafe(nil)); end + + # Extends the base class to use a transient + # ServiceAccountJwtHeaderCredentials for certain cases. + # + # source://googleauth//lib/googleauth/service_account.rb#101 + def apply!(a_hash, opts = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://googleauth//lib/googleauth/service_account.rb#41 + def enable_self_signed_jwt?; end + + # Modifies this logic so it also requires self-signed-jwt to be disabled + # + # @return [Boolean] + # + # source://googleauth//lib/googleauth/service_account.rb#110 + def needs_access_token?; end + + # Returns the value of attribute project_id. + # + # source://googleauth//lib/googleauth/service_account.rb#38 + def project_id; end + + # Returns the value of attribute quota_project_id. + # + # source://googleauth//lib/googleauth/service_account.rb#39 + def quota_project_id; end + + private + + # source://googleauth//lib/googleauth/service_account.rb#116 + def apply_self_signed_jwt!(a_hash); end + + class << self + # Creates a ServiceAccountCredentials. + # + # @param json_key_io [IO] an IO from which the JSON key can be read + # @param scope [string|array|nil] the scope(s) to access + # @raise [ArgumentError] + # + # source://googleauth//lib/googleauth/service_account.rb#53 + def make_creds(options = T.unsafe(nil)); end + + # Handles certain escape sequences that sometimes appear in input. + # Specifically, interprets the "\n" sequence for newline, and removes + # enclosing quotes. + # + # source://googleauth//lib/googleauth/service_account.rb#86 + def unescape(str); end + end +end + +# source://googleauth//lib/googleauth/service_account.rb#35 +Google::Auth::ServiceAccountCredentials::TOKEN_CRED_URI = T.let(T.unsafe(nil), String) + +# Authenticates requests using Google's Service Account credentials via +# JWT Header. +# +# This class allows authorizing requests for service accounts directly +# from credentials from a json key file downloaded from the developer +# console (via 'Generate new Json Key'). It is not part of any OAuth2 +# flow, rather it creates a JWT and sends that as a credential. +# +# cf [Application Default Credentials](https://cloud.google.com/docs/authentication/production) +# +# source://googleauth//lib/googleauth/service_account.rb#139 +class Google::Auth::ServiceAccountJwtHeaderCredentials + extend ::Google::Auth::CredentialsLoader + extend ::Google::Auth::JsonKeyReader + + # Initializes a ServiceAccountJwtHeaderCredentials. + # + # @param json_key_io [IO] an IO from which the JSON key can be read + # @return [ServiceAccountJwtHeaderCredentials] a new instance of ServiceAccountJwtHeaderCredentials + # + # source://googleauth//lib/googleauth/service_account.rb#163 + def initialize(options = T.unsafe(nil)); end + + # Returns a clone of a_hash updated with the authoriation header + # + # source://googleauth//lib/googleauth/service_account.rb#194 + def apply(a_hash, opts = T.unsafe(nil)); end + + # Construct a jwt token if the JWT_AUD_URI key is present in the input + # hash. + # + # The jwt token is used as the value of a 'Bearer '. + # + # source://googleauth//lib/googleauth/service_account.rb#185 + def apply!(a_hash, opts = T.unsafe(nil)); end + + # Duck-types the corresponding method from BaseClient + # + # @return [Boolean] + # + # source://googleauth//lib/googleauth/service_account.rb#226 + def needs_access_token?; end + + # Creates a jwt uri token. + # + # source://googleauth//lib/googleauth/service_account.rb#207 + def new_jwt_token(jwt_aud_uri = T.unsafe(nil), options = T.unsafe(nil)); end + + # Returns the value of attribute project_id. + # + # source://googleauth//lib/googleauth/service_account.rb#147 + def project_id; end + + # Returns the value of attribute quota_project_id. + # + # source://googleauth//lib/googleauth/service_account.rb#148 + def quota_project_id; end + + # Returns the value of attribute universe_domain. + # + # source://googleauth//lib/googleauth/service_account.rb#149 + def universe_domain; end + + # Sets the attribute universe_domain + # + # @param value the value to set the attribute universe_domain to. + # + # source://googleauth//lib/googleauth/service_account.rb#149 + def universe_domain=(_arg0); end + + # Returns a reference to the #apply method, suitable for passing as + # a closure + # + # source://googleauth//lib/googleauth/service_account.rb#202 + def updater_proc; end + + class << self + # Create a ServiceAccountJwtHeaderCredentials. + # + # @param json_key_io [IO] an IO from which the JSON key can be read + # @param scope [string|array|nil] the scope(s) to access + # + # source://googleauth//lib/googleauth/service_account.rb#155 + def make_creds(options = T.unsafe(nil)); end + end +end + +# source://googleauth//lib/googleauth/service_account.rb#141 +Google::Auth::ServiceAccountJwtHeaderCredentials::AUTH_METADATA_KEY = T.let(T.unsafe(nil), Symbol) + +# source://googleauth//lib/googleauth/service_account.rb#144 +Google::Auth::ServiceAccountJwtHeaderCredentials::EXPIRY = T.let(T.unsafe(nil), Integer) + +# source://googleauth//lib/googleauth/service_account.rb#140 +Google::Auth::ServiceAccountJwtHeaderCredentials::JWT_AUD_URI_KEY = T.let(T.unsafe(nil), Symbol) + +# source://googleauth//lib/googleauth/service_account.rb#143 +Google::Auth::ServiceAccountJwtHeaderCredentials::SIGNING_ALGORITHM = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/service_account.rb#142 +Google::Auth::ServiceAccountJwtHeaderCredentials::TOKEN_CRED_URI = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/compute_engine.rb#28 +Google::Auth::UNEXPECTED_ERROR_SUFFIX = T.let(T.unsafe(nil), String) + +# Handles an interactive 3-Legged-OAuth2 (3LO) user consent authorization. +# +# Example usage for a simple command line app: +# +# credentials = authorizer.get_credentials(user_id) +# if credentials.nil? +# url = authorizer.get_authorization_url( +# base_url: OOB_URI) +# puts "Open the following URL in the browser and enter the " + +# "resulting code after authorization" +# puts url +# code = gets +# credentials = authorizer.get_and_store_credentials_from_code( +# user_id: user_id, code: code, base_url: OOB_URI) +# end +# # Credentials ready to use, call APIs +# ... +# +# source://googleauth//lib/googleauth/user_authorizer.rb#40 +class Google::Auth::UserAuthorizer + # Initialize the authorizer + # + # @param client_id [Google::Auth::ClientID] Configured ID & secret for this application + # @param scope [String, Array] Authorization scope to request + # @param token_store [Google::Auth::Stores::TokenStore] Backing storage for persisting user credentials + # @param legacy_callback_uri [String] URL (either absolute or relative) of the auth callback. + # Defaults to '/oauth2callback'. + # @deprecated This field is deprecated. Instead, use the keyword + # argument callback_uri. + # @param code_verifier [String] Random string of 43-128 chars used to verify the key exchange using + # PKCE. + # @raise [NIL_CLIENT_ID_ERROR] + # @return [UserAuthorizer] a new instance of UserAuthorizer + # + # source://googleauth//lib/googleauth/user_authorizer.rb#66 + def initialize(client_id, scope, token_store, legacy_callback_uri = T.unsafe(nil), callback_uri: T.unsafe(nil), code_verifier: T.unsafe(nil)); end + + # The code verifier for PKCE for OAuth 2.0. When set, the + # authorization URI will contain the Code Challenge and Code + # Challenge Method querystring parameters, and the token URI will + # contain the Code Verifier parameter. + # + # @param new_code_erifier [String|nil] + # + # source://googleauth//lib/googleauth/user_authorizer.rb#261 + def code_verifier=(new_code_verifier); end + + # Exchanges an authorization code returned in the oauth callback. + # Additionally, stores the resulting credentials in the token store if + # the exchange is successful. + # + # @param user_id [String] Unique ID of the user for loading/storing credentials. + # @param code [String] The authorization code from the OAuth callback + # @param scope [String, Array] Authorization scope requested. Overrides the instance + # scopes if not nil. + # @param base_url [String] Absolute URL to resolve the configured callback uri against. + # Required if the configured + # callback uri is a relative. + # @return [Google::Auth::UserRefreshCredentials] Credentials if exchange is successful + # + # source://googleauth//lib/googleauth/user_authorizer.rb#213 + def get_and_store_credentials_from_code(options = T.unsafe(nil)); end + + # Build the URL for requesting authorization. + # + # @param login_hint [String] Login hint if need to authorize a specific account. Should be a + # user's email address or unique profile ID. + # @param state [String] Opaque state value to be returned to the oauth callback. + # @param base_url [String] Absolute URL to resolve the configured callback uri against. Required + # if the configured callback uri is a relative. + # @param scope [String, Array] Authorization scope to request. Overrides the instance scopes if not + # nil. + # @param additional_parameters [Hash] Additional query parameters to be added to the authorization URL. + # @return [String] Authorization url + # + # source://googleauth//lib/googleauth/user_authorizer.rb#97 + def get_authorization_url(options = T.unsafe(nil)); end + + # Fetch stored credentials for the user. + # + # @param user_id [String] Unique ID of the user for loading/storing credentials. + # @param scope [Array, String] If specified, only returns credentials that have all + # the requested scopes + # @return [Google::Auth::UserRefreshCredentials] Stored credentials, nil if none present + # + # source://googleauth//lib/googleauth/user_authorizer.rb#136 + def get_credentials(user_id, scope = T.unsafe(nil)); end + + # Exchanges an authorization code returned in the oauth callback + # + # @param user_id [String] Unique ID of the user for loading/storing credentials. + # @param code [String] The authorization code from the OAuth callback + # @param scope [String, Array] Authorization scope requested. Overrides the instance + # scopes if not nil. + # @param base_url [String] Absolute URL to resolve the configured callback uri against. + # Required if the configured + # callback uri is a relative. + # @param additional_parameters [Hash] Additional parameters to be added to the post body of token + # endpoint request. + # @return [Google::Auth::UserRefreshCredentials] Credentials if exchange is successful + # + # source://googleauth//lib/googleauth/user_authorizer.rb#177 + def get_credentials_from_code(options = T.unsafe(nil)); end + + # Revokes a user's credentials. This both revokes the actual + # grant as well as removes the token from the token store. + # + # @param user_id [String] Unique ID of the user for loading/storing credentials. + # + # source://googleauth//lib/googleauth/user_authorizer.rb#223 + def revoke_authorization(user_id); end + + # Store credentials for a user. Generally not required to be + # called directly, but may be used to migrate tokens from one + # store to another. + # + # @param user_id [String] Unique ID of the user for loading/storing credentials. + # @param credentials [Google::Auth::UserRefreshCredentials] Credentials to store. + # + # source://googleauth//lib/googleauth/user_authorizer.rb#243 + def store_credentials(user_id, credentials); end + + private + + # source://googleauth//lib/googleauth/user_authorizer.rb#322 + def code_challenge_method; end + + # source://googleauth//lib/googleauth/user_authorizer.rb#317 + def generate_code_challenge(code_verifier); end + + # Begin watching a credential for refreshes so the access token can be + # saved. + # + # @param user_id [String] Unique ID of the user for loading/storing credentials. + # @param credentials [Google::Auth::UserRefreshCredentials] Credentials to store. + # + # source://googleauth//lib/googleauth/user_authorizer.rb#293 + def monitor_credentials(user_id, credentials); end + + # Resolve the redirect uri against a base. + # + # @param base_url [String] Absolute URL to resolve the callback against if necessary. + # @return [String] Redirect URI + # + # source://googleauth//lib/googleauth/user_authorizer.rb#306 + def redirect_uri_for(base_url); end + + # @param user_id [String] Unique ID of the user for loading/storing credentials. + # @private Fetch stored token with given user_id + # @raise [NIL_USER_ID_ERROR] + # @return [String] The saved token from @token_store + # + # source://googleauth//lib/googleauth/user_authorizer.rb#279 + def stored_token(user_id); end + + # Check if URI is Google's postmessage flow (not a valid redirect_uri by spec, but allowed) + # + # @return [Boolean] + # + # source://googleauth//lib/googleauth/user_authorizer.rb#313 + def uri_is_postmessage?(uri); end + + class << self + # Generate the code verifier needed to be sent while fetching + # authorization URL. + # + # source://googleauth//lib/googleauth/user_authorizer.rb#267 + def generate_code_verifier; end + end +end + +# source://googleauth//lib/googleauth/user_authorizer.rb#41 +Google::Auth::UserAuthorizer::MISMATCHED_CLIENT_ID_ERROR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/user_authorizer.rb#47 +Google::Auth::UserAuthorizer::MISSING_ABSOLUTE_URL_ERROR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/user_authorizer.rb#43 +Google::Auth::UserAuthorizer::NIL_CLIENT_ID_ERROR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/user_authorizer.rb#44 +Google::Auth::UserAuthorizer::NIL_SCOPE_ERROR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/user_authorizer.rb#46 +Google::Auth::UserAuthorizer::NIL_TOKEN_STORE_ERROR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/user_authorizer.rb#45 +Google::Auth::UserAuthorizer::NIL_USER_ID_ERROR = T.let(T.unsafe(nil), String) + +# Authenticates requests using User Refresh credentials. +# +# This class allows authorizing requests from user refresh tokens. +# +# This the end of the result of a 3LO flow. E.g, the end result of +# 'gcloud auth login' saves a file with these contents in well known +# location +# +# cf [Application Default Credentials](https://cloud.google.com/docs/authentication/production) +# +# source://googleauth//lib/googleauth/user_refresh.rb#33 +class Google::Auth::UserRefreshCredentials < ::Signet::OAuth2::Client + extend ::Google::Auth::CredentialsLoader + + # @return [UserRefreshCredentials] a new instance of UserRefreshCredentials + # + # source://googleauth//lib/googleauth/user_refresh.rb#78 + def initialize(options = T.unsafe(nil)); end + + # Verifies that a credential grants the requested scope + # + # @param required_scope [Array, String] Scope to verify + # @return [Boolean] True if scope is granted + # + # source://googleauth//lib/googleauth/user_refresh.rb#112 + def includes_scope?(required_scope); end + + # Returns the value of attribute project_id. + # + # source://googleauth//lib/googleauth/user_refresh.rb#38 + def project_id; end + + # Returns the value of attribute quota_project_id. + # + # source://googleauth//lib/googleauth/user_refresh.rb#39 + def quota_project_id; end + + # Revokes the credential + # + # source://googleauth//lib/googleauth/user_refresh.rb#89 + def revoke!(options = T.unsafe(nil)); end + + class << self + # Create a UserRefreshCredentials. + # + # @param json_key_io [IO] an IO from which the JSON key can be read + # @param scope [string|array|nil] the scope(s) to access + # + # source://googleauth//lib/googleauth/user_refresh.rb#45 + def make_creds(options = T.unsafe(nil)); end + + # Reads the client_id, client_secret and refresh_token fields from the + # JSON key. + # + # source://googleauth//lib/googleauth/user_refresh.rb#69 + def read_json_key(json_key_io); end + end +end + +# source://googleauth//lib/googleauth/user_refresh.rb#35 +Google::Auth::UserRefreshCredentials::AUTHORIZATION_URI = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/user_refresh.rb#36 +Google::Auth::UserRefreshCredentials::REVOKE_TOKEN_URI = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/user_refresh.rb#34 +Google::Auth::UserRefreshCredentials::TOKEN_CRED_URI = T.let(T.unsafe(nil), String) + +# Varation on {Google::Auth::UserAuthorizer} adapted for Rack based +# web applications. +# +# Example usage: +# +# get('/') do +# user_id = request.session['user_email'] +# credentials = authorizer.get_credentials(user_id, request) +# if credentials.nil? +# redirect authorizer.get_authorization_url(user_id: user_id, +# request: request) +# end +# # Credentials are valid, can call APIs +# ... +# end +# +# get('/oauth2callback') do +# url = Google::Auth::WebUserAuthorizer.handle_auth_callback_deferred( +# request) +# redirect url +# end +# +# Instead of implementing the callback directly, applications are +# encouraged to use {Google::Auth::WebUserAuthorizer::CallbackApp} instead. +# +# @note Requires sessions are enabled +# @see CallbackApp +# +# source://googleauth//lib/googleauth/web_user_authorizer.rb#50 +class Google::Auth::WebUserAuthorizer < ::Google::Auth::UserAuthorizer + # Initialize the authorizer + # + # @param client_id [Google::Auth::ClientID] Configured ID & secret for this application + # @param scope [String, Array] Authorization scope to request + # @param token_store [Google::Auth::Stores::TokenStore] Backing storage for persisting user credentials + # @param legacy_callback_uri [String] URL (either absolute or relative) of the auth callback. Defaults + # to '/oauth2callback'. + # @deprecated This field is deprecated. Instead, use the keyword + # argument callback_uri. + # @param code_verifier [String] Random string of 43-128 chars used to verify the key exchange using + # PKCE. + # @return [WebUserAuthorizer] a new instance of WebUserAuthorizer + # + # source://googleauth//lib/googleauth/web_user_authorizer.rb#104 + def initialize(client_id, scope, token_store, legacy_callback_uri = T.unsafe(nil), callback_uri: T.unsafe(nil), code_verifier: T.unsafe(nil)); end + + # Build the URL for requesting authorization. + # + # @param login_hint [String] Login hint if need to authorize a specific account. Should be a + # user's email address or unique profile ID. + # @param request [Rack::Request] Current request + # @param redirect_to [String] Optional URL to proceed to after authorization complete. Defaults to + # the current URL. + # @param scope [String, Array] Authorization scope to request. Overrides the instance scopes if + # not nil. + # @param state [Hash] Optional key-values to be returned to the oauth callback. + # @raise [NIL_REQUEST_ERROR] + # @return [String] Authorization url + # + # source://googleauth//lib/googleauth/web_user_authorizer.rb#154 + def get_authorization_url(options = T.unsafe(nil)); end + + # Fetch stored credentials for the user from the given request session. + # + # @param user_id [String] Unique ID of the user for loading/storing credentials. + # @param request [Rack::Request] Current request. Optional. If omitted, this will attempt to fall back + # on the base class behavior of reading from the token store. + # @param scope [Array, String] If specified, only returns credentials that have all the \ + # requested scopes + # @raise [Signet::AuthorizationError] May raise an error if an authorization code is present in the session + # and exchange of the code fails + # @return [Google::Auth::UserRefreshCredentials] Stored credentials, nil if none present + # + # source://googleauth//lib/googleauth/web_user_authorizer.rb#187 + def get_credentials(user_id, request = T.unsafe(nil), scope = T.unsafe(nil)); end + + # Handle the result of the oauth callback. Exchanges the authorization + # code from the request and persists to storage. + # + # @param user_id [String] Unique ID of the user for loading/storing credentials. + # @param request [Rack::Request] Current request + # @return [Google::Auth::UserRefreshCredentials, String] credentials & next URL to redirect to + # + # source://googleauth//lib/googleauth/web_user_authorizer.rb#123 + def handle_auth_callback(user_id, request); end + + class << self + # Returns the value of attribute default. + # + # source://googleauth//lib/googleauth/web_user_authorizer.rb#68 + def default; end + + # Sets the attribute default + # + # @param value the value to set the attribute default to. + # + # source://googleauth//lib/googleauth/web_user_authorizer.rb#68 + def default=(_arg0); end + + # source://googleauth//lib/googleauth/web_user_authorizer.rb#205 + def extract_callback_state(request); end + + # Handle the result of the oauth callback. This version defers the + # exchange of the code by temporarily stashing the results in the user's + # session. This allows apps to use the generic + # {Google::Auth::WebUserAuthorizer::CallbackApp} handler for the callback + # without any additional customization. + # + # Apps that wish to handle the callback directly should use + # {#handle_auth_callback} instead. + # + # @param request [Rack::Request] Current request + # + # source://googleauth//lib/googleauth/web_user_authorizer.rb#82 + def handle_auth_callback_deferred(request); end + + # Verifies the results of an authorization callback + # + # @option state + # @option state + # @param state [Hash] Callback state + # @param request [Rack::Request] Current request + # @raise [Signet::AuthorizationError] + # + # source://googleauth//lib/googleauth/web_user_authorizer.rb#227 + def validate_callback_state(state, request); end + end +end + +# source://googleauth//lib/googleauth/web_user_authorizer.rb#63 +Google::Auth::WebUserAuthorizer::AUTHORIZATION_ERROR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/web_user_authorizer.rb#52 +Google::Auth::WebUserAuthorizer::AUTH_CODE_KEY = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/web_user_authorizer.rb#55 +Google::Auth::WebUserAuthorizer::CALLBACK_STATE_KEY = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/web_user_authorizer.rb#56 +Google::Auth::WebUserAuthorizer::CURRENT_URI_KEY = T.let(T.unsafe(nil), String) + +# Small Rack app which acts as the default callback handler for the app. +# +# To configure in Rails, add to routes.rb: +# +# match '/oauth2callback', +# to: Google::Auth::WebUserAuthorizer::CallbackApp, +# via: :all +# +# With Rackup, add to config.ru: +# +# map '/oauth2callback' do +# run Google::Auth::WebUserAuthorizer::CallbackApp +# end +# +# Or in a classic Sinatra app: +# +# get('/oauth2callback') do +# Google::Auth::WebUserAuthorizer::CallbackApp.call(env) +# end +# +# @see Google::Auth::WebUserAuthorizer +# +# source://googleauth//lib/googleauth/web_user_authorizer.rb#258 +class Google::Auth::WebUserAuthorizer::CallbackApp + # source://googleauth//lib/googleauth/web_user_authorizer.rb#285 + def call(env); end + + class << self + # Handle a rack request. Simply stores the results the authorization + # in the session temporarily and redirects back to to the previously + # saved redirect URL. Credentials can be later retrieved by calling. + # {Google::Auth::Web::WebUserAuthorizer#get_credentials} + # + # See {Google::Auth::Web::WebUserAuthorizer#get_authorization_uri} + # for how to initiate authorization requests. + # + # @param env [Hash] Rack environment + # @return [Array] HTTP response + # + # source://googleauth//lib/googleauth/web_user_authorizer.rb#275 + def call(env); end + end +end + +# source://googleauth//lib/googleauth/web_user_authorizer.rb#261 +Google::Auth::WebUserAuthorizer::CallbackApp::ERROR_STATUS = T.let(T.unsafe(nil), Integer) + +# source://googleauth//lib/googleauth/web_user_authorizer.rb#259 +Google::Auth::WebUserAuthorizer::CallbackApp::LOCATION_HEADER = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/web_user_authorizer.rb#260 +Google::Auth::WebUserAuthorizer::CallbackApp::REDIR_STATUS = T.let(T.unsafe(nil), Integer) + +# source://googleauth//lib/googleauth/web_user_authorizer.rb#53 +Google::Auth::WebUserAuthorizer::ERROR_CODE_KEY = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/web_user_authorizer.rb#64 +Google::Auth::WebUserAuthorizer::INVALID_STATE_TOKEN_ERROR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/web_user_authorizer.rb#62 +Google::Auth::WebUserAuthorizer::MISSING_AUTH_CODE_ERROR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/web_user_authorizer.rb#60 +Google::Auth::WebUserAuthorizer::NIL_REQUEST_ERROR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/web_user_authorizer.rb#61 +Google::Auth::WebUserAuthorizer::NIL_SESSION_ERROR = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/web_user_authorizer.rb#58 +Google::Auth::WebUserAuthorizer::SCOPE_KEY = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/web_user_authorizer.rb#54 +Google::Auth::WebUserAuthorizer::SESSION_ID_KEY = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/web_user_authorizer.rb#51 +Google::Auth::WebUserAuthorizer::STATE_PARAM = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/web_user_authorizer.rb#57 +Google::Auth::WebUserAuthorizer::XSRF_KEY = T.let(T.unsafe(nil), String) + +# source://googleauth//lib/googleauth/signet.rb#18 +module Signet + class << self + # source://signet/0.19.0/lib/signet.rb#18 + def parse_auth_param_list(auth_param_string); end + end +end + +# OAuth2 supports OAuth2 authentication. +# +# source://googleauth//lib/googleauth/signet.rb#20 +module Signet::OAuth2 + class << self + # source://signet/0.19.0/lib/signet/oauth_2.rb#137 + def generate_authorization_uri(authorization_uri, parameters = T.unsafe(nil)); end + + # source://signet/0.19.0/lib/signet/oauth_2.rb#98 + def generate_basic_authorization_header(client_id, client_password); end + + # source://signet/0.19.0/lib/signet/oauth_2.rb#117 + def generate_bearer_authorization_header(access_token, auth_params = T.unsafe(nil)); end + + # source://signet/0.19.0/lib/signet/oauth_2.rb#26 + def parse_authorization_header(field_value); end + + # source://signet/0.19.0/lib/signet/oauth_2.rb#53 + def parse_basic_credentials(credential_string); end + + # source://signet/0.19.0/lib/signet/oauth_2.rb#59 + def parse_bearer_credentials(credential_string); end + + # source://signet/0.19.0/lib/signet/oauth_2.rb#75 + def parse_credentials(body, content_type); end + + # source://signet/0.19.0/lib/signet/oauth_2.rb#71 + def parse_oauth_challenge(challenge_string); end + + # source://signet/0.19.0/lib/signet/oauth_2.rb#41 + def parse_www_authenticate_header(field_value); end + end +end + +# Signet::OAuth2::Client creates an OAuth2 client +# +# This reopens Client to add #apply and #apply! methods which update a +# hash with the fetched authentication token. +# +# source://googleauth//lib/googleauth/signet.rb#25 +class Signet::OAuth2::Client + include ::Google::Auth::BaseClient + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#97 + def initialize(options = T.unsafe(nil)); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#715 + def access_token; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#724 + def access_token=(new_access_token); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#342 + def access_type; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#351 + def access_type=(new_access_type); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#676 + def additional_parameters; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#685 + def additional_parameters=(new_additional_parameters); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#561 + def audience; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#571 + def audience=(new_audience); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#271 + def authorization_uri(options = T.unsafe(nil)); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#307 + def authorization_uri=(new_authorization_uri); end + + # source://googleauth//lib/googleauth/signet.rb#64 + def build_default_connection; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#883 + def clear_credentials!; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#359 + def client_id; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#368 + def client_id=(new_client_id); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#376 + def client_secret; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#385 + def client_secret=(new_client_secret); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#462 + def code; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#472 + def code=(new_code); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#330 + def coerce_uri(incoming_uri); end + + # source://googleauth//lib/googleauth/signet.rb#37 + def configure_connection(options); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#753 + def decoded_id_token(public_key = T.unsafe(nil), options = T.unsafe(nil), &keyfinder); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#864 + def expired?; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#817 + def expires_at; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#827 + def expires_at=(new_expires_at); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#770 + def expires_in; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#785 + def expires_in=(new_expires_in); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#877 + def expires_within?(sec); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#608 + def expiry; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#618 + def expiry=(new_expiry); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#653 + def extension_parameters; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#663 + def extension_parameters=(new_extension_parameters); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1022 + def fetch_access_token(options = T.unsafe(nil)); end + + # source://googleauth//lib/googleauth/signet.rb#52 + def fetch_access_token!(options = T.unsafe(nil)); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1190 + def fetch_protected_resource(options = T.unsafe(nil)); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#987 + def generate_access_token_request(options = T.unsafe(nil)); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1114 + def generate_authenticated_request(options = T.unsafe(nil)); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#902 + def grant_type; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#916 + def grant_type=(new_grant_type); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#835 + def granted_scopes; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#845 + def granted_scopes=(new_granted_scopes); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#732 + def id_token; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#741 + def id_token=(new_id_token); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#799 + def issued_at; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#808 + def issued_at=(new_issued_at); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#542 + def issuer; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#552 + def issuer=(new_issuer); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1075 + def orig_fetch_access_token!(options = T.unsafe(nil)); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#523 + def password; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#533 + def password=(new_password); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#580 + def person; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#590 + def person=(new_person); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#580 + def principal; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#590 + def principal=(new_person); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#480 + def redirect_uri; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#489 + def redirect_uri=(new_redirect_uri); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1090 + def refresh!(options = T.unsafe(nil)); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#698 + def refresh_token; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#707 + def refresh_token=(new_refresh_token); end + + # source://googleauth//lib/googleauth/signet.rb#74 + def retry_with_error(max_retry_count = T.unsafe(nil)); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#394 + def scope; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#405 + def scope=(new_scope); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#644 + def signing_algorithm; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#627 + def signing_key; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#637 + def signing_key=(new_key); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#444 + def state; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#453 + def state=(new_state); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#601 + def sub; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#601 + def sub=(_arg0); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#428 + def target_audience; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#436 + def target_audience=(new_target_audience); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#950 + def to_json(*_args); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#926 + def to_jwt(options = T.unsafe(nil)); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#315 + def token_credential_uri; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#324 + def token_credential_uri=(new_token_credential_uri); end + + # The token type as symbol, either :id_token or :access_token + # + # source://googleauth//lib/googleauth/signet.rb#44 + def token_type; end + + # Set the universe domain + # + # source://googleauth//lib/googleauth/signet.rb#49 + def universe_domain; end + + # Set the universe domain + # + # source://googleauth//lib/googleauth/signet.rb#49 + def universe_domain=(_arg0); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#185 + def update!(options = T.unsafe(nil)); end + + # source://googleauth//lib/googleauth/signet.rb#30 + def update_token!(options = T.unsafe(nil)); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#241 + def update_token_signet_base(options = T.unsafe(nil)); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#504 + def username; end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#514 + def username=(new_username); end + + private + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1233 + def deep_hash_normalize(old_hash); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1239 + def normalize_timestamp(time); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1225 + def recursive_hash_normalize_keys(val); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1256 + def set_relative_expires_at(issued_at, expires_in); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1220 + def uri_is_oob?(uri); end + + # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1213 + def uri_is_postmessage?(uri); end +end diff --git a/sorbet/rbi/gems/hotwire-livereload@1.3.2.rbi b/sorbet/rbi/gems/hotwire-livereload@1.4.0.rbi similarity index 73% rename from sorbet/rbi/gems/hotwire-livereload@1.3.2.rbi rename to sorbet/rbi/gems/hotwire-livereload@1.4.0.rbi index 6bd2abc3..7cb84f65 100644 --- a/sorbet/rbi/gems/hotwire-livereload@1.3.2.rbi +++ b/sorbet/rbi/gems/hotwire-livereload@1.4.0.rbi @@ -4,36 +4,40 @@ # This is an autogenerated file for types exported from the `hotwire-livereload` gem. # Please instead update this file by running `bin/tapioca gem hotwire-livereload`. + # source://hotwire-livereload//lib/hotwire/livereload/engine.rb#5 module Hotwire; end # source://hotwire-livereload//lib/hotwire/livereload/engine.rb#6 module Hotwire::Livereload class << self - # source://hotwire-livereload//lib/hotwire/livereload/engine.rb#104 + # source://hotwire-livereload//lib/hotwire/livereload/engine.rb#112 def action_cable(opts); end - # source://railties/7.1.3.2/lib/rails/engine.rb#412 + # source://hotwire-livereload//lib/hotwire/livereload/engine.rb#123 + def debounce(wait_ms, &block); end + + # source://railties/7.1.3.3/lib/rails/engine.rb#412 def railtie_helpers_paths; end - # source://railties/7.1.3.2/lib/rails/engine.rb#395 + # source://railties/7.1.3.3/lib/rails/engine.rb#395 def railtie_namespace; end - # source://railties/7.1.3.2/lib/rails/engine.rb#416 + # source://railties/7.1.3.3/lib/rails/engine.rb#416 def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end # @return [Boolean] # - # source://hotwire-livereload//lib/hotwire/livereload/engine.rb#108 + # source://hotwire-livereload//lib/hotwire/livereload/engine.rb#116 def server_process?; end - # source://railties/7.1.3.2/lib/rails/engine.rb#401 + # source://railties/7.1.3.3/lib/rails/engine.rb#401 def table_name_prefix; end - # source://hotwire-livereload//lib/hotwire/livereload/engine.rb#95 + # source://hotwire-livereload//lib/hotwire/livereload/engine.rb#103 def turbo_stream(locals); end - # source://railties/7.1.3.2/lib/rails/engine.rb#408 + # source://railties/7.1.3.3/lib/rails/engine.rb#408 def use_relative_model_naming?; end end end @@ -44,7 +48,7 @@ Hotwire::Livereload::DISABLE_FILE = T.let(T.unsafe(nil), String) # source://hotwire-livereload//lib/hotwire/livereload/engine.rb#7 class Hotwire::Livereload::Engine < ::Rails::Engine class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end end end @@ -57,7 +61,7 @@ class Hotwire::Livereload::ReloadChannel < ::ActionCable::Channel::Base def subscribed; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end end end diff --git a/sorbet/rbi/gems/httpclient@2.8.3.rbi b/sorbet/rbi/gems/httpclient@2.8.3.rbi new file mode 100644 index 00000000..d22d0786 --- /dev/null +++ b/sorbet/rbi/gems/httpclient@2.8.3.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `httpclient` gem. +# Please instead update this file by running `bin/tapioca gem httpclient`. + + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/i18n@1.14.4.rbi b/sorbet/rbi/gems/i18n@1.14.5.rbi similarity index 97% rename from sorbet/rbi/gems/i18n@1.14.4.rbi rename to sorbet/rbi/gems/i18n@1.14.5.rbi index 584cda67..e371e30b 100644 --- a/sorbet/rbi/gems/i18n@1.14.4.rbi +++ b/sorbet/rbi/gems/i18n@1.14.5.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `i18n` gem. # Please instead update this file by running `bin/tapioca gem i18n`. + # source://i18n//lib/i18n/gettext/po_parser.rb#15 module GetText; end @@ -198,8 +199,8 @@ module I18n::Backend::Base # # if the given subject is an array then: # each element of the array is recursively interpolated (until it finds a string) - # method interpolates ["yes, %{user}", ["maybe no, %{user}, "no, %{user}"]], :user => "bartuz" - # # => "["yes, bartuz",["maybe no, bartuz", "no, bartuz"]]" + # method interpolates ["yes, %{user}", ["maybe no, %{user}", "no, %{user}"]], :user => "bartuz" + # # => ["yes, bartuz", ["maybe no, bartuz", "no, bartuz"]] # # source://i18n//lib/i18n/backend/base.rb#193 def interpolate(locale, subject, values = T.unsafe(nil)); end @@ -1202,7 +1203,7 @@ module I18n::Base # @return [Boolean] # - # source://i18n//lib/i18n.rb#355 + # source://i18n//lib/i18n.rb#384 def available_locales_initialized?; end # source://i18n//lib/i18n.rb#69 @@ -1245,7 +1246,7 @@ module I18n::Base # Raises an InvalidLocale exception when the passed locale is not available. # - # source://i18n//lib/i18n.rb#349 + # source://i18n//lib/i18n.rb#378 def enforce_available_locales!(locale); end # source://i18n//lib/i18n.rb#73 @@ -1262,14 +1263,39 @@ module I18n::Base # @raise [Disabled] # @return [Boolean] # - # source://i18n//lib/i18n.rb#235 + # source://i18n//lib/i18n.rb#264 def exists?(key, _locale = T.unsafe(nil), locale: T.unsafe(nil), **options); end + # Returns an array of interpolation keys for the given translation key + # + # *Examples* + # + # Suppose we have the following: + # I18n.t 'example.zero' == 'Zero interpolations' + # I18n.t 'example.one' == 'One interpolation %{foo}' + # I18n.t 'example.two' == 'Two interpolations %{foo} %{bar}' + # I18n.t 'example.three' == ['One %{foo}', 'Two %{bar}', 'Three %{baz}'] + # I18n.t 'example.one', locale: :other == 'One interpolation %{baz}' + # + # Then we can expect the following results: + # I18n.interpolation_keys('example.zero') #=> [] + # I18n.interpolation_keys('example.one') #=> ['foo'] + # I18n.interpolation_keys('example.two') #=> ['foo', 'bar'] + # I18n.interpolation_keys('example.three') #=> ['foo', 'bar', 'baz'] + # I18n.interpolation_keys('one', scope: 'example', locale: :other) #=> ['baz'] + # I18n.interpolation_keys('does-not-exist') #=> [] + # I18n.interpolation_keys('example') #=> [] + # + # @raise [I18n::ArgumentError] + # + # source://i18n//lib/i18n.rb#253 + def interpolation_keys(key, **options); end + # Localizes certain objects, such as dates and numbers to local formatting. # # @raise [Disabled] # - # source://i18n//lib/i18n.rb#304 + # source://i18n//lib/i18n.rb#333 def l(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end # source://i18n//lib/i18n.rb#69 @@ -1289,21 +1315,21 @@ module I18n::Base # # @return [Boolean] # - # source://i18n//lib/i18n.rb#344 + # source://i18n//lib/i18n.rb#373 def locale_available?(locale); end # Localizes certain objects, such as dates and numbers to local formatting. # # @raise [Disabled] # - # source://i18n//lib/i18n.rb#304 + # source://i18n//lib/i18n.rb#333 def localize(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end # Merges the given locale, key and scope into a single array of keys. # Splits keys that contain dots into multiple keys. Makes sure all # keys are Symbols. # - # source://i18n//lib/i18n.rb#332 + # source://i18n//lib/i18n.rb#361 def normalize_keys(locale, key, scope, separator = T.unsafe(nil)); end # Tells the backend to reload translations. Used in situations like the @@ -1619,12 +1645,12 @@ module I18n::Base # I18n.transliterate("Jürgen", :locale => :en) # => "Jurgen" # I18n.transliterate("Jürgen", :locale => :de) # => "Juergen" # - # source://i18n//lib/i18n.rb#293 + # source://i18n//lib/i18n.rb#322 def transliterate(key, throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), replacement: T.unsafe(nil), **options); end # Executes block with given I18n.locale set. # - # source://i18n//lib/i18n.rb#315 + # source://i18n//lib/i18n.rb#344 def with_locale(tmp_locale = T.unsafe(nil)); end private @@ -1648,13 +1674,16 @@ module I18n::Base # I18n.exception_handler = I18nExceptionHandler.new # an object # I18n.exception_handler.call(exception, locale, key, options) # will be called like this # - # source://i18n//lib/i18n.rb#391 + # source://i18n//lib/i18n.rb#420 def handle_exception(handling, exception, locale, key, options); end - # source://i18n//lib/i18n.rb#409 + # source://i18n//lib/i18n.rb#462 + def interpolation_keys_from_translation(translation); end + + # source://i18n//lib/i18n.rb#438 def normalize_key(key, separator); end - # source://i18n//lib/i18n.rb#361 + # source://i18n//lib/i18n.rb#390 def translate_key(key, throw, raise, locale, backend, options); end end diff --git a/sorbet/rbi/gems/inertia_rails@3.1.3.rbi b/sorbet/rbi/gems/inertia_rails@3.1.4.rbi similarity index 93% rename from sorbet/rbi/gems/inertia_rails@3.1.3.rbi rename to sorbet/rbi/gems/inertia_rails@3.1.4.rbi index 25524a8b..e014c060 100644 --- a/sorbet/rbi/gems/inertia_rails@3.1.3.rbi +++ b/sorbet/rbi/gems/inertia_rails@3.1.4.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `inertia_rails` gem. # Please instead update this file by running `bin/tapioca gem inertia_rails`. + class ActionDispatch::DebugExceptions include ::InertiaDebugExceptions end @@ -16,22 +17,22 @@ end # source://inertia_rails//lib/inertia_rails/lazy.rb#1 module InertiaRails - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 def threadsafe_html_headers; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 def threadsafe_html_headers=(obj); end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 def threadsafe_shared_blocks; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 def threadsafe_shared_blocks=(obj); end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 def threadsafe_shared_plain_data; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 def threadsafe_shared_plain_data=(obj); end class << self @@ -103,22 +104,22 @@ module InertiaRails # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#32 def ssr_url; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 def threadsafe_html_headers; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 def threadsafe_html_headers=(obj); end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 def threadsafe_shared_blocks; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 def threadsafe_shared_blocks=(obj); end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 def threadsafe_shared_plain_data; end - # source://activesupport/7.1.3.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 def threadsafe_shared_plain_data=(obj); end # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#20 @@ -248,7 +249,7 @@ end # source://inertia_rails//lib/inertia_rails/engine.rb#5 class InertiaRails::Engine < ::Rails::Engine class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end end end diff --git a/sorbet/rbi/gems/io-console@0.7.2.rbi b/sorbet/rbi/gems/io-console@0.7.2.rbi index ffc1f7aa..73616ab0 100644 --- a/sorbet/rbi/gems/io-console@0.7.2.rbi +++ b/sorbet/rbi/gems/io-console@0.7.2.rbi @@ -4,5 +4,6 @@ # This is an autogenerated file for types exported from the `io-console` gem. # Please instead update this file by running `bin/tapioca gem io-console`. + # THIS IS AN EMPTY RBI FILE. # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/jbuilder@2.11.5.rbi b/sorbet/rbi/gems/jbuilder@2.12.0.rbi similarity index 83% rename from sorbet/rbi/gems/jbuilder@2.11.5.rbi rename to sorbet/rbi/gems/jbuilder@2.12.0.rbi index 4c2268b4..7b44baac 100644 --- a/sorbet/rbi/gems/jbuilder@2.11.5.rbi +++ b/sorbet/rbi/gems/jbuilder@2.12.0.rbi @@ -4,13 +4,14 @@ # This is an autogenerated file for types exported from the `jbuilder` gem. # Please instead update this file by running `bin/tapioca gem jbuilder`. + # source://jbuilder//lib/jbuilder/jbuilder.rb#1 -class Jbuilder < ::ActiveSupport::ProxyObject +class Jbuilder < ::BasicObject # @return [Jbuilder] a new instance of Jbuilder # @yield [_self] # @yieldparam _self [Jbuilder] the object that the method was called on # - # source://jbuilder//lib/jbuilder.rb#15 + # source://jbuilder//lib/jbuilder.rb#18 def initialize(options = T.unsafe(nil)); end # Turns the current element into an array and iterates over the passed collection, adding each iteration as @@ -44,15 +45,15 @@ class Jbuilder < ::ActiveSupport::ProxyObject # # [1,2,3] # - # source://jbuilder//lib/jbuilder.rb#213 + # source://jbuilder//lib/jbuilder.rb#216 def array!(collection = T.unsafe(nil), *attributes, &block); end # Returns the attributes of the current builder. # - # source://jbuilder//lib/jbuilder.rb#268 + # source://jbuilder//lib/jbuilder.rb#271 def attributes!; end - # source://jbuilder//lib/jbuilder.rb#252 + # source://jbuilder//lib/jbuilder.rb#255 def call(object, *attributes, &block); end # Turns the current element into an array and yields a builder to add a hash. @@ -72,7 +73,7 @@ class Jbuilder < ::ActiveSupport::ProxyObject # json.content comment.formatted_content # end # - # source://jbuilder//lib/jbuilder.rb#178 + # source://jbuilder//lib/jbuilder.rb#181 def child!; end # Deeply apply key format to nested hashes and arrays passed to @@ -91,7 +92,7 @@ class Jbuilder < ::ActiveSupport::ProxyObject # # { "settings": { "someValue": "abc" }} # - # source://jbuilder//lib/jbuilder.rb#153 + # source://jbuilder//lib/jbuilder.rb#156 def deep_format_keys!(value = T.unsafe(nil)); end # Extracts the mentioned attributes or hash elements from the passed object and turns them into attributes of the JSON. @@ -112,7 +113,7 @@ class Jbuilder < ::ActiveSupport::ProxyObject # # json.(@person, :name, :age) # - # source://jbuilder//lib/jbuilder.rb#244 + # source://jbuilder//lib/jbuilder.rb#247 def extract!(object, *attributes); end # If you want to skip adding nil values to your JSON hash. This is useful @@ -130,7 +131,7 @@ class Jbuilder < ::ActiveSupport::ProxyObject # # {} # - # source://jbuilder//lib/jbuilder.rb#128 + # source://jbuilder//lib/jbuilder.rb#131 def ignore_nil!(value = T.unsafe(nil)); end # Specifies formatting to be applied to the key. Passing in a name of a function @@ -161,98 +162,98 @@ class Jbuilder < ::ActiveSupport::ProxyObject # # { "_first_name": "David" } # - # source://jbuilder//lib/jbuilder.rb#104 + # source://jbuilder//lib/jbuilder.rb#107 def key_format!(*args); end # Merges hash, array, or Jbuilder instance into current builder. # - # source://jbuilder//lib/jbuilder.rb#273 + # source://jbuilder//lib/jbuilder.rb#276 def merge!(object); end - # source://jbuilder//lib/jbuilder.rb#68 + # source://jbuilder//lib/jbuilder.rb#71 def method_missing(*args, &block); end # Returns the nil JSON. # - # source://jbuilder//lib/jbuilder.rb#261 + # source://jbuilder//lib/jbuilder.rb#264 def nil!; end # Returns the nil JSON. # - # source://jbuilder//lib/jbuilder.rb#261 + # source://jbuilder//lib/jbuilder.rb#264 def null!; end - # source://jbuilder//lib/jbuilder.rb#33 + # source://jbuilder//lib/jbuilder.rb#36 def set!(key, value = T.unsafe(nil), *args, &block); end # Encodes the current builder as JSON. # - # source://jbuilder//lib/jbuilder.rb#279 + # source://jbuilder//lib/jbuilder.rb#282 def target!; end private # @return [Boolean] # - # source://jbuilder//lib/jbuilder.rb#357 + # source://jbuilder//lib/jbuilder.rb#360 def _blank?(value = T.unsafe(nil)); end - # source://jbuilder//lib/jbuilder.rb#285 + # source://jbuilder//lib/jbuilder.rb#288 def _extract_hash_values(object, attributes); end - # source://jbuilder//lib/jbuilder.rb#289 + # source://jbuilder//lib/jbuilder.rb#292 def _extract_method_values(object, attributes); end - # source://jbuilder//lib/jbuilder.rb#318 + # source://jbuilder//lib/jbuilder.rb#321 def _format_keys(hash_or_array); end # @return [Boolean] # - # source://jbuilder//lib/jbuilder.rb#353 + # source://jbuilder//lib/jbuilder.rb#356 def _is_collection?(object); end - # source://jbuilder//lib/jbuilder.rb#314 + # source://jbuilder//lib/jbuilder.rb#317 def _key(key); end - # source://jbuilder//lib/jbuilder.rb#338 + # source://jbuilder//lib/jbuilder.rb#341 def _map_collection(collection); end - # source://jbuilder//lib/jbuilder.rb#293 + # source://jbuilder//lib/jbuilder.rb#296 def _merge_block(key); end - # source://jbuilder//lib/jbuilder.rb#300 + # source://jbuilder//lib/jbuilder.rb#303 def _merge_values(current_value, updates); end # @return [Boolean] # - # source://jbuilder//lib/jbuilder.rb#361 + # source://jbuilder//lib/jbuilder.rb#364 def _object_respond_to?(object, *methods); end - # source://jbuilder//lib/jbuilder.rb#344 + # source://jbuilder//lib/jbuilder.rb#347 def _scope; end - # source://jbuilder//lib/jbuilder.rb#330 + # source://jbuilder//lib/jbuilder.rb#333 def _set_value(key, value); end class << self # Same as instance method deep_format_keys! except sets the default. # - # source://jbuilder//lib/jbuilder.rb#158 + # source://jbuilder//lib/jbuilder.rb#161 def deep_format_keys(value = T.unsafe(nil)); end # Yields a builder and automatically turns the result into a JSON string # - # source://jbuilder//lib/jbuilder.rb#26 + # source://jbuilder//lib/jbuilder.rb#29 def encode(*args, &block); end # Same as instance method ignore_nil! except sets the default. # - # source://jbuilder//lib/jbuilder.rb#133 + # source://jbuilder//lib/jbuilder.rb#136 def ignore_nil(value = T.unsafe(nil)); end # Same as the instance method key_format! except sets the default. # - # source://jbuilder//lib/jbuilder.rb#109 + # source://jbuilder//lib/jbuilder.rb#112 def key_format(*args); end end end @@ -265,7 +266,7 @@ class Jbuilder::ArrayError < ::StandardError end end -# source://jbuilder//lib/jbuilder.rb#30 +# source://jbuilder//lib/jbuilder.rb#33 Jbuilder::BLANK = T.let(T.unsafe(nil), Jbuilder::Blank) # source://jbuilder//lib/jbuilder/blank.rb#2 @@ -342,6 +343,14 @@ class Jbuilder::CollectionRenderer < ::ActionView::CollectionRenderer def collection_with_template(view, template, layout, collection); end end +# source://jbuilder//lib/jbuilder/collection_renderer.rb#110 +class Jbuilder::EnumerableCompat < ::SimpleDelegator + # Rails 6.1 requires this. + # + # source://jbuilder//lib/jbuilder/collection_renderer.rb#112 + def size(*args, &block); end +end + # source://jbuilder//lib/jbuilder/key_formatter.rb#5 class Jbuilder::KeyFormatter # @return [KeyFormatter] a new instance of KeyFormatter @@ -366,7 +375,7 @@ class Jbuilder::MergeError < ::StandardError end end -# source://jbuilder//lib/jbuilder.rb#31 +# source://jbuilder//lib/jbuilder.rb#34 Jbuilder::NON_ENUMERABLES = T.let(T.unsafe(nil), Set) # source://jbuilder//lib/jbuilder/errors.rb#4 @@ -380,22 +389,22 @@ end # source://jbuilder//lib/jbuilder/railtie.rb#5 class Jbuilder::Railtie < ::Rails::Railtie; end -# source://jbuilder//lib/jbuilder/jbuilder_template.rb#270 +# source://jbuilder//lib/jbuilder/jbuilder_template.rb#271 class JbuilderHandler - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#271 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#272 def default_format; end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#271 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#272 def default_format=(val); end class << self - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#274 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#275 def call(template, source = T.unsafe(nil)); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#271 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#272 def default_format; end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#271 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#272 def default_format=(val); end end end @@ -493,44 +502,44 @@ class JbuilderTemplate < ::Jbuilder private - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#183 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#184 def _cache_fragment_for(key, options, &block); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#202 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#203 def _cache_key(key, options); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#215 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#216 def _fragment_name_with_digest(key, options); end # @return [Boolean] # - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#227 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#228 def _is_active_model?(object); end # @return [Boolean] # - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#223 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#224 def _partial_options?(options); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#188 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#189 def _read_fragment_cache(key, options = T.unsafe(nil)); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#265 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#266 def _render_active_model_partial(object); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#244 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#245 def _render_explicit_partial(name_or_options, locals = T.unsafe(nil)); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#178 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#179 def _render_partial(options); end # source://jbuilder//lib/jbuilder/jbuilder_template.rb#139 def _render_partial_with_options(options); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#231 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#232 def _set_inline_partial(name, object, options); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#194 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#195 def _write_fragment_cache(key, options = T.unsafe(nil)); end class << self diff --git a/sorbet/rbi/gems/json@2.7.2.rbi b/sorbet/rbi/gems/json@2.7.2.rbi index 29cef267..ce4a9b24 100644 --- a/sorbet/rbi/gems/json@2.7.2.rbi +++ b/sorbet/rbi/gems/json@2.7.2.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `json` gem. # 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#690 diff --git a/sorbet/rbi/gems/jwt@2.8.1.rbi b/sorbet/rbi/gems/jwt@2.8.1.rbi index cb3a5518..ae2ec705 100644 --- a/sorbet/rbi/gems/jwt@2.8.1.rbi +++ b/sorbet/rbi/gems/jwt@2.8.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `jwt` gem. # Please instead update this file by running `bin/tapioca gem jwt`. + # JSON Web Token implementation # # Should be up to date with the latest spec: diff --git a/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi b/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi index f6b1d8ed..a0375c0f 100644 --- a/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +++ b/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `language_server-protocol` gem. # Please instead update this file by running `bin/tapioca gem language_server-protocol`. + # source://language_server-protocol//lib/language_server/protocol/version.rb#1 module LanguageServer; end diff --git a/sorbet/rbi/gems/listen@3.9.0.rbi b/sorbet/rbi/gems/listen@3.9.0.rbi index c34ff962..dcf6a6c7 100644 --- a/sorbet/rbi/gems/listen@3.9.0.rbi +++ b/sorbet/rbi/gems/listen@3.9.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `listen` gem. # Please instead update this file by running `bin/tapioca gem listen`. + # Besides programming error exceptions like ArgumentError, # all public interface exceptions should be declared here and inherit from Listen::Error. # diff --git a/sorbet/rbi/gems/loofah@2.22.0.rbi b/sorbet/rbi/gems/loofah@2.22.0.rbi index f662d486..58c1bb31 100644 --- a/sorbet/rbi/gems/loofah@2.22.0.rbi +++ b/sorbet/rbi/gems/loofah@2.22.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `loofah` gem. # Please instead update this file by running `bin/tapioca gem loofah`. + # == Strings and IO Objects as Input # # The following methods accept any IO object in addition to accepting a string: diff --git a/sorbet/rbi/gems/mail@2.8.1.rbi b/sorbet/rbi/gems/mail@2.8.1.rbi index 117dd32f..843946cf 100644 --- a/sorbet/rbi/gems/mail@2.8.1.rbi +++ b/sorbet/rbi/gems/mail@2.8.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `mail` gem. # Please instead update this file by running `bin/tapioca gem mail`. + # source://mail//lib/mail.rb#3 module Mail class << self @@ -127,7 +128,7 @@ module Mail # source://mail//lib/mail/mail.rb#151 def first(*args, &block); end - # source://actionmailbox/7.1.3.2/lib/action_mailbox/mail_ext/from_source.rb#4 + # source://actionmailbox/7.1.3.3/lib/action_mailbox/mail_ext/from_source.rb#4 def from_source(source); end # source://mail//lib/mail/mail.rb#233 @@ -276,7 +277,7 @@ class Mail::Address # source://mail//lib/mail/elements/address.rb#25 def initialize(value = T.unsafe(nil)); end - # source://actionmailbox/7.1.3.2/lib/action_mailbox/mail_ext/address_equality.rb#5 + # source://actionmailbox/7.1.3.3/lib/action_mailbox/mail_ext/address_equality.rb#5 def ==(other_address); end # Returns the address that is in the address itself. That is, the @@ -425,7 +426,7 @@ class Mail::Address def strip_domain_comments(value); end class << self - # source://actionmailbox/7.1.3.2/lib/action_mailbox/mail_ext/address_wrapping.rb#5 + # source://actionmailbox/7.1.3.3/lib/action_mailbox/mail_ext/address_wrapping.rb#5 def wrap(address); end end end @@ -3550,7 +3551,7 @@ class Mail::Message # source://mail//lib/mail/message.rb#512 def bcc=(val); end - # source://actionmailbox/7.1.3.2/lib/action_mailbox/mail_ext/addresses.rb#21 + # source://actionmailbox/7.1.3.3/lib/action_mailbox/mail_ext/addresses.rb#21 def bcc_addresses; end # Returns an array of addresses (the encoded value) in the Bcc field, @@ -3659,7 +3660,7 @@ class Mail::Message # source://mail//lib/mail/message.rb#553 def cc=(val); end - # source://actionmailbox/7.1.3.2/lib/action_mailbox/mail_ext/addresses.rb#17 + # source://actionmailbox/7.1.3.3/lib/action_mailbox/mail_ext/addresses.rb#17 def cc_addresses; end # Returns an array of addresses (the encoded value) in the Cc field, @@ -3978,7 +3979,7 @@ class Mail::Message # source://mail//lib/mail/message.rb#670 def from=(val); end - # source://actionmailbox/7.1.3.2/lib/action_mailbox/mail_ext/addresses.rb#5 + # source://actionmailbox/7.1.3.3/lib/action_mailbox/mail_ext/addresses.rb#5 def from_address; end # Returns an array of addresses (the encoded value) in the From field, @@ -4371,10 +4372,10 @@ class Mail::Message # source://mail//lib/mail/message.rb#751 def received=(val); end - # source://actionmailbox/7.1.3.2/lib/action_mailbox/mail_ext/recipients.rb#5 + # source://actionmailbox/7.1.3.3/lib/action_mailbox/mail_ext/recipients.rb#5 def recipients; end - # source://actionmailbox/7.1.3.2/lib/action_mailbox/mail_ext/addresses.rb#9 + # source://actionmailbox/7.1.3.3/lib/action_mailbox/mail_ext/addresses.rb#9 def recipients_addresses; end # source://mail//lib/mail/message.rb#755 @@ -4845,7 +4846,7 @@ class Mail::Message # source://mail//lib/mail/message.rb#1193 def to=(val); end - # source://actionmailbox/7.1.3.2/lib/action_mailbox/mail_ext/addresses.rb#13 + # source://actionmailbox/7.1.3.3/lib/action_mailbox/mail_ext/addresses.rb#13 def to_addresses; end # Returns an array of addresses (the encoded value) in the To field, @@ -4869,10 +4870,10 @@ class Mail::Message # source://mail//lib/mail/message.rb#1811 def without_attachments!; end - # source://actionmailbox/7.1.3.2/lib/action_mailbox/mail_ext/addresses.rb#29 + # source://actionmailbox/7.1.3.3/lib/action_mailbox/mail_ext/addresses.rb#29 def x_forwarded_to_addresses; end - # source://actionmailbox/7.1.3.2/lib/action_mailbox/mail_ext/addresses.rb#25 + # source://actionmailbox/7.1.3.3/lib/action_mailbox/mail_ext/addresses.rb#25 def x_original_to_addresses; end private @@ -4895,7 +4896,7 @@ class Mail::Message # source://mail//lib/mail/message.rb#2056 def add_required_message_fields; end - # source://actionmailbox/7.1.3.2/lib/action_mailbox/mail_ext/addresses.rb#34 + # source://actionmailbox/7.1.3.3/lib/action_mailbox/mail_ext/addresses.rb#34 def address_list(obj); end # source://mail//lib/mail/message.rb#2025 diff --git a/sorbet/rbi/gems/marcel@1.0.4.rbi b/sorbet/rbi/gems/marcel@1.0.4.rbi index 0bf82168..861f2c1c 100644 --- a/sorbet/rbi/gems/marcel@1.0.4.rbi +++ b/sorbet/rbi/gems/marcel@1.0.4.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `marcel` gem. # Please instead update this file by running `bin/tapioca gem marcel`. + # This file is auto-generated. Instead of editing this file, please # add MIMEs to data/custom.xml or lib/marcel/mime_type/definitions.rb. # diff --git a/sorbet/rbi/gems/matrix@0.4.2.rbi b/sorbet/rbi/gems/matrix@0.4.2.rbi index 81e249f0..5fb50907 100644 --- a/sorbet/rbi/gems/matrix@0.4.2.rbi +++ b/sorbet/rbi/gems/matrix@0.4.2.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `matrix` gem. # Please instead update this file by running `bin/tapioca gem matrix`. + # source://matrix//lib/matrix.rb#17 module ExceptionForMatrix; end diff --git a/sorbet/rbi/gems/method_source@1.1.0.rbi b/sorbet/rbi/gems/method_source@1.1.0.rbi index 4e40c9a7..2f1a7412 100644 --- a/sorbet/rbi/gems/method_source@1.1.0.rbi +++ b/sorbet/rbi/gems/method_source@1.1.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `method_source` gem. # Please instead update this file by running `bin/tapioca gem method_source`. + # source://method_source//lib/method_source.rb#163 class Method include ::MethodSource::SourceLocation::MethodExtensions diff --git a/sorbet/rbi/gems/mini_mime@1.1.5.rbi b/sorbet/rbi/gems/mini_mime@1.1.5.rbi index edabba14..1551681e 100644 --- a/sorbet/rbi/gems/mini_mime@1.1.5.rbi +++ b/sorbet/rbi/gems/mini_mime@1.1.5.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `mini_mime` gem. # Please instead update this file by running `bin/tapioca gem mini_mime`. + # source://mini_mime//lib/mini_mime/version.rb#2 module MiniMime class << self diff --git a/sorbet/rbi/gems/mini_portile2@2.8.6.rbi b/sorbet/rbi/gems/mini_portile2@2.8.6.rbi new file mode 100644 index 00000000..fab12e60 --- /dev/null +++ b/sorbet/rbi/gems/mini_portile2@2.8.6.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `mini_portile2` gem. +# Please instead update this file by running `bin/tapioca gem mini_portile2`. + + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/minitest@5.22.3.rbi b/sorbet/rbi/gems/minitest@5.23.1.rbi similarity index 86% rename from sorbet/rbi/gems/minitest@5.22.3.rbi rename to sorbet/rbi/gems/minitest@5.23.1.rbi index 497069bd..ed1b9ace 100644 --- a/sorbet/rbi/gems/minitest@5.22.3.rbi +++ b/sorbet/rbi/gems/minitest@5.23.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `minitest` gem. # Please instead update this file by running `bin/tapioca gem minitest`. + # :include: README.rdoc # # source://minitest//lib/minitest/parallel.rb#1 @@ -43,7 +44,7 @@ module Minitest # source://minitest//lib/minitest.rb#18 def cattr_accessor(name); end - # source://minitest//lib/minitest.rb#1146 + # source://minitest//lib/minitest.rb#1178 def clock_time; end # source://minitest//lib/minitest.rb#177 @@ -55,7 +56,7 @@ module Minitest # source://minitest//lib/minitest.rb#19 def extensions=(_arg0); end - # source://minitest//lib/minitest.rb#292 + # source://minitest//lib/minitest.rb#306 def filter_backtrace(bt); end # source://minitest//lib/minitest.rb#19 @@ -104,7 +105,7 @@ module Minitest # source://minitest//lib/minitest.rb#143 def run(args = T.unsafe(nil)); end - # source://minitest//lib/minitest.rb#1137 + # source://minitest//lib/minitest.rb#1169 def run_one_method(klass, method_name); end # source://minitest//lib/minitest.rb#19 @@ -118,24 +119,24 @@ end # Defines the API for Reporters. Subclass this and override whatever # you want. Go nuts. # -# source://minitest//lib/minitest.rb#638 +# source://minitest//lib/minitest.rb#652 class Minitest::AbstractReporter # @return [AbstractReporter] a new instance of AbstractReporter # - # source://minitest//lib/minitest.rb#640 + # source://minitest//lib/minitest.rb#654 def initialize; end # Did this run pass? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#675 + # source://minitest//lib/minitest.rb#689 def passed?; end # About to start running a test. This allows a reporter to show # that it is starting or that we are in the middle of a test run. # - # source://minitest//lib/minitest.rb#654 + # source://minitest//lib/minitest.rb#668 def prerecord(klass, name); end # Output and record the result of the test. Call @@ -143,43 +144,43 @@ class Minitest::AbstractReporter # result character string. Stores the result of the run if the run # did not pass. # - # source://minitest//lib/minitest.rb#663 + # source://minitest//lib/minitest.rb#677 def record(result); end # Outputs the summary of the run. # - # source://minitest//lib/minitest.rb#669 + # source://minitest//lib/minitest.rb#683 def report; end # Starts reporting on the run. # - # source://minitest//lib/minitest.rb#647 + # source://minitest//lib/minitest.rb#661 def start; end - # source://minitest//lib/minitest.rb#679 + # source://minitest//lib/minitest.rb#693 def synchronize(&block); end end # Represents run failures. # -# source://minitest//lib/minitest.rb#962 +# source://minitest//lib/minitest.rb#985 class Minitest::Assertion < ::Exception - # source://minitest//lib/minitest.rb#965 + # source://minitest//lib/minitest.rb#988 def error; end # Where was this run before an assertion was raised? # - # source://minitest//lib/minitest.rb#972 + # source://minitest//lib/minitest.rb#995 def location; end - # source://minitest//lib/minitest.rb#980 + # source://minitest//lib/minitest.rb#1003 def result_code; end - # source://minitest//lib/minitest.rb#984 + # source://minitest//lib/minitest.rb#1007 def result_label; end end -# source://minitest//lib/minitest.rb#963 +# source://minitest//lib/minitest.rb#986 Minitest::Assertion::RE = T.let(T.unsafe(nil), Regexp) # Minitest Assertions. All assertion methods accept a +msg+ which is @@ -626,77 +627,77 @@ Minitest::Assertions::UNDEFINED = T.let(T.unsafe(nil), Object) # # See Minitest.backtrace_filter=. # -# source://minitest//lib/minitest.rb#1108 +# source://minitest//lib/minitest.rb#1140 class Minitest::BacktraceFilter # @return [BacktraceFilter] a new instance of BacktraceFilter # - # source://minitest//lib/minitest.rb#1114 + # source://minitest//lib/minitest.rb#1146 def initialize(regexp = T.unsafe(nil)); end # Filter +bt+ to something useful. Returns the whole thing if # $DEBUG (ruby) or $MT_DEBUG (env). # - # source://minitest//lib/minitest.rb#1122 + # source://minitest//lib/minitest.rb#1154 def filter(bt); end # Returns the value of attribute regexp. # - # source://minitest//lib/minitest.rb#1112 + # source://minitest//lib/minitest.rb#1144 def regexp; end # Sets the attribute regexp # # @param value the value to set the attribute regexp to. # - # source://minitest//lib/minitest.rb#1112 + # source://minitest//lib/minitest.rb#1144 def regexp=(_arg0); end end -# source://minitest//lib/minitest.rb#1110 +# source://minitest//lib/minitest.rb#1142 Minitest::BacktraceFilter::MT_RE = T.let(T.unsafe(nil), Regexp) # Dispatch to multiple reporters as one. # -# source://minitest//lib/minitest.rb#911 +# source://minitest//lib/minitest.rb#934 class Minitest::CompositeReporter < ::Minitest::AbstractReporter # @return [CompositeReporter] a new instance of CompositeReporter # - # source://minitest//lib/minitest.rb#917 + # source://minitest//lib/minitest.rb#940 def initialize(*reporters); end # Add another reporter to the mix. # - # source://minitest//lib/minitest.rb#929 + # source://minitest//lib/minitest.rb#952 def <<(reporter); end - # source://minitest//lib/minitest.rb#922 + # source://minitest//lib/minitest.rb#945 def io; end # @return [Boolean] # - # source://minitest//lib/minitest.rb#933 + # source://minitest//lib/minitest.rb#956 def passed?; end - # source://minitest//lib/minitest.rb#941 + # source://minitest//lib/minitest.rb#964 def prerecord(klass, name); end - # source://minitest//lib/minitest.rb#948 + # source://minitest//lib/minitest.rb#971 def record(result); end - # source://minitest//lib/minitest.rb#954 + # source://minitest//lib/minitest.rb#977 def report; end # The list of reporters to dispatch to. # - # source://minitest//lib/minitest.rb#915 + # source://minitest//lib/minitest.rb#938 def reporters; end # The list of reporters to dispatch to. # - # source://minitest//lib/minitest.rb#915 + # source://minitest//lib/minitest.rb#938 def reporters=(_arg0); end - # source://minitest//lib/minitest.rb#937 + # source://minitest//lib/minitest.rb#960 def start; end end @@ -725,48 +726,48 @@ end # # ... lots of test methods ... # end # -# source://minitest//lib/minitest.rb#1052 +# source://minitest//lib/minitest.rb#1084 module Minitest::Guard # Is this running on jruby? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#1057 + # source://minitest//lib/minitest.rb#1089 def jruby?(platform = T.unsafe(nil)); end # Is this running on maglev? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#1064 + # source://minitest//lib/minitest.rb#1096 def maglev?(platform = T.unsafe(nil)); end # Is this running on mri? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#1074 + # source://minitest//lib/minitest.rb#1106 def mri?(platform = T.unsafe(nil)); end # Is this running on macOS? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#1081 + # source://minitest//lib/minitest.rb#1113 def osx?(platform = T.unsafe(nil)); end # Is this running on rubinius? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#1088 + # source://minitest//lib/minitest.rb#1120 def rubinius?(platform = T.unsafe(nil)); end # Is this running on windows? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#1098 + # source://minitest//lib/minitest.rb#1130 def windows?(platform = T.unsafe(nil)); end end @@ -829,36 +830,36 @@ end # plugin, pull this out of the composite and replace it with your # own. # -# source://minitest//lib/minitest.rb#710 +# source://minitest//lib/minitest.rb#724 class Minitest::ProgressReporter < ::Minitest::Reporter - # source://minitest//lib/minitest.rb#711 + # source://minitest//lib/minitest.rb#725 def prerecord(klass, name); end - # source://minitest//lib/minitest.rb#718 + # source://minitest//lib/minitest.rb#732 def record(result); end end # Shared code for anything that can get passed to a Reporter. See # Minitest::Test & Minitest::Result. # -# source://minitest//lib/minitest.rb#532 +# source://minitest//lib/minitest.rb#546 module Minitest::Reportable # @raise [NotImplementedError] # - # source://minitest//lib/minitest.rb#554 + # source://minitest//lib/minitest.rb#568 def class_name; end # Did this run error? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#575 + # source://minitest//lib/minitest.rb#589 def error?; end # The location identifier of this test. Depends on a method # existing called class_name. # - # source://minitest//lib/minitest.rb#549 + # source://minitest//lib/minitest.rb#563 def location; end # Did this run pass? @@ -868,50 +869,50 @@ module Minitest::Reportable # # @return [Boolean] # - # source://minitest//lib/minitest.rb#539 + # source://minitest//lib/minitest.rb#553 def passed?; end # Returns ".", "F", or "E" based on the result of the run. # - # source://minitest//lib/minitest.rb#561 + # source://minitest//lib/minitest.rb#575 def result_code; end # Was this run skipped? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#568 + # source://minitest//lib/minitest.rb#582 def skipped?; end end -# source://minitest//lib/minitest.rb#543 +# source://minitest//lib/minitest.rb#557 Minitest::Reportable::BASE_DIR = T.let(T.unsafe(nil), String) -# source://minitest//lib/minitest.rb#686 +# source://minitest//lib/minitest.rb#700 class Minitest::Reporter < ::Minitest::AbstractReporter # @return [Reporter] a new instance of Reporter # - # source://minitest//lib/minitest.rb#695 + # source://minitest//lib/minitest.rb#709 def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end # The IO used to report. # - # source://minitest//lib/minitest.rb#688 + # source://minitest//lib/minitest.rb#702 def io; end # The IO used to report. # - # source://minitest//lib/minitest.rb#688 + # source://minitest//lib/minitest.rb#702 def io=(_arg0); end # Command-line options for this run. # - # source://minitest//lib/minitest.rb#693 + # source://minitest//lib/minitest.rb#707 def options; end # Command-line options for this run. # - # source://minitest//lib/minitest.rb#693 + # source://minitest//lib/minitest.rb#707 def options=(_arg0); end end @@ -921,80 +922,80 @@ end # blow up. By using Result.from(a_test) you can be reasonably sure # that the test result can be marshalled. # -# source://minitest//lib/minitest.rb#587 +# source://minitest//lib/minitest.rb#601 class Minitest::Result < ::Minitest::Runnable include ::Minitest::Reportable - # source://minitest//lib/minitest.rb#621 + # source://minitest//lib/minitest.rb#635 def class_name; end # The class name of the test result. # - # source://minitest//lib/minitest.rb#596 + # source://minitest//lib/minitest.rb#610 def klass; end # The class name of the test result. # - # source://minitest//lib/minitest.rb#596 + # source://minitest//lib/minitest.rb#610 def klass=(_arg0); end # The location of the test method. # - # source://minitest//lib/minitest.rb#601 + # source://minitest//lib/minitest.rb#615 def source_location; end # The location of the test method. # - # source://minitest//lib/minitest.rb#601 + # source://minitest//lib/minitest.rb#615 def source_location=(_arg0); end - # source://minitest//lib/minitest.rb#625 + # source://minitest//lib/minitest.rb#639 def to_s; end class << self # Create a new test result from a Runnable instance. # - # source://minitest//lib/minitest.rb#606 + # source://minitest//lib/minitest.rb#620 def from(runnable); end end end # re-open # -# source://minitest//lib/minitest.rb#305 +# source://minitest//lib/minitest.rb#319 class Minitest::Runnable # @return [Runnable] a new instance of Runnable # - # source://minitest//lib/minitest.rb#463 + # source://minitest//lib/minitest.rb#477 def initialize(name); end # Number of assertions executed in this run. # - # source://minitest//lib/minitest.rb#309 + # source://minitest//lib/minitest.rb#323 def assertions; end # Number of assertions executed in this run. # - # source://minitest//lib/minitest.rb#309 + # source://minitest//lib/minitest.rb#323 def assertions=(_arg0); end - # source://minitest//lib/minitest.rb#459 + # source://minitest//lib/minitest.rb#473 def failure; end # An assertion raised during the run, if any. # - # source://minitest//lib/minitest.rb#314 + # source://minitest//lib/minitest.rb#328 def failures; end # An assertion raised during the run, if any. # - # source://minitest//lib/minitest.rb#314 + # source://minitest//lib/minitest.rb#328 def failures=(_arg0); end - # source://minitest//lib/minitest.rb#445 + # source://minitest//lib/minitest.rb#459 def marshal_dump; end - # source://minitest//lib/minitest.rb#455 + # source://minitest//lib/minitest.rb#469 def marshal_load(ary); end # Metadata you attach to the test results that get sent to the reporter. @@ -1004,29 +1005,29 @@ class Minitest::Runnable # NOTE: this data *must* be plain (read: marshal-able) data! # Hashes! Arrays! Strings! # - # source://minitest//lib/minitest.rb#478 + # source://minitest//lib/minitest.rb#492 def metadata; end # Sets metadata, mainly used for +Result.from+. # - # source://minitest//lib/minitest.rb#485 + # source://minitest//lib/minitest.rb#499 def metadata=(_arg0); end # Returns true if metadata exists. # # @return [Boolean] # - # source://minitest//lib/minitest.rb#490 + # source://minitest//lib/minitest.rb#504 def metadata?; end # Name of the run. # - # source://minitest//lib/minitest.rb#332 + # source://minitest//lib/minitest.rb#346 def name; end # Set the name of the run. # - # source://minitest//lib/minitest.rb#339 + # source://minitest//lib/minitest.rb#353 def name=(o); end # Did this run pass? @@ -1037,7 +1038,7 @@ class Minitest::Runnable # @raise [NotImplementedError] # @return [Boolean] # - # source://minitest//lib/minitest.rb#507 + # source://minitest//lib/minitest.rb#521 def passed?; end # Returns a single character string to print based on the result @@ -1046,14 +1047,14 @@ class Minitest::Runnable # # @raise [NotImplementedError] # - # source://minitest//lib/minitest.rb#516 + # source://minitest//lib/minitest.rb#530 def result_code; end # Runs a single method. Needs to return self. # # @raise [NotImplementedError] # - # source://minitest//lib/minitest.rb#497 + # source://minitest//lib/minitest.rb#511 def run; end # Was this run skipped? See #passed? for more information. @@ -1061,42 +1062,42 @@ class Minitest::Runnable # @raise [NotImplementedError] # @return [Boolean] # - # source://minitest//lib/minitest.rb#523 + # source://minitest//lib/minitest.rb#537 def skipped?; end # The time it took to run. # - # source://minitest//lib/minitest.rb#319 + # source://minitest//lib/minitest.rb#333 def time; end # The time it took to run. # - # source://minitest//lib/minitest.rb#319 + # source://minitest//lib/minitest.rb#333 def time=(_arg0); end - # source://minitest//lib/minitest.rb#321 + # source://minitest//lib/minitest.rb#335 def time_it; end class << self - # source://minitest//lib/minitest.rb#1156 + # source://minitest//lib/minitest.rb#1188 def inherited(klass); end # Returns all instance methods matching the pattern +re+. # - # source://minitest//lib/minitest.rb#346 + # source://minitest//lib/minitest.rb#360 def methods_matching(re); end - # source://minitest//lib/minitest.rb#415 + # source://minitest//lib/minitest.rb#429 def on_signal(name, action); end - # source://minitest//lib/minitest.rb#350 + # source://minitest//lib/minitest.rb#364 def reset; end # Responsible for running all runnable methods in a given class, # each in its own instance. Each instance is passed to the # reporter to record. # - # source://minitest//lib/minitest.rb#361 + # source://minitest//lib/minitest.rb#375 def run(reporter, options = T.unsafe(nil)); end # Runs a single method and has the reporter record the result. @@ -1104,7 +1105,7 @@ class Minitest::Runnable # that subclasses can specialize the running of an individual # test. See Minitest::ParallelTest::ClassMethods for an example. # - # source://minitest//lib/minitest.rb#387 + # source://minitest//lib/minitest.rb#401 def run_one_method(klass, method_name, reporter); end # Each subclass of Runnable is responsible for overriding this @@ -1112,33 +1113,33 @@ class Minitest::Runnable # # @raise [NotImplementedError] # - # source://minitest//lib/minitest.rb#432 + # source://minitest//lib/minitest.rb#446 def runnable_methods; end # Returns all subclasses of Runnable. # - # source://minitest//lib/minitest.rb#439 + # source://minitest//lib/minitest.rb#453 def runnables; end # Defines the order to run tests (:random by default). Override # this or use a convenience method to change it for your tests. # - # source://minitest//lib/minitest.rb#396 + # source://minitest//lib/minitest.rb#410 def test_order; end - # source://minitest//lib/minitest.rb#400 + # source://minitest//lib/minitest.rb#414 def with_info_handler(reporter, &block); end end end -# source://minitest//lib/minitest.rb#413 +# source://minitest//lib/minitest.rb#427 Minitest::Runnable::SIGNALS = T.let(T.unsafe(nil), Hash) # Assertion raised when skipping a run. # -# source://minitest//lib/minitest.rb#992 +# source://minitest//lib/minitest.rb#1015 class Minitest::Skip < ::Minitest::Assertion - # source://minitest//lib/minitest.rb#993 + # source://minitest//lib/minitest.rb#1016 def result_label; end end @@ -1162,114 +1163,124 @@ end # end # end # -# source://minitest//lib/minitest.rb#746 +# source://minitest//lib/minitest.rb#760 class Minitest::StatisticsReporter < ::Minitest::Reporter # @return [StatisticsReporter] a new instance of StatisticsReporter # - # source://minitest//lib/minitest.rb#790 + # source://minitest//lib/minitest.rb#809 def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end # Total number of assertions. # - # source://minitest//lib/minitest.rb#750 + # source://minitest//lib/minitest.rb#764 def assertions; end # Total number of assertions. # - # source://minitest//lib/minitest.rb#750 + # source://minitest//lib/minitest.rb#764 def assertions=(_arg0); end # Total number of test cases. # - # source://minitest//lib/minitest.rb#755 + # source://minitest//lib/minitest.rb#769 def count; end # Total number of test cases. # - # source://minitest//lib/minitest.rb#755 + # source://minitest//lib/minitest.rb#769 def count=(_arg0); end # Total number of tests that erred. # - # source://minitest//lib/minitest.rb#783 + # source://minitest//lib/minitest.rb#797 def errors; end # Total number of tests that erred. # - # source://minitest//lib/minitest.rb#783 + # source://minitest//lib/minitest.rb#797 def errors=(_arg0); end # Total number of tests that failed. # - # source://minitest//lib/minitest.rb#778 + # source://minitest//lib/minitest.rb#792 def failures; end # Total number of tests that failed. # - # source://minitest//lib/minitest.rb#778 + # source://minitest//lib/minitest.rb#792 def failures=(_arg0); end # @return [Boolean] # - # source://minitest//lib/minitest.rb#803 + # source://minitest//lib/minitest.rb#823 def passed?; end - # source://minitest//lib/minitest.rb#811 + # source://minitest//lib/minitest.rb#831 def record(result); end # Report on the tracked statistics. # - # source://minitest//lib/minitest.rb#821 + # source://minitest//lib/minitest.rb#841 def report; end # An +Array+ of test cases that failed or were skipped. # - # source://minitest//lib/minitest.rb#760 + # source://minitest//lib/minitest.rb#774 def results; end # An +Array+ of test cases that failed or were skipped. # - # source://minitest//lib/minitest.rb#760 + # source://minitest//lib/minitest.rb#774 def results=(_arg0); end # Total number of tests that where skipped. # - # source://minitest//lib/minitest.rb#788 + # source://minitest//lib/minitest.rb#807 def skips; end # Total number of tests that where skipped. # - # source://minitest//lib/minitest.rb#788 + # source://minitest//lib/minitest.rb#807 def skips=(_arg0); end - # source://minitest//lib/minitest.rb#807 + # source://minitest//lib/minitest.rb#827 def start; end # Time the test run started. If available, the monotonic clock is # used and this is a +Float+, otherwise it's an instance of # +Time+. # - # source://minitest//lib/minitest.rb#767 + # source://minitest//lib/minitest.rb#781 def start_time; end # Time the test run started. If available, the monotonic clock is # used and this is a +Float+, otherwise it's an instance of # +Time+. # - # source://minitest//lib/minitest.rb#767 + # source://minitest//lib/minitest.rb#781 def start_time=(_arg0); end # Test run time. If available, the monotonic clock is used and # this is a +Float+, otherwise it's an instance of +Time+. # - # source://minitest//lib/minitest.rb#773 + # source://minitest//lib/minitest.rb#787 def total_time; end # Test run time. If available, the monotonic clock is used and # this is a +Float+, otherwise it's an instance of +Time+. # - # source://minitest//lib/minitest.rb#773 + # source://minitest//lib/minitest.rb#787 def total_time=(_arg0); end + + # Total number of tests that warned. + # + # source://minitest//lib/minitest.rb#802 + def warnings; end + + # Total number of tests that warned. + # + # source://minitest//lib/minitest.rb#802 + def warnings=(_arg0); end end # A reporter that prints the header, summary, and failure details at @@ -1280,48 +1291,48 @@ end # plugin, pull this out of the composite and replace it with your # own. # -# source://minitest//lib/minitest.rb#841 +# source://minitest//lib/minitest.rb#862 class Minitest::SummaryReporter < ::Minitest::StatisticsReporter - # source://minitest//lib/minitest.rb#876 + # source://minitest//lib/minitest.rb#897 def aggregated_results(io); end # Returns the value of attribute old_sync. # - # source://minitest//lib/minitest.rb#844 + # source://minitest//lib/minitest.rb#865 def old_sync; end # Sets the attribute old_sync # # @param value the value to set the attribute old_sync to. # - # source://minitest//lib/minitest.rb#844 + # source://minitest//lib/minitest.rb#865 def old_sync=(_arg0); end - # source://minitest//lib/minitest.rb#859 + # source://minitest//lib/minitest.rb#880 def report; end # :startdoc: # - # source://minitest//lib/minitest.rb#847 + # source://minitest//lib/minitest.rb#868 def start; end - # source://minitest//lib/minitest.rb#871 + # source://minitest//lib/minitest.rb#892 def statistics; end - # source://minitest//lib/minitest.rb#896 + # source://minitest//lib/minitest.rb#917 def summary; end # :stopdoc: # - # source://minitest//lib/minitest.rb#843 + # source://minitest//lib/minitest.rb#864 def sync; end # :stopdoc: # - # source://minitest//lib/minitest.rb#843 + # source://minitest//lib/minitest.rb#864 def sync=(_arg0); end - # source://minitest//lib/minitest.rb#892 + # source://minitest//lib/minitest.rb#913 def to_s; end end @@ -1500,37 +1511,45 @@ Minitest::Test::TEARDOWN_METHODS = T.let(T.unsafe(nil), Array) # Assertion wrapping an unexpected error that was raised during a run. # -# source://minitest//lib/minitest.rb#1001 +# source://minitest//lib/minitest.rb#1024 class Minitest::UnexpectedError < ::Minitest::Assertion include ::Minitest::Compress # @return [UnexpectedError] a new instance of UnexpectedError # - # source://minitest//lib/minitest.rb#1007 + # source://minitest//lib/minitest.rb#1030 def initialize(error); end - # source://minitest//lib/minitest.rb#1020 + # source://minitest//lib/minitest.rb#1043 def backtrace; end # TODO: figure out how to use `cause` instead # - # source://minitest//lib/minitest.rb#1005 + # source://minitest//lib/minitest.rb#1028 def error; end # TODO: figure out how to use `cause` instead # - # source://minitest//lib/minitest.rb#1005 + # source://minitest//lib/minitest.rb#1028 def error=(_arg0); end - # source://minitest//lib/minitest.rb#1026 + # source://minitest//lib/minitest.rb#1049 def message; end - # source://minitest//lib/minitest.rb#1032 + # source://minitest//lib/minitest.rb#1055 def result_label; end end -# source://minitest//lib/minitest.rb#1024 +# source://minitest//lib/minitest.rb#1047 Minitest::UnexpectedError::BASE_RE = T.let(T.unsafe(nil), Regexp) +# Assertion raised on warning when running in -Werror mode. +# +# source://minitest//lib/minitest.rb#1063 +class Minitest::UnexpectedWarning < ::Minitest::Assertion + # source://minitest//lib/minitest.rb#1064 + def result_label; end +end + # source://minitest//lib/minitest.rb#12 Minitest::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/msgpack@1.7.2.rbi b/sorbet/rbi/gems/msgpack@1.7.2.rbi index f64245a1..cd3341cd 100644 --- a/sorbet/rbi/gems/msgpack@1.7.2.rbi +++ b/sorbet/rbi/gems/msgpack@1.7.2.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `msgpack` gem. # Please instead update this file by running `bin/tapioca gem msgpack`. + # source://msgpack//lib/msgpack/core_ext.rb#67 class Array include ::Enumerable diff --git a/sorbet/rbi/gems/multi_json@1.15.0.rbi b/sorbet/rbi/gems/multi_json@1.15.0.rbi new file mode 100644 index 00000000..64c3c0c7 --- /dev/null +++ b/sorbet/rbi/gems/multi_json@1.15.0.rbi @@ -0,0 +1,268 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `multi_json` gem. +# Please instead update this file by running `bin/tapioca gem multi_json`. + + +# source://multi_json//lib/multi_json/options.rb#1 +module MultiJson + include ::MultiJson::Options + extend ::MultiJson::Options + extend ::MultiJson + + # Get the current adapter class. + # + # source://multi_json//lib/multi_json.rb#70 + def adapter; end + + # Set the JSON parser utilizing a symbol, string, or class. + # Supported by default are: + # + # * :oj + # * :json_gem + # * :json_pure + # * :ok_json + # * :yajl + # * :nsjsonserialization (MacRuby only) + # * :gson (JRuby only) + # * :jr_jackson (JRuby only) + # + # source://multi_json//lib/multi_json.rb#90 + def adapter=(new_adapter); end + + # source://multi_json//lib/multi_json.rb#26 + def cached_options(*_arg0); end + + # source://multi_json//lib/multi_json.rb#129 + def current_adapter(options = T.unsafe(nil)); end + + # Decode a JSON string into Ruby. + # + # Options + # + # :symbolize_keys :: If true, will use symbols instead of strings for the keys. + # :adapter :: If set, the selected adapter will be used for this call. + # + # source://multi_json//lib/multi_json.rb#119 + def decode(string, options = T.unsafe(nil)); end + + # The default adapter based on what you currently + # have loaded and installed. First checks to see + # if any adapters are already loaded, then checks + # to see which are installed if none are loaded. + # + # source://multi_json//lib/multi_json.rb#46 + def default_adapter; end + + # The default adapter based on what you currently + # have loaded and installed. First checks to see + # if any adapters are already loaded, then checks + # to see which are installed if none are loaded. + # + # source://multi_json//lib/multi_json.rb#46 + def default_engine; end + + # source://multi_json//lib/multi_json.rb#18 + def default_options; end + + # source://multi_json//lib/multi_json.rb#11 + def default_options=(value); end + + # Encodes a Ruby object as JSON. + # + # source://multi_json//lib/multi_json.rb#138 + def dump(object, options = T.unsafe(nil)); end + + # Encodes a Ruby object as JSON. + # + # source://multi_json//lib/multi_json.rb#138 + def encode(object, options = T.unsafe(nil)); end + + # Get the current adapter class. + # + # source://multi_json//lib/multi_json.rb#70 + def engine; end + + # Set the JSON parser utilizing a symbol, string, or class. + # Supported by default are: + # + # * :oj + # * :json_gem + # * :json_pure + # * :ok_json + # * :yajl + # * :nsjsonserialization (MacRuby only) + # * :gson (JRuby only) + # * :jr_jackson (JRuby only) + # + # source://multi_json//lib/multi_json.rb#90 + def engine=(new_adapter); end + + # Decode a JSON string into Ruby. + # + # Options + # + # :symbolize_keys :: If true, will use symbols instead of strings for the keys. + # :adapter :: If set, the selected adapter will be used for this call. + # + # source://multi_json//lib/multi_json.rb#119 + def load(string, options = T.unsafe(nil)); end + + # source://multi_json//lib/multi_json.rb#98 + def load_adapter(new_adapter); end + + # source://multi_json//lib/multi_json.rb#26 + def reset_cached_options!(*_arg0); end + + # Set the JSON parser utilizing a symbol, string, or class. + # Supported by default are: + # + # * :oj + # * :json_gem + # * :json_pure + # * :ok_json + # * :yajl + # * :nsjsonserialization (MacRuby only) + # * :gson (JRuby only) + # * :jr_jackson (JRuby only) + # + # source://multi_json//lib/multi_json.rb#90 + def use(new_adapter); end + + # Executes passed block using specified adapter. + # + # source://multi_json//lib/multi_json.rb#144 + def with_adapter(new_adapter); end + + # Executes passed block using specified adapter. + # + # source://multi_json//lib/multi_json.rb#144 + def with_engine(new_adapter); end + + private + + # source://multi_json//lib/multi_json.rb#155 + def load_adapter_from_string_name(name); end +end + +# source://multi_json//lib/multi_json.rb#31 +MultiJson::ALIASES = T.let(T.unsafe(nil), Hash) + +# source://multi_json//lib/multi_json/adapter_error.rb#2 +class MultiJson::AdapterError < ::ArgumentError + # Returns the value of attribute cause. + # + # source://multi_json//lib/multi_json/adapter_error.rb#3 + def cause; end + + class << self + # source://multi_json//lib/multi_json/adapter_error.rb#5 + def build(original_exception); end + end +end + +# Legacy support +# +# source://multi_json//lib/multi_json/parse_error.rb#16 +MultiJson::DecodeError = MultiJson::ParseError + +# source://multi_json//lib/multi_json/parse_error.rb#16 +MultiJson::LoadError = MultiJson::ParseError + +# source://multi_json//lib/multi_json/options.rb#2 +module MultiJson::Options + # source://multi_json//lib/multi_json/options.rb#25 + def default_dump_options; end + + # source://multi_json//lib/multi_json/options.rb#21 + def default_load_options; end + + # source://multi_json//lib/multi_json/options.rb#17 + def dump_options(*args); end + + # source://multi_json//lib/multi_json/options.rb#8 + def dump_options=(options); end + + # source://multi_json//lib/multi_json/options.rb#13 + def load_options(*args); end + + # source://multi_json//lib/multi_json/options.rb#3 + def load_options=(options); end + + private + + # source://multi_json//lib/multi_json/options.rb#31 + def get_options(options, *args); end +end + +# source://multi_json//lib/multi_json/options_cache.rb#2 +module MultiJson::OptionsCache + extend ::MultiJson::OptionsCache + + # source://multi_json//lib/multi_json/options_cache.rb#10 + def fetch(type, key, &block); end + + # source://multi_json//lib/multi_json/options_cache.rb#5 + def reset; end + + private + + # source://multi_json//lib/multi_json/options_cache.rb#24 + def write(cache, key); end +end + +# Normally MultiJson is used with a few option sets for both dump/load +# methods. When options are generated dynamically though, every call would +# cause a cache miss and the cache would grow indefinitely. To prevent +# this, we just reset the cache every time the number of keys outgrows +# 1000. +# +# source://multi_json//lib/multi_json/options_cache.rb#22 +MultiJson::OptionsCache::MAX_CACHE_SIZE = T.let(T.unsafe(nil), Integer) + +# source://multi_json//lib/multi_json/parse_error.rb#2 +class MultiJson::ParseError < ::StandardError + # Returns the value of attribute cause. + # + # source://multi_json//lib/multi_json/parse_error.rb#3 + def cause; end + + # Returns the value of attribute data. + # + # source://multi_json//lib/multi_json/parse_error.rb#3 + def data; end + + class << self + # source://multi_json//lib/multi_json/parse_error.rb#5 + def build(original_exception, data); end + end +end + +# source://multi_json//lib/multi_json.rb#33 +MultiJson::REQUIREMENT_MAP = T.let(T.unsafe(nil), Array) + +# source://multi_json//lib/multi_json/version.rb#16 +MultiJson::VERSION = T.let(T.unsafe(nil), String) + +# source://multi_json//lib/multi_json/version.rb#2 +class MultiJson::Version + class << self + # @return [String] + # + # source://multi_json//lib/multi_json/version.rb#10 + def to_s; end + end +end + +# source://multi_json//lib/multi_json/version.rb#3 +MultiJson::Version::MAJOR = T.let(T.unsafe(nil), Integer) + +# source://multi_json//lib/multi_json/version.rb#4 +MultiJson::Version::MINOR = T.let(T.unsafe(nil), Integer) + +# source://multi_json//lib/multi_json/version.rb#5 +MultiJson::Version::PATCH = T.let(T.unsafe(nil), Integer) + +# source://multi_json//lib/multi_json/version.rb#6 +MultiJson::Version::PRE = T.let(T.unsafe(nil), T.untyped) diff --git a/sorbet/rbi/gems/mutex_m@0.2.0.rbi b/sorbet/rbi/gems/mutex_m@0.2.0.rbi index 0946c95f..50aa6989 100644 --- a/sorbet/rbi/gems/mutex_m@0.2.0.rbi +++ b/sorbet/rbi/gems/mutex_m@0.2.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `mutex_m` gem. # Please instead update this file by running `bin/tapioca gem mutex_m`. + # = mutex_m.rb # # When 'mutex_m' is required, any object that extends or includes Mutex_m will diff --git a/sorbet/rbi/gems/net-http@0.4.1.rbi b/sorbet/rbi/gems/net-http@0.4.1.rbi index 94d55d1e..cc53a5d3 100644 --- a/sorbet/rbi/gems/net-http@0.4.1.rbi +++ b/sorbet/rbi/gems/net-http@0.4.1.rbi @@ -4,694 +4,8 @@ # This is an autogenerated file for types exported from the `net-http` gem. # Please instead update this file by running `bin/tapioca gem net-http`. -# \Class \Net::HTTP provides a rich library that implements the client -# in a client-server model that uses the \HTTP request-response protocol. -# For information about \HTTP, see: -# -# - {Hypertext Transfer Protocol}[https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol]. -# - {Technical overview}[https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Technical_overview]. -# -# == About the Examples -# -# :include: doc/net-http/examples.rdoc -# -# == Strategies -# -# - If you will make only a few GET requests, -# consider using {OpenURI}[https://docs.ruby-lang.org/en/master/OpenURI.html]. -# - If you will make only a few requests of all kinds, -# consider using the various singleton convenience methods in this class. -# Each of the following methods automatically starts and finishes -# a {session}[rdoc-ref:Net::HTTP@Sessions] that sends a single request: -# -# # Return string response body. -# Net::HTTP.get(hostname, path) -# Net::HTTP.get(uri) -# -# # Write string response body to $stdout. -# Net::HTTP.get_print(hostname, path) -# Net::HTTP.get_print(uri) -# -# # Return response as Net::HTTPResponse object. -# Net::HTTP.get_response(hostname, path) -# Net::HTTP.get_response(uri) -# data = '{"title": "foo", "body": "bar", "userId": 1}' -# Net::HTTP.post(uri, data) -# params = {title: 'foo', body: 'bar', userId: 1} -# Net::HTTP.post_form(uri, params) -# -# - If performance is important, consider using sessions, which lower request overhead. -# This {session}[rdoc-ref:Net::HTTP@Sessions] has multiple requests for -# {HTTP methods}[https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods] -# and {WebDAV methods}[https://en.wikipedia.org/wiki/WebDAV#Implementation]: -# -# Net::HTTP.start(hostname) do |http| -# # Session started automatically before block execution. -# http.get(path) -# http.head(path) -# body = 'Some text' -# http.post(path, body) # Can also have a block. -# http.put(path, body) -# http.delete(path) -# http.options(path) -# http.trace(path) -# http.patch(path, body) # Can also have a block. -# http.copy(path) -# http.lock(path, body) -# http.mkcol(path, body) -# http.move(path) -# http.propfind(path, body) -# http.proppatch(path, body) -# http.unlock(path, body) -# # Session finished automatically at block exit. -# end -# -# The methods cited above are convenience methods that, via their few arguments, -# allow minimal control over the requests. -# For greater control, consider using {request objects}[rdoc-ref:Net::HTTPRequest]. -# -# == URIs -# -# On the internet, a URI -# ({Universal Resource Identifier}[https://en.wikipedia.org/wiki/Uniform_Resource_Identifier]) -# is a string that identifies a particular resource. -# It consists of some or all of: scheme, hostname, path, query, and fragment; -# see {URI syntax}[https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#Syntax]. -# -# A Ruby {URI::Generic}[https://docs.ruby-lang.org/en/master/URI/Generic.html] object -# represents an internet URI. -# It provides, among others, methods -# +scheme+, +hostname+, +path+, +query+, and +fragment+. -# -# === Schemes -# -# An internet \URI has -# a {scheme}[https://en.wikipedia.org/wiki/List_of_URI_schemes]. -# -# The two schemes supported in \Net::HTTP are 'https' and 'http': -# -# uri.scheme # => "https" -# URI('http://example.com').scheme # => "http" -# -# === Hostnames -# -# A hostname identifies a server (host) to which requests may be sent: -# -# hostname = uri.hostname # => "jsonplaceholder.typicode.com" -# Net::HTTP.start(hostname) do |http| -# # Some HTTP stuff. -# end -# -# === Paths -# -# A host-specific path identifies a resource on the host: -# -# _uri = uri.dup -# _uri.path = '/todos/1' -# hostname = _uri.hostname -# path = _uri.path -# Net::HTTP.get(hostname, path) -# -# === Queries -# -# A host-specific query adds name/value pairs to the URI: -# -# _uri = uri.dup -# params = {userId: 1, completed: false} -# _uri.query = URI.encode_www_form(params) -# _uri # => # -# Net::HTTP.get(_uri) -# -# === Fragments -# -# A {URI fragment}[https://en.wikipedia.org/wiki/URI_fragment] has no effect -# in \Net::HTTP; -# the same data is returned, regardless of whether a fragment is included. -# -# == Request Headers -# -# Request headers may be used to pass additional information to the host, -# similar to arguments passed in a method call; -# each header is a name/value pair. -# -# Each of the \Net::HTTP methods that sends a request to the host -# has optional argument +headers+, -# where the headers are expressed as a hash of field-name/value pairs: -# -# headers = {Accept: 'application/json', Connection: 'Keep-Alive'} -# Net::HTTP.get(uri, headers) -# -# See lists of both standard request fields and common request fields at -# {Request Fields}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Request_fields]. -# A host may also accept other custom fields. -# -# == \HTTP Sessions -# -# A _session_ is a connection between a server (host) and a client that: -# -# - Is begun by instance method Net::HTTP#start. -# - May contain any number of requests. -# - Is ended by instance method Net::HTTP#finish. -# -# See example sessions at {Strategies}[rdoc-ref:Net::HTTP@Strategies]. -# -# === Session Using \Net::HTTP.start -# -# If you have many requests to make to a single host (and port), -# consider using singleton method Net::HTTP.start with a block; -# the method handles the session automatically by: -# -# - Calling #start before block execution. -# - Executing the block. -# - Calling #finish after block execution. -# -# In the block, you can use these instance methods, -# each of which that sends a single request: -# -# - {HTTP methods}[https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods]: -# -# - #get, #request_get: GET. -# - #head, #request_head: HEAD. -# - #post, #request_post: POST. -# - #delete: DELETE. -# - #options: OPTIONS. -# - #trace: TRACE. -# - #patch: PATCH. -# -# - {WebDAV methods}[https://en.wikipedia.org/wiki/WebDAV#Implementation]: -# -# - #copy: COPY. -# - #lock: LOCK. -# - #mkcol: MKCOL. -# - #move: MOVE. -# - #propfind: PROPFIND. -# - #proppatch: PROPPATCH. -# - #unlock: UNLOCK. -# -# === Session Using \Net::HTTP.start and \Net::HTTP.finish -# -# You can manage a session manually using methods #start and #finish: -# -# http = Net::HTTP.new(hostname) -# http.start -# http.get('/todos/1') -# http.get('/todos/2') -# http.delete('/posts/1') -# http.finish # Needed to free resources. -# -# === Single-Request Session -# -# Certain convenience methods automatically handle a session by: -# -# - Creating an \HTTP object -# - Starting a session. -# - Sending a single request. -# - Finishing the session. -# - Destroying the object. -# -# Such methods that send GET requests: -# -# - ::get: Returns the string response body. -# - ::get_print: Writes the string response body to $stdout. -# - ::get_response: Returns a Net::HTTPResponse object. -# -# Such methods that send POST requests: -# -# - ::post: Posts data to the host. -# - ::post_form: Posts form data to the host. -# -# == \HTTP Requests and Responses -# -# Many of the methods above are convenience methods, -# each of which sends a request and returns a string -# without directly using \Net::HTTPRequest and \Net::HTTPResponse objects. -# -# You can, however, directly create a request object, send the request, -# and retrieve the response object; see: -# -# - Net::HTTPRequest. -# - Net::HTTPResponse. -# -# == Following Redirection -# -# Each returned response is an instance of a subclass of Net::HTTPResponse. -# See the {response class hierarchy}[rdoc-ref:Net::HTTPResponse@Response+Subclasses]. -# -# In particular, class Net::HTTPRedirection is the parent -# of all redirection classes. -# This allows you to craft a case statement to handle redirections properly: -# -# def fetch(uri, limit = 10) -# # You should choose a better exception. -# raise ArgumentError, 'Too many HTTP redirects' if limit == 0 -# -# res = Net::HTTP.get_response(URI(uri)) -# case res -# when Net::HTTPSuccess # Any success class. -# res -# when Net::HTTPRedirection # Any redirection class. -# location = res['Location'] -# warn "Redirected to #{location}" -# fetch(location, limit - 1) -# else # Any other class. -# res.value -# end -# end -# -# fetch(uri) -# -# == Basic Authentication -# -# Basic authentication is performed according to -# {RFC2617}[http://www.ietf.org/rfc/rfc2617.txt]: -# -# req = Net::HTTP::Get.new(uri) -# req.basic_auth('user', 'pass') -# res = Net::HTTP.start(hostname) do |http| -# http.request(req) -# end -# -# == Streaming Response Bodies -# -# By default \Net::HTTP reads an entire response into memory. If you are -# handling large files or wish to implement a progress bar you can instead -# stream the body directly to an IO. -# -# Net::HTTP.start(hostname) do |http| -# req = Net::HTTP::Get.new(uri) -# http.request(req) do |res| -# open('t.tmp', 'w') do |f| -# res.read_body do |chunk| -# f.write chunk -# end -# end -# end -# end -# -# == HTTPS -# -# HTTPS is enabled for an \HTTP connection by Net::HTTP#use_ssl=: -# -# Net::HTTP.start(hostname, :use_ssl => true) do |http| -# req = Net::HTTP::Get.new(uri) -# res = http.request(req) -# end -# -# Or if you simply want to make a GET request, you may pass in a URI -# object that has an \HTTPS URL. \Net::HTTP automatically turns on TLS -# verification if the URI object has a 'https' URI scheme: -# -# uri # => # -# Net::HTTP.get(uri) -# -# == Proxy Server -# -# An \HTTP object can have -# a {proxy server}[https://en.wikipedia.org/wiki/Proxy_server]. -# -# You can create an \HTTP object with a proxy server -# using method Net::HTTP.new or method Net::HTTP.start. -# -# The proxy may be defined either by argument +p_addr+ -# or by environment variable 'http_proxy'. -# -# === Proxy Using Argument +p_addr+ as a \String -# -# When argument +p_addr+ is a string hostname, -# the returned +http+ has the given host as its proxy: -# -# http = Net::HTTP.new(hostname, nil, 'proxy.example') -# http.proxy? # => true -# http.proxy_from_env? # => false -# http.proxy_address # => "proxy.example" -# # These use default values. -# http.proxy_port # => 80 -# http.proxy_user # => nil -# http.proxy_pass # => nil -# -# The port, username, and password for the proxy may also be given: -# -# http = Net::HTTP.new(hostname, nil, 'proxy.example', 8000, 'pname', 'ppass') -# # => # -# http.proxy? # => true -# http.proxy_from_env? # => false -# http.proxy_address # => "proxy.example" -# http.proxy_port # => 8000 -# http.proxy_user # => "pname" -# http.proxy_pass # => "ppass" -# -# === Proxy Using 'ENV['http_proxy']' -# -# When environment variable 'http_proxy' -# is set to a \URI string, -# the returned +http+ will have the server at that URI as its proxy; -# note that the \URI string must have a protocol -# such as 'http' or 'https': -# -# ENV['http_proxy'] = 'http://example.com' -# http = Net::HTTP.new(hostname) -# http.proxy? # => true -# http.proxy_from_env? # => true -# http.proxy_address # => "example.com" -# # These use default values. -# http.proxy_port # => 80 -# http.proxy_user # => nil -# http.proxy_pass # => nil -# -# The \URI string may include proxy username, password, and port number: -# -# ENV['http_proxy'] = 'http://pname:ppass@example.com:8000' -# http = Net::HTTP.new(hostname) -# http.proxy? # => true -# http.proxy_from_env? # => true -# http.proxy_address # => "example.com" -# http.proxy_port # => 8000 -# http.proxy_user # => "pname" -# http.proxy_pass # => "ppass" -# -# === Filtering Proxies -# -# With method Net::HTTP.new (but not Net::HTTP.start), -# you can use argument +p_no_proxy+ to filter proxies: -# -# - Reject a certain address: -# -# http = Net::HTTP.new('example.com', nil, 'proxy.example', 8000, 'pname', 'ppass', 'proxy.example') -# http.proxy_address # => nil -# -# - Reject certain domains or subdomains: -# -# http = Net::HTTP.new('example.com', nil, 'my.proxy.example', 8000, 'pname', 'ppass', 'proxy.example') -# http.proxy_address # => nil -# -# - Reject certain addresses and port combinations: -# -# http = Net::HTTP.new('example.com', nil, 'proxy.example', 8000, 'pname', 'ppass', 'proxy.example:1234') -# http.proxy_address # => "proxy.example" -# -# http = Net::HTTP.new('example.com', nil, 'proxy.example', 8000, 'pname', 'ppass', 'proxy.example:8000') -# http.proxy_address # => nil -# -# - Reject a list of the types above delimited using a comma: -# -# http = Net::HTTP.new('example.com', nil, 'proxy.example', 8000, 'pname', 'ppass', 'my.proxy,proxy.example:8000') -# http.proxy_address # => nil -# -# http = Net::HTTP.new('example.com', nil, 'my.proxy', 8000, 'pname', 'ppass', 'my.proxy,proxy.example:8000') -# http.proxy_address # => nil -# -# == Compression and Decompression -# -# \Net::HTTP does not compress the body of a request before sending. -# -# By default, \Net::HTTP adds header 'Accept-Encoding' -# to a new {request object}[rdoc-ref:Net::HTTPRequest]: -# -# Net::HTTP::Get.new(uri)['Accept-Encoding'] -# # => "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" -# -# This requests the server to zip-encode the response body if there is one; -# the server is not required to do so. -# -# \Net::HTTP does not automatically decompress a response body -# if the response has header 'Content-Range'. -# -# Otherwise decompression (or not) depends on the value of header -# {Content-Encoding}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-encoding-response-header]: -# -# - 'deflate', 'gzip', or 'x-gzip': -# decompresses the body and deletes the header. -# - 'none' or 'identity': -# does not decompress the body, but deletes the header. -# - Any other value: -# leaves the body and header unchanged. -# -# == What's Here -# -# This is a categorized summary of methods and attributes. -# -# === \Net::HTTP Objects -# -# - {::new}[rdoc-ref:Net::HTTP.new]: -# Creates a new instance. -# - {#inspect}[rdoc-ref:Net::HTTP#inspect]: -# Returns a string representation of +self+. -# -# === Sessions -# -# - {::start}[rdoc-ref:Net::HTTP.start]: -# Begins a new session in a new \Net::HTTP object. -# - {#started?}[rdoc-ref:Net::HTTP#started?] -# (aliased as {#active?}[rdoc-ref:Net::HTTP#active?]): -# Returns whether in a session. -# - {#finish}[rdoc-ref:Net::HTTP#finish]: -# Ends an active session. -# - {#start}[rdoc-ref:Net::HTTP#start]: -# Begins a new session in an existing \Net::HTTP object (+self+). -# -# === Connections -# -# - {:continue_timeout}[rdoc-ref:Net::HTTP#continue_timeout]: -# Returns the continue timeout. -# - {#continue_timeout=}[rdoc-ref:Net::HTTP#continue_timeout=]: -# Sets the continue timeout seconds. -# - {:keep_alive_timeout}[rdoc-ref:Net::HTTP#keep_alive_timeout]: -# Returns the keep-alive timeout. -# - {:keep_alive_timeout=}[rdoc-ref:Net::HTTP#keep_alive_timeout=]: -# Sets the keep-alive timeout. -# - {:max_retries}[rdoc-ref:Net::HTTP#max_retries]: -# Returns the maximum retries. -# - {#max_retries=}[rdoc-ref:Net::HTTP#max_retries=]: -# Sets the maximum retries. -# - {:open_timeout}[rdoc-ref:Net::HTTP#open_timeout]: -# Returns the open timeout. -# - {:open_timeout=}[rdoc-ref:Net::HTTP#open_timeout=]: -# Sets the open timeout. -# - {:read_timeout}[rdoc-ref:Net::HTTP#read_timeout]: -# Returns the open timeout. -# - {:read_timeout=}[rdoc-ref:Net::HTTP#read_timeout=]: -# Sets the read timeout. -# - {:ssl_timeout}[rdoc-ref:Net::HTTP#ssl_timeout]: -# Returns the ssl timeout. -# - {:ssl_timeout=}[rdoc-ref:Net::HTTP#ssl_timeout=]: -# Sets the ssl timeout. -# - {:write_timeout}[rdoc-ref:Net::HTTP#write_timeout]: -# Returns the write timeout. -# - {write_timeout=}[rdoc-ref:Net::HTTP#write_timeout=]: -# Sets the write timeout. -# -# === Requests -# -# - {::get}[rdoc-ref:Net::HTTP.get]: -# Sends a GET request and returns the string response body. -# - {::get_print}[rdoc-ref:Net::HTTP.get_print]: -# Sends a GET request and write the string response body to $stdout. -# - {::get_response}[rdoc-ref:Net::HTTP.get_response]: -# Sends a GET request and returns a response object. -# - {::post_form}[rdoc-ref:Net::HTTP.post_form]: -# Sends a POST request with form data and returns a response object. -# - {::post}[rdoc-ref:Net::HTTP.post]: -# Sends a POST request with data and returns a response object. -# - {#copy}[rdoc-ref:Net::HTTP#copy]: -# Sends a COPY request and returns a response object. -# - {#delete}[rdoc-ref:Net::HTTP#delete]: -# Sends a DELETE request and returns a response object. -# - {#get}[rdoc-ref:Net::HTTP#get]: -# Sends a GET request and returns a response object. -# - {#head}[rdoc-ref:Net::HTTP#head]: -# Sends a HEAD request and returns a response object. -# - {#lock}[rdoc-ref:Net::HTTP#lock]: -# Sends a LOCK request and returns a response object. -# - {#mkcol}[rdoc-ref:Net::HTTP#mkcol]: -# Sends a MKCOL request and returns a response object. -# - {#move}[rdoc-ref:Net::HTTP#move]: -# Sends a MOVE request and returns a response object. -# - {#options}[rdoc-ref:Net::HTTP#options]: -# Sends a OPTIONS request and returns a response object. -# - {#patch}[rdoc-ref:Net::HTTP#patch]: -# Sends a PATCH request and returns a response object. -# - {#post}[rdoc-ref:Net::HTTP#post]: -# Sends a POST request and returns a response object. -# - {#propfind}[rdoc-ref:Net::HTTP#propfind]: -# Sends a PROPFIND request and returns a response object. -# - {#proppatch}[rdoc-ref:Net::HTTP#proppatch]: -# Sends a PROPPATCH request and returns a response object. -# - {#put}[rdoc-ref:Net::HTTP#put]: -# Sends a PUT request and returns a response object. -# - {#request}[rdoc-ref:Net::HTTP#request]: -# Sends a request and returns a response object. -# - {#request_get}[rdoc-ref:Net::HTTP#request_get] -# (aliased as {#get2}[rdoc-ref:Net::HTTP#get2]): -# Sends a GET request and forms a response object; -# if a block given, calls the block with the object, -# otherwise returns the object. -# - {#request_head}[rdoc-ref:Net::HTTP#request_head] -# (aliased as {#head2}[rdoc-ref:Net::HTTP#head2]): -# Sends a HEAD request and forms a response object; -# if a block given, calls the block with the object, -# otherwise returns the object. -# - {#request_post}[rdoc-ref:Net::HTTP#request_post] -# (aliased as {#post2}[rdoc-ref:Net::HTTP#post2]): -# Sends a POST request and forms a response object; -# if a block given, calls the block with the object, -# otherwise returns the object. -# - {#send_request}[rdoc-ref:Net::HTTP#send_request]: -# Sends a request and returns a response object. -# - {#trace}[rdoc-ref:Net::HTTP#trace]: -# Sends a TRACE request and returns a response object. -# - {#unlock}[rdoc-ref:Net::HTTP#unlock]: -# Sends an UNLOCK request and returns a response object. -# -# === Responses -# -# - {:close_on_empty_response}[rdoc-ref:Net::HTTP#close_on_empty_response]: -# Returns whether to close connection on empty response. -# - {:close_on_empty_response=}[rdoc-ref:Net::HTTP#close_on_empty_response=]: -# Sets whether to close connection on empty response. -# - {:ignore_eof}[rdoc-ref:Net::HTTP#ignore_eof]: -# Returns whether to ignore end-of-file when reading a response body -# with Content-Length headers. -# - {:ignore_eof=}[rdoc-ref:Net::HTTP#ignore_eof=]: -# Sets whether to ignore end-of-file when reading a response body -# with Content-Length headers. -# - {:response_body_encoding}[rdoc-ref:Net::HTTP#response_body_encoding]: -# Returns the encoding to use for the response body. -# - {#response_body_encoding=}[rdoc-ref:Net::HTTP#response_body_encoding=]: -# Sets the response body encoding. -# -# === Proxies -# -# - {:proxy_address}[rdoc-ref:Net::HTTP#proxy_address]: -# Returns the proxy address. -# - {:proxy_address=}[rdoc-ref:Net::HTTP#proxy_address=]: -# Sets the proxy address. -# - {::proxy_class?}[rdoc-ref:Net::HTTP.proxy_class?]: -# Returns whether +self+ is a proxy class. -# - {#proxy?}[rdoc-ref:Net::HTTP#proxy?]: -# Returns whether +self+ has a proxy. -# - {#proxy_address}[rdoc-ref:Net::HTTP#proxy_address] -# (aliased as {#proxyaddr}[rdoc-ref:Net::HTTP#proxyaddr]): -# Returns the proxy address. -# - {#proxy_from_env?}[rdoc-ref:Net::HTTP#proxy_from_env?]: -# Returns whether the proxy is taken from an environment variable. -# - {:proxy_from_env=}[rdoc-ref:Net::HTTP#proxy_from_env=]: -# Sets whether the proxy is to be taken from an environment variable. -# - {:proxy_pass}[rdoc-ref:Net::HTTP#proxy_pass]: -# Returns the proxy password. -# - {:proxy_pass=}[rdoc-ref:Net::HTTP#proxy_pass=]: -# Sets the proxy password. -# - {:proxy_port}[rdoc-ref:Net::HTTP#proxy_port]: -# Returns the proxy port. -# - {:proxy_port=}[rdoc-ref:Net::HTTP#proxy_port=]: -# Sets the proxy port. -# - {#proxy_user}[rdoc-ref:Net::HTTP#proxy_user]: -# Returns the proxy user name. -# - {:proxy_user=}[rdoc-ref:Net::HTTP#proxy_user=]: -# Sets the proxy user. -# -# === Security -# -# - {:ca_file}[rdoc-ref:Net::HTTP#ca_file]: -# Returns the path to a CA certification file. -# - {:ca_file=}[rdoc-ref:Net::HTTP#ca_file=]: -# Sets the path to a CA certification file. -# - {:ca_path}[rdoc-ref:Net::HTTP#ca_path]: -# Returns the path of to CA directory containing certification files. -# - {:ca_path=}[rdoc-ref:Net::HTTP#ca_path=]: -# Sets the path of to CA directory containing certification files. -# - {:cert}[rdoc-ref:Net::HTTP#cert]: -# Returns the OpenSSL::X509::Certificate object to be used for client certification. -# - {:cert=}[rdoc-ref:Net::HTTP#cert=]: -# Sets the OpenSSL::X509::Certificate object to be used for client certification. -# - {:cert_store}[rdoc-ref:Net::HTTP#cert_store]: -# Returns the X509::Store to be used for verifying peer certificate. -# - {:cert_store=}[rdoc-ref:Net::HTTP#cert_store=]: -# Sets the X509::Store to be used for verifying peer certificate. -# - {:ciphers}[rdoc-ref:Net::HTTP#ciphers]: -# Returns the available SSL ciphers. -# - {:ciphers=}[rdoc-ref:Net::HTTP#ciphers=]: -# Sets the available SSL ciphers. -# - {:extra_chain_cert}[rdoc-ref:Net::HTTP#extra_chain_cert]: -# Returns the extra X509 certificates to be added to the certificate chain. -# - {:extra_chain_cert=}[rdoc-ref:Net::HTTP#extra_chain_cert=]: -# Sets the extra X509 certificates to be added to the certificate chain. -# - {:key}[rdoc-ref:Net::HTTP#key]: -# Returns the OpenSSL::PKey::RSA or OpenSSL::PKey::DSA object. -# - {:key=}[rdoc-ref:Net::HTTP#key=]: -# Sets the OpenSSL::PKey::RSA or OpenSSL::PKey::DSA object. -# - {:max_version}[rdoc-ref:Net::HTTP#max_version]: -# Returns the maximum SSL version. -# - {:max_version=}[rdoc-ref:Net::HTTP#max_version=]: -# Sets the maximum SSL version. -# - {:min_version}[rdoc-ref:Net::HTTP#min_version]: -# Returns the minimum SSL version. -# - {:min_version=}[rdoc-ref:Net::HTTP#min_version=]: -# Sets the minimum SSL version. -# - {#peer_cert}[rdoc-ref:Net::HTTP#peer_cert]: -# Returns the X509 certificate chain for the session's socket peer. -# - {:ssl_version}[rdoc-ref:Net::HTTP#ssl_version]: -# Returns the SSL version. -# - {:ssl_version=}[rdoc-ref:Net::HTTP#ssl_version=]: -# Sets the SSL version. -# - {#use_ssl=}[rdoc-ref:Net::HTTP#use_ssl=]: -# Sets whether a new session is to use Transport Layer Security. -# - {#use_ssl?}[rdoc-ref:Net::HTTP#use_ssl?]: -# Returns whether +self+ uses SSL. -# - {:verify_callback}[rdoc-ref:Net::HTTP#verify_callback]: -# Returns the callback for the server certification verification. -# - {:verify_callback=}[rdoc-ref:Net::HTTP#verify_callback=]: -# Sets the callback for the server certification verification. -# - {:verify_depth}[rdoc-ref:Net::HTTP#verify_depth]: -# Returns the maximum depth for the certificate chain verification. -# - {:verify_depth=}[rdoc-ref:Net::HTTP#verify_depth=]: -# Sets the maximum depth for the certificate chain verification. -# - {:verify_hostname}[rdoc-ref:Net::HTTP#verify_hostname]: -# Returns the flags for server the certification verification at the beginning of the SSL/TLS session. -# - {:verify_hostname=}[rdoc-ref:Net::HTTP#verify_hostname=]: -# Sets he flags for server the certification verification at the beginning of the SSL/TLS session. -# - {:verify_mode}[rdoc-ref:Net::HTTP#verify_mode]: -# Returns the flags for server the certification verification at the beginning of the SSL/TLS session. -# - {:verify_mode=}[rdoc-ref:Net::HTTP#verify_mode=]: -# Sets the flags for server the certification verification at the beginning of the SSL/TLS session. -# -# === Addresses and Ports -# -# - {:address}[rdoc-ref:Net::HTTP#address]: -# Returns the string host name or host IP. -# - {::default_port}[rdoc-ref:Net::HTTP.default_port]: -# Returns integer 80, the default port to use for HTTP requests. -# - {::http_default_port}[rdoc-ref:Net::HTTP.http_default_port]: -# Returns integer 80, the default port to use for HTTP requests. -# - {::https_default_port}[rdoc-ref:Net::HTTP.https_default_port]: -# Returns integer 443, the default port to use for HTTPS requests. -# - {#ipaddr}[rdoc-ref:Net::HTTP#ipaddr]: -# Returns the IP address for the connection. -# - {#ipaddr=}[rdoc-ref:Net::HTTP#ipaddr=]: -# Sets the IP address for the connection. -# - {:local_host}[rdoc-ref:Net::HTTP#local_host]: -# Returns the string local host used to establish the connection. -# - {:local_host=}[rdoc-ref:Net::HTTP#local_host=]: -# Sets the string local host used to establish the connection. -# - {:local_port}[rdoc-ref:Net::HTTP#local_port]: -# Returns the integer local port used to establish the connection. -# - {:local_port=}[rdoc-ref:Net::HTTP#local_port=]: -# Sets the integer local port used to establish the connection. -# - {:port}[rdoc-ref:Net::HTTP#port]: -# Returns the integer port number. -# -# === \HTTP Version -# -# - {::version_1_2?}[rdoc-ref:Net::HTTP.version_1_2?] -# (aliased as {::is_version_1_2?}[rdoc-ref:Net::HTTP.is_version_1_2?] -# and {::version_1_2}[rdoc-ref:Net::HTTP.version_1_2]): -# Returns true; retained for compatibility. -# -# === Debugging -# -# - {#set_debug_output}[rdoc-ref:Net::HTTP#set_debug_output]: -# Sets the output stream for debugging. -# -# source://net-http//lib/net/http.rb#722 + +# :enddoc: class Net::HTTP < ::Net::Protocol # Creates a new \Net::HTTP object for the specified server address, # without opening the TCP connection or initializing the \HTTP session. @@ -699,7 +13,7 @@ class Net::HTTP < ::Net::Protocol # # @return [HTTP] a new instance of HTTP # - # source://net-http//lib/net/http.rb#1093 + # source://net-http//net/http.rb#1093 def initialize(address, port = T.unsafe(nil)); end # Returns +true+ if the \HTTP session has been started: @@ -718,86 +32,86 @@ class Net::HTTP < ::Net::Protocol # # @return [Boolean] # - # source://net-http//lib/net/http.rb#1413 + # source://net-http//net/http.rb#1413 def active?; end # Returns the string host name or host IP given as argument +address+ in ::new. # - # source://net-http//lib/net/http.rb#1194 + # source://net-http//net/http.rb#1194 def address; end # Sets or returns the path to a CA certification file in PEM format. # - # source://net-http//lib/net/http.rb#1479 + # source://net-http//net/http.rb#1479 def ca_file; end # Sets or returns the path to a CA certification file in PEM format. # - # source://net-http//lib/net/http.rb#1479 + # source://net-http//net/http.rb#1479 def ca_file=(_arg0); end # Sets or returns the path of to CA directory # containing certification files in PEM format. # - # source://net-http//lib/net/http.rb#1483 + # source://net-http//net/http.rb#1483 def ca_path; end # Sets or returns the path of to CA directory # containing certification files in PEM format. # - # source://net-http//lib/net/http.rb#1483 + # source://net-http//net/http.rb#1483 def ca_path=(_arg0); end # Sets or returns the OpenSSL::X509::Certificate object # to be used for client certification. # - # source://net-http//lib/net/http.rb#1487 + # source://net-http//net/http.rb#1487 def cert; end # Sets or returns the OpenSSL::X509::Certificate object # to be used for client certification. # - # source://net-http//lib/net/http.rb#1487 + # source://net-http//net/http.rb#1487 def cert=(_arg0); end # Sets or returns the X509::Store to be used for verifying peer certificate. # - # source://net-http//lib/net/http.rb#1490 + # source://net-http//net/http.rb#1490 def cert_store; end # Sets or returns the X509::Store to be used for verifying peer certificate. # - # source://net-http//lib/net/http.rb#1490 + # source://net-http//net/http.rb#1490 def cert_store=(_arg0); end # Sets or returns the available SSL ciphers. - # See {OpenSSL::SSL::SSLContext#ciphers=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-ciphers-3D]. + # See {OpenSSL::SSL::SSLContext#ciphers=}[rdoc-ref:OpenSSL::SSL::SSLContext#ciphers-3D]. # - # source://net-http//lib/net/http.rb#1494 + # source://net-http//net/http.rb#1494 def ciphers; end # Sets or returns the available SSL ciphers. - # See {OpenSSL::SSL::SSLContext#ciphers=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-ciphers-3D]. + # See {OpenSSL::SSL::SSLContext#ciphers=}[rdoc-ref:OpenSSL::SSL::SSLContext#ciphers-3D]. # - # source://net-http//lib/net/http.rb#1494 + # source://net-http//net/http.rb#1494 def ciphers=(_arg0); end # Sets or returns whether to close the connection when the response is empty; # initially +false+. # - # source://net-http//lib/net/http.rb#1421 + # source://net-http//net/http.rb#1421 def close_on_empty_response; end # Sets or returns whether to close the connection when the response is empty; # initially +false+. # - # source://net-http//lib/net/http.rb#1421 + # source://net-http//net/http.rb#1421 def close_on_empty_response=(_arg0); end # Returns the continue timeout value; # see continue_timeout=. # - # source://net-http//lib/net/http.rb#1374 + # source://net-http//net/http.rb#1374 def continue_timeout; end # Sets the continue timeout value, @@ -805,7 +119,7 @@ class Net::HTTP < ::Net::Protocol # If the \HTTP object does not receive a response in this many seconds # it sends the request body. # - # source://net-http//lib/net/http.rb#1380 + # source://net-http//net/http.rb#1380 def continue_timeout=(sec); end # Sends a COPY request to the server; @@ -817,7 +131,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.copy('/todos/1') # - # source://net-http//lib/net/http.rb#2123 + # source://net-http//net/http.rb#2123 def copy(path, initheader = T.unsafe(nil)); end # Sends a DELETE request to the server; @@ -829,19 +143,19 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.delete('/todos/1') # - # source://net-http//lib/net/http.rb#2097 + # source://net-http//net/http.rb#2097 def delete(path, initheader = T.unsafe(nil)); end # Sets or returns the extra X509 certificates to be added to the certificate chain. - # See {OpenSSL::SSL::SSLContext#add_certificate}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-add_certificate]. + # See {OpenSSL::SSL::SSLContext#add_certificate}[rdoc-ref:OpenSSL::SSL::SSLContext#add_certificate]. # - # source://net-http//lib/net/http.rb#1498 + # source://net-http//net/http.rb#1498 def extra_chain_cert; end # Sets or returns the extra X509 certificates to be added to the certificate chain. - # See {OpenSSL::SSL::SSLContext#add_certificate}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-add_certificate]. + # See {OpenSSL::SSL::SSLContext#add_certificate}[rdoc-ref:OpenSSL::SSL::SSLContext#add_certificate]. # - # source://net-http//lib/net/http.rb#1498 + # source://net-http//net/http.rb#1498 def extra_chain_cert=(_arg0); end # Finishes the \HTTP session: @@ -856,7 +170,7 @@ class Net::HTTP < ::Net::Protocol # # @raise [IOError] # - # source://net-http//lib/net/http.rb#1708 + # source://net-http//net/http.rb#1708 def finish; end # :call-seq: @@ -888,7 +202,7 @@ class Net::HTTP < ::Net::Protocol # - Net::HTTP::Get: request class for \HTTP method GET. # - Net::HTTP.get: sends GET request, returns response body. # - # source://net-http//lib/net/http.rb#1914 + # source://net-http//net/http.rb#1914 def get(path, initheader = T.unsafe(nil), dest = T.unsafe(nil), &block); end # Sends a GET request to the server; @@ -913,7 +227,7 @@ class Net::HTTP < ::Net::Protocol # # # # - # source://net-http//lib/net/http.rb#2176 + # source://net-http//net/http.rb#2176 def get2(path, initheader = T.unsafe(nil), &block); end # Sends a HEAD request to the server; @@ -930,7 +244,7 @@ class Net::HTTP < ::Net::Protocol # ["content-type", ["application/json; charset=utf-8"]], # ["connection", ["close"]]] # - # source://net-http//lib/net/http.rb#1938 + # source://net-http//net/http.rb#1938 def head(path, initheader = T.unsafe(nil)); end # Sends a HEAD request to the server; @@ -942,21 +256,21 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.head('/todos/1') # => # # - # source://net-http//lib/net/http.rb#2189 + # source://net-http//net/http.rb#2189 def head2(path, initheader = T.unsafe(nil), &block); end # Sets or returns whether to ignore end-of-file when reading a response body # with Content-Length headers; # initially +true+. # - # source://net-http//lib/net/http.rb#1397 + # source://net-http//net/http.rb#1397 def ignore_eof; end # Sets or returns whether to ignore end-of-file when reading a response body # with Content-Length headers; # initially +true+. # - # source://net-http//lib/net/http.rb#1397 + # source://net-http//net/http.rb#1397 def ignore_eof=(_arg0); end # Returns a string representation of +self+: @@ -964,7 +278,7 @@ class Net::HTTP < ::Net::Protocol # Net::HTTP.new(hostname).inspect # # => "#" # - # source://net-http//lib/net/http.rb#1135 + # source://net-http//net/http.rb#1135 def inspect; end # Returns the IP address for the connection. @@ -986,7 +300,7 @@ class Net::HTTP < ::Net::Protocol # http.ipaddr # => "172.67.155.76" # http.finish # - # source://net-http//lib/net/http.rb#1274 + # source://net-http//net/http.rb#1274 def ipaddr; end # Sets the IP address for the connection: @@ -1000,7 +314,7 @@ class Net::HTTP < ::Net::Protocol # # @raise [IOError] # - # source://net-http//lib/net/http.rb#1286 + # source://net-http//net/http.rb#1286 def ipaddr=(addr); end # Sets or returns the numeric (\Integer or \Float) number of seconds @@ -1011,7 +325,7 @@ class Net::HTTP < ::Net::Protocol # otherwise the connection will have been closed # and a new connection is opened. # - # source://net-http//lib/net/http.rb#1392 + # source://net-http//net/http.rb#1392 def keep_alive_timeout; end # Sets or returns the numeric (\Integer or \Float) number of seconds @@ -1022,41 +336,41 @@ class Net::HTTP < ::Net::Protocol # otherwise the connection will have been closed # and a new connection is opened. # - # source://net-http//lib/net/http.rb#1392 + # source://net-http//net/http.rb#1392 def keep_alive_timeout=(_arg0); end # Sets or returns the OpenSSL::PKey::RSA or OpenSSL::PKey::DSA object. # - # source://net-http//lib/net/http.rb#1501 + # source://net-http//net/http.rb#1501 def key; end # Sets or returns the OpenSSL::PKey::RSA or OpenSSL::PKey::DSA object. # - # source://net-http//lib/net/http.rb#1501 + # source://net-http//net/http.rb#1501 def key=(_arg0); end # Sets or returns the string local host used to establish the connection; # initially +nil+. # - # source://net-http//lib/net/http.rb#1201 + # source://net-http//net/http.rb#1201 def local_host; end # Sets or returns the string local host used to establish the connection; # initially +nil+. # - # source://net-http//lib/net/http.rb#1201 + # source://net-http//net/http.rb#1201 def local_host=(_arg0); end # Sets or returns the integer local port used to establish the connection; # initially +nil+. # - # source://net-http//lib/net/http.rb#1205 + # source://net-http//net/http.rb#1205 def local_port; end # Sets or returns the integer local port used to establish the connection; # initially +nil+. # - # source://net-http//lib/net/http.rb#1205 + # source://net-http//net/http.rb#1205 def local_port=(_arg0); end # Sends a LOCK request to the server; @@ -1069,13 +383,13 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.lock('/todos/1', data) # - # source://net-http//lib/net/http.rb#2043 + # source://net-http//net/http.rb#2043 def lock(path, body, initheader = T.unsafe(nil)); end # Returns the maximum number of times to retry an idempotent request; # see #max_retries=. # - # source://net-http//lib/net/http.rb#1330 + # source://net-http//net/http.rb#1330 def max_retries; end # Sets the maximum number of times to retry an idempotent request in case of @@ -1090,31 +404,31 @@ class Net::HTTP < ::Net::Protocol # http.max_retries = 2 # => 2 # http.max_retries # => 2 # - # source://net-http//lib/net/http.rb#1320 + # source://net-http//net/http.rb#1320 def max_retries=(retries); end # Sets or returns the maximum SSL version. - # See {OpenSSL::SSL::SSLContext#max_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D]. + # See {OpenSSL::SSL::SSLContext#max_version=}[rdoc-ref:OpenSSL::SSL::SSLContext#max_version-3D]. # - # source://net-http//lib/net/http.rb#1516 + # source://net-http//net/http.rb#1516 def max_version; end # Sets or returns the maximum SSL version. - # See {OpenSSL::SSL::SSLContext#max_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D]. + # See {OpenSSL::SSL::SSLContext#max_version=}[rdoc-ref:OpenSSL::SSL::SSLContext#max_version-3D]. # - # source://net-http//lib/net/http.rb#1516 + # source://net-http//net/http.rb#1516 def max_version=(_arg0); end # Sets or returns the minimum SSL version. - # See {OpenSSL::SSL::SSLContext#min_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D]. + # See {OpenSSL::SSL::SSLContext#min_version=}[rdoc-ref:OpenSSL::SSL::SSLContext#min_version-3D]. # - # source://net-http//lib/net/http.rb#1512 + # source://net-http//net/http.rb#1512 def min_version; end # Sets or returns the minimum SSL version. - # See {OpenSSL::SSL::SSLContext#min_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D]. + # See {OpenSSL::SSL::SSLContext#min_version=}[rdoc-ref:OpenSSL::SSL::SSLContext#min_version-3D]. # - # source://net-http//lib/net/http.rb#1512 + # source://net-http//net/http.rb#1512 def min_version=(_arg0); end # Sends a MKCOL request to the server; @@ -1127,7 +441,7 @@ class Net::HTTP < ::Net::Protocol # http.mkcol('/todos/1', data) # http = Net::HTTP.new(hostname) # - # source://net-http//lib/net/http.rb#2137 + # source://net-http//net/http.rb#2137 def mkcol(path, body = T.unsafe(nil), initheader = T.unsafe(nil)); end # Sends a MOVE request to the server; @@ -1139,7 +453,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.move('/todos/1') # - # source://net-http//lib/net/http.rb#2110 + # source://net-http//net/http.rb#2110 def move(path, initheader = T.unsafe(nil)); end # Sets or returns the numeric (\Integer or \Float) number of seconds @@ -1148,7 +462,7 @@ class Net::HTTP < ::Net::Protocol # If the connection is not made in the given interval, # an exception is raised. # - # source://net-http//lib/net/http.rb#1296 + # source://net-http//net/http.rb#1296 def open_timeout; end # Sets or returns the numeric (\Integer or \Float) number of seconds @@ -1157,7 +471,7 @@ class Net::HTTP < ::Net::Protocol # If the connection is not made in the given interval, # an exception is raised. # - # source://net-http//lib/net/http.rb#1296 + # source://net-http//net/http.rb#1296 def open_timeout=(_arg0); end # Sends an Options request to the server; @@ -1169,7 +483,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.options('/') # - # source://net-http//lib/net/http.rb#2070 + # source://net-http//net/http.rb#2070 def options(path, initheader = T.unsafe(nil)); end # :call-seq: @@ -1197,19 +511,19 @@ class Net::HTTP < ::Net::Protocol # # http.patch('/todos/1', data) # => # # - # source://net-http//lib/net/http.rb#2001 + # source://net-http//net/http.rb#2001 def patch(path, data, initheader = T.unsafe(nil), dest = T.unsafe(nil), &block); end # Returns the X509 certificate chain (an array of strings) # for the session's socket peer, # or +nil+ if none. # - # source://net-http//lib/net/http.rb#1537 + # source://net-http//net/http.rb#1537 def peer_cert; end # Returns the integer port number given as argument +port+ in ::new. # - # source://net-http//lib/net/http.rb#1197 + # source://net-http//net/http.rb#1197 def port; end # :call-seq: @@ -1242,7 +556,7 @@ class Net::HTTP < ::Net::Protocol # - Net::HTTP::Post: request class for \HTTP method POST. # - Net::HTTP.post: sends POST request, returns response body. # - # source://net-http//lib/net/http.rb#1972 + # source://net-http//net/http.rb#1972 def post(path, data, initheader = T.unsafe(nil), dest = T.unsafe(nil), &block); end # Sends a POST request to the server; @@ -1268,7 +582,7 @@ class Net::HTTP < ::Net::Protocol # # "{\n \"xyzzy\": \"\",\n \"id\": 201\n}" # - # source://net-http//lib/net/http.rb#2216 + # source://net-http//net/http.rb#2216 def post2(path, data, initheader = T.unsafe(nil), &block); end # Sends a PROPFIND request to the server; @@ -1281,7 +595,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.propfind('/todos/1', data) # - # source://net-http//lib/net/http.rb#2084 + # source://net-http//net/http.rb#2084 def propfind(path, body = T.unsafe(nil), initheader = T.unsafe(nil)); end # Sends a PROPPATCH request to the server; @@ -1294,7 +608,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.proppatch('/todos/1', data) # - # source://net-http//lib/net/http.rb#2029 + # source://net-http//net/http.rb#2029 def proppatch(path, body, initheader = T.unsafe(nil)); end # Returns +true+ if a proxy server is defined, +false+ otherwise; @@ -1302,26 +616,26 @@ class Net::HTTP < ::Net::Protocol # # @return [Boolean] # - # source://net-http//lib/net/http.rb#1785 + # source://net-http//net/http.rb#1785 def proxy?; end # Returns the address of the proxy server, if defined, +nil+ otherwise; # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. # - # source://net-http//lib/net/http.rb#1807 + # source://net-http//net/http.rb#1807 def proxy_address; end # Sets the proxy address; # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. # - # source://net-http//lib/net/http.rb#1241 + # source://net-http//net/http.rb#1241 def proxy_address=(_arg0); end # Sets whether to determine the proxy from environment variable # 'ENV['http_proxy']'; # see {Proxy Using ENV['http_proxy']}[rdoc-ref:Net::HTTP@Proxy+Using+-27ENV-5B-27http_proxy-27-5D-27]. # - # source://net-http//lib/net/http.rb#1237 + # source://net-http//net/http.rb#1237 def proxy_from_env=(_arg0); end # Returns +true+ if the proxy server is defined in the environment, @@ -1330,60 +644,60 @@ class Net::HTTP < ::Net::Protocol # # @return [Boolean] # - # source://net-http//lib/net/http.rb#1792 + # source://net-http//net/http.rb#1792 def proxy_from_env?; end # Returns the password of the proxy server, if defined, +nil+ otherwise; # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. # - # source://net-http//lib/net/http.rb#1838 + # source://net-http//net/http.rb#1838 def proxy_pass; end # Sets the proxy password; # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. # - # source://net-http//lib/net/http.rb#1253 + # source://net-http//net/http.rb#1253 def proxy_pass=(_arg0); end # Returns the port number of the proxy server, if defined, +nil+ otherwise; # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. # - # source://net-http//lib/net/http.rb#1817 + # source://net-http//net/http.rb#1817 def proxy_port; end # Sets the proxy port; # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. # - # source://net-http//lib/net/http.rb#1245 + # source://net-http//net/http.rb#1245 def proxy_port=(_arg0); end # The proxy URI determined from the environment for this connection. # - # source://net-http//lib/net/http.rb#1797 + # source://net-http//net/http.rb#1797 def proxy_uri; end # Returns the user name of the proxy server, if defined, +nil+ otherwise; # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. # - # source://net-http//lib/net/http.rb#1827 + # source://net-http//net/http.rb#1827 def proxy_user; end # Sets the proxy user; # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. # - # source://net-http//lib/net/http.rb#1249 + # source://net-http//net/http.rb#1249 def proxy_user=(_arg0); end # Returns the address of the proxy server, if defined, +nil+ otherwise; # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. # - # source://net-http//lib/net/http.rb#1807 + # source://net-http//net/http.rb#1807 def proxyaddr; end # Returns the port number of the proxy server, if defined, +nil+ otherwise; # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. # - # source://net-http//lib/net/http.rb#1817 + # source://net-http//net/http.rb#1817 def proxyport; end # Sends a PUT request to the server; @@ -1396,7 +710,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.put('/todos/1', data) # => # # - # source://net-http//lib/net/http.rb#2015 + # source://net-http//net/http.rb#2015 def put(path, data, initheader = T.unsafe(nil)); end # Sends a PUT request to the server; @@ -1409,14 +723,14 @@ class Net::HTTP < ::Net::Protocol # http.put('/todos/1', 'xyzzy') # # => # # - # source://net-http//lib/net/http.rb#2230 + # source://net-http//net/http.rb#2230 def put2(path, data, initheader = T.unsafe(nil), &block); end # Returns the numeric (\Integer or \Float) number of seconds # to wait for one block to be read (via one read(2) call); # see #read_timeout=. # - # source://net-http//lib/net/http.rb#1301 + # source://net-http//net/http.rb#1301 def read_timeout; end # Sets the read timeout, in seconds, for +self+ to integer +sec+; @@ -1430,7 +744,7 @@ class Net::HTTP < ::Net::Protocol # http.read_timeout = 0 # http.get('/todos/1') # Raises Net::ReadTimeout. # - # source://net-http//lib/net/http.rb#1343 + # source://net-http//net/http.rb#1343 def read_timeout=(sec); end # Sends the given request +req+ to the server; @@ -1463,7 +777,7 @@ class Net::HTTP < ::Net::Protocol # # # # - # source://net-http//lib/net/http.rb#2295 + # source://net-http//net/http.rb#2295 def request(req, body = T.unsafe(nil), &block); end # Sends a GET request to the server; @@ -1488,7 +802,7 @@ class Net::HTTP < ::Net::Protocol # # # # - # source://net-http//lib/net/http.rb#2176 + # source://net-http//net/http.rb#2176 def request_get(path, initheader = T.unsafe(nil), &block); end # Sends a HEAD request to the server; @@ -1500,7 +814,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.head('/todos/1') # => # # - # source://net-http//lib/net/http.rb#2189 + # source://net-http//net/http.rb#2189 def request_head(path, initheader = T.unsafe(nil), &block); end # Sends a POST request to the server; @@ -1526,7 +840,7 @@ class Net::HTTP < ::Net::Protocol # # "{\n \"xyzzy\": \"\",\n \"id\": 201\n}" # - # source://net-http//lib/net/http.rb#2216 + # source://net-http//net/http.rb#2216 def request_post(path, data, initheader = T.unsafe(nil), &block); end # Sends a PUT request to the server; @@ -1539,13 +853,13 @@ class Net::HTTP < ::Net::Protocol # http.put('/todos/1', 'xyzzy') # # => # # - # source://net-http//lib/net/http.rb#2230 + # source://net-http//net/http.rb#2230 def request_put(path, data, initheader = T.unsafe(nil), &block); end # Returns the encoding to use for the response body; # see #response_body_encoding=. # - # source://net-http//lib/net/http.rb#1209 + # source://net-http//net/http.rb#1209 def response_body_encoding; end # Sets the encoding to be used for the response body; @@ -1557,7 +871,7 @@ class Net::HTTP < ::Net::Protocol # - The name of an encoding. # - An alias for an encoding name. # - # See {Encoding}[https://docs.ruby-lang.org/en/master/Encoding.html]. + # See {Encoding}[rdoc-ref:Encoding]. # # Examples: # @@ -1566,7 +880,7 @@ class Net::HTTP < ::Net::Protocol # http.response_body_encoding = 'US-ASCII' # => "US-ASCII" # http.response_body_encoding = 'ASCII' # => "ASCII" # - # source://net-http//lib/net/http.rb#1229 + # source://net-http//net/http.rb#1229 def response_body_encoding=(value); end # Sends an \HTTP request to the server; @@ -1589,7 +903,7 @@ class Net::HTTP < ::Net::Protocol # http.send_request('POST', '/todos', 'xyzzy') # # => # # - # source://net-http//lib/net/http.rb#2259 + # source://net-http//net/http.rb#2259 def send_request(name, path, data = T.unsafe(nil), header = T.unsafe(nil)); end # *WARNING* This method opens a serious security hole. @@ -1641,29 +955,29 @@ class Net::HTTP < ::Net::Protocol # read 2 bytes # Conn keep-alive # - # source://net-http//lib/net/http.rb#1188 + # source://net-http//net/http.rb#1188 def set_debug_output(output); end # Sets or returns the SSL timeout seconds. # - # source://net-http//lib/net/http.rb#1504 + # source://net-http//net/http.rb#1504 def ssl_timeout; end # Sets or returns the SSL timeout seconds. # - # source://net-http//lib/net/http.rb#1504 + # source://net-http//net/http.rb#1504 def ssl_timeout=(_arg0); end # Sets or returns the SSL version. - # See {OpenSSL::SSL::SSLContext#ssl_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-ssl_version-3D]. + # See {OpenSSL::SSL::SSLContext#ssl_version=}[rdoc-ref:OpenSSL::SSL::SSLContext#ssl_version-3D]. # - # source://net-http//lib/net/http.rb#1508 + # source://net-http//net/http.rb#1508 def ssl_version; end # Sets or returns the SSL version. - # See {OpenSSL::SSL::SSLContext#ssl_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-ssl_version-3D]. + # See {OpenSSL::SSL::SSLContext#ssl_version=}[rdoc-ref:OpenSSL::SSL::SSLContext#ssl_version-3D]. # - # source://net-http//lib/net/http.rb#1508 + # source://net-http//net/http.rb#1508 def ssl_version=(_arg0); end # Starts an \HTTP session. @@ -1689,7 +1003,7 @@ class Net::HTTP < ::Net::Protocol # # @raise [IOError] # - # source://net-http//lib/net/http.rb#1565 + # source://net-http//net/http.rb#1565 def start; end # Returns +true+ if the \HTTP session has been started: @@ -1708,7 +1022,7 @@ class Net::HTTP < ::Net::Protocol # # @return [Boolean] # - # source://net-http//lib/net/http.rb#1413 + # source://net-http//net/http.rb#1413 def started?; end # Sends a TRACE request to the server; @@ -1720,7 +1034,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.trace('/todos/1') # - # source://net-http//lib/net/http.rb#2150 + # source://net-http//net/http.rb#2150 def trace(path, initheader = T.unsafe(nil)); end # Sends an UNLOCK request to the server; @@ -1733,7 +1047,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.unlock('/todos/1', data) # - # source://net-http//lib/net/http.rb#2057 + # source://net-http//net/http.rb#2057 def unlock(path, body, initheader = T.unsafe(nil)); end # Sets whether a new session is to use @@ -1743,7 +1057,7 @@ class Net::HTTP < ::Net::Protocol # # Raises OpenSSL::SSL::SSLError if the port is not an HTTPS port. # - # source://net-http//lib/net/http.rb#1435 + # source://net-http//net/http.rb#1435 def use_ssl=(flag); end # Returns +true+ if +self+ uses SSL, +false+ otherwise. @@ -1751,62 +1065,62 @@ class Net::HTTP < ::Net::Protocol # # @return [Boolean] # - # source://net-http//lib/net/http.rb#1425 + # source://net-http//net/http.rb#1425 def use_ssl?; end # Sets or returns the callback for the server certification verification. # - # source://net-http//lib/net/http.rb#1519 + # source://net-http//net/http.rb#1519 def verify_callback; end # Sets or returns the callback for the server certification verification. # - # source://net-http//lib/net/http.rb#1519 + # source://net-http//net/http.rb#1519 def verify_callback=(_arg0); end # Sets or returns the maximum depth for the certificate chain verification. # - # source://net-http//lib/net/http.rb#1522 + # source://net-http//net/http.rb#1522 def verify_depth; end # Sets or returns the maximum depth for the certificate chain verification. # - # source://net-http//lib/net/http.rb#1522 + # source://net-http//net/http.rb#1522 def verify_depth=(_arg0); end # Sets or returns whether to verify that the server certificate is valid # for the hostname. - # See {OpenSSL::SSL::SSLContext#verify_hostname=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#attribute-i-verify_mode]. + # See {OpenSSL::SSL::SSLContext#verify_hostname=}[rdoc-ref:OpenSSL::SSL::SSLContext#attribute-i-verify_mode]. # - # source://net-http//lib/net/http.rb#1532 + # source://net-http//net/http.rb#1532 def verify_hostname; end # Sets or returns whether to verify that the server certificate is valid # for the hostname. - # See {OpenSSL::SSL::SSLContext#verify_hostname=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#attribute-i-verify_mode]. + # See {OpenSSL::SSL::SSLContext#verify_hostname=}[rdoc-ref:OpenSSL::SSL::SSLContext#attribute-i-verify_mode]. # - # source://net-http//lib/net/http.rb#1532 + # source://net-http//net/http.rb#1532 def verify_hostname=(_arg0); end # Sets or returns the flags for server the certification verification # at the beginning of the SSL/TLS session. # OpenSSL::SSL::VERIFY_NONE or OpenSSL::SSL::VERIFY_PEER are acceptable. # - # source://net-http//lib/net/http.rb#1527 + # source://net-http//net/http.rb#1527 def verify_mode; end # Sets or returns the flags for server the certification verification # at the beginning of the SSL/TLS session. # OpenSSL::SSL::VERIFY_NONE or OpenSSL::SSL::VERIFY_PEER are acceptable. # - # source://net-http//lib/net/http.rb#1527 + # source://net-http//net/http.rb#1527 def verify_mode=(_arg0); end # Returns the numeric (\Integer or \Float) number of seconds # to wait for one block to be written (via one write(2) call); # see #write_timeout=. # - # source://net-http//lib/net/http.rb#1306 + # source://net-http//net/http.rb#1306 def write_timeout; end # Sets the write timeout, in seconds, for +self+ to integer +sec+; @@ -1828,76 +1142,76 @@ class Net::HTTP < ::Net::Protocol # http.write_timeout = 0 # http.post(_uri.path, data, headers) # Raises Net::WriteTimeout. # - # source://net-http//lib/net/http.rb#1367 + # source://net-http//net/http.rb#1367 def write_timeout=(sec); end private # Adds a message to debugging output # - # source://net-http//lib/net/http.rb#2472 + # source://net-http//net/http.rb#2472 def D(msg); end - # source://net-http//lib/net/http.rb#2464 + # source://net-http//net/http.rb#2464 def addr_port; end - # source://net-http//lib/net/http.rb#2381 + # source://net-http//net/http.rb#2381 def begin_transport(req); end # without proxy, obsolete # - # source://net-http//lib/net/http.rb#1859 + # source://net-http//net/http.rb#1859 def conn_address; end - # source://net-http//lib/net/http.rb#1863 + # source://net-http//net/http.rb#1863 def conn_port; end - # source://net-http//lib/net/http.rb#1585 + # source://net-http//net/http.rb#1585 def connect; end # Adds a message to debugging output # - # source://net-http//lib/net/http.rb#2472 + # source://net-http//net/http.rb#2472 def debug(msg); end - # source://net-http//lib/net/http.rb#1713 + # source://net-http//net/http.rb#1713 def do_finish; end - # source://net-http//lib/net/http.rb#1579 + # source://net-http//net/http.rb#1579 def do_start; end - # source://net-http//lib/net/http.rb#1867 + # source://net-http//net/http.rb#1867 def edit_path(path); end - # source://net-http//lib/net/http.rb#2404 + # source://net-http//net/http.rb#2404 def end_transport(req, res); end # @return [Boolean] # - # source://net-http//lib/net/http.rb#2421 + # source://net-http//net/http.rb#2421 def keep_alive?(req, res); end - # source://net-http//lib/net/http.rb#1695 + # source://net-http//net/http.rb#1695 def on_connect; end # Executes a request which uses a representation # and returns its body. # - # source://net-http//lib/net/http.rb#2318 + # source://net-http//net/http.rb#2318 def send_entity(path, data, initheader, dest, type, &block); end - # source://net-http//lib/net/http.rb#2445 + # source://net-http//net/http.rb#2445 def sspi_auth(req); end # @return [Boolean] # - # source://net-http//lib/net/http.rb#2430 + # source://net-http//net/http.rb#2430 def sspi_auth?(res); end - # source://net-http//lib/net/http.rb#2329 + # source://net-http//net/http.rb#2329 def transport_request(req); end - # source://net-http//lib/net/http.rb#1852 + # source://net-http//net/http.rb#1852 def unescape(value); end class << self @@ -1907,14 +1221,14 @@ class Net::HTTP < ::Net::Protocol # This class is obsolete. You may pass these same parameters directly to # \Net::HTTP.new. See Net::HTTP.new for details of the arguments. # - # source://net-http//lib/net/http.rb#1739 + # source://net-http//net/http.rb#1739 def Proxy(p_addr = T.unsafe(nil), p_port = T.unsafe(nil), p_user = T.unsafe(nil), p_pass = T.unsafe(nil)); end # Returns integer +80+, the default port to use for \HTTP requests: # # Net::HTTP.default_port # => 80 # - # source://net-http//lib/net/http.rb#900 + # source://net-http//net/http.rb#900 def default_port; end # :call-seq: @@ -1949,7 +1263,7 @@ class Net::HTTP < ::Net::Protocol # - Net::HTTP::Get: request class for \HTTP method +GET+. # - Net::HTTP#get: convenience method for \HTTP method +GET+. # - # source://net-http//lib/net/http.rb#802 + # source://net-http//net/http.rb#802 def get(uri_or_host, path_or_headers = T.unsafe(nil), port = T.unsafe(nil)); end # :call-seq: @@ -1959,7 +1273,7 @@ class Net::HTTP < ::Net::Protocol # Like Net::HTTP.get, but writes the returned body to $stdout; # returns +nil+. # - # source://net-http//lib/net/http.rb#761 + # source://net-http//net/http.rb#761 def get_print(uri_or_host, path_or_headers = T.unsafe(nil), port = T.unsafe(nil)); end # :call-seq: @@ -1969,35 +1283,35 @@ class Net::HTTP < ::Net::Protocol # Like Net::HTTP.get, but returns a Net::HTTPResponse object # instead of the body string. # - # source://net-http//lib/net/http.rb#812 + # source://net-http//net/http.rb#812 def get_response(uri_or_host, path_or_headers = T.unsafe(nil), port = T.unsafe(nil), &block); end # Returns integer +80+, the default port to use for \HTTP requests: # # Net::HTTP.http_default_port # => 80 # - # source://net-http//lib/net/http.rb#908 + # source://net-http//net/http.rb#908 def http_default_port; end # Returns integer +443+, the default port to use for HTTPS requests: # # Net::HTTP.https_default_port # => 443 # - # source://net-http//lib/net/http.rb#916 + # source://net-http//net/http.rb#916 def https_default_port; end # Returns +false+; retained for compatibility. # # @return [Boolean] # - # source://net-http//lib/net/http.rb#746 + # source://net-http//net/http.rb#746 def is_version_1_1?; end # Returns +true+; retained for compatibility. # # @return [Boolean] # - # source://net-http//lib/net/http.rb#741 + # source://net-http//net/http.rb#741 def is_version_1_2?; end # Returns a new \Net::HTTP object +http+ @@ -2029,7 +1343,7 @@ class Net::HTTP < ::Net::Protocol # For proxy-defining arguments +p_addr+ through +p_no_proxy+, # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. # - # source://net-http//lib/net/http.rb#1065 + # source://net-http//net/http.rb#1065 def new(address, port = T.unsafe(nil), p_addr = T.unsafe(nil), p_port = T.unsafe(nil), p_user = T.unsafe(nil), p_pass = T.unsafe(nil), p_no_proxy = T.unsafe(nil)); end # Posts data to a host; returns a Net::HTTPResponse object. @@ -2058,7 +1372,7 @@ class Net::HTTP < ::Net::Protocol # - Net::HTTP::Post: request class for \HTTP method +POST+. # - Net::HTTP#post: convenience method for \HTTP method +POST+. # - # source://net-http//lib/net/http.rb#855 + # source://net-http//net/http.rb#855 def post(url, data, header = T.unsafe(nil)); end # Posts data to a host; returns a Net::HTTPResponse object. @@ -2081,41 +1395,41 @@ class Net::HTTP < ::Net::Protocol # "id": 101 # } # - # source://net-http//lib/net/http.rb#882 + # source://net-http//net/http.rb#882 def post_form(url, params); end # Returns the address of the proxy host, or +nil+ if none; # see Net::HTTP@Proxy+Server. # - # source://net-http//lib/net/http.rb#1768 + # source://net-http//net/http.rb#1768 def proxy_address; end # Returns true if self is a class which was created by HTTP::Proxy. # # @return [Boolean] # - # source://net-http//lib/net/http.rb#1762 + # source://net-http//net/http.rb#1762 def proxy_class?; end # Returns the password for accessing the proxy, or +nil+ if none; # see Net::HTTP@Proxy+Server. # - # source://net-http//lib/net/http.rb#1780 + # source://net-http//net/http.rb#1780 def proxy_pass; end # Returns the port number of the proxy host, or +nil+ if none; # see Net::HTTP@Proxy+Server. # - # source://net-http//lib/net/http.rb#1772 + # source://net-http//net/http.rb#1772 def proxy_port; end # Returns the user name for accessing the proxy, or +nil+ if none; # see Net::HTTP@Proxy+Server. # - # source://net-http//lib/net/http.rb#1776 + # source://net-http//net/http.rb#1776 def proxy_user; end - # source://net-http//lib/net/http.rb#920 + # source://net-http//net/http.rb#920 def socket_type; end # :call-seq: @@ -2204,50 +1518,49 @@ class Net::HTTP < ::Net::Protocol # Note: If +port+ is +nil+ and opts[:use_ssl] is a truthy value, # the value passed to +new+ is Net::HTTP.https_default_port, not +port+. # - # source://net-http//lib/net/http.rb#1010 + # source://net-http//net/http.rb#1010 def start(address, *arg, &block); end # Returns +false+; retained for compatibility. # # @return [Boolean] # - # source://net-http//lib/net/http.rb#746 + # source://net-http//net/http.rb#746 def version_1_1?; end # Returns +true+; retained for compatibility. # - # source://net-http//lib/net/http.rb#736 + # source://net-http//net/http.rb#736 def version_1_2; end # Returns +true+; retained for compatibility. # # @return [Boolean] # - # source://net-http//lib/net/http.rb#741 + # source://net-http//net/http.rb#741 def version_1_2?; end end end -# source://net-http//lib/net/http/proxy_delta.rb#2 module Net::HTTP::ProxyDelta private - # source://net-http//lib/net/http/proxy_delta.rb#5 + # source://net-http//net/http/proxy_delta.rb#5 def conn_address; end - # source://net-http//lib/net/http/proxy_delta.rb#9 + # source://net-http//net/http/proxy_delta.rb#9 def conn_port; end - # source://net-http//lib/net/http/proxy_delta.rb#13 + # source://net-http//net/http/proxy_delta.rb#13 def edit_path(path); end end -# source://net-http//lib/net/http/backward.rb#7 +# source://net-http//net/http/backward.rb#7 Net::HTTP::ProxyMod = Net::HTTP::ProxyDelta # :stopdoc: # -# source://net-http//lib/net/http.rb#725 +# source://net-http//net/http.rb#725 Net::HTTP::VERSION = T.let(T.unsafe(nil), String) # Response class for Already Reported (WebDAV) responses (status code 208). @@ -2264,17 +1577,15 @@ Net::HTTP::VERSION = T.let(T.unsafe(nil), String) # # - {RFC 5842}[https://www.rfc-editor.org/rfc/rfc5842.html#section-7.1]. # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#208]. -# -# source://net-http//lib/net/http/responses.rb#306 class Net::HTTPAlreadyReported < ::Net::HTTPSuccess; end -# source://net-http//lib/net/http/responses.rb#307 +# source://net-http//net/http/responses.rb#307 Net::HTTPAlreadyReported::HAS_BODY = T.let(T.unsafe(nil), TrueClass) -# source://net-http//lib/net/http/responses.rb#67 +# source://net-http//net/http/responses.rb#67 Net::HTTPClientError::EXCEPTION_TYPE = Net::HTTPClientException -# source://net-http//lib/net/http/backward.rb#23 +# source://net-http//net/http/backward.rb#23 Net::HTTPClientErrorCode = Net::HTTPClientError # Response class for Early Hints responses (status code 103). @@ -2290,14 +1601,12 @@ Net::HTTPClientErrorCode = Net::HTTPClientError # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103]. # - {RFC 8297}[https://www.rfc-editor.org/rfc/rfc8297.html#section-2]. # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#103]. -# -# source://net-http//lib/net/http/responses.rb#147 class Net::HTTPEarlyHints < ::Net::HTTPInformation; end -# source://net-http//lib/net/http/responses.rb#148 +# source://net-http//net/http/responses.rb#148 Net::HTTPEarlyHints::HAS_BODY = T.let(T.unsafe(nil), FalseClass) -# source://net-http//lib/net/http/backward.rb#24 +# source://net-http//net/http/backward.rb#24 Net::HTTPFatalErrorCode = Net::HTTPClientError # \HTTPGenericRequest is the parent of the Net::HTTPRequest class. @@ -2307,20 +1616,18 @@ Net::HTTPFatalErrorCode = Net::HTTPClientError # == About the Examples # # :include: doc/net-http/examples.rdoc -# -# source://net-http//lib/net/http/generic_request.rb#11 class Net::HTTPGenericRequest include ::Net::HTTPHeader # @return [HTTPGenericRequest] a new instance of HTTPGenericRequest # - # source://net-http//lib/net/http/generic_request.rb#15 + # source://net-http//net/http/generic_request.rb#15 def initialize(m, reqbody, resbody, uri_or_path, initheader = T.unsafe(nil)); end # Don't automatically decode response content-encoding if the user indicates # they want to handle it. # - # source://net-http//lib/net/http/generic_request.rb#109 + # source://net-http//net/http/generic_request.rb#109 def []=(key, val); end # Returns the string body for the request, or +nil+ if there is none: @@ -2330,7 +1637,7 @@ class Net::HTTPGenericRequest # req.body = '{"title": "foo","body": "bar","userId": 1}' # req.body # => "{\"title\": \"foo\",\"body\": \"bar\",\"userId\": 1}" # - # source://net-http//lib/net/http/generic_request.rb#145 + # source://net-http//net/http/generic_request.rb#145 def body; end # Sets the body for the request: @@ -2340,12 +1647,12 @@ class Net::HTTPGenericRequest # req.body = '{"title": "foo","body": "bar","userId": 1}' # req.body # => "{\"title\": \"foo\",\"body\": \"bar\",\"userId\": 1}" # - # source://net-http//lib/net/http/generic_request.rb#154 + # source://net-http//net/http/generic_request.rb#154 def body=(str); end # @return [Boolean] # - # source://net-http//lib/net/http/generic_request.rb#133 + # source://net-http//net/http/generic_request.rb#133 def body_exist?; end # Returns the body stream object for the request, or +nil+ if there is none: @@ -2356,7 +1663,7 @@ class Net::HTTPGenericRequest # req.body_stream = StringIO.new('xyzzy') # => # # req.body_stream # => # # - # source://net-http//lib/net/http/generic_request.rb#169 + # source://net-http//net/http/generic_request.rb#169 def body_stream; end # Sets the body stream for the request: @@ -2367,7 +1674,7 @@ class Net::HTTPGenericRequest # req.body_stream = StringIO.new('xyzzy') # => # # req.body_stream # => # # - # source://net-http//lib/net/http/generic_request.rb#179 + # source://net-http//net/http/generic_request.rb#179 def body_stream=(input); end # Returns +false+ if the request's header 'Accept-Encoding' @@ -2383,19 +1690,19 @@ class Net::HTTPGenericRequest # req.delete('Accept-Encoding') # req.decode_content # => false # - # source://net-http//lib/net/http/generic_request.rb#95 + # source://net-http//net/http/generic_request.rb#95 def decode_content; end # write # - # source://net-http//lib/net/http/generic_request.rb#198 + # source://net-http//net/http/generic_request.rb#198 def exec(sock, ver, path); end # Returns a string representation of the request: # # Net::HTTP::Post.new(uri).inspect # => "#" # - # source://net-http//lib/net/http/generic_request.rb#101 + # source://net-http//net/http/generic_request.rb#101 def inspect; end # Returns the string method name for the request: @@ -2403,7 +1710,7 @@ class Net::HTTPGenericRequest # Net::HTTP::Get.new(uri).method # => "GET" # Net::HTTP::Post.new(uri).method # => "POST" # - # source://net-http//lib/net/http/generic_request.rb#65 + # source://net-http//net/http/generic_request.rb#65 def method; end # Returns the string path for the request: @@ -2411,7 +1718,7 @@ class Net::HTTPGenericRequest # Net::HTTP::Get.new(uri).path # => "/" # Net::HTTP::Post.new('example.com').path # => "example.com" # - # source://net-http//lib/net/http/generic_request.rb#72 + # source://net-http//net/http/generic_request.rb#72 def path; end # Returns whether the request may have a body: @@ -2421,7 +1728,7 @@ class Net::HTTPGenericRequest # # @return [Boolean] # - # source://net-http//lib/net/http/generic_request.rb#120 + # source://net-http//net/http/generic_request.rb#120 def request_body_permitted?; end # Returns whether the response may have a body: @@ -2431,15 +1738,15 @@ class Net::HTTPGenericRequest # # @return [Boolean] # - # source://net-http//lib/net/http/generic_request.rb#129 + # source://net-http//net/http/generic_request.rb#129 def response_body_permitted?; end # @raise [ArgumentError] # - # source://net-http//lib/net/http/generic_request.rb#186 + # source://net-http//net/http/generic_request.rb#186 def set_body_internal(str); end - # source://net-http//lib/net/http/generic_request.rb#210 + # source://net-http//net/http/generic_request.rb#210 def update_uri(addr, port, ssl); end # Returns the URI object for the request, or +nil+ if none: @@ -2448,53 +1755,52 @@ class Net::HTTPGenericRequest # # => # # Net::HTTP::Get.new('example.com').uri # => nil # - # source://net-http//lib/net/http/generic_request.rb#80 + # source://net-http//net/http/generic_request.rb#80 def uri; end private - # source://net-http//lib/net/http/generic_request.rb#312 + # source://net-http//net/http/generic_request.rb#312 def encode_multipart_form_data(out, params, opt); end - # source://net-http//lib/net/http/generic_request.rb#368 + # source://net-http//net/http/generic_request.rb#368 def flush_buffer(out, buf, chunked_p); end - # source://net-http//lib/net/http/generic_request.rb#363 + # source://net-http//net/http/generic_request.rb#363 def quote_string(str, charset); end - # source://net-http//lib/net/http/generic_request.rb#260 + # source://net-http//net/http/generic_request.rb#260 def send_request_with_body(sock, ver, path, body); end - # source://net-http//lib/net/http/generic_request.rb#286 + # source://net-http//net/http/generic_request.rb#286 def send_request_with_body_data(sock, ver, path, params); end - # source://net-http//lib/net/http/generic_request.rb#269 + # source://net-http//net/http/generic_request.rb#269 def send_request_with_body_stream(sock, ver, path, f); end - # source://net-http//lib/net/http/generic_request.rb#376 + # source://net-http//net/http/generic_request.rb#376 def supply_default_content_type; end # Waits up to the continue timeout for a response from the server provided # we're speaking HTTP 1.1 and are expecting a 100-continue response. # - # source://net-http//lib/net/http/generic_request.rb#386 + # source://net-http//net/http/generic_request.rb#386 def wait_for_continue(sock, ver); end - # source://net-http//lib/net/http/generic_request.rb#399 + # source://net-http//net/http/generic_request.rb#399 def write_header(sock, ver, path); end end -# source://net-http//lib/net/http/generic_request.rb#242 class Net::HTTPGenericRequest::Chunker # @return [Chunker] a new instance of Chunker # - # source://net-http//lib/net/http/generic_request.rb#243 + # source://net-http//net/http/generic_request.rb#243 def initialize(sock); end - # source://net-http//lib/net/http/generic_request.rb#255 + # source://net-http//net/http/generic_request.rb#255 def finish; end - # source://net-http//lib/net/http/generic_request.rb#248 + # source://net-http//net/http/generic_request.rb#248 def write(buf); end end @@ -2675,8 +1981,6 @@ end # - #each_header: Passes each field name/value pair to the block. # - #each_name: Passes each field name to the block. # - #each_value: Passes each string field value to the block. -# -# source://net-http//lib/net/http/header.rb#181 module Net::HTTPHeader # Returns the string field value for the case-insensitive field +key+, # or +nil+ if there is no such key; @@ -2689,7 +1993,7 @@ module Net::HTTPHeader # Note that some field values may be retrieved via convenience methods; # see {Getters}[rdoc-ref:Net::HTTPHeader@Getters]. # - # source://net-http//lib/net/http/header.rb#224 + # source://net-http//net/http/header.rb#224 def [](key); end # Sets the value for the case-insensitive +key+ to +val+, @@ -2704,7 +2008,7 @@ module Net::HTTPHeader # Note that some field values may be set via convenience methods; # see {Setters}[rdoc-ref:Net::HTTPHeader@Setters]. # - # source://net-http//lib/net/http/header.rb#240 + # source://net-http//net/http/header.rb#240 def []=(key, val); end # Adds value +val+ to the value array for field +key+ if the field exists; @@ -2720,7 +2024,7 @@ module Net::HTTPHeader # req['Foo'] # => "bar, baz, baz, bam" # req.get_fields('Foo') # => ["bar", "baz", "baz", "bam"] # - # source://net-http//lib/net/http/header.rb#261 + # source://net-http//net/http/header.rb#261 def add_field(key, val); end # Sets header 'Authorization' using the given @@ -2730,14 +2034,14 @@ module Net::HTTPHeader # req['Authorization'] # # => "Basic bXlfYWNjb3VudDpteV9wYXNzd29yZA==" # - # source://net-http//lib/net/http/header.rb#945 + # source://net-http//net/http/header.rb#945 def basic_auth(account, password); end # Like #each_header, but the keys are returned in capitalized form. # # Net::HTTPHeader#canonical_each is an alias for Net::HTTPHeader#each_capitalized. # - # source://net-http//lib/net/http/header.rb#484 + # source://net-http//net/http/header.rb#484 def canonical_each; end # Returns +true+ if field 'Transfer-Encoding' @@ -2751,21 +2055,21 @@ module Net::HTTPHeader # # @return [Boolean] # - # source://net-http//lib/net/http/header.rb#654 + # source://net-http//net/http/header.rb#654 def chunked?; end # Returns whether the HTTP session is to be closed. # # @return [Boolean] # - # source://net-http//lib/net/http/header.rb#966 + # source://net-http//net/http/header.rb#966 def connection_close?; end # Returns whether the HTTP session is to be kept alive. # # @return [Boolean] # - # source://net-http//lib/net/http/header.rb#974 + # source://net-http//net/http/header.rb#974 def connection_keep_alive?; end # Returns the value of field 'Content-Length' as an integer, @@ -2777,7 +2081,7 @@ module Net::HTTPHeader # res = Net::HTTP.get_response(hostname, '/todos/1') # res.content_length # => nil # - # source://net-http//lib/net/http/header.rb#616 + # source://net-http//net/http/header.rb#616 def content_length; end # Sets the value of field 'Content-Length' to the given numeric; @@ -2794,7 +2098,7 @@ module Net::HTTPHeader # http.request(req) # end # => # # - # source://net-http//lib/net/http/header.rb#637 + # source://net-http//net/http/header.rb#637 def content_length=(len); end # Returns a Range object representing the value of field @@ -2807,7 +2111,7 @@ module Net::HTTPHeader # res['Content-Range'] # => "bytes 0-499/1000" # res.content_range # => 0..499 # - # source://net-http//lib/net/http/header.rb#670 + # source://net-http//net/http/header.rb#670 def content_range; end # Returns the {media type}[https://en.wikipedia.org/wiki/Media_type] @@ -2819,7 +2123,7 @@ module Net::HTTPHeader # res['content-type'] # => "application/json; charset=utf-8" # res.content_type # => "application/json" # - # source://net-http//lib/net/http/header.rb#701 + # source://net-http//net/http/header.rb#701 def content_type; end # Sets the value of field 'Content-Type'; @@ -2831,7 +2135,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#content_type= is an alias for Net::HTTPHeader#set_content_type. # - # source://net-http//lib/net/http/header.rb#772 + # source://net-http//net/http/header.rb#772 def content_type=(type, params = T.unsafe(nil)); end # Removes the header for the given case-insensitive +key+ @@ -2842,7 +2146,7 @@ module Net::HTTPHeader # req.delete('Accept') # => ["*/*"] # req.delete('Nosuch') # => nil # - # source://net-http//lib/net/http/header.rb#453 + # source://net-http//net/http/header.rb#453 def delete(key); end # Calls the block with each key/value pair: @@ -2864,14 +2168,14 @@ module Net::HTTPHeader # # Net::HTTPHeader#each is an alias for Net::HTTPHeader#each_header. # - # source://net-http//lib/net/http/header.rb#364 + # source://net-http//net/http/header.rb#364 def each; end # Like #each_header, but the keys are returned in capitalized form. # # Net::HTTPHeader#canonical_each is an alias for Net::HTTPHeader#each_capitalized. # - # source://net-http//lib/net/http/header.rb#484 + # source://net-http//net/http/header.rb#484 def each_capitalized; end # Calls the block with each capitalized field name: @@ -2890,11 +2194,11 @@ module Net::HTTPHeader # "Cf-Ray" # # The capitalization is system-dependent; - # see {Case Mapping}[https://docs.ruby-lang.org/en/master/case_mapping_rdoc.html]. + # see {Case Mapping}[rdoc-ref:case_mapping.rdoc]. # # Returns an enumerator if no block is given. # - # source://net-http//lib/net/http/header.rb#417 + # source://net-http//net/http/header.rb#417 def each_capitalized_name; end # Calls the block with each key/value pair: @@ -2916,7 +2220,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#each is an alias for Net::HTTPHeader#each_header. # - # source://net-http//lib/net/http/header.rb#364 + # source://net-http//net/http/header.rb#364 def each_header; end # Calls the block with each field key: @@ -2938,7 +2242,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#each_name is an alias for Net::HTTPHeader#each_key. # - # source://net-http//lib/net/http/header.rb#391 + # source://net-http//net/http/header.rb#391 def each_key(&block); end # Calls the block with each field key: @@ -2960,7 +2264,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#each_name is an alias for Net::HTTPHeader#each_key. # - # source://net-http//lib/net/http/header.rb#391 + # source://net-http//net/http/header.rb#391 def each_name(&block); end # Calls the block with each string field value: @@ -2978,7 +2282,7 @@ module Net::HTTPHeader # # Returns an enumerator if no block is given. # - # source://net-http//lib/net/http/header.rb#438 + # source://net-http//net/http/header.rb#438 def each_value; end # call-seq: @@ -3010,7 +2314,7 @@ module Net::HTTPHeader # res.fetch('Nosuch', 'Foo') # => "Foo" # res.fetch('Nosuch') # Raises KeyError. # - # source://net-http//lib/net/http/header.rb#341 + # source://net-http//net/http/header.rb#341 def fetch(key, *args, &block); end # Sets the request body to a URL-encoded string derived from argument +params+, @@ -3020,7 +2324,7 @@ module Net::HTTPHeader # The resulting request is suitable for HTTP request +POST+ or +PUT+. # # Argument +params+ must be suitable for use as argument +enum+ to - # {URI.encode_www_form}[https://docs.ruby-lang.org/en/master/URI.html#method-c-encode_www_form]. + # {URI.encode_www_form}[rdoc-ref:URI.encode_www_form]. # # With only argument +params+ given, # sets the body to a URL-encoded string with the default separator '&': @@ -3048,7 +2352,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#form_data= is an alias for Net::HTTPHeader#set_form_data. # - # source://net-http//lib/net/http/header.rb#812 + # source://net-http//net/http/header.rb#812 def form_data=(params, sep = T.unsafe(nil)); end # Returns the array field value for the given +key+, @@ -3059,10 +2363,10 @@ module Net::HTTPHeader # res.get_fields('Connection') # => ["keep-alive"] # res.get_fields('Nosuch') # => nil # - # source://net-http//lib/net/http/header.rb#306 + # source://net-http//net/http/header.rb#306 def get_fields(key); end - # source://net-http//lib/net/http/header.rb#185 + # source://net-http//net/http/header.rb#185 def initialize_http_header(initheader); end # Returns +true+ if the field for the case-insensitive +key+ exists, +false+ otherwise: @@ -3073,10 +2377,10 @@ module Net::HTTPHeader # # @return [Boolean] # - # source://net-http//lib/net/http/header.rb#463 + # source://net-http//net/http/header.rb#463 def key?(key); end - # source://net-http//lib/net/http/header.rb#208 + # source://net-http//net/http/header.rb#208 def length; end # Returns the leading ('type') part of the @@ -3089,7 +2393,7 @@ module Net::HTTPHeader # res['content-type'] # => "application/json; charset=utf-8" # res.main_type # => "application" # - # source://net-http//lib/net/http/header.rb#723 + # source://net-http//net/http/header.rb#723 def main_type; end # Sets header 'Proxy-Authorization' using the given @@ -3099,7 +2403,7 @@ module Net::HTTPHeader # req['Proxy-Authorization'] # # => "Basic bXlfYWNjb3VudDpteV9wYXNzd29yZA==" # - # source://net-http//lib/net/http/header.rb#956 + # source://net-http//net/http/header.rb#956 def proxy_basic_auth(account, password); end # Returns an array of Range objects that represent @@ -3113,7 +2417,7 @@ module Net::HTTPHeader # req.delete('Range') # req.range # # => nil # - # source://net-http//lib/net/http/header.rb#509 + # source://net-http//net/http/header.rb#509 def range; end # call-seq: @@ -3142,7 +2446,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#range= is an alias for Net::HTTPHeader#set_range. # - # source://net-http//lib/net/http/header.rb#576 + # source://net-http//net/http/header.rb#576 def range=(r, e = T.unsafe(nil)); end # Returns the integer representing length of the value of field @@ -3154,7 +2458,7 @@ module Net::HTTPHeader # res['Content-Range'] = 'bytes 0-499/1000' # res.range_length # => 500 # - # source://net-http//lib/net/http/header.rb#687 + # source://net-http//net/http/header.rb#687 def range_length; end # Sets the value of field 'Content-Type'; @@ -3166,7 +2470,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#content_type= is an alias for Net::HTTPHeader#set_content_type. # - # source://net-http//lib/net/http/header.rb#772 + # source://net-http//net/http/header.rb#772 def set_content_type(type, params = T.unsafe(nil)); end # Stores form data to be used in a +POST+ or +PUT+ request. @@ -3179,7 +2483,7 @@ module Net::HTTPHeader # - An IO stream opened for reading. # # Argument +params+ should be an - # {Enumerable}[https://docs.ruby-lang.org/en/master/Enumerable.html#module-Enumerable-label-Enumerable+in+Ruby+Classes] + # {Enumerable}[rdoc-ref:Enumerable@Enumerable+in+Ruby+Classes] # (method params.map will be called), # and is often an array or hash. # @@ -3272,7 +2576,7 @@ module Net::HTTPHeader # - +:charset+: Value is the character set for the form submission. # Field names and values of non-file fields should be encoded with this charset. # - # source://net-http//lib/net/http/header.rb#924 + # source://net-http//net/http/header.rb#924 def set_form(params, enctype = T.unsafe(nil), formopt = T.unsafe(nil)); end # Sets the request body to a URL-encoded string derived from argument +params+, @@ -3282,7 +2586,7 @@ module Net::HTTPHeader # The resulting request is suitable for HTTP request +POST+ or +PUT+. # # Argument +params+ must be suitable for use as argument +enum+ to - # {URI.encode_www_form}[https://docs.ruby-lang.org/en/master/URI.html#method-c-encode_www_form]. + # {URI.encode_www_form}[rdoc-ref:URI.encode_www_form]. # # With only argument +params+ given, # sets the body to a URL-encoded string with the default separator '&': @@ -3310,7 +2614,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#form_data= is an alias for Net::HTTPHeader#set_form_data. # - # source://net-http//lib/net/http/header.rb#812 + # source://net-http//net/http/header.rb#812 def set_form_data(params, sep = T.unsafe(nil)); end # call-seq: @@ -3339,10 +2643,10 @@ module Net::HTTPHeader # # Net::HTTPHeader#range= is an alias for Net::HTTPHeader#set_range. # - # source://net-http//lib/net/http/header.rb#576 + # source://net-http//net/http/header.rb#576 def set_range(r, e = T.unsafe(nil)); end - # source://net-http//lib/net/http/header.rb#208 + # source://net-http//net/http/header.rb#208 def size; end # Returns the trailing ('subtype') part of the @@ -3355,7 +2659,7 @@ module Net::HTTPHeader # res['content-type'] # => "application/json; charset=utf-8" # res.sub_type # => "json" # - # source://net-http//lib/net/http/header.rb#738 + # source://net-http//net/http/header.rb#738 def sub_type; end # Returns a hash of the key/value pairs: @@ -3368,7 +2672,7 @@ module Net::HTTPHeader # "user-agent"=>["Ruby"], # "host"=>["jsonplaceholder.typicode.com"]} # - # source://net-http//lib/net/http/header.rb#477 + # source://net-http//net/http/header.rb#477 def to_hash; end # Returns the trailing ('parameters') part of the value of field 'Content-Type', @@ -3379,34 +2683,34 @@ module Net::HTTPHeader # res['content-type'] # => "application/json; charset=utf-8" # res.type_params # => {"charset"=>"utf-8"} # - # source://net-http//lib/net/http/header.rb#753 + # source://net-http//net/http/header.rb#753 def type_params; end private - # source://net-http//lib/net/http/header.rb#285 + # source://net-http//net/http/header.rb#285 def append_field_value(ary, val); end - # source://net-http//lib/net/http/header.rb#960 + # source://net-http//net/http/header.rb#960 def basic_encode(account, password); end - # source://net-http//lib/net/http/header.rb#493 + # source://net-http//net/http/header.rb#493 def capitalize(name); end - # source://net-http//lib/net/http/header.rb#270 + # source://net-http//net/http/header.rb#270 def set_field(key, val); end end -# source://net-http//lib/net/http/header.rb#183 +# source://net-http//net/http/header.rb#183 Net::HTTPHeader::MAX_FIELD_LENGTH = T.let(T.unsafe(nil), Integer) -# source://net-http//lib/net/http/header.rb#182 +# source://net-http//net/http/header.rb#182 Net::HTTPHeader::MAX_KEY_LENGTH = T.let(T.unsafe(nil), Integer) -# source://net-http//lib/net/http/responses.rb#23 +# source://net-http//net/http/responses.rb#23 Net::HTTPInformation::EXCEPTION_TYPE = Net::HTTPError -# source://net-http//lib/net/http/backward.rb#19 +# source://net-http//net/http/backward.rb#19 Net::HTTPInformationCode = Net::HTTPInformation # Response class for Loop Detected (WebDAV) responses (status code 508). @@ -3420,11 +2724,9 @@ Net::HTTPInformationCode = Net::HTTPInformation # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/508]. # - {RFC 5942}[https://www.rfc-editor.org/rfc/rfc5842.html#section-7.2]. # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#508]. -# -# source://net-http//lib/net/http/responses.rb#1061 class Net::HTTPLoopDetected < ::Net::HTTPServerError; end -# source://net-http//lib/net/http/responses.rb#1062 +# source://net-http//net/http/responses.rb#1062 Net::HTTPLoopDetected::HAS_BODY = T.let(T.unsafe(nil), TrueClass) # Response class for Misdirected Request responses (status code 421). @@ -3437,17 +2739,15 @@ Net::HTTPLoopDetected::HAS_BODY = T.let(T.unsafe(nil), TrueClass) # # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-421-misdirected-request]. # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#421]. -# -# source://net-http//lib/net/http/responses.rb#776 class Net::HTTPMisdirectedRequest < ::Net::HTTPClientError; end -# source://net-http//lib/net/http/responses.rb#777 +# source://net-http//net/http/responses.rb#777 Net::HTTPMisdirectedRequest::HAS_BODY = T.let(T.unsafe(nil), TrueClass) -# source://net-http//lib/net/http/responses.rb#378 +# source://net-http//net/http/responses.rb#378 Net::HTTPMovedTemporarily = Net::HTTPFound -# source://net-http//lib/net/http/responses.rb#343 +# source://net-http//net/http/responses.rb#343 Net::HTTPMultipleChoice = Net::HTTPMultipleChoices # Response class for Not Extended responses (status code 510). @@ -3461,11 +2761,9 @@ Net::HTTPMultipleChoice = Net::HTTPMultipleChoices # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/510]. # - {RFC 2774}[https://www.rfc-editor.org/rfc/rfc2774.html#section-7]. # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#510]. -# -# source://net-http//lib/net/http/responses.rb#1078 class Net::HTTPNotExtended < ::Net::HTTPServerError; end -# source://net-http//lib/net/http/responses.rb#1079 +# source://net-http//net/http/responses.rb#1079 Net::HTTPNotExtended::HAS_BODY = T.let(T.unsafe(nil), TrueClass) # Response class for Payload Too Large responses (status code 413). @@ -3479,11 +2777,9 @@ Net::HTTPNotExtended::HAS_BODY = T.let(T.unsafe(nil), TrueClass) # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413]. # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-413-content-too-large]. # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#413]. -# -# source://net-http//lib/net/http/responses.rb#688 class Net::HTTPPayloadTooLarge < ::Net::HTTPClientError; end -# source://net-http//lib/net/http/responses.rb#689 +# source://net-http//net/http/responses.rb#689 Net::HTTPPayloadTooLarge::HAS_BODY = T.let(T.unsafe(nil), TrueClass) # Response class for +Processing+ responses (status code 102). @@ -3497,11 +2793,9 @@ Net::HTTPPayloadTooLarge::HAS_BODY = T.let(T.unsafe(nil), TrueClass) # # - {RFC 2518}[https://www.rfc-editor.org/rfc/rfc2518#section-10.1]. # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#102]. -# -# source://net-http//lib/net/http/responses.rb#129 class Net::HTTPProcessing < ::Net::HTTPInformation; end -# source://net-http//lib/net/http/responses.rb#130 +# source://net-http//net/http/responses.rb#130 Net::HTTPProcessing::HAS_BODY = T.let(T.unsafe(nil), FalseClass) # Response class for Range Not Satisfiable responses (status code 416). @@ -3515,25 +2809,23 @@ Net::HTTPProcessing::HAS_BODY = T.let(T.unsafe(nil), FalseClass) # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/416]. # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-416-range-not-satisfiable]. # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#416]. -# -# source://net-http//lib/net/http/responses.rb#739 class Net::HTTPRangeNotSatisfiable < ::Net::HTTPClientError; end -# source://net-http//lib/net/http/responses.rb#740 +# source://net-http//net/http/responses.rb#740 Net::HTTPRangeNotSatisfiable::HAS_BODY = T.let(T.unsafe(nil), TrueClass) -# source://net-http//lib/net/http/responses.rb#53 +# source://net-http//net/http/responses.rb#53 Net::HTTPRedirection::EXCEPTION_TYPE = Net::HTTPRetriableError -# source://net-http//lib/net/http/backward.rb#21 +# source://net-http//net/http/backward.rb#21 Net::HTTPRedirectionCode = Net::HTTPRedirection -# source://net-http//lib/net/http/responses.rb#709 +# source://net-http//net/http/responses.rb#709 Net::HTTPRequestURITooLarge = Net::HTTPURITooLong # Typo since 2001 # -# source://net-http//lib/net/http/backward.rb#28 +# source://net-http//net/http/backward.rb#28 Net::HTTPResponceReceiver = Net::HTTPResponse # This class is the base class for \Net::HTTP response classes. @@ -3667,14 +2959,12 @@ Net::HTTPResponceReceiver = Net::HTTPResponse # # There is also the Net::HTTPBadResponse exception which is raised when # there is a protocol error. -# -# source://net-http//lib/net/http/response.rb#135 class Net::HTTPResponse include ::Net::HTTPHeader # @return [HTTPResponse] a new instance of HTTPResponse # - # source://net-http//lib/net/http/response.rb#194 + # source://net-http//net/http/response.rb#194 def initialize(httpv, code, msg); end # Returns the string response body; @@ -3692,25 +2982,25 @@ class Net::HTTPResponse # "{\n \"userId\": 1,\n \"id\": 1,\n \"title\": \"delectus aut autem\",\n \"completed\": false\n}" # nil # - # source://net-http//lib/net/http/response.rb#400 + # source://net-http//net/http/response.rb#400 def body; end # Sets the body of the response to the given value. # - # source://net-http//lib/net/http/response.rb#405 + # source://net-http//net/http/response.rb#405 def body=(value); end # Returns the value set by body_encoding=, or +false+ if none; # see #body_encoding=. # - # source://net-http//lib/net/http/response.rb#229 + # source://net-http//net/http/response.rb#229 def body_encoding; end # Sets the encoding that should be used when reading the body: # # - If the given value is an Encoding object, that encoding will be used. # - Otherwise if the value is a string, the value of - # {Encoding#find(value)}[https://docs.ruby-lang.org/en/master/Encoding.html#method-c-find] + # {Encoding#find(value)}[rdoc-ref:Encoding.find] # will be used. # - Otherwise an encoding will be deduced from the body itself. # @@ -3728,31 +3018,31 @@ class Net::HTTPResponse # p res.body.encoding # => # # end # - # source://net-http//lib/net/http/response.rb#253 + # source://net-http//net/http/response.rb#253 def body_encoding=(value); end # The HTTP result code string. For example, '302'. You can also # determine the response type by examining which response subclass # the response object is an instance of. # - # source://net-http//lib/net/http/response.rb#213 + # source://net-http//net/http/response.rb#213 def code; end # response <-> exception relationship # - # source://net-http//lib/net/http/response.rb#270 + # source://net-http//net/http/response.rb#270 def code_type; end # Set to true automatically when the request did not contain an # Accept-Encoding header from the user. # - # source://net-http//lib/net/http/response.rb#225 + # source://net-http//net/http/response.rb#225 def decode_content; end # Set to true automatically when the request did not contain an # Accept-Encoding header from the user. # - # source://net-http//lib/net/http/response.rb#225 + # source://net-http//net/http/response.rb#225 def decode_content=(_arg0); end # Returns the string response body; @@ -3770,48 +3060,48 @@ class Net::HTTPResponse # "{\n \"userId\": 1,\n \"id\": 1,\n \"title\": \"delectus aut autem\",\n \"completed\": false\n}" # nil # - # source://net-http//lib/net/http/response.rb#400 + # source://net-http//net/http/response.rb#400 def entity; end # @raise [error_type()] # - # source://net-http//lib/net/http/response.rb#274 + # source://net-http//net/http/response.rb#274 def error!; end - # source://net-http//lib/net/http/response.rb#280 + # source://net-http//net/http/response.rb#280 def error_type; end - # source://net-http//lib/net/http/response.rb#302 + # source://net-http//net/http/response.rb#302 def header; end # The HTTP version supported by the server. # - # source://net-http//lib/net/http/response.rb#208 + # source://net-http//net/http/response.rb#208 def http_version; end # Whether to ignore EOF when reading bodies with a specified Content-Length # header. # - # source://net-http//lib/net/http/response.rb#260 + # source://net-http//net/http/response.rb#260 def ignore_eof; end # Whether to ignore EOF when reading bodies with a specified Content-Length # header. # - # source://net-http//lib/net/http/response.rb#260 + # source://net-http//net/http/response.rb#260 def ignore_eof=(_arg0); end - # source://net-http//lib/net/http/response.rb#262 + # source://net-http//net/http/response.rb#262 def inspect; end # The HTTP result message sent by the server. For example, 'Not Found'. # - # source://net-http//lib/net/http/response.rb#216 + # source://net-http//net/http/response.rb#216 def message; end # The HTTP result message sent by the server. For example, 'Not Found'. # - # source://net-http//lib/net/http/response.rb#216 + # source://net-http//net/http/response.rb#216 def msg; end # Gets the entity body returned by the remote HTTP server. @@ -3842,48 +3132,48 @@ class Net::HTTPResponse # end # } # - # source://net-http//lib/net/http/response.rb#355 + # source://net-http//net/http/response.rb#355 def read_body(dest = T.unsafe(nil), &block); end - # source://net-http//lib/net/http/response.rb#307 + # source://net-http//net/http/response.rb#307 def read_header; end # body # - # source://net-http//lib/net/http/response.rb#316 + # source://net-http//net/http/response.rb#316 def reading_body(sock, reqmethodallowbody); end # header (for backward compatibility only; DO NOT USE) # - # source://net-http//lib/net/http/response.rb#297 + # source://net-http//net/http/response.rb#297 def response; end # The URI used to fetch this response. The response URI is only available # if a URI was used to create the request. # - # source://net-http//lib/net/http/response.rb#221 + # source://net-http//net/http/response.rb#221 def uri; end - # source://net-http//lib/net/http/response.rb#289 + # source://net-http//net/http/response.rb#289 def uri=(uri); end # Raises an HTTP error if the response is not 2xx (success). # - # source://net-http//lib/net/http/response.rb#285 + # source://net-http//net/http/response.rb#285 def value; end private - # source://net-http//lib/net/http/response.rb#450 + # source://net-http//net/http/response.rb#450 def check_bom(str); end - # source://net-http//lib/net/http/response.rb#414 + # source://net-http//net/http/response.rb#414 def detect_encoding(str, encoding = T.unsafe(nil)); end - # source://net-http//lib/net/http/response.rb#540 + # source://net-http//net/http/response.rb#540 def extracting_encodings_from_meta_elements(value); end - # source://net-http//lib/net/http/response.rb#505 + # source://net-http//net/http/response.rb#505 def get_attribute(ss); end # Checks for a supported Content-Encoding header and yields an Inflate @@ -3894,15 +3184,15 @@ class Net::HTTPResponse # If a Content-Range header is present, a plain socket is yielded as the # bytes in the range may not be a complete deflate block. # - # source://net-http//lib/net/http/response.rb#557 + # source://net-http//net/http/response.rb#557 def inflater; end # @raise [ArgumentError] # - # source://net-http//lib/net/http/response.rb#646 + # source://net-http//net/http/response.rb#646 def procdest(dest, block); end - # source://net-http//lib/net/http/response.rb#592 + # source://net-http//net/http/response.rb#592 def read_body_0(dest); end # read_chunked reads from +@socket+ for chunk-size, chunk-extension, CRLF, @@ -3911,18 +3201,18 @@ class Net::HTTPResponse # # See RFC 2616 section 3.6.1 for definitions # - # source://net-http//lib/net/http/response.rb#622 + # source://net-http//net/http/response.rb#622 def read_chunked(dest, chunk_data_io); end - # source://net-http//lib/net/http/response.rb#464 + # source://net-http//net/http/response.rb#464 def scanning_meta(str); end - # source://net-http//lib/net/http/response.rb#434 + # source://net-http//net/http/response.rb#434 def sniff_encoding(str, encoding = T.unsafe(nil)); end # @raise [IOError] # - # source://net-http//lib/net/http/response.rb#642 + # source://net-http//net/http/response.rb#642 def stream_check; end class << self @@ -3930,51 +3220,49 @@ class Net::HTTPResponse # # @return [Boolean] # - # source://net-http//lib/net/http/response.rb#138 + # source://net-http//net/http/response.rb#138 def body_permitted?; end - # source://net-http//lib/net/http/response.rb#142 + # source://net-http//net/http/response.rb#142 def exception_type; end - # source://net-http//lib/net/http/response.rb#146 + # source://net-http//net/http/response.rb#146 def read_new(sock); end private # @yield [key, value] # - # source://net-http//lib/net/http/response.rb#170 + # source://net-http//net/http/response.rb#170 def each_response_header(sock); end - # source://net-http//lib/net/http/response.rb#157 + # source://net-http//net/http/response.rb#157 def read_status_line(sock); end - # source://net-http//lib/net/http/response.rb#164 + # source://net-http//net/http/response.rb#164 def response_class(code); end end end # Inflater is a wrapper around Net::BufferedIO that transparently inflates # zlib and gzip streams. -# -# source://net-http//lib/net/http/response.rb#660 class Net::HTTPResponse::Inflater # Creates a new Inflater wrapping +socket+ # # @return [Inflater] a new instance of Inflater # - # source://net-http//lib/net/http/response.rb#665 + # source://net-http//net/http/response.rb#665 def initialize(socket); end # The number of bytes inflated, used to update the Content-Length of # the response. # - # source://net-http//lib/net/http/response.rb#683 + # source://net-http//net/http/response.rb#683 def bytes_inflated; end # Finishes the inflate stream. # - # source://net-http//lib/net/http/response.rb#674 + # source://net-http//net/http/response.rb#674 def finish; end # Returns a Net::ReadAdapter that inflates each read chunk into +dest+. @@ -3982,7 +3270,7 @@ class Net::HTTPResponse::Inflater # This allows a large response body to be inflated without storing the # entire body in memory. # - # source://net-http//lib/net/http/response.rb#693 + # source://net-http//net/http/response.rb#693 def inflate_adapter(dest); end # Reads +clen+ bytes from the socket, inflates them, then writes them to @@ -3995,34 +3283,34 @@ class Net::HTTPResponse::Inflater # # See https://bugs.ruby-lang.org/issues/6492 for further discussion. # - # source://net-http//lib/net/http/response.rb#720 + # source://net-http//net/http/response.rb#720 def read(clen, dest, ignore_eof = T.unsafe(nil)); end # Reads the rest of the socket, inflates it, then writes it to +dest+. # - # source://net-http//lib/net/http/response.rb#729 + # source://net-http//net/http/response.rb#729 def read_all(dest); end end -# source://net-http//lib/net/http/backward.rb#26 +# source://net-http//net/http/backward.rb#26 Net::HTTPResponseReceiver = Net::HTTPResponse -# source://net-http//lib/net/http/backward.rb#22 +# source://net-http//net/http/backward.rb#22 Net::HTTPRetriableCode = Net::HTTPRedirection -# source://net-http//lib/net/http/responses.rb#81 +# source://net-http//net/http/responses.rb#81 Net::HTTPServerError::EXCEPTION_TYPE = Net::HTTPFatalError -# source://net-http//lib/net/http/backward.rb#25 +# source://net-http//net/http/backward.rb#25 Net::HTTPServerErrorCode = Net::HTTPServerError -# source://net-http//lib/net/http/backward.rb#17 +# source://net-http//net/http/backward.rb#17 Net::HTTPSession = Net::HTTP -# source://net-http//lib/net/http/responses.rb#38 +# source://net-http//net/http/responses.rb#38 Net::HTTPSuccess::EXCEPTION_TYPE = Net::HTTPError -# source://net-http//lib/net/http/backward.rb#20 +# source://net-http//net/http/backward.rb#20 Net::HTTPSuccessCode = Net::HTTPSuccess # Response class for URI Too Long responses (status code 414). @@ -4036,14 +3324,12 @@ Net::HTTPSuccessCode = Net::HTTPSuccess # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414]. # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-414-uri-too-long]. # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#414]. -# -# source://net-http//lib/net/http/responses.rb#705 class Net::HTTPURITooLong < ::Net::HTTPClientError; end -# source://net-http//lib/net/http/responses.rb#706 +# source://net-http//net/http/responses.rb#706 Net::HTTPURITooLong::HAS_BODY = T.let(T.unsafe(nil), TrueClass) -# source://net-http//lib/net/http/responses.rb#9 +# source://net-http//net/http/responses.rb#9 Net::HTTPUnknownResponse::EXCEPTION_TYPE = Net::HTTPError # Response class for Variant Also Negotiates responses (status code 506). @@ -4057,12 +3343,10 @@ Net::HTTPUnknownResponse::EXCEPTION_TYPE = Net::HTTPError # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/506]. # - {RFC 2295}[https://www.rfc-editor.org/rfc/rfc2295#section-8.1]. # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#506]. -# -# source://net-http//lib/net/http/responses.rb#1029 class Net::HTTPVariantAlsoNegotiates < ::Net::HTTPServerError; end -# source://net-http//lib/net/http/responses.rb#1030 +# source://net-http//net/http/responses.rb#1030 Net::HTTPVariantAlsoNegotiates::HAS_BODY = T.let(T.unsafe(nil), TrueClass) -# source://net-http//lib/net/http/backward.rb#12 +# source://net-http//net/http/backward.rb#12 Net::NetPrivate::HTTPRequest = Net::HTTPRequest diff --git a/sorbet/rbi/gems/net-imap@0.4.10.rbi b/sorbet/rbi/gems/net-imap@0.4.11.rbi similarity index 99% rename from sorbet/rbi/gems/net-imap@0.4.10.rbi rename to sorbet/rbi/gems/net-imap@0.4.11.rbi index 23528cac..7e3da877 100644 --- a/sorbet/rbi/gems/net-imap@0.4.10.rbi +++ b/sorbet/rbi/gems/net-imap@0.4.11.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `net-imap` gem. # Please instead update this file by running `bin/tapioca gem net-imap`. + # Net::IMAP implements Internet Message Access Protocol (\IMAP) client # functionality. The protocol is described # in {IMAP4rev1 [RFC3501]}[https://tools.ietf.org/html/rfc3501] @@ -4236,12 +4237,12 @@ class Net::IMAP::ResponseParser # # This advances @pos directly so it's safe before changing @lex_state. # - # source://net-imap//lib/net/imap/response_parser.rb#2023 + # source://net-imap//lib/net/imap/response_parser.rb#2024 def accept_spaces; end # acl-data = "ACL" SP mailbox *(SP identifier SP rights) # - # source://net-imap//lib/net/imap/response_parser.rb#1424 + # source://net-imap//lib/net/imap/response_parser.rb#1425 def acl_data; end # nstring = string / nil @@ -4271,7 +4272,7 @@ class Net::IMAP::ResponseParser # addr-mailbox = nstring # addr-name = nstring # - # source://net-imap//lib/net/imap/response_parser.rb#1892 + # source://net-imap//lib/net/imap/response_parser.rb#1893 def address; end # astring = 1*ASTRING-CHAR / string @@ -4317,7 +4318,7 @@ class Net::IMAP::ResponseParser # ; MUST NOT be returned on non-extensible # ; "BODY" fetch # - # source://net-imap//lib/net/imap/response_parser.rb#1180 + # source://net-imap//lib/net/imap/response_parser.rb#1181 def body_ext_1part; end # RFC-2060: @@ -4331,7 +4332,7 @@ class Net::IMAP::ResponseParser # ; MUST NOT be returned on non-extensible # ; "BODY" fetch # - # source://net-imap//lib/net/imap/response_parser.rb#1199 + # source://net-imap//lib/net/imap/response_parser.rb#1200 def body_ext_mpart; end # body-extension = nstring / number / number64 / @@ -4343,12 +4344,12 @@ class Net::IMAP::ResponseParser # ; future Standard or Standards Track # ; revisions of this specification. # - # source://net-imap//lib/net/imap/response_parser.rb#1256 + # source://net-imap//lib/net/imap/response_parser.rb#1257 def body_extension; end # body-extension *(SP body-extension) # - # source://net-imap//lib/net/imap/response_parser.rb#1242 + # source://net-imap//lib/net/imap/response_parser.rb#1243 def body_extensions; end # RFC-3501 & RFC-9051: @@ -4365,7 +4366,7 @@ class Net::IMAP::ResponseParser # body-fld-dsp = "(" string SP body-fld-param ")" / nil # - # source://net-imap//lib/net/imap/response_parser.rb#1221 + # source://net-imap//lib/net/imap/response_parser.rb#1222 def body_fld_dsp; end # nstring = string / nil @@ -4375,7 +4376,7 @@ class Net::IMAP::ResponseParser # body-fld-lang = nstring / "(" string *(SP string) ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1230 + # source://net-imap//lib/net/imap/response_parser.rb#1231 def body_fld_lang; end # nstring = string / nil @@ -4451,7 +4452,7 @@ class Net::IMAP::ResponseParser # As a workaround for buggy servers, allow a trailing SP: # *(SP capability) [SP] # - # source://net-imap//lib/net/imap/response_parser.rb#1627 + # source://net-imap//lib/net/imap/response_parser.rb#1628 def capability__list; end # The presence of "IMAP4rev1" or "IMAP4rev2" is unenforced here. @@ -4465,7 +4466,7 @@ class Net::IMAP::ResponseParser # capability-data = "CAPABILITY" *(SP capability) SP "IMAP4rev2" # *(SP capability) # - # source://net-imap//lib/net/imap/response_parser.rb#1616 + # source://net-imap//lib/net/imap/response_parser.rb#1617 def capability_data__untagged; end # Returns atom.upcase @@ -4489,12 +4490,12 @@ class Net::IMAP::ResponseParser # # charset = atom / quoted # - # source://net-imap//lib/net/imap/response_parser.rb#1963 + # source://net-imap//lib/net/imap/response_parser.rb#1964 def charset; end # "(" charset *(SP charset) ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1846 + # source://net-imap//lib/net/imap/response_parser.rb#1847 def charset__list; end # source://net-imap//lib/net/imap/response_parser.rb#748 @@ -4513,7 +4514,7 @@ class Net::IMAP::ResponseParser # enable-data = "ENABLED" *(SP capability) # - # source://net-imap//lib/net/imap/response_parser.rb#1621 + # source://net-imap//lib/net/imap/response_parser.rb#1622 def enable_data; end # env-from = "(" 1*address ")" / nil @@ -4616,12 +4617,12 @@ class Net::IMAP::ResponseParser # flag-list = "(" [flag *(SP flag)] ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1913 + # source://net-imap//lib/net/imap/response_parser.rb#1914 def flag_list; end # "(" [flag-perm *(SP flag-perm)] ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1923 + # source://net-imap//lib/net/imap/response_parser.rb#1924 def flag_perm__list; end # TODO: handle atom, astring_chars, and tag entirely inside the lexer @@ -4653,15 +4654,15 @@ class Net::IMAP::ResponseParser # %d59-126 ; characters not including # ; ":". # - # source://net-imap//lib/net/imap/response_parser.rb#1334 + # source://net-imap//lib/net/imap/response_parser.rb#1335 def header_fld_name; end # header-list = "(" header-fld-name *(SP header-fld-name) ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1300 + # source://net-imap//lib/net/imap/response_parser.rb#1301 def header_list; end - # source://net-imap//lib/net/imap/response_parser.rb#1640 + # source://net-imap//lib/net/imap/response_parser.rb#1641 def id_response; end # Use #label or #label_in to assert specific known labels @@ -4703,13 +4704,13 @@ class Net::IMAP::ResponseParser # "STATUS" SP mailbox SP "(" [status-att-list] ")" / # number SP "EXISTS" / number SP "RECENT" # - # source://net-imap//lib/net/imap/response_parser.rb#1346 + # source://net-imap//lib/net/imap/response_parser.rb#1347 def mailbox_data__flags; end - # source://net-imap//lib/net/imap/response_parser.rb#1352 + # source://net-imap//lib/net/imap/response_parser.rb#1353 def mailbox_data__list; end - # source://net-imap//lib/net/imap/response_parser.rb#1352 + # source://net-imap//lib/net/imap/response_parser.rb#1353 def mailbox_data__lsub; end # source://net-imap//lib/net/imap/response_parser.rb#832 @@ -4730,15 +4731,15 @@ class Net::IMAP::ResponseParser # mailbox-data = obsolete-search-response / ... # obsolete-search-response = "SEARCH" *(SP nz-number) # - # source://net-imap//lib/net/imap/response_parser.rb#1464 + # source://net-imap//lib/net/imap/response_parser.rb#1465 def mailbox_data__search; end # mailbox-data =/ "STATUS" SP mailbox SP "(" [status-att-list] ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1530 + # source://net-imap//lib/net/imap/response_parser.rb#1531 def mailbox_data__status; end - # source://net-imap//lib/net/imap/response_parser.rb#1352 + # source://net-imap//lib/net/imap/response_parser.rb#1353 def mailbox_data__xlist; end # mailbox-list = "(" [mbx-list-flags] ")" SP @@ -4747,12 +4748,12 @@ class Net::IMAP::ResponseParser # ; This is the list information pointed to by the ABNF # ; item "mailbox-data", which is defined above # - # source://net-imap//lib/net/imap/response_parser.rb#1365 + # source://net-imap//lib/net/imap/response_parser.rb#1366 def mailbox_list; end # See Patterns::MBX_LIST_FLAGS # - # source://net-imap//lib/net/imap/response_parser.rb#1941 + # source://net-imap//lib/net/imap/response_parser.rb#1942 def mbx_list_flags; end # n.b. this handles both type and subtype @@ -4921,14 +4922,14 @@ class Net::IMAP::ResponseParser # namespace = nil / "(" 1*namespace-descr ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1687 + # source://net-imap//lib/net/imap/response_parser.rb#1688 def namespace; end # namespace-descr = "(" string SP # (DQUOTE QUOTED-CHAR DQUOTE / nil) # [namespace-response-extensions] ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1698 + # source://net-imap//lib/net/imap/response_parser.rb#1699 def namespace_descr; end # namespace-response = "NAMESPACE" SP namespace @@ -4938,23 +4939,23 @@ class Net::IMAP::ResponseParser # ; Namespace(s). # ; The third Namespace is the Shared Namespace(s). # - # source://net-imap//lib/net/imap/response_parser.rb#1675 + # source://net-imap//lib/net/imap/response_parser.rb#1676 def namespace_response; end # namespace-response-extensions = *namespace-response-extension # namespace-response-extension = SP string SP # "(" string *(SP string) ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1710 + # source://net-imap//lib/net/imap/response_parser.rb#1711 def namespace_response_extensions; end # source://net-imap//lib/net/imap/response_parser.rb#551 def ndatetime; end - # source://net-imap//lib/net/imap/response_parser.rb#2030 + # source://net-imap//lib/net/imap/response_parser.rb#2031 def next_token; end - # source://net-imap//lib/net/imap/response_parser.rb#2012 + # source://net-imap//lib/net/imap/response_parser.rb#2013 def nil_atom; end # env-from = "(" 1*address ")" / nil @@ -4967,7 +4968,7 @@ class Net::IMAP::ResponseParser # source://net-imap//lib/net/imap/response_parser.rb#983 def nlist__address; end - # source://net-imap//lib/net/imap/response_parser.rb#1990 + # source://net-imap//lib/net/imap/response_parser.rb#1991 def nparens__objectid; end # source://net-imap//lib/net/imap/response_parser.rb#551 @@ -4990,22 +4991,22 @@ class Net::IMAP::ResponseParser # source://net-imap//lib/net/imap/response_parser.rb#487 def objectid; end - # source://net-imap//lib/net/imap/response_parser.rb#1981 + # source://net-imap//lib/net/imap/response_parser.rb#1982 def parens__modseq; end - # source://net-imap//lib/net/imap/response_parser.rb#1989 + # source://net-imap//lib/net/imap/response_parser.rb#1990 def parens__objectid; end # This allows illegal "]" in flag names (Gmail), # or "\*" in a FLAGS response (greenmail). # - # source://net-imap//lib/net/imap/response_parser.rb#1934 + # source://net-imap//lib/net/imap/response_parser.rb#1935 def quirky__flag_list(name); end - # source://net-imap//lib/net/imap/response_parser.rb#1373 + # source://net-imap//lib/net/imap/response_parser.rb#1374 def quota_response; end - # source://net-imap//lib/net/imap/response_parser.rb#1406 + # source://net-imap//lib/net/imap/response_parser.rb#1407 def quotaroot_response; end # reads all the way up until CRLF @@ -5016,7 +5017,7 @@ class Net::IMAP::ResponseParser # As a workaround for buggy servers, allow a trailing SP: # *(SP capability) [SP] # - # source://net-imap//lib/net/imap/response_parser.rb#1627 + # source://net-imap//lib/net/imap/response_parser.rb#1628 def resp_code__capability; end # already matched: "APPENDUID" @@ -5031,14 +5032,14 @@ class Net::IMAP::ResponseParser # n.b, uniqueid ⊂ uid-set. To avoid inconsistent return types, we always # match uid_set even if that returns a single-member array. # - # source://net-imap//lib/net/imap/response_parser.rb#1862 + # source://net-imap//lib/net/imap/response_parser.rb#1863 def resp_code_apnd__data; end # already matched: "COPYUID" # # resp-code-copy = "COPYUID" SP nz-number SP uid-set SP uid-set # - # source://net-imap//lib/net/imap/response_parser.rb#1871 + # source://net-imap//lib/net/imap/response_parser.rb#1872 def resp_code_copy__data; end # resp-cond-auth = ("OK" / "PREAUTH") SP resp-text @@ -5097,7 +5098,7 @@ class Net::IMAP::ResponseParser # We leniently re-interpret this as # resp-text = ["[" resp-text-code "]" [SP [text]] / [text] # - # source://net-imap//lib/net/imap/response_parser.rb#1746 + # source://net-imap//lib/net/imap/response_parser.rb#1747 def resp_text; end # RFC3501 (See https://www.rfc-editor.org/errata/rfc3501): @@ -5156,7 +5157,7 @@ class Net::IMAP::ResponseParser # RFC8474: OBJECTID # resp-text-code =/ "MAILBOXID" SP "(" objectid ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1810 + # source://net-imap//lib/net/imap/response_parser.rb#1811 def resp_text_code; end # Returns atom.upcase @@ -5227,12 +5228,12 @@ class Net::IMAP::ResponseParser # section = "[" [section-spec] "]" # - # source://net-imap//lib/net/imap/response_parser.rb#1264 + # source://net-imap//lib/net/imap/response_parser.rb#1265 def section; end # section-binary = "[" [section-part] "]" # - # source://net-imap//lib/net/imap/response_parser.rb#1271 + # source://net-imap//lib/net/imap/response_parser.rb#1272 def section_binary; end # TODO: handle atom, astring_chars, and tag entirely inside the lexer @@ -5259,7 +5260,7 @@ class Net::IMAP::ResponseParser # n.b: we could "cheat" here and just grab all text inside the brackets, # but literals would need special treatment. # - # source://net-imap//lib/net/imap/response_parser.rb#1292 + # source://net-imap//lib/net/imap/response_parser.rb#1293 def section_spec; end # sequence-set = (seq-number / seq-range) ["," sequence-set] @@ -5288,7 +5289,7 @@ class Net::IMAP::ResponseParser # mailbox-data = obsolete-search-response / ... # obsolete-search-response = "SEARCH" *(SP nz-number) # - # source://net-imap//lib/net/imap/response_parser.rb#1464 + # source://net-imap//lib/net/imap/response_parser.rb#1465 def sort_data; end # RFC3501 @@ -5296,7 +5297,7 @@ class Net::IMAP::ResponseParser # RFC4466, RFC9051, and RFC3501 Errata # status-att-list = status-att-val *(SP status-att-val) # - # source://net-imap//lib/net/imap/response_parser.rb#1541 + # source://net-imap//lib/net/imap/response_parser.rb#1542 def status_att_list; end # RFC3501 Errata: @@ -5339,7 +5340,7 @@ class Net::IMAP::ResponseParser # status-att-val =/ "MAILBOXID" SP "(" objectid ")" # ; follows tagged-ext production from [RFC4466] # - # source://net-imap//lib/net/imap/response_parser.rb#1586 + # source://net-imap//lib/net/imap/response_parser.rb#1587 def status_att_val; end # source://net-imap//lib/net/imap/response_parser.rb#489 @@ -5382,43 +5383,43 @@ class Net::IMAP::ResponseParser # ; Non-ASCII text can only be returned # ; after ENABLE IMAP4rev2 command # - # source://net-imap//lib/net/imap/response_parser.rb#1730 + # source://net-imap//lib/net/imap/response_parser.rb#1731 def text; end # an "accept" versiun of #text # # @return [Boolean] # - # source://net-imap//lib/net/imap/response_parser.rb#1735 + # source://net-imap//lib/net/imap/response_parser.rb#1736 def text?; end # 1* # - # source://net-imap//lib/net/imap/response_parser.rb#1841 + # source://net-imap//lib/net/imap/response_parser.rb#1842 def text_chars_except_rbra; end # RFC5256: THREAD # thread-data = "THREAD" [SP 1*thread-list] # - # source://net-imap//lib/net/imap/response_parser.rb#1480 + # source://net-imap//lib/net/imap/response_parser.rb#1481 def thread_data; end # RFC5256: THREAD # thread-list = "(" (thread-members / thread-nested) ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1494 + # source://net-imap//lib/net/imap/response_parser.rb#1495 def thread_list; end # RFC5256: THREAD # thread-members = nz-number *(SP nz-number) [SP thread-nested] # - # source://net-imap//lib/net/imap/response_parser.rb#1507 + # source://net-imap//lib/net/imap/response_parser.rb#1508 def thread_members; end # RFC5256: THREAD # thread-nested = 2*thread-list # - # source://net-imap//lib/net/imap/response_parser.rb#1523 + # source://net-imap//lib/net/imap/response_parser.rb#1524 def thread_nested; end # RFC-4315 (UIDPLUS) or RFC9051 (IMAP4rev2): @@ -5430,7 +5431,7 @@ class Net::IMAP::ResponseParser # uniqueid = nz-number # ; Strictly ascending # - # source://net-imap//lib/net/imap/response_parser.rb#2000 + # source://net-imap//lib/net/imap/response_parser.rb#2001 def uid_set; end # source://net-imap//lib/net/imap/response_parser.rb#748 @@ -5438,12 +5439,12 @@ class Net::IMAP::ResponseParser # See https://developers.google.com/gmail/imap/imap-extensions # - # source://net-imap//lib/net/imap/response_parser.rb#1948 + # source://net-imap//lib/net/imap/response_parser.rb#1949 def x_gm_label; end # See https://developers.google.com/gmail/imap/imap-extensions # - # source://net-imap//lib/net/imap/response_parser.rb#1951 + # source://net-imap//lib/net/imap/response_parser.rb#1952 def x_gm_labels; end end @@ -5986,7 +5987,7 @@ Net::IMAP::ResponseParser::ResponseConditions::RESP_DATA_CONDS = T.let(T.unsafe( # source://net-imap//lib/net/imap/response_parser.rb#459 Net::IMAP::ResponseParser::SEQUENCE_SET_TOKENS = T.let(T.unsafe(nil), Array) -# source://net-imap//lib/net/imap/response_parser.rb#2017 +# source://net-imap//lib/net/imap/response_parser.rb#2018 Net::IMAP::ResponseParser::SPACES_REGEXP = T.let(T.unsafe(nil), Regexp) # tag = 1* diff --git a/sorbet/rbi/gems/net-pop@0.1.2.rbi b/sorbet/rbi/gems/net-pop@0.1.2.rbi index d331e506..0157b1a8 100644 --- a/sorbet/rbi/gems/net-pop@0.1.2.rbi +++ b/sorbet/rbi/gems/net-pop@0.1.2.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `net-pop` gem. # Please instead update this file by running `bin/tapioca gem net-pop`. + # This class is equivalent to POP3, except that it uses APOP authentication. # # source://net-pop//lib/net/pop.rb#729 diff --git a/sorbet/rbi/gems/net-protocol@0.2.2.rbi b/sorbet/rbi/gems/net-protocol@0.2.2.rbi index 17b01b7d..f9ede895 100644 --- a/sorbet/rbi/gems/net-protocol@0.2.2.rbi +++ b/sorbet/rbi/gems/net-protocol@0.2.2.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `net-protocol` gem. # Please instead update this file by running `bin/tapioca gem net-protocol`. + class Net::BufferedIO # @return [BufferedIO] a new instance of BufferedIO # diff --git a/sorbet/rbi/gems/net-smtp@0.5.0.rbi b/sorbet/rbi/gems/net-smtp@0.5.0.rbi index c0e3e955..94d8eab1 100644 --- a/sorbet/rbi/gems/net-smtp@0.5.0.rbi +++ b/sorbet/rbi/gems/net-smtp@0.5.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `net-smtp` gem. # Please instead update this file by running `bin/tapioca gem net-smtp`. + # == What is This Library? # # This library provides functionality to send internet diff --git a/sorbet/rbi/gems/netrc@0.11.0.rbi b/sorbet/rbi/gems/netrc@0.11.0.rbi index 062a5577..4ae989b9 100644 --- a/sorbet/rbi/gems/netrc@0.11.0.rbi +++ b/sorbet/rbi/gems/netrc@0.11.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `netrc` gem. # Please instead update this file by running `bin/tapioca gem netrc`. + # source://netrc//lib/netrc.rb#3 class Netrc # @return [Netrc] a new instance of Netrc diff --git a/sorbet/rbi/gems/nio4r@2.7.1.rbi b/sorbet/rbi/gems/nio4r@2.7.3.rbi similarity index 99% rename from sorbet/rbi/gems/nio4r@2.7.1.rbi rename to sorbet/rbi/gems/nio4r@2.7.3.rbi index 26b6d957..1b9cda88 100644 --- a/sorbet/rbi/gems/nio4r@2.7.1.rbi +++ b/sorbet/rbi/gems/nio4r@2.7.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `nio4r` gem. # Please instead update this file by running `bin/tapioca gem nio4r`. + # New I/O for Ruby # # source://nio4r//lib/nio/version.rb#8 diff --git a/sorbet/rbi/gems/nokogiri@1.16.4.rbi b/sorbet/rbi/gems/nokogiri@1.16.5.rbi similarity index 99% rename from sorbet/rbi/gems/nokogiri@1.16.4.rbi rename to sorbet/rbi/gems/nokogiri@1.16.5.rbi index 99b6d152..b1e6ba27 100644 --- a/sorbet/rbi/gems/nokogiri@1.16.4.rbi +++ b/sorbet/rbi/gems/nokogiri@1.16.5.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `nokogiri` gem. # Please instead update this file by running `bin/tapioca gem nokogiri`. + # Nokogiri parses and searches XML/HTML very quickly, and also has # correctly implemented CSS3 selector support as well as XPath 1.0 # support. diff --git a/sorbet/rbi/gems/openssl-signature_algorithm@1.3.0.rbi b/sorbet/rbi/gems/openssl-signature_algorithm@1.3.0.rbi index 9de73349..c8b6b960 100644 --- a/sorbet/rbi/gems/openssl-signature_algorithm@1.3.0.rbi +++ b/sorbet/rbi/gems/openssl-signature_algorithm@1.3.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `openssl-signature_algorithm` gem. # Please instead update this file by running `bin/tapioca gem openssl-signature_algorithm`. + # source://openssl-signature_algorithm//lib/openssl/signature_algorithm/error.rb#4 module OpenSSL::SignatureAlgorithm; end diff --git a/sorbet/rbi/gems/openssl@3.2.0.rbi b/sorbet/rbi/gems/openssl@3.2.0.rbi index 44adb888..8b6cce2f 100644 --- a/sorbet/rbi/gems/openssl@3.2.0.rbi +++ b/sorbet/rbi/gems/openssl@3.2.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `openssl` gem. # Please instead update this file by running `bin/tapioca gem openssl`. + # -- # Add double dispatch to Integer # ++ diff --git a/sorbet/rbi/gems/os@1.1.4.rbi b/sorbet/rbi/gems/os@1.1.4.rbi new file mode 100644 index 00000000..ee8bc8cd --- /dev/null +++ b/sorbet/rbi/gems/os@1.1.4.rbi @@ -0,0 +1,168 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `os` gem. +# Please instead update this file by running `bin/tapioca gem os`. + + +# a set of friendly files for determining your Ruby runtime +# treats cygwin as linux +# also treats IronRuby on mono as...linux +# +# source://os//lib/os.rb#7 +class OS + # Returns the value of attribute config. + # + # source://os//lib/os.rb#8 + def config; end + + class << self + # source://os//lib/os.rb#267 + def app_config_path(name); end + + # source://os//lib/os.rb#80 + def bits; end + + # source://os//lib/os.rb#10 + def config; end + + # source://os//lib/os.rb#228 + def cpu_count; end + + # @return [Boolean] + # + # source://os//lib/os.rb#192 + def cygwin?; end + + # File::NULL in 1.9.3+ + # + # source://os//lib/os.rb#202 + def dev_null; end + + # true if on windows [and/or jruby] + # false if on linux or cygwin on windows + # a joke name but I use it and like it :P + # + # @return [Boolean] + # + # source://os//lib/os.rb#17 + def doze?; end + + # @return [Boolean] + # + # source://os//lib/os.rb#62 + def freebsd?; end + + # source://os//lib/os.rb#306 + def host; end + + # source://os//lib/os.rb#306 + def host_cpu; end + + # source://os//lib/os.rb#306 + def host_os; end + + # @return [Boolean] + # + # source://os//lib/os.rb#313 + def hwprefs_available?; end + + # @return [Boolean] + # + # source://os//lib/os.rb#70 + def iron_ruby?; end + + # @return [Boolean] + # + # source://os//lib/os.rb#101 + def java?; end + + # @return [Boolean] + # + # source://os//lib/os.rb#101 + def jruby?; end + + # true for linux, false for windows, os x, cygwin + # + # @return [Boolean] + # + # source://os//lib/os.rb#54 + def linux?; end + + # @return [Boolean] + # + # source://os//lib/os.rb#117 + def mac?; end + + # source://os//lib/os.rb#255 + def open_file_command; end + + # @return [Boolean] + # + # source://os//lib/os.rb#127 + def osx?; end + + # source://os//lib/os.rb#285 + def parse_os_release; end + + # true for linux, os x, cygwin + # + # @return [Boolean] + # + # source://os//lib/os.rb#31 + def posix?; end + + # provides easy way to see the relevant config entries + # + # source://os//lib/os.rb#213 + def report; end + + # amount of memory the current process "is using", in RAM + # (doesn't include any swap memory that it may be using, just that in actual RAM) + # raises 'unknown' on jruby currently + # + # source://os//lib/os.rb#139 + def rss_bytes; end + + # source://os//lib/os.rb#111 + def ruby_bin; end + + # true if on windows [and/or jruby] + # false if on linux or cygwin on windows + # + # @return [Boolean] + # + # source://os//lib/os.rb#17 + def windows?; end + + # @return [Boolean] + # + # source://os//lib/os.rb#131 + def x?; end + end +end + +# source://os//lib/os.rb#172 +class OS::Underlying + class << self + # @return [Boolean] + # + # source://os//lib/os.rb#174 + def bsd?; end + + # @return [Boolean] + # + # source://os//lib/os.rb#186 + def docker?; end + + # @return [Boolean] + # + # source://os//lib/os.rb#182 + def linux?; end + + # @return [Boolean] + # + # source://os//lib/os.rb#178 + def windows?; end + end +end diff --git a/sorbet/rbi/gems/parallel@1.24.0.rbi b/sorbet/rbi/gems/parallel@1.24.0.rbi index 5dd73750..ebdb0605 100644 --- a/sorbet/rbi/gems/parallel@1.24.0.rbi +++ b/sorbet/rbi/gems/parallel@1.24.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `parallel` gem. # Please instead update this file by running `bin/tapioca gem parallel`. + # source://parallel//lib/parallel/version.rb#2 module Parallel class << self diff --git a/sorbet/rbi/gems/parser@3.3.0.5.rbi b/sorbet/rbi/gems/parser@3.3.1.0.rbi similarity index 93% rename from sorbet/rbi/gems/parser@3.3.0.5.rbi rename to sorbet/rbi/gems/parser@3.3.1.0.rbi index 0acdc763..e5a2bb42 100644 --- a/sorbet/rbi/gems/parser@3.3.0.5.rbi +++ b/sorbet/rbi/gems/parser@3.3.1.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `parser` gem. # Please instead update this file by running `bin/tapioca gem parser`. + # @api public # # source://parser//lib/parser.rb#19 @@ -52,603 +53,605 @@ end # @api public # # source://parser//lib/parser/ast/processor.rb#9 -class Parser::AST::Processor < ::AST::Processor +class Parser::AST::Processor + include ::AST::Processor::Mixin + # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_alias(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_and(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_and_asgn(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#116 + # source://parser//lib/parser/ast/processor.rb#118 def on_arg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_arg_expr(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_args(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#103 + # source://parser//lib/parser/ast/processor.rb#105 def on_argument(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_array(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_array_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_array_pattern_with_tail(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#32 + # source://parser//lib/parser/ast/processor.rb#34 def on_back_ref(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_begin(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_block(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_block_pass(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#116 + # source://parser//lib/parser/ast/processor.rb#118 def on_blockarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_blockarg_expr(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_break(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_case(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_case_match(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#87 + # source://parser//lib/parser/ast/processor.rb#89 def on_casgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_class(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#79 + # source://parser//lib/parser/ast/processor.rb#81 def on_const(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_const_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#179 + # source://parser//lib/parser/ast/processor.rb#181 def on_csend(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#32 + # source://parser//lib/parser/ast/processor.rb#34 def on_cvar(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#56 + # source://parser//lib/parser/ast/processor.rb#58 def on_cvasgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#158 + # source://parser//lib/parser/ast/processor.rb#160 def on_def(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_defined?(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#167 + # source://parser//lib/parser/ast/processor.rb#169 def on_defs(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_dstr(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_dsym(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_eflipflop(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#286 + # source://parser//lib/parser/ast/processor.rb#288 def on_empty_else(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_ensure(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_erange(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_find_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_for(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#116 + # source://parser//lib/parser/ast/processor.rb#118 def on_forward_arg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_forwarded_kwrestarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_forwarded_restarg(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#32 + # source://parser//lib/parser/ast/processor.rb#34 def on_gvar(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#56 + # source://parser//lib/parser/ast/processor.rb#58 def on_gvasgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_hash(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_hash_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_if(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_if_guard(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_iflipflop(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_in_match(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_in_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_index(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_indexasgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_irange(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#32 + # source://parser//lib/parser/ast/processor.rb#34 def on_ivar(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#56 + # source://parser//lib/parser/ast/processor.rb#58 def on_ivasgn(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#116 + # source://parser//lib/parser/ast/processor.rb#118 def on_kwarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_kwargs(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_kwbegin(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#116 + # source://parser//lib/parser/ast/processor.rb#118 def on_kwoptarg(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#116 + # source://parser//lib/parser/ast/processor.rb#118 def on_kwrestarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_kwsplat(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_lambda(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#32 + # source://parser//lib/parser/ast/processor.rb#34 def on_lvar(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#56 + # source://parser//lib/parser/ast/processor.rb#58 def on_lvasgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_masgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_match_alt(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_match_as(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_match_current_line(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_match_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_match_pattern_p(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_match_rest(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#32 + # source://parser//lib/parser/ast/processor.rb#34 def on_match_var(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_match_with_lvasgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_mlhs(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_module(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_next(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_not(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#32 + # source://parser//lib/parser/ast/processor.rb#34 def on_nth_ref(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#196 + # source://parser//lib/parser/ast/processor.rb#198 def on_numblock(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#68 + # source://parser//lib/parser/ast/processor.rb#70 def on_op_asgn(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#116 + # source://parser//lib/parser/ast/processor.rb#118 def on_optarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_or(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_or_asgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_pair(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_pin(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_postexe(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_preexe(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#130 + # source://parser//lib/parser/ast/processor.rb#132 def on_procarg0(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_redo(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_regexp(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_resbody(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_rescue(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#116 + # source://parser//lib/parser/ast/processor.rb#118 def on_restarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_restarg_expr(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_retry(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_return(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_sclass(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#179 + # source://parser//lib/parser/ast/processor.rb#181 def on_send(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#116 + # source://parser//lib/parser/ast/processor.rb#118 def on_shadowarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_splat(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_super(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_undef(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_unless_guard(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_until(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_until_post(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#27 + # source://parser//lib/parser/ast/processor.rb#29 def on_var(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#43 + # source://parser//lib/parser/ast/processor.rb#45 def on_vasgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_when(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_while(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_while_post(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_xstr(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def on_yield(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#279 + # source://parser//lib/parser/ast/processor.rb#281 def process_argument_node(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#10 + # source://parser//lib/parser/ast/processor.rb#12 def process_regular_node(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#271 + # source://parser//lib/parser/ast/processor.rb#273 def process_var_asgn_node(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#263 + # source://parser//lib/parser/ast/processor.rb#265 def process_variable_node(node); end end @@ -861,7 +864,7 @@ end # @api public # -# source://parser//lib/parser.rb#77 +# source://parser//lib/parser.rb#78 module Parser::Builders; end # source://parser//lib/parser/builders/default.rb#8 @@ -3329,7 +3332,7 @@ class Parser::Source::Buffer # @api public # @return [Buffer] a new instance of Buffer # - # source://parser//lib/parser/source/buffer.rb#105 + # source://parser//lib/parser/source/buffer.rb#110 def initialize(name, first_line = T.unsafe(nil), source: T.unsafe(nil)); end # Convert a character index into the source to a column number. @@ -3338,7 +3341,7 @@ class Parser::Source::Buffer # @param position [Integer] # @return [Integer] column # - # source://parser//lib/parser/source/buffer.rb#242 + # source://parser//lib/parser/source/buffer.rb#247 def column_for_position(position); end # Convert a character index into the source to a `[line, column]` tuple. @@ -3347,7 +3350,7 @@ class Parser::Source::Buffer # @param position [Integer] # @return [[Integer, Integer]] `[line, column]` # - # source://parser//lib/parser/source/buffer.rb#217 + # source://parser//lib/parser/source/buffer.rb#222 def decompose_position(position); end # First line of the buffer, 1 by default. @@ -3360,12 +3363,12 @@ class Parser::Source::Buffer # @api public # - # source://parser//lib/parser/source/buffer.rb#312 + # source://parser//lib/parser/source/buffer.rb#317 def freeze; end # @api public # - # source://parser//lib/parser/source/buffer.rb#318 + # source://parser//lib/parser/source/buffer.rb#323 def inspect; end # Number of last line in the buffer @@ -3373,7 +3376,7 @@ class Parser::Source::Buffer # @api public # @return [Integer] # - # source://parser//lib/parser/source/buffer.rb#307 + # source://parser//lib/parser/source/buffer.rb#312 def last_line; end # Convert a character index into the source to a line number. @@ -3382,7 +3385,7 @@ class Parser::Source::Buffer # @param position [Integer] # @return [Integer] line # - # source://parser//lib/parser/source/buffer.rb#231 + # source://parser//lib/parser/source/buffer.rb#236 def line_for_position(position); end # Extract line `lineno` as a new `Range`, taking `first_line` into account. @@ -3392,7 +3395,7 @@ class Parser::Source::Buffer # @raise [IndexError] if `lineno` is out of bounds # @return [Range] # - # source://parser//lib/parser/source/buffer.rb#284 + # source://parser//lib/parser/source/buffer.rb#289 def line_range(lineno); end # Buffer name. If the buffer was created from a file, the name corresponds @@ -3411,7 +3414,7 @@ class Parser::Source::Buffer # @raise [ArgumentError] if already populated # @return [String] # - # source://parser//lib/parser/source/buffer.rb#180 + # source://parser//lib/parser/source/buffer.rb#185 def raw_source=(input); end # Populate this buffer from correspondingly named file. @@ -3422,12 +3425,12 @@ class Parser::Source::Buffer # @raise [ArgumentError] if already populated # @return [Buffer] self # - # source://parser//lib/parser/source/buffer.rb#131 + # source://parser//lib/parser/source/buffer.rb#136 def read; end # @api public # - # source://parser//lib/parser/source/buffer.rb#194 + # source://parser//lib/parser/source/buffer.rb#199 def slice(start, length = T.unsafe(nil)); end # Source code contained in this buffer. @@ -3436,7 +3439,7 @@ class Parser::Source::Buffer # @raise [RuntimeError] if buffer is not populated yet # @return [String] source code # - # source://parser//lib/parser/source/buffer.rb#145 + # source://parser//lib/parser/source/buffer.rb#150 def source; end # Populate this buffer from a string with encoding autodetection. @@ -3448,7 +3451,7 @@ class Parser::Source::Buffer # @raise [EncodingError] if `input` includes invalid byte sequence for the encoding # @return [String] # - # source://parser//lib/parser/source/buffer.rb#162 + # source://parser//lib/parser/source/buffer.rb#167 def source=(input); end # Extract line `lineno` from source, taking `first_line` into account. @@ -3458,7 +3461,7 @@ class Parser::Source::Buffer # @raise [IndexError] if `lineno` is out of bounds # @return [String] # - # source://parser//lib/parser/source/buffer.rb#273 + # source://parser//lib/parser/source/buffer.rb#278 def source_line(lineno); end # Return an `Array` of source code lines. @@ -3466,30 +3469,30 @@ class Parser::Source::Buffer # @api public # @return [Array] # - # source://parser//lib/parser/source/buffer.rb#252 + # source://parser//lib/parser/source/buffer.rb#257 def source_lines; end # @api public # @return [Range] A range covering the whole source # - # source://parser//lib/parser/source/buffer.rb#298 + # source://parser//lib/parser/source/buffer.rb#303 def source_range; end private # @api public # - # source://parser//lib/parser/source/buffer.rb#348 + # source://parser//lib/parser/source/buffer.rb#353 def bsearch(line_begins, position); end # @api public # - # source://parser//lib/parser/source/buffer.rb#325 + # source://parser//lib/parser/source/buffer.rb#330 def line_begins; end # @api public # - # source://parser//lib/parser/source/buffer.rb#339 + # source://parser//lib/parser/source/buffer.rb#344 def line_index_for_position(position); end class << self @@ -3498,9 +3501,10 @@ class Parser::Source::Buffer # # @api public # @param string [String] + # @raise [Parser::UnknownEncodingInMagicComment] if the encoding is not recognized # @return [String, nil] encoding name, if recognized # - # source://parser//lib/parser/source/buffer.rb#51 + # source://parser//lib/parser/source/buffer.rb#52 def recognize_encoding(string); end # Recognize encoding of `input` and process it so it could be lexed. @@ -3518,7 +3522,7 @@ class Parser::Source::Buffer # @raise [EncodingError] # @return [String] # - # source://parser//lib/parser/source/buffer.rb#90 + # source://parser//lib/parser/source/buffer.rb#95 def reencode_string(input); end end end @@ -5124,80 +5128,80 @@ end # source://parser//lib/parser/source/tree_rewriter.rb#391 Parser::Source::TreeRewriter::ACTIONS = T.let(T.unsafe(nil), Array) -# source://parser//lib/parser/source/tree_rewriter/action.rb#13 +# source://parser//lib/parser/source/tree_rewriter/action.rb#14 class Parser::Source::TreeRewriter::Action - # source://parser//lib/parser/source/tree_rewriter/action.rb#16 + # source://parser//lib/parser/source/tree_rewriter/action.rb#17 def initialize(range, enforcer, insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil), children: T.unsafe(nil)); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#28 + # source://parser//lib/parser/source/tree_rewriter/action.rb#29 def combine(action); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#67 + # source://parser//lib/parser/source/tree_rewriter/action.rb#68 def contract; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#33 + # source://parser//lib/parser/source/tree_rewriter/action.rb#34 def empty?; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#14 + # source://parser//lib/parser/source/tree_rewriter/action.rb#15 def insert_after; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#14 + # source://parser//lib/parser/source/tree_rewriter/action.rb#15 def insert_before; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#57 + # source://parser//lib/parser/source/tree_rewriter/action.rb#58 def insertion?; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#80 + # source://parser//lib/parser/source/tree_rewriter/action.rb#81 def moved(source_buffer, offset); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#49 + # source://parser//lib/parser/source/tree_rewriter/action.rb#50 def nested_actions; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#40 + # source://parser//lib/parser/source/tree_rewriter/action.rb#41 def ordered_replacements; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#14 + # source://parser//lib/parser/source/tree_rewriter/action.rb#15 def range; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#14 + # source://parser//lib/parser/source/tree_rewriter/action.rb#15 def replacement; end protected - # source://parser//lib/parser/source/tree_rewriter/action.rb#158 + # source://parser//lib/parser/source/tree_rewriter/action.rb#159 def analyse_hierarchy(action); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#145 + # source://parser//lib/parser/source/tree_rewriter/action.rb#146 def bsearch_child_index(from = T.unsafe(nil)); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#224 + # source://parser//lib/parser/source/tree_rewriter/action.rb#225 def call_enforcer_for_merge(action); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#204 + # source://parser//lib/parser/source/tree_rewriter/action.rb#205 def check_fusible(action, *fusible); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#94 + # source://parser//lib/parser/source/tree_rewriter/action.rb#95 def children; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#129 + # source://parser//lib/parser/source/tree_rewriter/action.rb#130 def combine_children(more_children); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#102 + # source://parser//lib/parser/source/tree_rewriter/action.rb#103 def do_combine(action); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#135 + # source://parser//lib/parser/source/tree_rewriter/action.rb#136 def fuse_deletions(action, fusible, other_sibblings); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#215 + # source://parser//lib/parser/source/tree_rewriter/action.rb#216 def merge(action); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#110 + # source://parser//lib/parser/source/tree_rewriter/action.rb#111 def place_in_hierarchy(action); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#232 + # source://parser//lib/parser/source/tree_rewriter/action.rb#233 def swallow(children); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#96 + # source://parser//lib/parser/source/tree_rewriter/action.rb#97 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 @@ -5215,90 +5219,122 @@ Parser::Source::TreeRewriter::POLICY_TO_LEVEL = T.let(T.unsafe(nil), Hash) class Parser::StaticEnvironment # @return [StaticEnvironment] a new instance of StaticEnvironment # - # source://parser//lib/parser/static_environment.rb#11 + # source://parser//lib/parser/static_environment.rb#17 def initialize; end - # source://parser//lib/parser/static_environment.rb#40 + # source://parser//lib/parser/static_environment.rb#55 def declare(name); end - # source://parser//lib/parser/static_environment.rb#58 + # Anonymous blockarg + # + # source://parser//lib/parser/static_environment.rb#77 def declare_anonymous_blockarg; end - # source://parser//lib/parser/static_environment.rb#82 + # Anonymous kwresarg + # + # source://parser//lib/parser/static_environment.rb#113 def declare_anonymous_kwrestarg; end - # source://parser//lib/parser/static_environment.rb#70 + # Anonymous restarg + # + # source://parser//lib/parser/static_environment.rb#95 def declare_anonymous_restarg; end - # source://parser//lib/parser/static_environment.rb#50 + # Forward args + # + # source://parser//lib/parser/static_environment.rb#67 def declare_forward_args; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#46 + # source://parser//lib/parser/static_environment.rb#61 def declared?(name); end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#62 + # source://parser//lib/parser/static_environment.rb#81 def declared_anonymous_blockarg?; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#86 + # source://parser//lib/parser/static_environment.rb#85 + def declared_anonymous_blockarg_in_current_scpe?; end + + # @return [Boolean] + # + # source://parser//lib/parser/static_environment.rb#117 def declared_anonymous_kwrestarg?; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#74 + # source://parser//lib/parser/static_environment.rb#121 + def declared_anonymous_kwrestarg_in_current_scope?; end + + # @return [Boolean] + # + # source://parser//lib/parser/static_environment.rb#99 def declared_anonymous_restarg?; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#54 + # source://parser//lib/parser/static_environment.rb#103 + def declared_anonymous_restarg_in_current_scope?; end + + # @return [Boolean] + # + # source://parser//lib/parser/static_environment.rb#71 def declared_forward_args?; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#94 + # source://parser//lib/parser/static_environment.rb#129 def empty?; end - # source://parser//lib/parser/static_environment.rb#27 + # source://parser//lib/parser/static_environment.rb#33 def extend_dynamic; end - # source://parser//lib/parser/static_environment.rb#20 + # source://parser//lib/parser/static_environment.rb#26 def extend_static; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#66 + # source://parser//lib/parser/static_environment.rb#89 def parent_has_anonymous_blockarg?; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#90 + # source://parser//lib/parser/static_environment.rb#125 def parent_has_anonymous_kwrestarg?; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#78 + # source://parser//lib/parser/static_environment.rb#107 def parent_has_anonymous_restarg?; end - # source://parser//lib/parser/static_environment.rb#15 + # source://parser//lib/parser/static_environment.rb#21 def reset; end - # source://parser//lib/parser/static_environment.rb#34 + # source://parser//lib/parser/static_environment.rb#49 def unextend; end end -# source://parser//lib/parser/static_environment.rb#7 -Parser::StaticEnvironment::ANONYMOUS_BLOCKARG = T.let(T.unsafe(nil), Symbol) +# source://parser//lib/parser/static_environment.rb#15 +Parser::StaticEnvironment::ANONYMOUS_BLOCKARG_INHERITED = T.let(T.unsafe(nil), Symbol) + +# source://parser//lib/parser/static_environment.rb#14 +Parser::StaticEnvironment::ANONYMOUS_BLOCKARG_IN_CURRENT_SCOPE = T.let(T.unsafe(nil), Symbol) + +# source://parser//lib/parser/static_environment.rb#12 +Parser::StaticEnvironment::ANONYMOUS_KWRESTARG_INHERITED = T.let(T.unsafe(nil), Symbol) + +# source://parser//lib/parser/static_environment.rb#11 +Parser::StaticEnvironment::ANONYMOUS_KWRESTARG_IN_CURRENT_SCOPE = T.let(T.unsafe(nil), Symbol) # source://parser//lib/parser/static_environment.rb#9 -Parser::StaticEnvironment::ANONYMOUS_KWRESTARG = T.let(T.unsafe(nil), Symbol) +Parser::StaticEnvironment::ANONYMOUS_RESTARG_INHERITED = T.let(T.unsafe(nil), Symbol) # source://parser//lib/parser/static_environment.rb#8 -Parser::StaticEnvironment::ANONYMOUS_RESTARG = T.let(T.unsafe(nil), Symbol) +Parser::StaticEnvironment::ANONYMOUS_RESTARG_IN_CURRENT_SCOPE = T.let(T.unsafe(nil), Symbol) # source://parser//lib/parser/static_environment.rb#6 Parser::StaticEnvironment::FORWARD_ARGS = T.let(T.unsafe(nil), Symbol) @@ -5438,6 +5474,17 @@ class Parser::TreeRewriter < ::Parser::AST::Processor def wrap(range, before, after); end end +# {Parser::UnknownEncodingInMagicComment} is raised when a magic encoding +# comment is encountered that the currently running Ruby version doesn't +# recognize. It inherits from {ArgumentError} since that is the exception +# Ruby itself raises when trying to execute a file with an unknown encoding. +# As such, it is also not a {Parser::SyntaxError}. +# +# @api public +# +# source://parser//lib/parser/unknown_encoding_in_magic_comment_error.rb#13 +class Parser::UnknownEncodingInMagicComment < ::ArgumentError; end + # source://parser//lib/parser/version.rb#4 Parser::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/popper_js@2.11.8.rbi b/sorbet/rbi/gems/popper_js@2.11.8.rbi index 0d3bcd12..eab45b00 100644 --- a/sorbet/rbi/gems/popper_js@2.11.8.rbi +++ b/sorbet/rbi/gems/popper_js@2.11.8.rbi @@ -4,13 +4,14 @@ # This is an autogenerated file for types exported from the `popper_js` gem. # Please instead update this file by running `bin/tapioca gem popper_js`. + # source://popper_js//lib/popper_js/version.rb#3 module PopperJs; end # source://popper_js//lib/popper_js/engine.rb#4 class PopperJs::Engine < ::Rails::Engine class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end end end diff --git a/sorbet/rbi/gems/prism@0.26.0.rbi b/sorbet/rbi/gems/prism@0.29.0.rbi similarity index 79% rename from sorbet/rbi/gems/prism@0.26.0.rbi rename to sorbet/rbi/gems/prism@0.29.0.rbi index 05521696..df5bddcd 100644 --- a/sorbet/rbi/gems/prism@0.26.0.rbi +++ b/sorbet/rbi/gems/prism@0.29.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `prism` gem. # Please instead update this file by running `bin/tapioca gem prism`. + # typed: strict # =begin @@ -17,18 +18,10 @@ # if you are looking to modify the template # =end -# We keep these shims in here because our client libraries might not have -# ast/parser in their bundle. -module AST; end - -class AST::Node; end - # We keep these shims in here because our client libraries might not have parser # in their bundle. module Parser; end -module Parser::AST; end -class Parser::AST::Node < AST::Node; end class Parser::Base; end # The Prism Ruby parser. @@ -49,7 +42,7 @@ module Prism def lex(*_arg0); end # :call-seq: - # Prism::lex_compat(source, **options) -> ParseResult + # Prism::lex_compat(source, **options) -> LexCompat::Result # # Returns a parse result whose value is an array of tokens that closely # resembles the return value of Ripper::lex. The main difference is that the @@ -58,12 +51,7 @@ module Prism # For supported options, see Prism::parse. # # source://prism//lib/prism.rb#47 - sig do - params( - source: String, - options: T::Hash[Symbol, T.untyped] - ).returns(Prism::ParseResult[T::Array[T.untyped]]) - end + sig { params(source: String, options: T::Hash[Symbol, T.untyped]).returns(Prism::LexCompat::Result) } def lex_compat(source, **options); end # Mirror the Prism.lex_file API by using the serialization API. @@ -86,7 +74,7 @@ module Prism # Load the serialized AST using the source as a reference into a tree. # # source://prism//lib/prism.rb#65 - sig { params(source: String, serialized: String).returns(Prism::ParseResult[Prism::ProgramNode]) } + sig { params(source: String, serialized: String).returns(Prism::ParseResult) } def load(source, serialized); end # Mirror the Prism.parse API by using the serialization API. @@ -136,18 +124,57 @@ module Prism end end +# Specialized version of Prism::Source for source code that includes ASCII +# characters only. This class is used to apply performance optimizations that +# cannot be applied to sources that include multibyte characters. Sources that +# include multibyte characters are represented by the Prism::Source class. +# +# source://prism//lib/prism/parse_result.rb#126 +class Prism::ASCIISource < ::Prism::Source + # Return the column number in characters for the given byte offset. + # + # source://prism//lib/prism/parse_result.rb#133 + sig { params(byte_offset: Integer).returns(Integer) } + def character_column(byte_offset); end + + # Return the character offset for the given byte offset. + # + # source://prism//lib/prism/parse_result.rb#128 + sig { params(byte_offset: Integer).returns(Integer) } + def character_offset(byte_offset); end + + # Specialized version of `code_units_column` that does not depend on + # `code_units_offset`, which is a more expensive operation. This is + # essentialy the same as `Prism::Source#column`. + # + # source://prism//lib/prism/parse_result.rb#150 + sig { params(byte_offset: Integer, encoding: Encoding).returns(Integer) } + def code_units_column(byte_offset, encoding); end + + # Returns the offset from the start of the file for the given byte offset + # counting in code units for the given encoding. + # + # This method is tested with UTF-8, UTF-16, and UTF-32. If there is the + # concept of code units that differs from the number of characters in other + # encodings, it is not captured here. + # + # source://prism//lib/prism/parse_result.rb#143 + sig { params(byte_offset: Integer, encoding: Encoding).returns(Integer) } + def code_units_offset(byte_offset, encoding); end +end + # Represents the use of the `alias` keyword to alias a global variable. # # alias $foo $bar # ^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#135 +# source://prism//lib/prism/node.rb#188 class Prism::AliasGlobalVariableNode < ::Prism::Node # def initialize: (Prism::node new_name, Prism::node old_name, Location keyword_loc, Location location) -> void # # @return [AliasGlobalVariableNode] a new instance of AliasGlobalVariableNode # - # source://prism//lib/prism/node.rb#137 + # source://prism//lib/prism/node.rb#190 sig do params( source: Prism::Source, @@ -159,33 +186,39 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node end def initialize(source, new_name, old_name, keyword_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#294 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#147 + # source://prism//lib/prism/node.rb#200 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#152 + # source://prism//lib/prism/node.rb#205 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#162 + # source://prism//lib/prism/node.rb#215 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#157 + # source://prism//lib/prism/node.rb#210 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?new_name: Prism::node, ?old_name: Prism::node, ?keyword_loc: Location, ?location: Location) -> AliasGlobalVariableNode # - # source://prism//lib/prism/node.rb#167 + # source://prism//lib/prism/node.rb#220 sig do params( new_name: Prism::Node, @@ -199,46 +232,55 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#152 + # source://prism//lib/prism/node.rb#205 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { new_name: Prism::node, old_name: Prism::node, keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#175 + # source://prism//lib/prism/node.rb#228 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#199 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#260 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#194 + # source://prism//lib/prism/node.rb#255 sig { returns(String) } def keyword; end - # attr_reader keyword_loc: Location + # The location of the `alias` keyword. + # + # alias $foo $bar + # ^^^^^ # - # source://prism//lib/prism/node.rb#186 + # source://prism//lib/prism/node.rb#248 sig { returns(Prism::Location) } def keyword_loc; end - # attr_reader new_name: Prism::node + # Represents the new name of the global variable that can be used after aliasing. This can be either a global variable, a back reference, or a numbered reference. + # + # alias $foo $bar + # ^^^^ # - # source://prism//lib/prism/node.rb#180 + # source://prism//lib/prism/node.rb#236 sig { returns(Prism::Node) } def new_name; end - # attr_reader old_name: Prism::node + # Represents the old name of the global variable that could be used before aliasing. This can be either a global variable, a back reference, or a numbered reference. + # + # alias $foo $bar + # ^^^^ # - # source://prism//lib/prism/node.rb#183 + # source://prism//lib/prism/node.rb#242 sig { returns(Prism::Node) } def old_name; end @@ -257,7 +299,7 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#223 + # source://prism//lib/prism/node.rb#278 sig { override.returns(Symbol) } def type; end @@ -269,7 +311,7 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#233 + # source://prism//lib/prism/node.rb#288 def type; end end end @@ -279,13 +321,13 @@ end # alias foo bar # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#242 +# source://prism//lib/prism/node.rb#306 class Prism::AliasMethodNode < ::Prism::Node # def initialize: (Prism::node new_name, Prism::node old_name, Location keyword_loc, Location location) -> void # # @return [AliasMethodNode] a new instance of AliasMethodNode # - # source://prism//lib/prism/node.rb#244 + # source://prism//lib/prism/node.rb#308 sig do params( source: Prism::Source, @@ -297,33 +339,39 @@ class Prism::AliasMethodNode < ::Prism::Node end def initialize(source, new_name, old_name, keyword_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#403 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#254 + # source://prism//lib/prism/node.rb#318 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#259 + # source://prism//lib/prism/node.rb#323 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#269 + # source://prism//lib/prism/node.rb#333 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#264 + # source://prism//lib/prism/node.rb#328 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?new_name: Prism::node, ?old_name: Prism::node, ?keyword_loc: Location, ?location: Location) -> AliasMethodNode # - # source://prism//lib/prism/node.rb#274 + # source://prism//lib/prism/node.rb#338 sig do params( new_name: Prism::Node, @@ -337,46 +385,46 @@ class Prism::AliasMethodNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#259 + # source://prism//lib/prism/node.rb#323 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { new_name: Prism::node, old_name: Prism::node, keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#282 + # source://prism//lib/prism/node.rb#346 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#306 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#369 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#301 + # source://prism//lib/prism/node.rb#364 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#293 + # source://prism//lib/prism/node.rb#357 sig { returns(Prism::Location) } def keyword_loc; end # attr_reader new_name: Prism::node # - # source://prism//lib/prism/node.rb#287 + # source://prism//lib/prism/node.rb#351 sig { returns(Prism::Node) } def new_name; end # attr_reader old_name: Prism::node # - # source://prism//lib/prism/node.rb#290 + # source://prism//lib/prism/node.rb#354 sig { returns(Prism::Node) } def old_name; end @@ -395,7 +443,7 @@ class Prism::AliasMethodNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#330 + # source://prism//lib/prism/node.rb#387 sig { override.returns(Symbol) } def type; end @@ -407,7 +455,7 @@ class Prism::AliasMethodNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#340 + # source://prism//lib/prism/node.rb#397 def type; end end end @@ -417,13 +465,13 @@ end # foo => bar | baz # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#349 +# source://prism//lib/prism/node.rb#415 class Prism::AlternationPatternNode < ::Prism::Node # def initialize: (Prism::node left, Prism::node right, Location operator_loc, Location location) -> void # # @return [AlternationPatternNode] a new instance of AlternationPatternNode # - # source://prism//lib/prism/node.rb#351 + # source://prism//lib/prism/node.rb#417 sig do params( source: Prism::Source, @@ -435,33 +483,39 @@ class Prism::AlternationPatternNode < ::Prism::Node end def initialize(source, left, right, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#512 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#361 + # source://prism//lib/prism/node.rb#427 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#366 + # source://prism//lib/prism/node.rb#432 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#376 + # source://prism//lib/prism/node.rb#442 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#371 + # source://prism//lib/prism/node.rb#437 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?left: Prism::node, ?right: Prism::node, ?operator_loc: Location, ?location: Location) -> AlternationPatternNode # - # source://prism//lib/prism/node.rb#381 + # source://prism//lib/prism/node.rb#447 sig do params( left: Prism::Node, @@ -475,46 +529,46 @@ class Prism::AlternationPatternNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#366 + # source://prism//lib/prism/node.rb#432 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { left: Prism::node, right: Prism::node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#389 + # source://prism//lib/prism/node.rb#455 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#413 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#478 + sig { override.returns(String) } + def inspect; end # attr_reader left: Prism::node # - # source://prism//lib/prism/node.rb#394 + # source://prism//lib/prism/node.rb#460 sig { returns(Prism::Node) } def left; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#408 + # source://prism//lib/prism/node.rb#473 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#400 + # source://prism//lib/prism/node.rb#466 sig { returns(Prism::Location) } def operator_loc; end # attr_reader right: Prism::node # - # source://prism//lib/prism/node.rb#397 + # source://prism//lib/prism/node.rb#463 sig { returns(Prism::Node) } def right; end @@ -533,7 +587,7 @@ class Prism::AlternationPatternNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#437 + # source://prism//lib/prism/node.rb#496 sig { override.returns(Symbol) } def type; end @@ -545,7 +599,7 @@ class Prism::AlternationPatternNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#447 + # source://prism//lib/prism/node.rb#506 def type; end end end @@ -555,13 +609,13 @@ end # left and right # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#456 +# source://prism//lib/prism/node.rb#524 class Prism::AndNode < ::Prism::Node # def initialize: (Prism::node left, Prism::node right, Location operator_loc, Location location) -> void # # @return [AndNode] a new instance of AndNode # - # source://prism//lib/prism/node.rb#458 + # source://prism//lib/prism/node.rb#526 sig do params( source: Prism::Source, @@ -573,33 +627,39 @@ class Prism::AndNode < ::Prism::Node end def initialize(source, left, right, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#636 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#468 + # source://prism//lib/prism/node.rb#536 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#473 + # source://prism//lib/prism/node.rb#541 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#483 + # source://prism//lib/prism/node.rb#551 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#478 + # source://prism//lib/prism/node.rb#546 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?left: Prism::node, ?right: Prism::node, ?operator_loc: Location, ?location: Location) -> AndNode # - # source://prism//lib/prism/node.rb#488 + # source://prism//lib/prism/node.rb#556 sig do params( left: Prism::Node, @@ -613,24 +673,24 @@ class Prism::AndNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#473 + # source://prism//lib/prism/node.rb#541 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { left: Prism::node, right: Prism::node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#496 + # source://prism//lib/prism/node.rb#564 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#535 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#602 + sig { override.returns(String) } + def inspect; end # 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). # @@ -640,13 +700,13 @@ class Prism::AndNode < ::Prism::Node # 1 && 2 # ^ # - # source://prism//lib/prism/node.rb#507 + # source://prism//lib/prism/node.rb#575 sig { returns(Prism::Node) } def left; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#530 + # source://prism//lib/prism/node.rb#597 sig { returns(String) } def operator; end @@ -655,7 +715,7 @@ class Prism::AndNode < ::Prism::Node # left and right # ^^^ # - # source://prism//lib/prism/node.rb#522 + # source://prism//lib/prism/node.rb#590 sig { returns(Prism::Location) } def operator_loc; end @@ -667,7 +727,7 @@ class Prism::AndNode < ::Prism::Node # 1 and 2 # ^ # - # source://prism//lib/prism/node.rb#516 + # source://prism//lib/prism/node.rb#584 sig { returns(Prism::Node) } def right; end @@ -686,7 +746,7 @@ class Prism::AndNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#559 + # source://prism//lib/prism/node.rb#620 sig { override.returns(Symbol) } def type; end @@ -698,7 +758,7 @@ class Prism::AndNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#569 + # source://prism//lib/prism/node.rb#630 def type; end end end @@ -708,13 +768,13 @@ end # return foo, bar, baz # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#578 +# source://prism//lib/prism/node.rb#648 class Prism::ArgumentsNode < ::Prism::Node # def initialize: (Integer flags, Array[Prism::node] arguments, Location location) -> void # # @return [ArgumentsNode] a new instance of ArgumentsNode # - # source://prism//lib/prism/node.rb#580 + # source://prism//lib/prism/node.rb#650 sig do params( source: Prism::Source, @@ -725,33 +785,39 @@ class Prism::ArgumentsNode < ::Prism::Node end def initialize(source, flags, arguments, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#743 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#589 + # source://prism//lib/prism/node.rb#659 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: Array[Prism::node] # - # source://prism//lib/prism/node.rb#626 + # source://prism//lib/prism/node.rb#696 sig { returns(T::Array[Prism::Node]) } def arguments; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#594 + # source://prism//lib/prism/node.rb#664 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#604 + # source://prism//lib/prism/node.rb#674 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#599 + # source://prism//lib/prism/node.rb#669 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end @@ -759,13 +825,21 @@ class Prism::ArgumentsNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#630 + # source://prism//lib/prism/node.rb#704 sig { returns(T::Boolean) } def contains_keyword_splat?; end + # def contains_keywords?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#699 + sig { returns(T::Boolean) } + def contains_keywords?; end + # def copy: (?flags: Integer, ?arguments: Array[Prism::node], ?location: Location) -> ArgumentsNode # - # source://prism//lib/prism/node.rb#609 + # source://prism//lib/prism/node.rb#679 sig do params( flags: Integer, @@ -778,24 +852,24 @@ class Prism::ArgumentsNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#594 + # source://prism//lib/prism/node.rb#664 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, arguments: Array[Prism::node], location: Location } # - # source://prism//lib/prism/node.rb#617 + # source://prism//lib/prism/node.rb#687 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#635 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#709 + sig { override.returns(String) } + def inspect; 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 @@ -812,15 +886,15 @@ class Prism::ArgumentsNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#657 + # source://prism//lib/prism/node.rb#727 sig { override.returns(Symbol) } def type; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#622 + # source://prism//lib/prism/node.rb#692 sig { returns(Integer) } def flags; end @@ -832,19 +906,24 @@ class Prism::ArgumentsNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#667 + # source://prism//lib/prism/node.rb#737 def type; end end end # Flags for arguments nodes. # -# source://prism//lib/prism/node.rb#18830 +# source://prism//lib/prism/node.rb#19202 module Prism::ArgumentsNodeFlags; end +# if arguments contain keywords +# +# source://prism//lib/prism/node.rb#19204 +Prism::ArgumentsNodeFlags::CONTAINS_KEYWORDS = T.let(T.unsafe(nil), Integer) + # if arguments contain keyword splat # -# source://prism//lib/prism/node.rb#18832 +# source://prism//lib/prism/node.rb#19207 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. @@ -852,13 +931,13 @@ Prism::ArgumentsNodeFlags::CONTAINS_KEYWORD_SPLAT = T.let(T.unsafe(nil), Integer # [1, 2, 3] # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#676 +# source://prism//lib/prism/node.rb#755 class Prism::ArrayNode < ::Prism::Node # def initialize: (Integer flags, Array[Prism::node] elements, Location? opening_loc, Location? closing_loc, Location location) -> void # # @return [ArrayNode] a new instance of ArrayNode # - # source://prism//lib/prism/node.rb#678 + # source://prism//lib/prism/node.rb#757 sig do params( source: Prism::Source, @@ -871,39 +950,50 @@ class Prism::ArrayNode < ::Prism::Node end def initialize(source, flags, elements, opening_loc, closing_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#893 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#689 + # source://prism//lib/prism/node.rb#768 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#694 + # source://prism//lib/prism/node.rb#773 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#766 + # source://prism//lib/prism/node.rb#854 sig { returns(T.nilable(String)) } def closing; end - # attr_reader closing_loc: Location? + # Represents the optional source location for the closing token. # - # source://prism//lib/prism/node.rb#742 + # [1,2,3] # "]" + # %w[foo bar baz] # "]" + # %I(apple orange banana) # ")" + # foo = 1, 2, 3 # nil + # + # source://prism//lib/prism/node.rb#831 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#704 + # source://prism//lib/prism/node.rb#783 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#699 + # source://prism//lib/prism/node.rb#778 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end @@ -911,13 +1001,13 @@ class Prism::ArrayNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#756 + # source://prism//lib/prism/node.rb#844 sig { returns(T::Boolean) } def contains_splat?; end # def copy: (?flags: Integer, ?elements: Array[Prism::node], ?opening_loc: Location?, ?closing_loc: Location?, ?location: Location) -> ArrayNode # - # source://prism//lib/prism/node.rb#709 + # source://prism//lib/prism/node.rb#788 sig do params( flags: Integer, @@ -932,40 +1022,45 @@ class Prism::ArrayNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#694 + # source://prism//lib/prism/node.rb#773 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, elements: Array[Prism::node], opening_loc: Location?, closing_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#717 + # source://prism//lib/prism/node.rb#796 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end - # attr_reader elements: Array[Prism::node] + # Represent the list of zero or more [non-void expressions](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression) within the array. # - # source://prism//lib/prism/node.rb#726 + # source://prism//lib/prism/node.rb#805 sig { returns(T::Array[Prism::Node]) } def elements; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#771 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#859 + sig { override.returns(String) } + def inspect; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#761 + # source://prism//lib/prism/node.rb#849 sig { returns(T.nilable(String)) } def opening; end - # attr_reader opening_loc: Location? + # Represents the optional source location for the opening token. # - # source://prism//lib/prism/node.rb#729 + # [1,2,3] # "[" + # %w[foo bar baz] # "%w[" + # %I(apple orange banana) # "%I(" + # foo = 1, 2, 3 # nil + # + # source://prism//lib/prism/node.rb#813 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end @@ -984,15 +1079,15 @@ class Prism::ArrayNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#795 + # source://prism//lib/prism/node.rb#877 sig { override.returns(Symbol) } def type; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#722 + # source://prism//lib/prism/node.rb#801 sig { returns(Integer) } def flags; end @@ -1004,19 +1099,19 @@ class Prism::ArrayNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#805 + # source://prism//lib/prism/node.rb#887 def type; end end end # Flags for array nodes. # -# source://prism//lib/prism/node.rb#18836 +# source://prism//lib/prism/node.rb#19211 module Prism::ArrayNodeFlags; end # if array contains splat nodes # -# source://prism//lib/prism/node.rb#18838 +# source://prism//lib/prism/node.rb#19213 Prism::ArrayNodeFlags::CONTAINS_SPLAT = T.let(T.unsafe(nil), Integer) # Represents an array pattern in pattern matching. @@ -1036,13 +1131,13 @@ Prism::ArrayNodeFlags::CONTAINS_SPLAT = T.let(T.unsafe(nil), Integer) # foo in Bar[1, 2, 3] # ^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#826 +# source://prism//lib/prism/node.rb#919 class Prism::ArrayPatternNode < ::Prism::Node # def initialize: (Prism::node? constant, Array[Prism::node] requireds, Prism::node? rest, Array[Prism::node] posts, Location? opening_loc, Location? closing_loc, Location location) -> void # # @return [ArrayPatternNode] a new instance of ArrayPatternNode # - # source://prism//lib/prism/node.rb#828 + # source://prism//lib/prism/node.rb#921 sig do params( source: Prism::Source, @@ -1057,51 +1152,57 @@ class Prism::ArrayPatternNode < ::Prism::Node end def initialize(source, constant, requireds, rest, posts, opening_loc, closing_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#1054 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#841 + # source://prism//lib/prism/node.rb#934 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#846 + # source://prism//lib/prism/node.rb#939 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#923 + # source://prism//lib/prism/node.rb#1015 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#904 + # source://prism//lib/prism/node.rb#997 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#861 + # source://prism//lib/prism/node.rb#954 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#851 + # source://prism//lib/prism/node.rb#944 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader constant: Prism::node? # - # source://prism//lib/prism/node.rb#879 + # source://prism//lib/prism/node.rb#972 sig { returns(T.nilable(Prism::Node)) } def constant; end # def copy: (?constant: Prism::node?, ?requireds: Array[Prism::node], ?rest: Prism::node?, ?posts: Array[Prism::node], ?opening_loc: Location?, ?closing_loc: Location?, ?location: Location) -> ArrayPatternNode # - # source://prism//lib/prism/node.rb#866 + # source://prism//lib/prism/node.rb#959 sig do params( constant: T.nilable(Prism::Node), @@ -1118,52 +1219,52 @@ class Prism::ArrayPatternNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#846 + # source://prism//lib/prism/node.rb#939 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { constant: Prism::node?, requireds: Array[Prism::node], rest: Prism::node?, posts: Array[Prism::node], opening_loc: Location?, closing_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#874 + # source://prism//lib/prism/node.rb#967 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#928 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#1020 + sig { override.returns(String) } + def inspect; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#918 + # source://prism//lib/prism/node.rb#1010 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#891 + # source://prism//lib/prism/node.rb#984 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader posts: Array[Prism::node] # - # source://prism//lib/prism/node.rb#888 + # source://prism//lib/prism/node.rb#981 sig { returns(T::Array[Prism::Node]) } def posts; end # attr_reader requireds: Array[Prism::node] # - # source://prism//lib/prism/node.rb#882 + # source://prism//lib/prism/node.rb#975 sig { returns(T::Array[Prism::Node]) } def requireds; end # attr_reader rest: Prism::node? # - # source://prism//lib/prism/node.rb#885 + # source://prism//lib/prism/node.rb#978 sig { returns(T.nilable(Prism::Node)) } def rest; end @@ -1182,7 +1283,7 @@ class Prism::ArrayPatternNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#963 + # source://prism//lib/prism/node.rb#1038 sig { override.returns(Symbol) } def type; end @@ -1194,7 +1295,7 @@ class Prism::ArrayPatternNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#973 + # source://prism//lib/prism/node.rb#1048 def type; end end end @@ -1204,13 +1305,13 @@ end # { a => b } # ^^^^^^ # -# source://prism//lib/prism/node.rb#982 +# source://prism//lib/prism/node.rb#1071 class Prism::AssocNode < ::Prism::Node # def initialize: (Prism::node key, Prism::node value, Location? operator_loc, Location location) -> void # # @return [AssocNode] a new instance of AssocNode # - # source://prism//lib/prism/node.rb#984 + # source://prism//lib/prism/node.rb#1073 sig do params( source: Prism::Source, @@ -1222,33 +1323,39 @@ class Prism::AssocNode < ::Prism::Node end def initialize(source, key, value, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#1192 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#994 + # source://prism//lib/prism/node.rb#1083 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#999 + # source://prism//lib/prism/node.rb#1088 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1009 + # source://prism//lib/prism/node.rb#1098 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#1004 + # source://prism//lib/prism/node.rb#1093 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?key: Prism::node, ?value: Prism::node, ?operator_loc: Location?, ?location: Location) -> AssocNode # - # source://prism//lib/prism/node.rb#1014 + # source://prism//lib/prism/node.rb#1103 sig do params( key: Prism::Node, @@ -1262,24 +1369,24 @@ class Prism::AssocNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#999 + # source://prism//lib/prism/node.rb#1088 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { key: Prism::node, value: Prism::node, operator_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#1022 + # source://prism//lib/prism/node.rb#1111 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#1070 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#1158 + sig { override.returns(String) } + def inspect; end # 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). # @@ -1292,13 +1399,13 @@ class Prism::AssocNode < ::Prism::Node # { def a; end => 1 } # ^^^^^^^^^^ # - # source://prism//lib/prism/node.rb#1036 + # source://prism//lib/prism/node.rb#1125 sig { returns(Prism::Node) } def key; end # def operator: () -> String? # - # source://prism//lib/prism/node.rb#1065 + # source://prism//lib/prism/node.rb#1153 sig { returns(T.nilable(String)) } def operator; end @@ -1307,7 +1414,7 @@ class Prism::AssocNode < ::Prism::Node # { foo => bar } # ^^ # - # source://prism//lib/prism/node.rb#1051 + # source://prism//lib/prism/node.rb#1140 sig { returns(T.nilable(Prism::Location)) } def operator_loc; end @@ -1326,7 +1433,7 @@ class Prism::AssocNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1094 + # source://prism//lib/prism/node.rb#1176 sig { override.returns(Symbol) } def type; end @@ -1338,7 +1445,7 @@ class Prism::AssocNode < ::Prism::Node # { x: 1 } # ^ # - # source://prism//lib/prism/node.rb#1045 + # source://prism//lib/prism/node.rb#1134 sig { returns(Prism::Node) } def value; end @@ -1350,7 +1457,7 @@ class Prism::AssocNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1104 + # source://prism//lib/prism/node.rb#1186 def type; end end end @@ -1360,13 +1467,13 @@ end # { **foo } # ^^^^^ # -# source://prism//lib/prism/node.rb#1113 +# source://prism//lib/prism/node.rb#1204 class Prism::AssocSplatNode < ::Prism::Node # def initialize: (Prism::node? value, Location operator_loc, Location location) -> void # # @return [AssocSplatNode] a new instance of AssocSplatNode # - # source://prism//lib/prism/node.rb#1115 + # source://prism//lib/prism/node.rb#1206 sig do params( source: Prism::Source, @@ -1377,33 +1484,39 @@ class Prism::AssocSplatNode < ::Prism::Node end def initialize(source, value, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#1305 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1124 + # source://prism//lib/prism/node.rb#1215 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1129 + # source://prism//lib/prism/node.rb#1220 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1141 + # source://prism//lib/prism/node.rb#1232 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#1134 + # source://prism//lib/prism/node.rb#1225 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?value: Prism::node?, ?operator_loc: Location, ?location: Location) -> AssocSplatNode # - # source://prism//lib/prism/node.rb#1146 + # source://prism//lib/prism/node.rb#1237 sig do params( value: T.nilable(Prism::Node), @@ -1416,28 +1529,28 @@ class Prism::AssocSplatNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1129 + # source://prism//lib/prism/node.rb#1220 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { value: Prism::node?, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#1154 + # source://prism//lib/prism/node.rb#1245 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#1181 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#1271 + sig { override.returns(String) } + def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#1176 + # source://prism//lib/prism/node.rb#1266 sig { returns(String) } def operator; end @@ -1446,7 +1559,7 @@ class Prism::AssocSplatNode < ::Prism::Node # { **x } # ^^ # - # source://prism//lib/prism/node.rb#1168 + # source://prism//lib/prism/node.rb#1259 sig { returns(Prism::Location) } def operator_loc; end @@ -1465,7 +1578,7 @@ class Prism::AssocSplatNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1207 + # source://prism//lib/prism/node.rb#1289 sig { override.returns(Symbol) } def type; end @@ -1474,7 +1587,7 @@ class Prism::AssocSplatNode < ::Prism::Node # { **foo } # ^^^ # - # source://prism//lib/prism/node.rb#1162 + # source://prism//lib/prism/node.rb#1253 sig { returns(T.nilable(Prism::Node)) } def value; end @@ -1486,14 +1599,14 @@ class Prism::AssocSplatNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1217 + # source://prism//lib/prism/node.rb#1299 def type; end end end # The FFI backend is used on other Ruby implementations. # -# source://prism//lib/prism.rb#84 +# source://prism//lib/prism.rb#85 Prism::BACKEND = T.let(T.unsafe(nil), Symbol) # Represents reading a reference to a field in the previous match. @@ -1501,67 +1614,73 @@ Prism::BACKEND = T.let(T.unsafe(nil), Symbol) # $' # ^^ # -# source://prism//lib/prism/node.rb#1226 +# source://prism//lib/prism/node.rb#1316 class Prism::BackReferenceReadNode < ::Prism::Node # def initialize: (Symbol name, Location location) -> void # # @return [BackReferenceReadNode] a new instance of BackReferenceReadNode # - # source://prism//lib/prism/node.rb#1228 + # source://prism//lib/prism/node.rb#1318 sig { params(source: Prism::Source, name: Symbol, location: Prism::Location).void } def initialize(source, name, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#1400 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1236 + # source://prism//lib/prism/node.rb#1326 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1241 + # source://prism//lib/prism/node.rb#1331 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1251 + # source://prism//lib/prism/node.rb#1341 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#1246 + # source://prism//lib/prism/node.rb#1336 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?location: Location) -> BackReferenceReadNode # - # source://prism//lib/prism/node.rb#1256 + # source://prism//lib/prism/node.rb#1346 sig { params(name: Symbol, location: Prism::Location).returns(Prism::BackReferenceReadNode) } def copy(name: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1241 + # source://prism//lib/prism/node.rb#1331 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#1264 + # source://prism//lib/prism/node.rb#1354 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#1277 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#1366 + sig { override.returns(String) } + def inspect; end # The name of the back-reference variable, including the leading `$`. # @@ -1569,7 +1688,7 @@ class Prism::BackReferenceReadNode < ::Prism::Node # # $+ # name `:$+` # - # source://prism//lib/prism/node.rb#1273 + # source://prism//lib/prism/node.rb#1363 sig { returns(Symbol) } def name; end @@ -1588,7 +1707,7 @@ class Prism::BackReferenceReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1297 + # source://prism//lib/prism/node.rb#1384 sig { override.returns(Symbol) } def type; end @@ -1600,7 +1719,7 @@ class Prism::BackReferenceReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1307 + # source://prism//lib/prism/node.rb#1394 def type; end end end @@ -1639,13 +1758,13 @@ end # end # ^^^^^ # -# source://prism//lib/prism/node.rb#1318 +# source://prism//lib/prism/node.rb#1412 class Prism::BeginNode < ::Prism::Node # 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#1320 + # source://prism//lib/prism/node.rb#1414 sig do params( source: Prism::Source, @@ -1660,45 +1779,51 @@ class Prism::BeginNode < ::Prism::Node end def initialize(source, begin_keyword_loc, statements, rescue_clause, else_clause, ensure_clause, end_keyword_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#1551 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1333 + # source://prism//lib/prism/node.rb#1427 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def begin_keyword: () -> String? # - # source://prism//lib/prism/node.rb#1414 + # source://prism//lib/prism/node.rb#1507 sig { returns(T.nilable(String)) } def begin_keyword; end # attr_reader begin_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#1375 + # source://prism//lib/prism/node.rb#1469 sig { returns(T.nilable(Prism::Location)) } def begin_keyword_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1342 + # source://prism//lib/prism/node.rb#1436 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1357 + # source://prism//lib/prism/node.rb#1451 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#1347 + # source://prism//lib/prism/node.rb#1441 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?begin_keyword_loc: Location?, ?statements: StatementsNode?, ?rescue_clause: RescueNode?, ?else_clause: ElseNode?, ?ensure_clause: EnsureNode?, ?end_keyword_loc: Location?, ?location: Location) -> BeginNode # - # source://prism//lib/prism/node.rb#1362 + # source://prism//lib/prism/node.rb#1456 sig do params( begin_keyword_loc: T.nilable(Prism::Location), @@ -1715,61 +1840,61 @@ class Prism::BeginNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1342 + # source://prism//lib/prism/node.rb#1436 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # 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#1370 + # source://prism//lib/prism/node.rb#1464 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # attr_reader else_clause: ElseNode? # - # source://prism//lib/prism/node.rb#1394 + # source://prism//lib/prism/node.rb#1488 sig { returns(T.nilable(Prism::ElseNode)) } def else_clause; end # def end_keyword: () -> String? # - # source://prism//lib/prism/node.rb#1419 + # source://prism//lib/prism/node.rb#1512 sig { returns(T.nilable(String)) } def end_keyword; end # attr_reader end_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#1400 + # source://prism//lib/prism/node.rb#1494 sig { returns(T.nilable(Prism::Location)) } def end_keyword_loc; end # attr_reader ensure_clause: EnsureNode? # - # source://prism//lib/prism/node.rb#1397 + # source://prism//lib/prism/node.rb#1491 sig { returns(T.nilable(Prism::EnsureNode)) } def ensure_clause; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#1424 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#1517 + sig { override.returns(String) } + def inspect; end # attr_reader rescue_clause: RescueNode? # - # source://prism//lib/prism/node.rb#1391 + # source://prism//lib/prism/node.rb#1485 sig { returns(T.nilable(Prism::RescueNode)) } def rescue_clause; end - # source://prism//lib/prism/node.rb#1337 + # source://prism//lib/prism/node.rb#1431 def set_newline_flag(newline_marked); end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#1388 + # source://prism//lib/prism/node.rb#1482 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -1788,7 +1913,7 @@ class Prism::BeginNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1469 + # source://prism//lib/prism/node.rb#1535 sig { override.returns(Symbol) } def type; end @@ -1800,7 +1925,7 @@ class Prism::BeginNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1479 + # source://prism//lib/prism/node.rb#1545 def type; end end end @@ -1810,13 +1935,13 @@ end # bar(&args) # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#1488 +# source://prism//lib/prism/node.rb#1566 class Prism::BlockArgumentNode < ::Prism::Node # def initialize: (Prism::node? expression, Location operator_loc, Location location) -> void # # @return [BlockArgumentNode] a new instance of BlockArgumentNode # - # source://prism//lib/prism/node.rb#1490 + # source://prism//lib/prism/node.rb#1568 sig do params( source: Prism::Source, @@ -1827,33 +1952,39 @@ class Prism::BlockArgumentNode < ::Prism::Node end def initialize(source, expression, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#1661 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1499 + # source://prism//lib/prism/node.rb#1577 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1504 + # source://prism//lib/prism/node.rb#1582 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1516 + # source://prism//lib/prism/node.rb#1594 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#1509 + # source://prism//lib/prism/node.rb#1587 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?expression: Prism::node?, ?operator_loc: Location, ?location: Location) -> BlockArgumentNode # - # source://prism//lib/prism/node.rb#1521 + # source://prism//lib/prism/node.rb#1599 sig do params( expression: T.nilable(Prism::Node), @@ -1866,40 +1997,40 @@ class Prism::BlockArgumentNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1504 + # source://prism//lib/prism/node.rb#1582 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { expression: Prism::node?, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#1529 + # source://prism//lib/prism/node.rb#1607 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # attr_reader expression: Prism::node? # - # source://prism//lib/prism/node.rb#1534 + # source://prism//lib/prism/node.rb#1612 sig { returns(T.nilable(Prism::Node)) } def expression; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#1550 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#1627 + sig { override.returns(String) } + def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#1545 + # source://prism//lib/prism/node.rb#1622 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#1537 + # source://prism//lib/prism/node.rb#1615 sig { returns(Prism::Location) } def operator_loc; end @@ -1918,7 +2049,7 @@ class Prism::BlockArgumentNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1576 + # source://prism//lib/prism/node.rb#1645 sig { override.returns(Symbol) } def type; end @@ -1930,7 +2061,7 @@ class Prism::BlockArgumentNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1586 + # source://prism//lib/prism/node.rb#1655 def type; end end end @@ -1940,71 +2071,77 @@ end # a { |; b| } # ^ # -# source://prism//lib/prism/node.rb#1595 +# source://prism//lib/prism/node.rb#1672 class Prism::BlockLocalVariableNode < ::Prism::Node # def initialize: (Integer flags, Symbol name, Location location) -> void # # @return [BlockLocalVariableNode] a new instance of BlockLocalVariableNode # - # source://prism//lib/prism/node.rb#1597 + # source://prism//lib/prism/node.rb#1674 sig { params(source: Prism::Source, flags: Integer, name: Symbol, location: Prism::Location).void } def initialize(source, flags, name, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#1762 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1606 + # source://prism//lib/prism/node.rb#1683 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1611 + # source://prism//lib/prism/node.rb#1688 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1621 + # source://prism//lib/prism/node.rb#1698 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#1616 + # source://prism//lib/prism/node.rb#1693 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?name: Symbol, ?location: Location) -> BlockLocalVariableNode # - # source://prism//lib/prism/node.rb#1626 + # source://prism//lib/prism/node.rb#1703 sig { params(flags: Integer, name: Symbol, location: Prism::Location).returns(Prism::BlockLocalVariableNode) } def copy(flags: T.unsafe(nil), name: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1611 + # source://prism//lib/prism/node.rb#1688 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#1634 + # source://prism//lib/prism/node.rb#1711 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#1652 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#1728 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#1643 + # source://prism//lib/prism/node.rb#1720 sig { returns(Symbol) } def name; end @@ -2012,7 +2149,7 @@ class Prism::BlockLocalVariableNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#1647 + # source://prism//lib/prism/node.rb#1723 sig { returns(T::Boolean) } def repeated_parameter?; end @@ -2031,15 +2168,15 @@ class Prism::BlockLocalVariableNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1674 + # source://prism//lib/prism/node.rb#1746 sig { override.returns(Symbol) } def type; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#1639 + # source://prism//lib/prism/node.rb#1716 sig { returns(Integer) } def flags; end @@ -2051,7 +2188,7 @@ class Prism::BlockLocalVariableNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1684 + # source://prism//lib/prism/node.rb#1756 def type; end end end @@ -2061,13 +2198,13 @@ end # [1, 2, 3].each { |i| puts x } # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#1693 +# source://prism//lib/prism/node.rb#1773 class Prism::BlockNode < ::Prism::Node # def initialize: (Array[Symbol] locals, Prism::node? parameters, Prism::node? body, Location opening_loc, Location closing_loc, Location location) -> void # # @return [BlockNode] a new instance of BlockNode # - # source://prism//lib/prism/node.rb#1695 + # source://prism//lib/prism/node.rb#1775 sig do params( source: Prism::Source, @@ -2081,51 +2218,57 @@ class Prism::BlockNode < ::Prism::Node end def initialize(source, locals, parameters, body, opening_loc, closing_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#1890 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1707 + # source://prism//lib/prism/node.rb#1787 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader body: Prism::node? # - # source://prism//lib/prism/node.rb#1749 + # source://prism//lib/prism/node.rb#1829 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1712 + # source://prism//lib/prism/node.rb#1792 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#1772 + # source://prism//lib/prism/node.rb#1851 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#1759 + # source://prism//lib/prism/node.rb#1839 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1725 + # source://prism//lib/prism/node.rb#1805 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#1717 + # source://prism//lib/prism/node.rb#1797 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?locals: Array[Symbol], ?parameters: Prism::node?, ?body: Prism::node?, ?opening_loc: Location, ?closing_loc: Location, ?location: Location) -> BlockNode # - # source://prism//lib/prism/node.rb#1730 + # source://prism//lib/prism/node.rb#1810 sig do params( locals: T::Array[Symbol], @@ -2141,46 +2284,46 @@ class Prism::BlockNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1712 + # source://prism//lib/prism/node.rb#1792 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { locals: Array[Symbol], parameters: Prism::node?, body: Prism::node?, opening_loc: Location, closing_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#1738 + # source://prism//lib/prism/node.rb#1818 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#1777 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#1856 + sig { override.returns(String) } + def inspect; end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#1743 + # source://prism//lib/prism/node.rb#1823 sig { returns(T::Array[Symbol]) } def locals; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#1767 + # source://prism//lib/prism/node.rb#1846 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#1752 + # source://prism//lib/prism/node.rb#1832 sig { returns(Prism::Location) } def opening_loc; end # attr_reader parameters: Prism::node? # - # source://prism//lib/prism/node.rb#1746 + # source://prism//lib/prism/node.rb#1826 sig { returns(T.nilable(Prism::Node)) } def parameters; end @@ -2199,7 +2342,7 @@ class Prism::BlockNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1811 + # source://prism//lib/prism/node.rb#1874 sig { override.returns(Symbol) } def type; end @@ -2211,7 +2354,7 @@ class Prism::BlockNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1821 + # source://prism//lib/prism/node.rb#1884 def type; end end end @@ -2222,13 +2365,13 @@ end # ^^ # end # -# source://prism//lib/prism/node.rb#1831 +# source://prism//lib/prism/node.rb#1906 class Prism::BlockParameterNode < ::Prism::Node # 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#1833 + # source://prism//lib/prism/node.rb#1908 sig do params( source: Prism::Source, @@ -2241,33 +2384,39 @@ class Prism::BlockParameterNode < ::Prism::Node end def initialize(source, flags, name, name_loc, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#2023 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1844 + # source://prism//lib/prism/node.rb#1919 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1849 + # source://prism//lib/prism/node.rb#1924 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1859 + # source://prism//lib/prism/node.rb#1934 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#1854 + # source://prism//lib/prism/node.rb#1929 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?name: Symbol?, ?name_loc: Location?, ?operator_loc: Location, ?location: Location) -> BlockParameterNode # - # source://prism//lib/prism/node.rb#1864 + # source://prism//lib/prism/node.rb#1939 sig do params( flags: Integer, @@ -2282,46 +2431,46 @@ class Prism::BlockParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1849 + # source://prism//lib/prism/node.rb#1924 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, name: Symbol?, name_loc: Location?, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#1872 + # source://prism//lib/prism/node.rb#1947 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#1915 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#1989 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol? # - # source://prism//lib/prism/node.rb#1881 + # source://prism//lib/prism/node.rb#1956 sig { returns(T.nilable(Symbol)) } def name; end # attr_reader name_loc: Location? # - # source://prism//lib/prism/node.rb#1884 + # source://prism//lib/prism/node.rb#1959 sig { returns(T.nilable(Prism::Location)) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#1910 + # source://prism//lib/prism/node.rb#1984 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#1897 + # source://prism//lib/prism/node.rb#1972 sig { returns(Prism::Location) } def operator_loc; end @@ -2329,7 +2478,7 @@ class Prism::BlockParameterNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#1905 + # source://prism//lib/prism/node.rb#1979 sig { returns(T::Boolean) } def repeated_parameter?; end @@ -2348,15 +2497,15 @@ class Prism::BlockParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1943 + # source://prism//lib/prism/node.rb#2007 sig { override.returns(Symbol) } def type; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#1877 + # source://prism//lib/prism/node.rb#1952 sig { returns(Integer) } def flags; end @@ -2368,7 +2517,7 @@ class Prism::BlockParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1953 + # source://prism//lib/prism/node.rb#2017 def type; end end end @@ -2382,13 +2531,13 @@ end # ^^^^^^^^^^^^^^^^^ # end # -# source://prism//lib/prism/node.rb#1966 +# source://prism//lib/prism/node.rb#2040 class Prism::BlockParametersNode < ::Prism::Node # def initialize: (ParametersNode? parameters, Array[BlockLocalVariableNode] locals, Location? opening_loc, Location? closing_loc, Location location) -> void # # @return [BlockParametersNode] a new instance of BlockParametersNode # - # source://prism//lib/prism/node.rb#1968 + # source://prism//lib/prism/node.rb#2042 sig do params( source: Prism::Source, @@ -2401,45 +2550,51 @@ class Prism::BlockParametersNode < ::Prism::Node end def initialize(source, parameters, locals, opening_loc, closing_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#2165 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1979 + # source://prism//lib/prism/node.rb#2053 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1984 + # source://prism//lib/prism/node.rb#2058 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#2053 + # source://prism//lib/prism/node.rb#2126 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#2034 + # source://prism//lib/prism/node.rb#2108 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1997 + # source://prism//lib/prism/node.rb#2071 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#1989 + # source://prism//lib/prism/node.rb#2063 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?parameters: ParametersNode?, ?locals: Array[BlockLocalVariableNode], ?opening_loc: Location?, ?closing_loc: Location?, ?location: Location) -> BlockParametersNode # - # source://prism//lib/prism/node.rb#2002 + # source://prism//lib/prism/node.rb#2076 sig do params( parameters: T.nilable(Prism::ParametersNode), @@ -2454,46 +2609,46 @@ class Prism::BlockParametersNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1984 + # source://prism//lib/prism/node.rb#2058 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { parameters: ParametersNode?, locals: Array[BlockLocalVariableNode], opening_loc: Location?, closing_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#2010 + # source://prism//lib/prism/node.rb#2084 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#2058 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#2131 + sig { override.returns(String) } + def inspect; end # attr_reader locals: Array[BlockLocalVariableNode] # - # source://prism//lib/prism/node.rb#2018 + # source://prism//lib/prism/node.rb#2092 sig { returns(T::Array[Prism::BlockLocalVariableNode]) } def locals; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#2048 + # source://prism//lib/prism/node.rb#2121 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#2021 + # source://prism//lib/prism/node.rb#2095 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader parameters: ParametersNode? # - # source://prism//lib/prism/node.rb#2015 + # source://prism//lib/prism/node.rb#2089 sig { returns(T.nilable(Prism::ParametersNode)) } def parameters; end @@ -2512,7 +2667,7 @@ class Prism::BlockParametersNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#2086 + # source://prism//lib/prism/node.rb#2149 sig { override.returns(Symbol) } def type; end @@ -2524,7 +2679,7 @@ class Prism::BlockParametersNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#2096 + # source://prism//lib/prism/node.rb#2159 def type; end end end @@ -2534,13 +2689,13 @@ end # break foo # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#2105 +# source://prism//lib/prism/node.rb#2179 class Prism::BreakNode < ::Prism::Node # def initialize: (ArgumentsNode? arguments, Location keyword_loc, Location location) -> void # # @return [BreakNode] a new instance of BreakNode # - # source://prism//lib/prism/node.rb#2107 + # source://prism//lib/prism/node.rb#2181 sig do params( source: Prism::Source, @@ -2551,39 +2706,48 @@ class Prism::BreakNode < ::Prism::Node end def initialize(source, arguments, keyword_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#2280 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2116 + # source://prism//lib/prism/node.rb#2190 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end - # attr_reader arguments: ArgumentsNode? + # The arguments to the break statement, if present. These can be any [non-void expressions](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression). # - # source://prism//lib/prism/node.rb#2151 + # break foo + # ^^^ + # + # source://prism//lib/prism/node.rb#2228 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2121 + # source://prism//lib/prism/node.rb#2195 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#2133 + # source://prism//lib/prism/node.rb#2207 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#2126 + # source://prism//lib/prism/node.rb#2200 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?arguments: ArgumentsNode?, ?keyword_loc: Location, ?location: Location) -> BreakNode # - # source://prism//lib/prism/node.rb#2138 + # source://prism//lib/prism/node.rb#2212 sig do params( arguments: T.nilable(Prism::ArgumentsNode), @@ -2596,34 +2760,37 @@ class Prism::BreakNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2121 + # source://prism//lib/prism/node.rb#2195 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { arguments: ArgumentsNode?, keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#2146 + # source://prism//lib/prism/node.rb#2220 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#2167 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#2246 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#2162 + # source://prism//lib/prism/node.rb#2241 sig { returns(String) } def keyword; end - # attr_reader keyword_loc: Location + # The location of the `break` keyword. + # + # break foo + # ^^^^^ # - # source://prism//lib/prism/node.rb#2154 + # source://prism//lib/prism/node.rb#2234 sig { returns(Prism::Location) } def keyword_loc; end @@ -2642,7 +2809,7 @@ class Prism::BreakNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#2193 + # source://prism//lib/prism/node.rb#2264 sig { override.returns(Symbol) } def type; end @@ -2654,7 +2821,7 @@ class Prism::BreakNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#2203 + # source://prism//lib/prism/node.rb#2274 def type; end end end @@ -2664,13 +2831,13 @@ end # foo.bar &&= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#2212 +# source://prism//lib/prism/node.rb#2291 class Prism::CallAndWriteNode < ::Prism::Node # def initialize: (Integer flags, Prism::node? receiver, Location? call_operator_loc, Location? message_loc, Symbol read_name, Symbol write_name, Location operator_loc, Prism::node value, Location location) -> void # # @return [CallAndWriteNode] a new instance of CallAndWriteNode # - # source://prism//lib/prism/node.rb#2214 + # source://prism//lib/prism/node.rb#2293 sig do params( source: Prism::Source, @@ -2687,9 +2854,15 @@ class Prism::CallAndWriteNode < ::Prism::Node end def initialize(source, flags, receiver, call_operator_loc, message_loc, read_name, write_name, operator_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#2462 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2229 + # source://prism//lib/prism/node.rb#2308 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -2697,43 +2870,43 @@ class Prism::CallAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2325 + # source://prism//lib/prism/node.rb#2403 sig { returns(T::Boolean) } def attribute_write?; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#2335 + # source://prism//lib/prism/node.rb#2413 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#2272 + # source://prism//lib/prism/node.rb#2351 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2234 + # source://prism//lib/prism/node.rb#2313 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#2247 + # source://prism//lib/prism/node.rb#2326 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#2239 + # source://prism//lib/prism/node.rb#2318 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?receiver: Prism::node?, ?call_operator_loc: Location?, ?message_loc: Location?, ?read_name: Symbol, ?write_name: Symbol, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> CallAndWriteNode # - # source://prism//lib/prism/node.rb#2252 + # source://prism//lib/prism/node.rb#2331 sig do params( flags: Integer, @@ -2752,13 +2925,13 @@ class Prism::CallAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2234 + # source://prism//lib/prism/node.rb#2313 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Prism::node?, call_operator_loc: Location?, message_loc: Location?, read_name: Symbol, write_name: Symbol, operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#2260 + # source://prism//lib/prism/node.rb#2339 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -2769,49 +2942,49 @@ class Prism::CallAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2330 + # source://prism//lib/prism/node.rb#2408 sig { returns(T::Boolean) } def ignore_visibility?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#2350 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#2428 + sig { override.returns(String) } + def inspect; end # def message: () -> String? # - # source://prism//lib/prism/node.rb#2340 + # source://prism//lib/prism/node.rb#2418 sig { returns(T.nilable(String)) } def message; end # attr_reader message_loc: Location? # - # source://prism//lib/prism/node.rb#2285 + # source://prism//lib/prism/node.rb#2364 sig { returns(T.nilable(Prism::Location)) } def message_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#2345 + # source://prism//lib/prism/node.rb#2423 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#2304 + # source://prism//lib/prism/node.rb#2383 sig { returns(Prism::Location) } def operator_loc; end # attr_reader read_name: Symbol # - # source://prism//lib/prism/node.rb#2298 + # source://prism//lib/prism/node.rb#2377 sig { returns(Symbol) } def read_name; end # attr_reader receiver: Prism::node? # - # source://prism//lib/prism/node.rb#2269 + # source://prism//lib/prism/node.rb#2348 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -2819,7 +2992,7 @@ class Prism::CallAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2315 + # source://prism//lib/prism/node.rb#2393 sig { returns(T::Boolean) } def safe_navigation?; end @@ -2838,13 +3011,13 @@ class Prism::CallAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#2384 + # source://prism//lib/prism/node.rb#2446 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#2311 + # source://prism//lib/prism/node.rb#2390 sig { returns(Prism::Node) } def value; end @@ -2852,21 +3025,21 @@ class Prism::CallAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2320 + # source://prism//lib/prism/node.rb#2398 sig { returns(T::Boolean) } def variable_call?; end # attr_reader write_name: Symbol # - # source://prism//lib/prism/node.rb#2301 + # source://prism//lib/prism/node.rb#2380 sig { returns(Symbol) } def write_name; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#2265 + # source://prism//lib/prism/node.rb#2344 sig { returns(Integer) } def flags; end @@ -2878,7 +3051,7 @@ class Prism::CallAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#2394 + # source://prism//lib/prism/node.rb#2456 def type; end end end @@ -2903,13 +3076,13 @@ end # foo&.bar # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#2418 +# source://prism//lib/prism/node.rb#2494 class Prism::CallNode < ::Prism::Node # def initialize: (Integer flags, Prism::node? receiver, Location? call_operator_loc, Symbol name, Location? message_loc, Location? opening_loc, ArgumentsNode? arguments, Location? closing_loc, Prism::node? block, Location location) -> void # # @return [CallNode] a new instance of CallNode # - # source://prism//lib/prism/node.rb#2420 + # source://prism//lib/prism/node.rb#2496 sig do params( source: Prism::Source, @@ -2927,15 +3100,21 @@ class Prism::CallNode < ::Prism::Node end def initialize(source, flags, receiver, call_operator_loc, name, message_loc, opening_loc, arguments, closing_loc, block, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#2700 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2436 + # source://prism//lib/prism/node.rb#2512 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#2531 + # source://prism//lib/prism/node.rb#2607 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end @@ -2943,61 +3122,61 @@ class Prism::CallNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2561 + # source://prism//lib/prism/node.rb#2636 sig { returns(T::Boolean) } def attribute_write?; end # attr_reader block: Prism::node? # - # source://prism//lib/prism/node.rb#2547 + # source://prism//lib/prism/node.rb#2623 sig { returns(T.nilable(Prism::Node)) } def block; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#2571 + # source://prism//lib/prism/node.rb#2646 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#2489 + # source://prism//lib/prism/node.rb#2565 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2441 + # source://prism//lib/prism/node.rb#2517 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#2586 + # source://prism//lib/prism/node.rb#2661 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#2534 + # source://prism//lib/prism/node.rb#2610 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#2455 + # source://prism//lib/prism/node.rb#2531 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#2446 + # source://prism//lib/prism/node.rb#2522 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?receiver: Prism::node?, ?call_operator_loc: Location?, ?name: Symbol, ?message_loc: Location?, ?opening_loc: Location?, ?arguments: ArgumentsNode?, ?closing_loc: Location?, ?block: Prism::node?, ?location: Location) -> CallNode # - # source://prism//lib/prism/node.rb#2460 + # source://prism//lib/prism/node.rb#2536 sig do params( flags: Integer, @@ -3017,60 +3196,74 @@ class Prism::CallNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2441 + # source://prism//lib/prism/node.rb#2517 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Prism::node?, call_operator_loc: Location?, name: Symbol, message_loc: Location?, opening_loc: Location?, arguments: ArgumentsNode?, closing_loc: Location?, block: Prism::node?, location: Location } # - # source://prism//lib/prism/node.rb#2468 + # source://prism//lib/prism/node.rb#2544 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end + # When a call node has the attribute_write flag set, it means that the call + # is using the attribute write syntax. This is either a method call to []= + # or a method call to a method that ends with =. Either way, the = sign is + # present in the source. + # + # Prism returns the message_loc _without_ the = sign attached, because there + # can be any amount of space between the message and the = sign. However, + # sometimes you want the location of the full message including the inner + # space and the = sign. This method provides that. + # + # source://prism//lib/prism/node_ext.rb#299 + sig { returns(T.nilable(Prism::Location)) } + def full_message_loc; end + # def ignore_visibility?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2566 + # source://prism//lib/prism/node.rb#2641 sig { returns(T::Boolean) } def ignore_visibility?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#2591 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#2666 + sig { override.returns(String) } + def inspect; end # def message: () -> String? # - # source://prism//lib/prism/node.rb#2576 + # source://prism//lib/prism/node.rb#2651 sig { returns(T.nilable(String)) } def message; end # attr_reader message_loc: Location? # - # source://prism//lib/prism/node.rb#2505 + # source://prism//lib/prism/node.rb#2581 sig { returns(T.nilable(Prism::Location)) } def message_loc; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#2502 + # source://prism//lib/prism/node.rb#2578 sig { returns(Symbol) } def name; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#2581 + # source://prism//lib/prism/node.rb#2656 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#2518 + # source://prism//lib/prism/node.rb#2594 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end @@ -3085,7 +3278,7 @@ class Prism::CallNode < ::Prism::Node # foo + bar # ^^^ # - # source://prism//lib/prism/node.rb#2486 + # source://prism//lib/prism/node.rb#2562 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -3093,7 +3286,7 @@ class Prism::CallNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2551 + # source://prism//lib/prism/node.rb#2626 sig { returns(T::Boolean) } def safe_navigation?; end @@ -3112,7 +3305,7 @@ class Prism::CallNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#2635 + # source://prism//lib/prism/node.rb#2684 sig { override.returns(Symbol) } def type; end @@ -3120,15 +3313,15 @@ class Prism::CallNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2556 + # source://prism//lib/prism/node.rb#2631 sig { returns(T::Boolean) } def variable_call?; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#2473 + # source://prism//lib/prism/node.rb#2549 sig { returns(Integer) } def flags; end @@ -3140,34 +3333,34 @@ class Prism::CallNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#2645 + # source://prism//lib/prism/node.rb#2694 def type; end end end # Flags for call nodes. # -# source://prism//lib/prism/node.rb#18842 +# source://prism//lib/prism/node.rb#19217 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#18850 +# source://prism//lib/prism/node.rb#19225 Prism::CallNodeFlags::ATTRIBUTE_WRITE = T.let(T.unsafe(nil), Integer) # a call that ignores method visibility # -# source://prism//lib/prism/node.rb#18853 +# source://prism//lib/prism/node.rb#19228 Prism::CallNodeFlags::IGNORE_VISIBILITY = T.let(T.unsafe(nil), Integer) # &. operator # -# source://prism//lib/prism/node.rb#18844 +# source://prism//lib/prism/node.rb#19219 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#18847 +# source://prism//lib/prism/node.rb#19222 Prism::CallNodeFlags::VARIABLE_CALL = T.let(T.unsafe(nil), Integer) # Represents the use of an assignment operator on a call. @@ -3175,13 +3368,13 @@ Prism::CallNodeFlags::VARIABLE_CALL = T.let(T.unsafe(nil), Integer) # foo.bar += baz # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#2654 +# source://prism//lib/prism/node.rb#2718 class Prism::CallOperatorWriteNode < ::Prism::Node - # def initialize: (Integer flags, Prism::node? receiver, Location? call_operator_loc, Location? message_loc, Symbol read_name, Symbol write_name, Symbol operator, Location operator_loc, Prism::node value, Location location) -> void + # def initialize: (Integer flags, Prism::node? receiver, Location? call_operator_loc, Location? message_loc, Symbol read_name, Symbol write_name, Symbol binary_operator, Location binary_operator_loc, Prism::node value, Location location) -> void # # @return [CallOperatorWriteNode] a new instance of CallOperatorWriteNode # - # source://prism//lib/prism/node.rb#2656 + # source://prism//lib/prism/node.rb#2720 sig do params( source: Prism::Source, @@ -3191,17 +3384,23 @@ class Prism::CallOperatorWriteNode < ::Prism::Node message_loc: T.nilable(Prism::Location), read_name: Symbol, write_name: Symbol, - operator: Symbol, - operator_loc: Prism::Location, + binary_operator: Symbol, + binary_operator_loc: Prism::Location, value: Prism::Node, location: Prism::Location ).void end - def initialize(source, flags, receiver, call_operator_loc, message_loc, read_name, write_name, operator, operator_loc, value, location); end + def initialize(source, flags, receiver, call_operator_loc, message_loc, read_name, write_name, binary_operator, binary_operator_loc, value, location); end + + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#2888 + def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2672 + # source://prism//lib/prism/node.rb#2736 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -3209,43 +3408,55 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2771 + # source://prism//lib/prism/node.rb#2834 sig { returns(T::Boolean) } def attribute_write?; end + # attr_reader binary_operator: Symbol + # + # source://prism//lib/prism/node.rb#2811 + sig { returns(Symbol) } + def binary_operator; end + + # attr_reader binary_operator_loc: Location + # + # source://prism//lib/prism/node.rb#2814 + sig { returns(Prism::Location) } + def binary_operator_loc; end + # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#2781 + # source://prism//lib/prism/node.rb#2844 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#2715 + # source://prism//lib/prism/node.rb#2779 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2677 + # source://prism//lib/prism/node.rb#2741 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#2690 + # source://prism//lib/prism/node.rb#2754 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#2682 + # source://prism//lib/prism/node.rb#2746 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end - # def copy: (?flags: Integer, ?receiver: Prism::node?, ?call_operator_loc: Location?, ?message_loc: Location?, ?read_name: Symbol, ?write_name: Symbol, ?operator: Symbol, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> CallOperatorWriteNode + # def copy: (?flags: Integer, ?receiver: Prism::node?, ?call_operator_loc: Location?, ?message_loc: Location?, ?read_name: Symbol, ?write_name: Symbol, ?binary_operator: Symbol, ?binary_operator_loc: Location, ?value: Prism::node, ?location: Location) -> CallOperatorWriteNode # - # source://prism//lib/prism/node.rb#2695 + # source://prism//lib/prism/node.rb#2759 sig do params( flags: Integer, @@ -3254,24 +3465,24 @@ class Prism::CallOperatorWriteNode < ::Prism::Node message_loc: T.nilable(Prism::Location), read_name: Symbol, write_name: Symbol, - operator: Symbol, - operator_loc: Prism::Location, + binary_operator: Symbol, + binary_operator_loc: Prism::Location, value: Prism::Node, location: Prism::Location ).returns(Prism::CallOperatorWriteNode) end - def copy(flags: T.unsafe(nil), receiver: T.unsafe(nil), call_operator_loc: T.unsafe(nil), message_loc: T.unsafe(nil), read_name: T.unsafe(nil), write_name: T.unsafe(nil), operator: T.unsafe(nil), operator_loc: T.unsafe(nil), value: T.unsafe(nil), location: T.unsafe(nil)); end + def copy(flags: T.unsafe(nil), receiver: T.unsafe(nil), call_operator_loc: T.unsafe(nil), message_loc: T.unsafe(nil), read_name: T.unsafe(nil), write_name: T.unsafe(nil), binary_operator: T.unsafe(nil), binary_operator_loc: T.unsafe(nil), value: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2677 + # source://prism//lib/prism/node.rb#2741 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Prism::node?, call_operator_loc: Location?, message_loc: Location?, read_name: Symbol, write_name: Symbol, operator: Symbol, operator_loc: Location, value: Prism::node, location: Location } + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Prism::node?, call_operator_loc: Location?, message_loc: Location?, read_name: Symbol, write_name: Symbol, binary_operator: Symbol, binary_operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#2703 + # source://prism//lib/prism/node.rb#2767 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -3282,49 +3493,49 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2776 + # source://prism//lib/prism/node.rb#2839 sig { returns(T::Boolean) } def ignore_visibility?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#2791 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#2854 + sig { override.returns(String) } + def inspect; end # def message: () -> String? # - # source://prism//lib/prism/node.rb#2786 + # source://prism//lib/prism/node.rb#2849 sig { returns(T.nilable(String)) } def message; end # attr_reader message_loc: Location? # - # source://prism//lib/prism/node.rb#2728 + # source://prism//lib/prism/node.rb#2792 sig { returns(T.nilable(Prism::Location)) } def message_loc; end - # attr_reader operator: Symbol + # Returns the binary operator used to modify the receiver. This method is + # deprecated in favor of #binary_operator. # - # source://prism//lib/prism/node.rb#2747 - sig { returns(Symbol) } + # source://prism//lib/prism/node_ext.rb#307 def operator; end - # attr_reader operator_loc: Location + # Returns the location of the binary operator used to modify the receiver. + # This method is deprecated in favor of #binary_operator_loc. # - # source://prism//lib/prism/node.rb#2750 - sig { returns(Prism::Location) } + # source://prism//lib/prism/node_ext.rb#314 def operator_loc; end # attr_reader read_name: Symbol # - # source://prism//lib/prism/node.rb#2741 + # source://prism//lib/prism/node.rb#2805 sig { returns(Symbol) } def read_name; end # attr_reader receiver: Prism::node? # - # source://prism//lib/prism/node.rb#2712 + # source://prism//lib/prism/node.rb#2776 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -3332,7 +3543,7 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2761 + # source://prism//lib/prism/node.rb#2824 sig { returns(T::Boolean) } def safe_navigation?; end @@ -3351,13 +3562,13 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#2826 + # source://prism//lib/prism/node.rb#2872 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#2757 + # source://prism//lib/prism/node.rb#2821 sig { returns(Prism::Node) } def value; end @@ -3365,21 +3576,21 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2766 + # source://prism//lib/prism/node.rb#2829 sig { returns(T::Boolean) } def variable_call?; end # attr_reader write_name: Symbol # - # source://prism//lib/prism/node.rb#2744 + # source://prism//lib/prism/node.rb#2808 sig { returns(Symbol) } def write_name; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#2708 + # source://prism//lib/prism/node.rb#2772 sig { returns(Integer) } def flags; end @@ -3391,7 +3602,7 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#2836 + # source://prism//lib/prism/node.rb#2882 def type; end end end @@ -3401,13 +3612,13 @@ end # foo.bar ||= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#2845 +# source://prism//lib/prism/node.rb#2906 class Prism::CallOrWriteNode < ::Prism::Node # def initialize: (Integer flags, Prism::node? receiver, Location? call_operator_loc, Location? message_loc, Symbol read_name, Symbol write_name, Location operator_loc, Prism::node value, Location location) -> void # # @return [CallOrWriteNode] a new instance of CallOrWriteNode # - # source://prism//lib/prism/node.rb#2847 + # source://prism//lib/prism/node.rb#2908 sig do params( source: Prism::Source, @@ -3424,9 +3635,15 @@ class Prism::CallOrWriteNode < ::Prism::Node end def initialize(source, flags, receiver, call_operator_loc, message_loc, read_name, write_name, operator_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#3077 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2862 + # source://prism//lib/prism/node.rb#2923 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -3434,43 +3651,43 @@ class Prism::CallOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2958 + # source://prism//lib/prism/node.rb#3018 sig { returns(T::Boolean) } def attribute_write?; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#2968 + # source://prism//lib/prism/node.rb#3028 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#2905 + # source://prism//lib/prism/node.rb#2966 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2867 + # source://prism//lib/prism/node.rb#2928 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#2880 + # source://prism//lib/prism/node.rb#2941 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#2872 + # source://prism//lib/prism/node.rb#2933 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?receiver: Prism::node?, ?call_operator_loc: Location?, ?message_loc: Location?, ?read_name: Symbol, ?write_name: Symbol, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> CallOrWriteNode # - # source://prism//lib/prism/node.rb#2885 + # source://prism//lib/prism/node.rb#2946 sig do params( flags: Integer, @@ -3489,13 +3706,13 @@ class Prism::CallOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2867 + # source://prism//lib/prism/node.rb#2928 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Prism::node?, call_operator_loc: Location?, message_loc: Location?, read_name: Symbol, write_name: Symbol, operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#2893 + # source://prism//lib/prism/node.rb#2954 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -3506,49 +3723,49 @@ class Prism::CallOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2963 + # source://prism//lib/prism/node.rb#3023 sig { returns(T::Boolean) } def ignore_visibility?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#2983 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#3043 + sig { override.returns(String) } + def inspect; end # def message: () -> String? # - # source://prism//lib/prism/node.rb#2973 + # source://prism//lib/prism/node.rb#3033 sig { returns(T.nilable(String)) } def message; end # attr_reader message_loc: Location? # - # source://prism//lib/prism/node.rb#2918 + # source://prism//lib/prism/node.rb#2979 sig { returns(T.nilable(Prism::Location)) } def message_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#2978 + # source://prism//lib/prism/node.rb#3038 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#2937 + # source://prism//lib/prism/node.rb#2998 sig { returns(Prism::Location) } def operator_loc; end # attr_reader read_name: Symbol # - # source://prism//lib/prism/node.rb#2931 + # source://prism//lib/prism/node.rb#2992 sig { returns(Symbol) } def read_name; end # attr_reader receiver: Prism::node? # - # source://prism//lib/prism/node.rb#2902 + # source://prism//lib/prism/node.rb#2963 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -3556,7 +3773,7 @@ class Prism::CallOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2948 + # source://prism//lib/prism/node.rb#3008 sig { returns(T::Boolean) } def safe_navigation?; end @@ -3575,13 +3792,13 @@ class Prism::CallOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3017 + # source://prism//lib/prism/node.rb#3061 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#2944 + # source://prism//lib/prism/node.rb#3005 sig { returns(Prism::Node) } def value; end @@ -3589,21 +3806,21 @@ class Prism::CallOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2953 + # source://prism//lib/prism/node.rb#3013 sig { returns(T::Boolean) } def variable_call?; end # attr_reader write_name: Symbol # - # source://prism//lib/prism/node.rb#2934 + # source://prism//lib/prism/node.rb#2995 sig { returns(Symbol) } def write_name; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#2898 + # source://prism//lib/prism/node.rb#2959 sig { returns(Integer) } def flags; end @@ -3615,7 +3832,7 @@ class Prism::CallOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3027 + # source://prism//lib/prism/node.rb#3071 def type; end end end @@ -3633,13 +3850,13 @@ end # for foo.bar in baz do end # ^^^^^^^ # -# source://prism//lib/prism/node.rb#3044 +# source://prism//lib/prism/node.rb#3102 class Prism::CallTargetNode < ::Prism::Node # def initialize: (Integer flags, Prism::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#3046 + # source://prism//lib/prism/node.rb#3104 sig do params( source: Prism::Source, @@ -3653,9 +3870,15 @@ class Prism::CallTargetNode < ::Prism::Node end def initialize(source, flags, receiver, call_operator_loc, name, message_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#3237 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3058 + # source://prism//lib/prism/node.rb#3116 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -3663,43 +3886,43 @@ class Prism::CallTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#3126 + # source://prism//lib/prism/node.rb#3183 sig { returns(T::Boolean) } def attribute_write?; end # def call_operator: () -> String # - # source://prism//lib/prism/node.rb#3136 + # source://prism//lib/prism/node.rb#3193 sig { returns(String) } def call_operator; end # attr_reader call_operator_loc: Location # - # source://prism//lib/prism/node.rb#3098 + # source://prism//lib/prism/node.rb#3156 sig { returns(Prism::Location) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3063 + # source://prism//lib/prism/node.rb#3121 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#3073 + # source://prism//lib/prism/node.rb#3131 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#3068 + # source://prism//lib/prism/node.rb#3126 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?receiver: Prism::node, ?call_operator_loc: Location, ?name: Symbol, ?message_loc: Location, ?location: Location) -> CallTargetNode # - # source://prism//lib/prism/node.rb#3078 + # source://prism//lib/prism/node.rb#3136 sig do params( flags: Integer, @@ -3715,13 +3938,13 @@ class Prism::CallTargetNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3063 + # source://prism//lib/prism/node.rb#3121 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Prism::node, call_operator_loc: Location, name: Symbol, message_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#3086 + # source://prism//lib/prism/node.rb#3144 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -3732,37 +3955,37 @@ class Prism::CallTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#3131 + # source://prism//lib/prism/node.rb#3188 sig { returns(T::Boolean) } def ignore_visibility?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#3146 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#3203 + sig { override.returns(String) } + def inspect; end # def message: () -> String # - # source://prism//lib/prism/node.rb#3141 + # source://prism//lib/prism/node.rb#3198 sig { returns(String) } def message; end # attr_reader message_loc: Location # - # source://prism//lib/prism/node.rb#3108 + # source://prism//lib/prism/node.rb#3166 sig { returns(Prism::Location) } def message_loc; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#3105 + # source://prism//lib/prism/node.rb#3163 sig { returns(Symbol) } def name; end # attr_reader receiver: Prism::node # - # source://prism//lib/prism/node.rb#3095 + # source://prism//lib/prism/node.rb#3153 sig { returns(Prism::Node) } def receiver; end @@ -3770,7 +3993,7 @@ class Prism::CallTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#3116 + # source://prism//lib/prism/node.rb#3173 sig { returns(T::Boolean) } def safe_navigation?; end @@ -3789,7 +4012,7 @@ class Prism::CallTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3172 + # source://prism//lib/prism/node.rb#3221 sig { override.returns(Symbol) } def type; end @@ -3797,15 +4020,15 @@ class Prism::CallTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#3121 + # source://prism//lib/prism/node.rb#3178 sig { returns(T::Boolean) } def variable_call?; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#3091 + # source://prism//lib/prism/node.rb#3149 sig { returns(Integer) } def flags; end @@ -3817,7 +4040,7 @@ class Prism::CallTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3182 + # source://prism//lib/prism/node.rb#3231 def type; end end end @@ -3827,13 +4050,13 @@ end # foo => [bar => baz] # ^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3191 +# source://prism//lib/prism/node.rb#3251 class Prism::CapturePatternNode < ::Prism::Node # def initialize: (Prism::node value, Prism::node target, Location operator_loc, Location location) -> void # # @return [CapturePatternNode] a new instance of CapturePatternNode # - # source://prism//lib/prism/node.rb#3193 + # source://prism//lib/prism/node.rb#3253 sig do params( source: Prism::Source, @@ -3845,33 +4068,39 @@ class Prism::CapturePatternNode < ::Prism::Node end def initialize(source, value, target, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#3348 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3203 + # source://prism//lib/prism/node.rb#3263 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3208 + # source://prism//lib/prism/node.rb#3268 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#3218 + # source://prism//lib/prism/node.rb#3278 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#3213 + # source://prism//lib/prism/node.rb#3273 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?value: Prism::node, ?target: Prism::node, ?operator_loc: Location, ?location: Location) -> CapturePatternNode # - # source://prism//lib/prism/node.rb#3223 + # source://prism//lib/prism/node.rb#3283 sig do params( value: Prism::Node, @@ -3885,40 +4114,40 @@ class Prism::CapturePatternNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3208 + # source://prism//lib/prism/node.rb#3268 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { value: Prism::node, target: Prism::node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#3231 + # source://prism//lib/prism/node.rb#3291 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#3255 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#3314 + sig { override.returns(String) } + def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#3250 + # source://prism//lib/prism/node.rb#3309 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#3242 + # source://prism//lib/prism/node.rb#3302 sig { returns(Prism::Location) } def operator_loc; end # attr_reader target: Prism::node # - # source://prism//lib/prism/node.rb#3239 + # source://prism//lib/prism/node.rb#3299 sig { returns(Prism::Node) } def target; end @@ -3937,13 +4166,13 @@ class Prism::CapturePatternNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3279 + # source://prism//lib/prism/node.rb#3332 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#3236 + # source://prism//lib/prism/node.rb#3296 sig { returns(Prism::Node) } def value; end @@ -3955,7 +4184,7 @@ class Prism::CapturePatternNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3289 + # source://prism//lib/prism/node.rb#3342 def type; end end end @@ -3967,13 +4196,13 @@ end # end # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3300 +# source://prism//lib/prism/node.rb#3362 class Prism::CaseMatchNode < ::Prism::Node # def initialize: (Prism::node? predicate, Array[Prism::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#3302 + # source://prism//lib/prism/node.rb#3364 sig do params( source: Prism::Source, @@ -3987,57 +4216,63 @@ class Prism::CaseMatchNode < ::Prism::Node end def initialize(source, predicate, conditions, consequent, case_keyword_loc, end_keyword_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#3480 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3314 + # source://prism//lib/prism/node.rb#3376 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def case_keyword: () -> String # - # source://prism//lib/prism/node.rb#3375 + # source://prism//lib/prism/node.rb#3436 sig { returns(String) } def case_keyword; end # attr_reader case_keyword_loc: Location # - # source://prism//lib/prism/node.rb#3360 + # source://prism//lib/prism/node.rb#3422 sig { returns(Prism::Location) } def case_keyword_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3319 + # source://prism//lib/prism/node.rb#3381 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#3333 + # source://prism//lib/prism/node.rb#3395 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#3324 + # source://prism//lib/prism/node.rb#3386 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader conditions: Array[Prism::node] # - # source://prism//lib/prism/node.rb#3354 + # source://prism//lib/prism/node.rb#3416 sig { returns(T::Array[Prism::Node]) } def conditions; end # attr_reader consequent: ElseNode? # - # source://prism//lib/prism/node.rb#3357 + # source://prism//lib/prism/node.rb#3419 sig { returns(T.nilable(Prism::ElseNode)) } def consequent; end # def copy: (?predicate: Prism::node?, ?conditions: Array[Prism::node], ?consequent: ElseNode?, ?case_keyword_loc: Location, ?end_keyword_loc: Location, ?location: Location) -> CaseMatchNode # - # source://prism//lib/prism/node.rb#3338 + # source://prism//lib/prism/node.rb#3400 sig do params( predicate: T.nilable(Prism::Node), @@ -4053,40 +4288,40 @@ class Prism::CaseMatchNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3319 + # source://prism//lib/prism/node.rb#3381 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { predicate: Prism::node?, conditions: Array[Prism::node], consequent: ElseNode?, case_keyword_loc: Location, end_keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#3346 + # source://prism//lib/prism/node.rb#3408 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # def end_keyword: () -> String # - # source://prism//lib/prism/node.rb#3380 + # source://prism//lib/prism/node.rb#3441 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#3367 + # source://prism//lib/prism/node.rb#3429 sig { returns(Prism::Location) } def end_keyword_loc; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#3385 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#3446 + sig { override.returns(String) } + def inspect; end # attr_reader predicate: Prism::node? # - # source://prism//lib/prism/node.rb#3351 + # source://prism//lib/prism/node.rb#3413 sig { returns(T.nilable(Prism::Node)) } def predicate; end @@ -4105,7 +4340,7 @@ class Prism::CaseMatchNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3419 + # source://prism//lib/prism/node.rb#3464 sig { override.returns(Symbol) } def type; end @@ -4117,7 +4352,7 @@ class Prism::CaseMatchNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3429 + # source://prism//lib/prism/node.rb#3474 def type; end end end @@ -4129,13 +4364,13 @@ end # end # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3440 +# source://prism//lib/prism/node.rb#3497 class Prism::CaseNode < ::Prism::Node # def initialize: (Prism::node? predicate, Array[Prism::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#3442 + # source://prism//lib/prism/node.rb#3499 sig do params( source: Prism::Source, @@ -4149,57 +4384,63 @@ class Prism::CaseNode < ::Prism::Node end def initialize(source, predicate, conditions, consequent, case_keyword_loc, end_keyword_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#3615 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3454 + # source://prism//lib/prism/node.rb#3511 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def case_keyword: () -> String # - # source://prism//lib/prism/node.rb#3515 + # source://prism//lib/prism/node.rb#3571 sig { returns(String) } def case_keyword; end # attr_reader case_keyword_loc: Location # - # source://prism//lib/prism/node.rb#3500 + # source://prism//lib/prism/node.rb#3557 sig { returns(Prism::Location) } def case_keyword_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3459 + # source://prism//lib/prism/node.rb#3516 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#3473 + # source://prism//lib/prism/node.rb#3530 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#3464 + # source://prism//lib/prism/node.rb#3521 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader conditions: Array[Prism::node] # - # source://prism//lib/prism/node.rb#3494 + # source://prism//lib/prism/node.rb#3551 sig { returns(T::Array[Prism::Node]) } def conditions; end # attr_reader consequent: ElseNode? # - # source://prism//lib/prism/node.rb#3497 + # source://prism//lib/prism/node.rb#3554 sig { returns(T.nilable(Prism::ElseNode)) } def consequent; end # def copy: (?predicate: Prism::node?, ?conditions: Array[Prism::node], ?consequent: ElseNode?, ?case_keyword_loc: Location, ?end_keyword_loc: Location, ?location: Location) -> CaseNode # - # source://prism//lib/prism/node.rb#3478 + # source://prism//lib/prism/node.rb#3535 sig do params( predicate: T.nilable(Prism::Node), @@ -4215,40 +4456,40 @@ class Prism::CaseNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3459 + # source://prism//lib/prism/node.rb#3516 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { predicate: Prism::node?, conditions: Array[Prism::node], consequent: ElseNode?, case_keyword_loc: Location, end_keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#3486 + # source://prism//lib/prism/node.rb#3543 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # def end_keyword: () -> String # - # source://prism//lib/prism/node.rb#3520 + # source://prism//lib/prism/node.rb#3576 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#3507 + # source://prism//lib/prism/node.rb#3564 sig { returns(Prism::Location) } def end_keyword_loc; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#3525 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#3581 + sig { override.returns(String) } + def inspect; end # attr_reader predicate: Prism::node? # - # source://prism//lib/prism/node.rb#3491 + # source://prism//lib/prism/node.rb#3548 sig { returns(T.nilable(Prism::Node)) } def predicate; end @@ -4267,7 +4508,7 @@ class Prism::CaseNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3559 + # source://prism//lib/prism/node.rb#3599 sig { override.returns(Symbol) } def type; end @@ -4279,7 +4520,7 @@ class Prism::CaseNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3569 + # source://prism//lib/prism/node.rb#3609 def type; end end end @@ -4289,13 +4530,13 @@ end # class Foo end # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3578 +# source://prism//lib/prism/node.rb#3630 class Prism::ClassNode < ::Prism::Node # def initialize: (Array[Symbol] locals, Location class_keyword_loc, Prism::node constant_path, Location? inheritance_operator_loc, Prism::node? superclass, Prism::node? body, Location end_keyword_loc, Symbol name, Location location) -> void # # @return [ClassNode] a new instance of ClassNode # - # source://prism//lib/prism/node.rb#3580 + # source://prism//lib/prism/node.rb#3632 sig do params( source: Prism::Source, @@ -4312,57 +4553,63 @@ class Prism::ClassNode < ::Prism::Node end def initialize(source, locals, class_keyword_loc, constant_path, inheritance_operator_loc, superclass, body, end_keyword_loc, name, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#3775 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3595 + # source://prism//lib/prism/node.rb#3647 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader body: Prism::node? # - # source://prism//lib/prism/node.rb#3661 + # source://prism//lib/prism/node.rb#3713 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3600 + # source://prism//lib/prism/node.rb#3652 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def class_keyword: () -> String # - # source://prism//lib/prism/node.rb#3675 + # source://prism//lib/prism/node.rb#3726 sig { returns(String) } def class_keyword; end # attr_reader class_keyword_loc: Location # - # source://prism//lib/prism/node.rb#3635 + # source://prism//lib/prism/node.rb#3687 sig { returns(Prism::Location) } def class_keyword_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#3614 + # source://prism//lib/prism/node.rb#3666 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#3605 + # source://prism//lib/prism/node.rb#3657 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader constant_path: Prism::node # - # source://prism//lib/prism/node.rb#3642 + # source://prism//lib/prism/node.rb#3694 sig { returns(Prism::Node) } def constant_path; end # def copy: (?locals: Array[Symbol], ?class_keyword_loc: Location, ?constant_path: Prism::node, ?inheritance_operator_loc: Location?, ?superclass: Prism::node?, ?body: Prism::node?, ?end_keyword_loc: Location, ?name: Symbol, ?location: Location) -> ClassNode # - # source://prism//lib/prism/node.rb#3619 + # source://prism//lib/prism/node.rb#3671 sig do params( locals: T::Array[Symbol], @@ -4381,25 +4628,25 @@ class Prism::ClassNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3600 + # source://prism//lib/prism/node.rb#3652 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { locals: Array[Symbol], class_keyword_loc: Location, constant_path: Prism::node, inheritance_operator_loc: Location?, superclass: Prism::node?, body: Prism::node?, end_keyword_loc: Location, name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#3627 + # source://prism//lib/prism/node.rb#3679 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # def end_keyword: () -> String # - # source://prism//lib/prism/node.rb#3685 + # source://prism//lib/prism/node.rb#3736 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#3664 + # source://prism//lib/prism/node.rb#3716 sig { returns(Prism::Location) } def end_keyword_loc; end @@ -4408,37 +4655,37 @@ class Prism::ClassNode < ::Prism::Node # def inheritance_operator: () -> String? # - # source://prism//lib/prism/node.rb#3680 + # source://prism//lib/prism/node.rb#3731 sig { returns(T.nilable(String)) } def inheritance_operator; end # attr_reader inheritance_operator_loc: Location? # - # source://prism//lib/prism/node.rb#3645 + # source://prism//lib/prism/node.rb#3697 sig { returns(T.nilable(Prism::Location)) } def inheritance_operator_loc; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#3690 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#3741 + sig { override.returns(String) } + def inspect; end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#3632 + # source://prism//lib/prism/node.rb#3684 sig { returns(T::Array[Symbol]) } def locals; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#3671 + # source://prism//lib/prism/node.rb#3723 sig { returns(Symbol) } def name; end # attr_reader superclass: Prism::node? # - # source://prism//lib/prism/node.rb#3658 + # source://prism//lib/prism/node.rb#3710 sig { returns(T.nilable(Prism::Node)) } def superclass; end @@ -4457,7 +4704,7 @@ class Prism::ClassNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3728 + # source://prism//lib/prism/node.rb#3759 sig { override.returns(Symbol) } def type; end @@ -4469,7 +4716,7 @@ class Prism::ClassNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3738 + # source://prism//lib/prism/node.rb#3769 def type; end end end @@ -4479,13 +4726,13 @@ end # @@target &&= value # ^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3747 +# source://prism//lib/prism/node.rb#3793 class Prism::ClassVariableAndWriteNode < ::Prism::Node # def initialize: (Symbol name, Location name_loc, Location operator_loc, Prism::node value, Location location) -> void # # @return [ClassVariableAndWriteNode] a new instance of ClassVariableAndWriteNode # - # source://prism//lib/prism/node.rb#3749 + # source://prism//lib/prism/node.rb#3795 sig do params( source: Prism::Source, @@ -4498,33 +4745,39 @@ class Prism::ClassVariableAndWriteNode < ::Prism::Node end def initialize(source, name, name_loc, operator_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#3898 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3760 + # source://prism//lib/prism/node.rb#3806 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3765 + # source://prism//lib/prism/node.rb#3811 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#3775 + # source://prism//lib/prism/node.rb#3821 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#3770 + # source://prism//lib/prism/node.rb#3816 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?name_loc: Location, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> ClassVariableAndWriteNode # - # source://prism//lib/prism/node.rb#3780 + # source://prism//lib/prism/node.rb#3826 sig do params( name: Symbol, @@ -4539,13 +4792,13 @@ class Prism::ClassVariableAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3765 + # source://prism//lib/prism/node.rb#3811 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#3788 + # source://prism//lib/prism/node.rb#3834 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -4555,33 +4808,33 @@ class Prism::ClassVariableAndWriteNode < ::Prism::Node sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#3819 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#3864 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#3793 + # source://prism//lib/prism/node.rb#3839 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#3796 + # source://prism//lib/prism/node.rb#3842 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#3814 + # source://prism//lib/prism/node.rb#3859 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#3803 + # source://prism//lib/prism/node.rb#3849 sig { returns(Prism::Location) } def operator_loc; end @@ -4600,13 +4853,13 @@ class Prism::ClassVariableAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3843 + # source://prism//lib/prism/node.rb#3882 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#3810 + # source://prism//lib/prism/node.rb#3856 sig { returns(Prism::Node) } def value; end @@ -4618,7 +4871,7 @@ class Prism::ClassVariableAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3853 + # source://prism//lib/prism/node.rb#3892 def type; end end end @@ -4628,75 +4881,93 @@ end # @@target += value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3862 +# source://prism//lib/prism/node.rb#3911 class Prism::ClassVariableOperatorWriteNode < ::Prism::Node - # def initialize: (Symbol name, Location name_loc, Location operator_loc, Prism::node value, Symbol operator, Location location) -> void + # def initialize: (Symbol name, Location name_loc, Location binary_operator_loc, Prism::node value, Symbol binary_operator, Location location) -> void # # @return [ClassVariableOperatorWriteNode] a new instance of ClassVariableOperatorWriteNode # - # source://prism//lib/prism/node.rb#3864 + # source://prism//lib/prism/node.rb#3913 sig do params( source: Prism::Source, name: Symbol, name_loc: Prism::Location, - operator_loc: Prism::Location, + binary_operator_loc: Prism::Location, value: Prism::Node, - operator: Symbol, + binary_operator: Symbol, location: Prism::Location ).void end - def initialize(source, name, name_loc, operator_loc, value, operator, location); end + def initialize(source, name, name_loc, binary_operator_loc, value, binary_operator, location); end + + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#4015 + def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3876 + # source://prism//lib/prism/node.rb#3925 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end + # attr_reader binary_operator: Symbol + # + # source://prism//lib/prism/node.rb#3978 + sig { returns(Symbol) } + def binary_operator; end + + # attr_reader binary_operator_loc: Location + # + # source://prism//lib/prism/node.rb#3968 + sig { returns(Prism::Location) } + def binary_operator_loc; end + # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3881 + # source://prism//lib/prism/node.rb#3930 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#3891 + # source://prism//lib/prism/node.rb#3940 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#3886 + # source://prism//lib/prism/node.rb#3935 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end - # def copy: (?name: Symbol, ?name_loc: Location, ?operator_loc: Location, ?value: Prism::node, ?operator: Symbol, ?location: Location) -> ClassVariableOperatorWriteNode + # def copy: (?name: Symbol, ?name_loc: Location, ?binary_operator_loc: Location, ?value: Prism::node, ?binary_operator: Symbol, ?location: Location) -> ClassVariableOperatorWriteNode # - # source://prism//lib/prism/node.rb#3896 + # source://prism//lib/prism/node.rb#3945 sig do params( name: Symbol, name_loc: Prism::Location, - operator_loc: Prism::Location, + binary_operator_loc: Prism::Location, value: Prism::Node, - operator: Symbol, + binary_operator: Symbol, location: Prism::Location ).returns(Prism::ClassVariableOperatorWriteNode) end - def copy(name: T.unsafe(nil), name_loc: T.unsafe(nil), operator_loc: T.unsafe(nil), value: T.unsafe(nil), operator: T.unsafe(nil), location: T.unsafe(nil)); end + def copy(name: T.unsafe(nil), name_loc: T.unsafe(nil), binary_operator_loc: T.unsafe(nil), value: T.unsafe(nil), binary_operator: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3881 + # source://prism//lib/prism/node.rb#3930 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Prism::node, operator: Symbol, location: Location } + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, binary_operator_loc: Location, value: Prism::node, binary_operator: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#3904 + # source://prism//lib/prism/node.rb#3953 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -4706,34 +4977,34 @@ class Prism::ClassVariableOperatorWriteNode < ::Prism::Node sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#3933 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#3981 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#3909 + # source://prism//lib/prism/node.rb#3958 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#3912 + # source://prism//lib/prism/node.rb#3961 sig { returns(Prism::Location) } def name_loc; end - # attr_reader operator: Symbol + # Returns the binary operator used to modify the receiver. This method is + # deprecated in favor of #binary_operator. # - # source://prism//lib/prism/node.rb#3929 - sig { returns(Symbol) } + # source://prism//lib/prism/node_ext.rb#323 def operator; end - # attr_reader operator_loc: Location + # Returns the location of the binary operator used to modify the receiver. + # This method is deprecated in favor of #binary_operator_loc. # - # source://prism//lib/prism/node.rb#3919 - sig { returns(Prism::Location) } + # source://prism//lib/prism/node_ext.rb#330 def operator_loc; end # Sometimes you want to check an instance of a node against a list of @@ -4751,13 +5022,13 @@ class Prism::ClassVariableOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3958 + # source://prism//lib/prism/node.rb#3999 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#3926 + # source://prism//lib/prism/node.rb#3975 sig { returns(Prism::Node) } def value; end @@ -4769,7 +5040,7 @@ class Prism::ClassVariableOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3968 + # source://prism//lib/prism/node.rb#4009 def type; end end end @@ -4779,13 +5050,13 @@ end # @@target ||= value # ^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3977 +# source://prism//lib/prism/node.rb#4029 class Prism::ClassVariableOrWriteNode < ::Prism::Node # def initialize: (Symbol name, Location name_loc, Location operator_loc, Prism::node value, Location location) -> void # # @return [ClassVariableOrWriteNode] a new instance of ClassVariableOrWriteNode # - # source://prism//lib/prism/node.rb#3979 + # source://prism//lib/prism/node.rb#4031 sig do params( source: Prism::Source, @@ -4798,33 +5069,39 @@ class Prism::ClassVariableOrWriteNode < ::Prism::Node end def initialize(source, name, name_loc, operator_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#4134 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3990 + # source://prism//lib/prism/node.rb#4042 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3995 + # source://prism//lib/prism/node.rb#4047 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4005 + # source://prism//lib/prism/node.rb#4057 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4000 + # source://prism//lib/prism/node.rb#4052 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?name_loc: Location, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> ClassVariableOrWriteNode # - # source://prism//lib/prism/node.rb#4010 + # source://prism//lib/prism/node.rb#4062 sig do params( name: Symbol, @@ -4839,13 +5116,13 @@ class Prism::ClassVariableOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3995 + # source://prism//lib/prism/node.rb#4047 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#4018 + # source://prism//lib/prism/node.rb#4070 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -4855,33 +5132,33 @@ class Prism::ClassVariableOrWriteNode < ::Prism::Node sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#4049 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#4100 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#4023 + # source://prism//lib/prism/node.rb#4075 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#4026 + # source://prism//lib/prism/node.rb#4078 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#4044 + # source://prism//lib/prism/node.rb#4095 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#4033 + # source://prism//lib/prism/node.rb#4085 sig { returns(Prism::Location) } def operator_loc; end @@ -4900,13 +5177,13 @@ class Prism::ClassVariableOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4073 + # source://prism//lib/prism/node.rb#4118 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#4040 + # source://prism//lib/prism/node.rb#4092 sig { returns(Prism::Node) } def value; end @@ -4918,7 +5195,7 @@ class Prism::ClassVariableOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4083 + # source://prism//lib/prism/node.rb#4128 def type; end end end @@ -4928,67 +5205,73 @@ end # @@foo # ^^^^^ # -# source://prism//lib/prism/node.rb#4092 +# source://prism//lib/prism/node.rb#4147 class Prism::ClassVariableReadNode < ::Prism::Node # def initialize: (Symbol name, Location location) -> void # # @return [ClassVariableReadNode] a new instance of ClassVariableReadNode # - # source://prism//lib/prism/node.rb#4094 + # source://prism//lib/prism/node.rb#4149 sig { params(source: Prism::Source, name: Symbol, location: Prism::Location).void } def initialize(source, name, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#4231 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4102 + # source://prism//lib/prism/node.rb#4157 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4107 + # source://prism//lib/prism/node.rb#4162 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4117 + # source://prism//lib/prism/node.rb#4172 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4112 + # source://prism//lib/prism/node.rb#4167 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?location: Location) -> ClassVariableReadNode # - # source://prism//lib/prism/node.rb#4122 + # source://prism//lib/prism/node.rb#4177 sig { params(name: Symbol, location: Prism::Location).returns(Prism::ClassVariableReadNode) } def copy(name: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4107 + # source://prism//lib/prism/node.rb#4162 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#4130 + # source://prism//lib/prism/node.rb#4185 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#4143 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#4197 + sig { override.returns(String) } + def inspect; end # 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). # @@ -4996,7 +5279,7 @@ class Prism::ClassVariableReadNode < ::Prism::Node # # @@_test # name `:@@_test` # - # source://prism//lib/prism/node.rb#4139 + # source://prism//lib/prism/node.rb#4194 sig { returns(Symbol) } def name; end @@ -5015,7 +5298,7 @@ class Prism::ClassVariableReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4163 + # source://prism//lib/prism/node.rb#4215 sig { override.returns(Symbol) } def type; end @@ -5027,7 +5310,7 @@ class Prism::ClassVariableReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4173 + # source://prism//lib/prism/node.rb#4225 def type; end end end @@ -5037,71 +5320,77 @@ end # @@foo, @@bar = baz # ^^^^^ ^^^^^ # -# source://prism//lib/prism/node.rb#4182 +# source://prism//lib/prism/node.rb#4241 class Prism::ClassVariableTargetNode < ::Prism::Node # def initialize: (Symbol name, Location location) -> void # # @return [ClassVariableTargetNode] a new instance of ClassVariableTargetNode # - # source://prism//lib/prism/node.rb#4184 + # source://prism//lib/prism/node.rb#4243 sig { params(source: Prism::Source, name: Symbol, location: Prism::Location).void } def initialize(source, name, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#4321 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4192 + # source://prism//lib/prism/node.rb#4251 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4197 + # source://prism//lib/prism/node.rb#4256 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4207 + # source://prism//lib/prism/node.rb#4266 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4202 + # source://prism//lib/prism/node.rb#4261 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?location: Location) -> ClassVariableTargetNode # - # source://prism//lib/prism/node.rb#4212 + # source://prism//lib/prism/node.rb#4271 sig { params(name: Symbol, location: Prism::Location).returns(Prism::ClassVariableTargetNode) } def copy(name: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4197 + # source://prism//lib/prism/node.rb#4256 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#4220 + # source://prism//lib/prism/node.rb#4279 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#4229 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#4287 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#4225 + # source://prism//lib/prism/node.rb#4284 sig { returns(Symbol) } def name; end @@ -5120,7 +5409,7 @@ class Prism::ClassVariableTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4249 + # source://prism//lib/prism/node.rb#4305 sig { override.returns(Symbol) } def type; end @@ -5132,7 +5421,7 @@ class Prism::ClassVariableTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4259 + # source://prism//lib/prism/node.rb#4315 def type; end end end @@ -5142,13 +5431,13 @@ end # @@foo = 1 # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4268 +# source://prism//lib/prism/node.rb#4331 class Prism::ClassVariableWriteNode < ::Prism::Node # def initialize: (Symbol name, Location name_loc, Prism::node value, Location operator_loc, Location location) -> void # # @return [ClassVariableWriteNode] a new instance of ClassVariableWriteNode # - # source://prism//lib/prism/node.rb#4270 + # source://prism//lib/prism/node.rb#4333 sig do params( source: Prism::Source, @@ -5161,33 +5450,39 @@ class Prism::ClassVariableWriteNode < ::Prism::Node end def initialize(source, name, name_loc, value, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#4452 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4281 + # source://prism//lib/prism/node.rb#4344 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4286 + # source://prism//lib/prism/node.rb#4349 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4296 + # source://prism//lib/prism/node.rb#4359 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4291 + # source://prism//lib/prism/node.rb#4354 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?name_loc: Location, ?value: Prism::node, ?operator_loc: Location, ?location: Location) -> ClassVariableWriteNode # - # source://prism//lib/prism/node.rb#4301 + # source://prism//lib/prism/node.rb#4364 sig do params( name: Symbol, @@ -5202,24 +5497,24 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4286 + # source://prism//lib/prism/node.rb#4349 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, value: Prism::node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#4309 + # source://prism//lib/prism/node.rb#4372 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#4357 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#4418 + sig { override.returns(String) } + def inspect; end # 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). # @@ -5227,7 +5522,7 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # # @@_test = :test # name `@@_test` # - # source://prism//lib/prism/node.rb#4318 + # source://prism//lib/prism/node.rb#4381 sig { returns(Symbol) } def name; end @@ -5236,13 +5531,13 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # @@foo = :bar # ^^^^^ # - # source://prism//lib/prism/node.rb#4324 + # source://prism//lib/prism/node.rb#4387 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#4352 + # source://prism//lib/prism/node.rb#4413 sig { returns(String) } def operator; end @@ -5251,7 +5546,7 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # @@foo = :bar # ^ # - # source://prism//lib/prism/node.rb#4344 + # source://prism//lib/prism/node.rb#4406 sig { returns(Prism::Location) } def operator_loc; end @@ -5270,12 +5565,11 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4381 + # source://prism//lib/prism/node.rb#4436 sig { override.returns(Symbol) } def type; end - # The value to assign to the class variable. Can be any node that - # represents a non-void expression. + # The value to write to the class variable. This can be any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression). # # @@foo = :bar # ^^^^ @@ -5283,7 +5577,7 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # @@_xyz = 123 # ^^^ # - # source://prism//lib/prism/node.rb#4338 + # source://prism//lib/prism/node.rb#4400 sig { returns(Prism::Node) } def value; end @@ -5295,7 +5589,7 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4391 + # source://prism//lib/prism/node.rb#4446 def type; end end end @@ -5303,7 +5597,7 @@ end # This represents a comment that was encountered during parsing. It is the # base class for all comment types. # -# source://prism//lib/prism/parse_result.rb#288 +# source://prism//lib/prism/parse_result.rb#366 class Prism::Comment abstract! @@ -5311,24 +5605,25 @@ class Prism::Comment # # @return [Comment] a new instance of Comment # - # source://prism//lib/prism/parse_result.rb#293 + # source://prism//lib/prism/parse_result.rb#371 sig { params(location: Prism::Location).void } def initialize(location); end # Implement the hash pattern matching interface for Comment. # - # source://prism//lib/prism/parse_result.rb#298 + # source://prism//lib/prism/parse_result.rb#376 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # The location of this comment in the source. # - # source://prism//lib/prism/parse_result.rb#290 + # source://prism//lib/prism/parse_result.rb#368 + sig { returns(Prism::Location) } def location; end # Returns the content of the comment by slicing it from the source code. # - # source://prism//lib/prism/parse_result.rb#303 + # source://prism//lib/prism/parse_result.rb#381 sig { returns(String) } def slice; end @@ -5358,7 +5653,7 @@ class Prism::Compiler < ::Prism::Visitor # Visit an individual node. # # source://prism//lib/prism/compiler.rb#29 - sig { params(node: T.nilable(Prism::Node)).returns(T.nilable(Result)) } + sig { params(node: T.nilable(Prism::Node)).returns(T.untyped) } def visit(node); end # Visit the child nodes of the given node. @@ -5376,7 +5671,7 @@ class Prism::Compiler < ::Prism::Visitor # Visit a list of nodes. # # source://prism//lib/prism/compiler.rb#34 - sig { params(nodes: T::Array[T.nilable(Prism::Node)]).returns(T::Array[T.nilable(Result)]) } + sig { params(nodes: T::Array[T.nilable(Prism::Node)]).returns(T::Array[T.untyped]) } def visit_all(nodes); end # Visit the child nodes of the given node. @@ -5520,7 +5815,7 @@ class Prism::Compiler < ::Prism::Visitor # Visit the child nodes of the given node. # # source://prism//lib/prism/compiler.rb#39 - sig { params(node: Prism::Node).returns(T::Array[T.nilable(Result)]) } + sig { params(node: Prism::Node).returns(T::Array[T.untyped]) } def visit_child_nodes(node); end # Visit the child nodes of the given node. @@ -6272,8 +6567,6 @@ class Prism::Compiler < ::Prism::Visitor # # source://prism//lib/prism/compiler.rb#39 def visit_yield_node(node); end - - Result = type_member end # Represents the use of the `&&=` operator for assignment to a constant. @@ -6281,13 +6574,13 @@ end # Target &&= value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4400 +# source://prism//lib/prism/node.rb#4465 class Prism::ConstantAndWriteNode < ::Prism::Node # def initialize: (Symbol name, Location name_loc, Location operator_loc, Prism::node value, Location location) -> void # # @return [ConstantAndWriteNode] a new instance of ConstantAndWriteNode # - # source://prism//lib/prism/node.rb#4402 + # source://prism//lib/prism/node.rb#4467 sig do params( source: Prism::Source, @@ -6300,33 +6593,39 @@ class Prism::ConstantAndWriteNode < ::Prism::Node end def initialize(source, name, name_loc, operator_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#4570 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4413 + # source://prism//lib/prism/node.rb#4478 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4418 + # source://prism//lib/prism/node.rb#4483 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4428 + # source://prism//lib/prism/node.rb#4493 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4423 + # source://prism//lib/prism/node.rb#4488 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?name_loc: Location, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> ConstantAndWriteNode # - # source://prism//lib/prism/node.rb#4433 + # source://prism//lib/prism/node.rb#4498 sig do params( name: Symbol, @@ -6341,13 +6640,13 @@ class Prism::ConstantAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4418 + # source://prism//lib/prism/node.rb#4483 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#4441 + # source://prism//lib/prism/node.rb#4506 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -6357,33 +6656,33 @@ class Prism::ConstantAndWriteNode < ::Prism::Node sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#4472 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#4536 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#4446 + # source://prism//lib/prism/node.rb#4511 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#4449 + # source://prism//lib/prism/node.rb#4514 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#4467 + # source://prism//lib/prism/node.rb#4531 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#4456 + # source://prism//lib/prism/node.rb#4521 sig { returns(Prism::Location) } def operator_loc; end @@ -6402,13 +6701,13 @@ class Prism::ConstantAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4496 + # source://prism//lib/prism/node.rb#4554 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#4463 + # source://prism//lib/prism/node.rb#4528 sig { returns(Prism::Node) } def value; end @@ -6420,7 +6719,7 @@ class Prism::ConstantAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4506 + # source://prism//lib/prism/node.rb#4564 def type; end end end @@ -6430,75 +6729,93 @@ end # Target += value # ^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4515 +# source://prism//lib/prism/node.rb#4583 class Prism::ConstantOperatorWriteNode < ::Prism::Node - # def initialize: (Symbol name, Location name_loc, Location operator_loc, Prism::node value, Symbol operator, Location location) -> void + # def initialize: (Symbol name, Location name_loc, Location binary_operator_loc, Prism::node value, Symbol binary_operator, Location location) -> void # # @return [ConstantOperatorWriteNode] a new instance of ConstantOperatorWriteNode # - # source://prism//lib/prism/node.rb#4517 + # source://prism//lib/prism/node.rb#4585 sig do params( source: Prism::Source, name: Symbol, name_loc: Prism::Location, - operator_loc: Prism::Location, + binary_operator_loc: Prism::Location, value: Prism::Node, - operator: Symbol, + binary_operator: Symbol, location: Prism::Location ).void end - def initialize(source, name, name_loc, operator_loc, value, operator, location); end + def initialize(source, name, name_loc, binary_operator_loc, value, binary_operator, location); end + + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#4687 + def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4529 + # source://prism//lib/prism/node.rb#4597 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end + # attr_reader binary_operator: Symbol + # + # source://prism//lib/prism/node.rb#4650 + sig { returns(Symbol) } + def binary_operator; end + + # attr_reader binary_operator_loc: Location + # + # source://prism//lib/prism/node.rb#4640 + sig { returns(Prism::Location) } + def binary_operator_loc; end + # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4534 + # source://prism//lib/prism/node.rb#4602 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4544 + # source://prism//lib/prism/node.rb#4612 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4539 + # source://prism//lib/prism/node.rb#4607 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end - # def copy: (?name: Symbol, ?name_loc: Location, ?operator_loc: Location, ?value: Prism::node, ?operator: Symbol, ?location: Location) -> ConstantOperatorWriteNode + # def copy: (?name: Symbol, ?name_loc: Location, ?binary_operator_loc: Location, ?value: Prism::node, ?binary_operator: Symbol, ?location: Location) -> ConstantOperatorWriteNode # - # source://prism//lib/prism/node.rb#4549 + # source://prism//lib/prism/node.rb#4617 sig do params( name: Symbol, name_loc: Prism::Location, - operator_loc: Prism::Location, + binary_operator_loc: Prism::Location, value: Prism::Node, - operator: Symbol, + binary_operator: Symbol, location: Prism::Location ).returns(Prism::ConstantOperatorWriteNode) end - def copy(name: T.unsafe(nil), name_loc: T.unsafe(nil), operator_loc: T.unsafe(nil), value: T.unsafe(nil), operator: T.unsafe(nil), location: T.unsafe(nil)); end + def copy(name: T.unsafe(nil), name_loc: T.unsafe(nil), binary_operator_loc: T.unsafe(nil), value: T.unsafe(nil), binary_operator: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4534 + # source://prism//lib/prism/node.rb#4602 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Prism::node, operator: Symbol, location: Location } + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, binary_operator_loc: Location, value: Prism::node, binary_operator: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#4557 + # source://prism//lib/prism/node.rb#4625 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -6508,34 +6825,34 @@ class Prism::ConstantOperatorWriteNode < ::Prism::Node sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#4586 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#4653 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#4562 + # source://prism//lib/prism/node.rb#4630 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#4565 + # source://prism//lib/prism/node.rb#4633 sig { returns(Prism::Location) } def name_loc; end - # attr_reader operator: Symbol + # Returns the binary operator used to modify the receiver. This method is + # deprecated in favor of #binary_operator. # - # source://prism//lib/prism/node.rb#4582 - sig { returns(Symbol) } + # source://prism//lib/prism/node_ext.rb#339 def operator; end - # attr_reader operator_loc: Location + # Returns the location of the binary operator used to modify the receiver. + # This method is deprecated in favor of #binary_operator_loc. # - # source://prism//lib/prism/node.rb#4572 - sig { returns(Prism::Location) } + # source://prism//lib/prism/node_ext.rb#346 def operator_loc; end # Sometimes you want to check an instance of a node against a list of @@ -6553,13 +6870,13 @@ class Prism::ConstantOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4611 + # source://prism//lib/prism/node.rb#4671 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#4579 + # source://prism//lib/prism/node.rb#4647 sig { returns(Prism::Node) } def value; end @@ -6571,7 +6888,7 @@ class Prism::ConstantOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4621 + # source://prism//lib/prism/node.rb#4681 def type; end end end @@ -6581,13 +6898,13 @@ end # Target ||= value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4630 +# source://prism//lib/prism/node.rb#4701 class Prism::ConstantOrWriteNode < ::Prism::Node # def initialize: (Symbol name, Location name_loc, Location operator_loc, Prism::node value, Location location) -> void # # @return [ConstantOrWriteNode] a new instance of ConstantOrWriteNode # - # source://prism//lib/prism/node.rb#4632 + # source://prism//lib/prism/node.rb#4703 sig do params( source: Prism::Source, @@ -6600,33 +6917,39 @@ class Prism::ConstantOrWriteNode < ::Prism::Node end def initialize(source, name, name_loc, operator_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#4806 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4643 + # source://prism//lib/prism/node.rb#4714 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4648 + # source://prism//lib/prism/node.rb#4719 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4658 + # source://prism//lib/prism/node.rb#4729 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4653 + # source://prism//lib/prism/node.rb#4724 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?name_loc: Location, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> ConstantOrWriteNode # - # source://prism//lib/prism/node.rb#4663 + # source://prism//lib/prism/node.rb#4734 sig do params( name: Symbol, @@ -6641,13 +6964,13 @@ class Prism::ConstantOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4648 + # source://prism//lib/prism/node.rb#4719 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#4671 + # source://prism//lib/prism/node.rb#4742 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -6657,33 +6980,33 @@ class Prism::ConstantOrWriteNode < ::Prism::Node sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#4702 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#4772 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#4676 + # source://prism//lib/prism/node.rb#4747 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#4679 + # source://prism//lib/prism/node.rb#4750 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#4697 + # source://prism//lib/prism/node.rb#4767 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#4686 + # source://prism//lib/prism/node.rb#4757 sig { returns(Prism::Location) } def operator_loc; end @@ -6702,13 +7025,13 @@ class Prism::ConstantOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4726 + # source://prism//lib/prism/node.rb#4790 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#4693 + # source://prism//lib/prism/node.rb#4764 sig { returns(Prism::Node) } def value; end @@ -6720,7 +7043,7 @@ class Prism::ConstantOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4736 + # source://prism//lib/prism/node.rb#4800 def type; end end end @@ -6730,13 +7053,13 @@ end # Parent::Child &&= value # ^^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4745 +# source://prism//lib/prism/node.rb#4819 class Prism::ConstantPathAndWriteNode < ::Prism::Node # def initialize: (ConstantPathNode target, Location operator_loc, Prism::node value, Location location) -> void # # @return [ConstantPathAndWriteNode] a new instance of ConstantPathAndWriteNode # - # source://prism//lib/prism/node.rb#4747 + # source://prism//lib/prism/node.rb#4821 sig do params( source: Prism::Source, @@ -6748,33 +7071,39 @@ class Prism::ConstantPathAndWriteNode < ::Prism::Node end def initialize(source, target, operator_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#4916 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4757 + # source://prism//lib/prism/node.rb#4831 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4762 + # source://prism//lib/prism/node.rb#4836 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4772 + # source://prism//lib/prism/node.rb#4846 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4767 + # source://prism//lib/prism/node.rb#4841 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?target: ConstantPathNode, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> ConstantPathAndWriteNode # - # source://prism//lib/prism/node.rb#4777 + # source://prism//lib/prism/node.rb#4851 sig do params( target: Prism::ConstantPathNode, @@ -6788,40 +7117,40 @@ class Prism::ConstantPathAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4762 + # source://prism//lib/prism/node.rb#4836 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { target: ConstantPathNode, operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#4785 + # source://prism//lib/prism/node.rb#4859 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#4809 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#4882 + sig { override.returns(String) } + def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#4804 + # source://prism//lib/prism/node.rb#4877 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#4793 + # source://prism//lib/prism/node.rb#4867 sig { returns(Prism::Location) } def operator_loc; end # attr_reader target: ConstantPathNode # - # source://prism//lib/prism/node.rb#4790 + # source://prism//lib/prism/node.rb#4864 sig { returns(Prism::ConstantPathNode) } def target; end @@ -6840,13 +7169,13 @@ class Prism::ConstantPathAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4833 + # source://prism//lib/prism/node.rb#4900 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#4800 + # source://prism//lib/prism/node.rb#4874 sig { returns(Prism::Node) } def value; end @@ -6858,7 +7187,7 @@ class Prism::ConstantPathAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4843 + # source://prism//lib/prism/node.rb#4910 def type; end end end @@ -6868,89 +7197,104 @@ end # Foo::Bar # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#4852 +# source://prism//lib/prism/node.rb#4928 class Prism::ConstantPathNode < ::Prism::Node - # def initialize: (Prism::node? parent, ConstantReadNode | MissingNode child, Location delimiter_loc, Location location) -> void + # def initialize: (Prism::node? parent, Symbol? name, Location delimiter_loc, Location name_loc, Location location) -> void # # @return [ConstantPathNode] a new instance of ConstantPathNode # - # source://prism//lib/prism/node.rb#4854 + # source://prism//lib/prism/node.rb#4930 sig do params( source: Prism::Source, parent: T.nilable(Prism::Node), - child: T.any(Prism::ConstantReadNode, Prism::MissingNode), + name: T.nilable(Symbol), delimiter_loc: Prism::Location, + name_loc: Prism::Location, location: Prism::Location ).void end - def initialize(source, parent, child, delimiter_loc, location); end + def initialize(source, parent, name, delimiter_loc, name_loc, location); end + + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#5056 + def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4864 + # source://prism//lib/prism/node.rb#4941 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end - # attr_reader child: ConstantReadNode | MissingNode + # Previously, we had a child node on this class that contained either a + # constant read or a missing node. To not cause a breaking change, we + # continue to supply that API. # - # source://prism//lib/prism/node.rb#4903 - sig { returns(T.any(Prism::ConstantReadNode, Prism::MissingNode)) } + # source://prism//lib/prism/node_ext.rb#181 def child; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4869 + # source://prism//lib/prism/node.rb#4946 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4882 + # source://prism//lib/prism/node.rb#4958 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4874 + # source://prism//lib/prism/node.rb#4951 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end - # def copy: (?parent: Prism::node?, ?child: ConstantReadNode | MissingNode, ?delimiter_loc: Location, ?location: Location) -> ConstantPathNode + # def copy: (?parent: Prism::node?, ?name: Symbol?, ?delimiter_loc: Location, ?name_loc: Location, ?location: Location) -> ConstantPathNode # - # source://prism//lib/prism/node.rb#4887 + # source://prism//lib/prism/node.rb#4963 sig do params( parent: T.nilable(Prism::Node), - child: T.any(Prism::ConstantReadNode, Prism::MissingNode), + name: T.nilable(Symbol), delimiter_loc: Prism::Location, + name_loc: Prism::Location, location: Prism::Location ).returns(Prism::ConstantPathNode) end - def copy(parent: T.unsafe(nil), child: T.unsafe(nil), delimiter_loc: T.unsafe(nil), location: T.unsafe(nil)); end + def copy(parent: T.unsafe(nil), name: T.unsafe(nil), delimiter_loc: T.unsafe(nil), name_loc: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4869 + # source://prism//lib/prism/node.rb#4946 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (Array[Symbol] keys) -> { parent: Prism::node?, child: ConstantReadNode | MissingNode, delimiter_loc: Location, location: Location } + # def deconstruct_keys: (Array[Symbol] keys) -> { parent: Prism::node?, name: Symbol?, delimiter_loc: Location, name_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#4895 + # source://prism//lib/prism/node.rb#4971 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # def delimiter: () -> String # - # source://prism//lib/prism/node.rb#4914 + # source://prism//lib/prism/node.rb#5017 sig { returns(String) } def delimiter; end - # attr_reader delimiter_loc: Location + # The location of the `::` delimiter. + # + # ::Foo + # ^^ # - # source://prism//lib/prism/node.rb#4906 + # One::Two + # ^^ + # + # source://prism//lib/prism/node.rb#4997 sig { returns(Prism::Location) } def delimiter_loc; end @@ -6959,26 +7303,53 @@ class Prism::ConstantPathNode < ::Prism::Node # Returns the full name of this constant path. For example: "Foo::Bar" # - # source://prism//lib/prism/node_ext.rb#162 + # source://prism//lib/prism/node_ext.rb#174 sig { returns(String) } def full_name; end # Returns the list of parts for the full name of this constant path. # For example: [:Foo, :Bar] # - # source://prism//lib/prism/node_ext.rb#141 + # source://prism//lib/prism/node_ext.rb#152 sig { returns(T::Array[Symbol]) } def full_name_parts; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#4919 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#5022 + sig { override.returns(String) } + def inspect; end - # attr_reader parent: Prism::node? + # The name of the constant being accessed. This could be `nil` in the event of a syntax error. # - # source://prism//lib/prism/node.rb#4900 + # source://prism//lib/prism/node.rb#4988 + sig { returns(T.nilable(Symbol)) } + def name; end + + # The location of the name of the constant. + # + # ::Foo + # ^^^ + # + # One::Two + # ^^^ + # + # source://prism//lib/prism/node.rb#5010 + sig { returns(Prism::Location) } + def name_loc; end + + # The left-hand node of the path, if present. It can be `nil` or any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression). It will be `nil` when the constant lookup is at the root of the module tree. + # + # Foo::Bar + # ^^^ + # + # self::Test + # ^^^^ + # + # a.b::C + # ^^^ + # + # source://prism//lib/prism/node.rb#4985 sig { returns(T.nilable(Prism::Node)) } def parent; end @@ -6997,7 +7368,7 @@ class Prism::ConstantPathNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4947 + # source://prism//lib/prism/node.rb#5040 sig { override.returns(Symbol) } def type; end @@ -7009,7 +7380,7 @@ class Prism::ConstantPathNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4957 + # source://prism//lib/prism/node.rb#5050 def type; end end end @@ -7021,14 +7392,14 @@ end # var::Bar::Baz -> raises because the first part of the constant path is a # local variable # -# source://prism//lib/prism/node_ext.rb#132 +# source://prism//lib/prism/node_ext.rb#143 class Prism::ConstantPathNode::DynamicPartsInConstantPathError < ::StandardError; end # An error class raised when missing nodes are found while computing a # constant path's full name. For example: # Foo:: -> raises because the constant path is missing the last part # -# source://prism//lib/prism/node_ext.rb#137 +# source://prism//lib/prism/node_ext.rb#148 class Prism::ConstantPathNode::MissingNodesInConstantPathError < ::StandardError; end # Represents assigning to a constant path using an operator that isn't `=`. @@ -7036,100 +7407,118 @@ class Prism::ConstantPathNode::MissingNodesInConstantPathError < ::StandardError # Parent::Child += value # ^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4966 +# source://prism//lib/prism/node.rb#5069 class Prism::ConstantPathOperatorWriteNode < ::Prism::Node - # def initialize: (ConstantPathNode target, Location operator_loc, Prism::node value, Symbol operator, Location location) -> void + # def initialize: (ConstantPathNode target, Location binary_operator_loc, Prism::node value, Symbol binary_operator, Location location) -> void # # @return [ConstantPathOperatorWriteNode] a new instance of ConstantPathOperatorWriteNode # - # source://prism//lib/prism/node.rb#4968 + # source://prism//lib/prism/node.rb#5071 sig do params( source: Prism::Source, target: Prism::ConstantPathNode, - operator_loc: Prism::Location, + binary_operator_loc: Prism::Location, value: Prism::Node, - operator: Symbol, + binary_operator: Symbol, location: Prism::Location ).void end - def initialize(source, target, operator_loc, value, operator, location); end + def initialize(source, target, binary_operator_loc, value, binary_operator, location); end + + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#5165 + def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4979 + # source://prism//lib/prism/node.rb#5082 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end + # attr_reader binary_operator: Symbol + # + # source://prism//lib/prism/node.rb#5128 + sig { returns(Symbol) } + def binary_operator; end + + # attr_reader binary_operator_loc: Location + # + # source://prism//lib/prism/node.rb#5118 + sig { returns(Prism::Location) } + def binary_operator_loc; end + # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4984 + # source://prism//lib/prism/node.rb#5087 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#4994 + # source://prism//lib/prism/node.rb#5097 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#4989 + # source://prism//lib/prism/node.rb#5092 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end - # def copy: (?target: ConstantPathNode, ?operator_loc: Location, ?value: Prism::node, ?operator: Symbol, ?location: Location) -> ConstantPathOperatorWriteNode + # def copy: (?target: ConstantPathNode, ?binary_operator_loc: Location, ?value: Prism::node, ?binary_operator: Symbol, ?location: Location) -> ConstantPathOperatorWriteNode # - # source://prism//lib/prism/node.rb#4999 + # source://prism//lib/prism/node.rb#5102 sig do params( target: Prism::ConstantPathNode, - operator_loc: Prism::Location, + binary_operator_loc: Prism::Location, value: Prism::Node, - operator: Symbol, + binary_operator: Symbol, location: Prism::Location ).returns(Prism::ConstantPathOperatorWriteNode) end - def copy(target: T.unsafe(nil), operator_loc: T.unsafe(nil), value: T.unsafe(nil), operator: T.unsafe(nil), location: T.unsafe(nil)); end + def copy(target: T.unsafe(nil), binary_operator_loc: T.unsafe(nil), value: T.unsafe(nil), binary_operator: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4984 + # source://prism//lib/prism/node.rb#5087 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (Array[Symbol] keys) -> { target: ConstantPathNode, operator_loc: Location, value: Prism::node, operator: Symbol, location: Location } + # def deconstruct_keys: (Array[Symbol] keys) -> { target: ConstantPathNode, binary_operator_loc: Location, value: Prism::node, binary_operator: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#5007 + # source://prism//lib/prism/node.rb#5110 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#5029 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#5131 + sig { override.returns(String) } + def inspect; end - # attr_reader operator: Symbol + # Returns the binary operator used to modify the receiver. This method is + # deprecated in favor of #binary_operator. # - # source://prism//lib/prism/node.rb#5025 - sig { returns(Symbol) } + # source://prism//lib/prism/node_ext.rb#355 def operator; end - # attr_reader operator_loc: Location + # Returns the location of the binary operator used to modify the receiver. + # This method is deprecated in favor of #binary_operator_loc. # - # source://prism//lib/prism/node.rb#5015 - sig { returns(Prism::Location) } + # source://prism//lib/prism/node_ext.rb#362 def operator_loc; end # attr_reader target: ConstantPathNode # - # source://prism//lib/prism/node.rb#5012 + # source://prism//lib/prism/node.rb#5115 sig { returns(Prism::ConstantPathNode) } def target; end @@ -7148,13 +7537,13 @@ class Prism::ConstantPathOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5054 + # source://prism//lib/prism/node.rb#5149 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#5022 + # source://prism//lib/prism/node.rb#5125 sig { returns(Prism::Node) } def value; end @@ -7166,7 +7555,7 @@ class Prism::ConstantPathOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5064 + # source://prism//lib/prism/node.rb#5159 def type; end end end @@ -7176,13 +7565,13 @@ end # Parent::Child ||= value # ^^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#5073 +# source://prism//lib/prism/node.rb#5178 class Prism::ConstantPathOrWriteNode < ::Prism::Node # def initialize: (ConstantPathNode target, Location operator_loc, Prism::node value, Location location) -> void # # @return [ConstantPathOrWriteNode] a new instance of ConstantPathOrWriteNode # - # source://prism//lib/prism/node.rb#5075 + # source://prism//lib/prism/node.rb#5180 sig do params( source: Prism::Source, @@ -7194,33 +7583,39 @@ class Prism::ConstantPathOrWriteNode < ::Prism::Node end def initialize(source, target, operator_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#5275 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5085 + # source://prism//lib/prism/node.rb#5190 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5090 + # source://prism//lib/prism/node.rb#5195 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#5100 + # source://prism//lib/prism/node.rb#5205 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#5095 + # source://prism//lib/prism/node.rb#5200 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?target: ConstantPathNode, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> ConstantPathOrWriteNode # - # source://prism//lib/prism/node.rb#5105 + # source://prism//lib/prism/node.rb#5210 sig do params( target: Prism::ConstantPathNode, @@ -7234,40 +7629,40 @@ class Prism::ConstantPathOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5090 + # source://prism//lib/prism/node.rb#5195 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { target: ConstantPathNode, operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#5113 + # source://prism//lib/prism/node.rb#5218 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#5137 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#5241 + sig { override.returns(String) } + def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#5132 + # source://prism//lib/prism/node.rb#5236 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#5121 + # source://prism//lib/prism/node.rb#5226 sig { returns(Prism::Location) } def operator_loc; end # attr_reader target: ConstantPathNode # - # source://prism//lib/prism/node.rb#5118 + # source://prism//lib/prism/node.rb#5223 sig { returns(Prism::ConstantPathNode) } def target; end @@ -7286,13 +7681,13 @@ class Prism::ConstantPathOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5161 + # source://prism//lib/prism/node.rb#5259 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#5128 + # source://prism//lib/prism/node.rb#5233 sig { returns(Prism::Node) } def value; end @@ -7304,7 +7699,7 @@ class Prism::ConstantPathOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5171 + # source://prism//lib/prism/node.rb#5269 def type; end end end @@ -7314,89 +7709,98 @@ end # Foo::Foo, Bar::Bar = baz # ^^^^^^^^ ^^^^^^^^ # -# source://prism//lib/prism/node.rb#5180 +# source://prism//lib/prism/node.rb#5287 class Prism::ConstantPathTargetNode < ::Prism::Node - # def initialize: (Prism::node? parent, ConstantReadNode | MissingNode child, Location delimiter_loc, Location location) -> void + # def initialize: (Prism::node? parent, Symbol? name, Location delimiter_loc, Location name_loc, Location location) -> void # # @return [ConstantPathTargetNode] a new instance of ConstantPathTargetNode # - # source://prism//lib/prism/node.rb#5182 + # source://prism//lib/prism/node.rb#5289 sig do params( source: Prism::Source, parent: T.nilable(Prism::Node), - child: T.any(Prism::ConstantReadNode, Prism::MissingNode), + name: T.nilable(Symbol), delimiter_loc: Prism::Location, + name_loc: Prism::Location, location: Prism::Location ).void end - def initialize(source, parent, child, delimiter_loc, location); end + def initialize(source, parent, name, delimiter_loc, name_loc, location); end + + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#5394 + def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5192 + # source://prism//lib/prism/node.rb#5300 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end - # attr_reader child: ConstantReadNode | MissingNode + # Previously, we had a child node on this class that contained either a + # constant read or a missing node. To not cause a breaking change, we + # continue to supply that API. # - # source://prism//lib/prism/node.rb#5231 - sig { returns(T.any(Prism::ConstantReadNode, Prism::MissingNode)) } + # source://prism//lib/prism/node_ext.rb#217 def child; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5197 + # source://prism//lib/prism/node.rb#5305 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#5210 + # source://prism//lib/prism/node.rb#5317 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#5202 + # source://prism//lib/prism/node.rb#5310 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end - # def copy: (?parent: Prism::node?, ?child: ConstantReadNode | MissingNode, ?delimiter_loc: Location, ?location: Location) -> ConstantPathTargetNode + # def copy: (?parent: Prism::node?, ?name: Symbol?, ?delimiter_loc: Location, ?name_loc: Location, ?location: Location) -> ConstantPathTargetNode # - # source://prism//lib/prism/node.rb#5215 + # source://prism//lib/prism/node.rb#5322 sig do params( parent: T.nilable(Prism::Node), - child: T.any(Prism::ConstantReadNode, Prism::MissingNode), + name: T.nilable(Symbol), delimiter_loc: Prism::Location, + name_loc: Prism::Location, location: Prism::Location ).returns(Prism::ConstantPathTargetNode) end - def copy(parent: T.unsafe(nil), child: T.unsafe(nil), delimiter_loc: T.unsafe(nil), location: T.unsafe(nil)); end + def copy(parent: T.unsafe(nil), name: T.unsafe(nil), delimiter_loc: T.unsafe(nil), name_loc: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5197 + # source://prism//lib/prism/node.rb#5305 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (Array[Symbol] keys) -> { parent: Prism::node?, child: ConstantReadNode | MissingNode, delimiter_loc: Location, location: Location } + # def deconstruct_keys: (Array[Symbol] keys) -> { parent: Prism::node?, name: Symbol?, delimiter_loc: Location, name_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#5223 + # source://prism//lib/prism/node.rb#5330 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # def delimiter: () -> String # - # source://prism//lib/prism/node.rb#5242 + # source://prism//lib/prism/node.rb#5355 sig { returns(String) } def delimiter; end # attr_reader delimiter_loc: Location # - # source://prism//lib/prism/node.rb#5234 + # source://prism//lib/prism/node.rb#5341 sig { returns(Prism::Location) } def delimiter_loc; end @@ -7405,26 +7809,38 @@ class Prism::ConstantPathTargetNode < ::Prism::Node # Returns the full name of this constant path. For example: "Foo::Bar" # - # source://prism//lib/prism/node_ext.rb#190 + # source://prism//lib/prism/node_ext.rb#210 sig { returns(String) } def full_name; end # Returns the list of parts for the full name of this constant path. # For example: [:Foo, :Bar] # - # source://prism//lib/prism/node_ext.rb#170 + # source://prism//lib/prism/node_ext.rb#190 sig { returns(T::Array[Symbol]) } def full_name_parts; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String + # + # source://prism//lib/prism/node.rb#5360 + sig { override.returns(String) } + def inspect; end + + # attr_reader name: Symbol? + # + # source://prism//lib/prism/node.rb#5338 + sig { returns(T.nilable(Symbol)) } + def name; end + + # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#5247 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#5348 + sig { returns(Prism::Location) } + def name_loc; end # attr_reader parent: Prism::node? # - # source://prism//lib/prism/node.rb#5228 + # source://prism//lib/prism/node.rb#5335 sig { returns(T.nilable(Prism::Node)) } def parent; end @@ -7443,7 +7859,7 @@ class Prism::ConstantPathTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5275 + # source://prism//lib/prism/node.rb#5378 sig { override.returns(Symbol) } def type; end @@ -7455,7 +7871,7 @@ class Prism::ConstantPathTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5285 + # source://prism//lib/prism/node.rb#5388 def type; end end end @@ -7471,13 +7887,13 @@ end # ::Foo::Bar = 1 # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#5300 +# source://prism//lib/prism/node.rb#5413 class Prism::ConstantPathWriteNode < ::Prism::Node # def initialize: (ConstantPathNode target, Location operator_loc, Prism::node value, Location location) -> void # # @return [ConstantPathWriteNode] a new instance of ConstantPathWriteNode # - # source://prism//lib/prism/node.rb#5302 + # source://prism//lib/prism/node.rb#5415 sig do params( source: Prism::Source, @@ -7489,33 +7905,39 @@ class Prism::ConstantPathWriteNode < ::Prism::Node end def initialize(source, target, operator_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#5522 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5312 + # source://prism//lib/prism/node.rb#5425 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5317 + # source://prism//lib/prism/node.rb#5430 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#5327 + # source://prism//lib/prism/node.rb#5440 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#5322 + # source://prism//lib/prism/node.rb#5435 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?target: ConstantPathNode, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> ConstantPathWriteNode # - # source://prism//lib/prism/node.rb#5332 + # source://prism//lib/prism/node.rb#5445 sig do params( target: Prism::ConstantPathNode, @@ -7529,40 +7951,49 @@ class Prism::ConstantPathWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5317 + # source://prism//lib/prism/node.rb#5430 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { target: ConstantPathNode, operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#5340 + # source://prism//lib/prism/node.rb#5453 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#5364 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#5488 + sig { override.returns(String) } + def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#5359 + # source://prism//lib/prism/node.rb#5483 sig { returns(String) } def operator; end - # attr_reader operator_loc: Location + # The location of the `=` operator. # - # source://prism//lib/prism/node.rb#5348 + # ::ABC = 123 + # ^ + # + # source://prism//lib/prism/node.rb#5470 sig { returns(Prism::Location) } def operator_loc; end - # attr_reader target: ConstantPathNode + # A node representing the constant path being written to. + # + # Foo::Bar = 1 + # ^^^^^^^^ # - # source://prism//lib/prism/node.rb#5345 + # ::Foo = :abc + # ^^^^^ + # + # source://prism//lib/prism/node.rb#5464 sig { returns(Prism::ConstantPathNode) } def target; end @@ -7581,13 +8012,16 @@ class Prism::ConstantPathWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5388 + # source://prism//lib/prism/node.rb#5506 sig { override.returns(Symbol) } def type; end - # attr_reader value: Prism::node + # The value to write to the constant path. It 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#5355 + # FOO::BAR = :abc + # ^^^^ + # + # source://prism//lib/prism/node.rb#5480 sig { returns(Prism::Node) } def value; end @@ -7599,7 +8033,7 @@ class Prism::ConstantPathWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5398 + # source://prism//lib/prism/node.rb#5516 def type; end end end @@ -7609,56 +8043,62 @@ end # Foo # ^^^ # -# source://prism//lib/prism/node.rb#5407 +# source://prism//lib/prism/node.rb#5534 class Prism::ConstantReadNode < ::Prism::Node # def initialize: (Symbol name, Location location) -> void # # @return [ConstantReadNode] a new instance of ConstantReadNode # - # source://prism//lib/prism/node.rb#5409 + # source://prism//lib/prism/node.rb#5536 sig { params(source: Prism::Source, name: Symbol, location: Prism::Location).void } def initialize(source, name, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#5618 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5417 + # source://prism//lib/prism/node.rb#5544 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5422 + # source://prism//lib/prism/node.rb#5549 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#5432 + # source://prism//lib/prism/node.rb#5559 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#5427 + # source://prism//lib/prism/node.rb#5554 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?location: Location) -> ConstantReadNode # - # source://prism//lib/prism/node.rb#5437 + # source://prism//lib/prism/node.rb#5564 sig { params(name: Symbol, location: Prism::Location).returns(Prism::ConstantReadNode) } def copy(name: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5422 + # source://prism//lib/prism/node.rb#5549 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#5445 + # source://prism//lib/prism/node.rb#5572 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -7667,22 +8107,22 @@ class Prism::ConstantReadNode < ::Prism::Node # Returns the full name of this constant. For example: "Foo" # - # source://prism//lib/prism/node_ext.rb#107 + # source://prism//lib/prism/node_ext.rb#118 sig { returns(String) } def full_name; end # Returns the list of parts for the full name of this constant. # For example: [:Foo] # - # source://prism//lib/prism/node_ext.rb#102 + # source://prism//lib/prism/node_ext.rb#113 sig { returns(T::Array[Symbol]) } def full_name_parts; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#5458 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#5584 + sig { override.returns(String) } + def inspect; end # The name of the [constant](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#constants). # @@ -7690,7 +8130,7 @@ class Prism::ConstantReadNode < ::Prism::Node # # SOME_CONSTANT # name `:SOME_CONSTANT` # - # source://prism//lib/prism/node.rb#5454 + # source://prism//lib/prism/node.rb#5581 sig { returns(Symbol) } def name; end @@ -7709,7 +8149,7 @@ class Prism::ConstantReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5478 + # source://prism//lib/prism/node.rb#5602 sig { override.returns(Symbol) } def type; end @@ -7721,7 +8161,7 @@ class Prism::ConstantReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5488 + # source://prism//lib/prism/node.rb#5612 def type; end end end @@ -7731,56 +8171,62 @@ end # Foo, Bar = baz # ^^^ ^^^ # -# source://prism//lib/prism/node.rb#5497 +# source://prism//lib/prism/node.rb#5628 class Prism::ConstantTargetNode < ::Prism::Node # def initialize: (Symbol name, Location location) -> void # # @return [ConstantTargetNode] a new instance of ConstantTargetNode # - # source://prism//lib/prism/node.rb#5499 + # source://prism//lib/prism/node.rb#5630 sig { params(source: Prism::Source, name: Symbol, location: Prism::Location).void } def initialize(source, name, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#5708 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5507 + # source://prism//lib/prism/node.rb#5638 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5512 + # source://prism//lib/prism/node.rb#5643 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#5522 + # source://prism//lib/prism/node.rb#5653 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#5517 + # source://prism//lib/prism/node.rb#5648 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?location: Location) -> ConstantTargetNode # - # source://prism//lib/prism/node.rb#5527 + # source://prism//lib/prism/node.rb#5658 sig { params(name: Symbol, location: Prism::Location).returns(Prism::ConstantTargetNode) } def copy(name: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5512 + # source://prism//lib/prism/node.rb#5643 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#5535 + # source://prism//lib/prism/node.rb#5666 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -7789,26 +8235,26 @@ class Prism::ConstantTargetNode < ::Prism::Node # Returns the full name of this constant. For example: "Foo" # - # source://prism//lib/prism/node_ext.rb#203 + # source://prism//lib/prism/node_ext.rb#231 sig { returns(String) } def full_name; end # Returns the list of parts for the full name of this constant. # For example: [:Foo] # - # source://prism//lib/prism/node_ext.rb#198 + # source://prism//lib/prism/node_ext.rb#226 sig { returns(T::Array[Symbol]) } def full_name_parts; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#5544 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#5674 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#5540 + # source://prism//lib/prism/node.rb#5671 sig { returns(Symbol) } def name; end @@ -7827,7 +8273,7 @@ class Prism::ConstantTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5564 + # source://prism//lib/prism/node.rb#5692 sig { override.returns(Symbol) } def type; end @@ -7839,7 +8285,7 @@ class Prism::ConstantTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5574 + # source://prism//lib/prism/node.rb#5702 def type; end end end @@ -7849,13 +8295,13 @@ end # Foo = 1 # ^^^^^^^ # -# source://prism//lib/prism/node.rb#5583 +# source://prism//lib/prism/node.rb#5718 class Prism::ConstantWriteNode < ::Prism::Node # def initialize: (Symbol name, Location name_loc, Prism::node value, Location operator_loc, Location location) -> void # # @return [ConstantWriteNode] a new instance of ConstantWriteNode # - # source://prism//lib/prism/node.rb#5585 + # source://prism//lib/prism/node.rb#5720 sig do params( source: Prism::Source, @@ -7868,33 +8314,39 @@ class Prism::ConstantWriteNode < ::Prism::Node end def initialize(source, name, name_loc, value, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#5839 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5596 + # source://prism//lib/prism/node.rb#5731 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5601 + # source://prism//lib/prism/node.rb#5736 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#5611 + # source://prism//lib/prism/node.rb#5746 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#5606 + # source://prism//lib/prism/node.rb#5741 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?name_loc: Location, ?value: Prism::node, ?operator_loc: Location, ?location: Location) -> ConstantWriteNode # - # source://prism//lib/prism/node.rb#5616 + # source://prism//lib/prism/node.rb#5751 sig do params( name: Symbol, @@ -7909,13 +8361,13 @@ class Prism::ConstantWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5601 + # source://prism//lib/prism/node.rb#5736 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, value: Prism::node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#5624 + # source://prism//lib/prism/node.rb#5759 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -7924,44 +8376,54 @@ class Prism::ConstantWriteNode < ::Prism::Node # Returns the full name of this constant. For example: "Foo" # - # source://prism//lib/prism/node_ext.rb#120 + # source://prism//lib/prism/node_ext.rb#131 sig { returns(String) } def full_name; end # Returns the list of parts for the full name of this constant. # For example: [:Foo] # - # source://prism//lib/prism/node_ext.rb#115 + # source://prism//lib/prism/node_ext.rb#126 sig { returns(T::Array[Symbol]) } def full_name_parts; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#5655 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#5805 + sig { override.returns(String) } + def inspect; end - # attr_reader name: Symbol + # The name of the [constant](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#constants). + # + # Foo = :bar # name `:Foo` # - # source://prism//lib/prism/node.rb#5629 + # XYZ = 1 # name `:XYZ` + # + # source://prism//lib/prism/node.rb#5768 sig { returns(Symbol) } def name; end - # attr_reader name_loc: Location + # The location of the constant name. + # + # FOO = 1 + # ^^^ # - # source://prism//lib/prism/node.rb#5632 + # source://prism//lib/prism/node.rb#5774 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#5650 + # source://prism//lib/prism/node.rb#5800 sig { returns(String) } def operator; end - # attr_reader operator_loc: Location + # The location of the `=` operator. + # + # FOO = :bar + # ^ # - # source://prism//lib/prism/node.rb#5642 + # source://prism//lib/prism/node.rb#5793 sig { returns(Prism::Location) } def operator_loc; end @@ -7980,13 +8442,19 @@ class Prism::ConstantWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5679 + # source://prism//lib/prism/node.rb#5823 sig { override.returns(Symbol) } def type; end - # attr_reader value: Prism::node + # The value to write to the constant. It can be any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression). + # + # FOO = :bar + # ^^^^ + # + # MyClass = Class.new + # ^^^^^^^^^ # - # source://prism//lib/prism/node.rb#5639 + # source://prism//lib/prism/node.rb#5787 sig { returns(Prism::Node) } def value; end @@ -7998,7 +8466,7 @@ class Prism::ConstantWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5689 + # source://prism//lib/prism/node.rb#5833 def type; end end end @@ -8006,7 +8474,7 @@ end # The DSL module provides a set of methods that can be used to create prism # nodes in a more concise manner. For example, instead of writing: # -# source = Prism::Source.new("[1]") +# source = Prism::Source.for("[1]") # # Prism::ArrayNode.new( # [ @@ -8024,7 +8492,7 @@ end # # you could instead write: # -# source = Prism::Source.new("[1]") +# source = Prism::Source.for("[1]") # # ArrayNode( # IntegerNode(Prism::IntegerBaseFlags::DECIMAL, 1, Location(source, 1, 1)), source), @@ -8138,7 +8606,7 @@ module Prism::DSL # Create a new CallOperatorWriteNode node # # source://prism//lib/prism/dsl.rb#146 - def CallOperatorWriteNode(flags, receiver, call_operator_loc, message_loc, read_name, write_name, operator, operator_loc, value, source = T.unsafe(nil), location = T.unsafe(nil)); end + def CallOperatorWriteNode(flags, receiver, call_operator_loc, message_loc, read_name, write_name, binary_operator, binary_operator_loc, value, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new CallOrWriteNode node # @@ -8178,7 +8646,7 @@ module Prism::DSL # Create a new ClassVariableOperatorWriteNode node # # source://prism//lib/prism/dsl.rb#186 - def ClassVariableOperatorWriteNode(name, name_loc, operator_loc, value, operator, source = T.unsafe(nil), location = T.unsafe(nil)); end + def ClassVariableOperatorWriteNode(name, name_loc, binary_operator_loc, value, binary_operator, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new ClassVariableOrWriteNode node # @@ -8208,7 +8676,7 @@ module Prism::DSL # Create a new ConstantOperatorWriteNode node # # source://prism//lib/prism/dsl.rb#216 - def ConstantOperatorWriteNode(name, name_loc, operator_loc, value, operator, source = T.unsafe(nil), location = T.unsafe(nil)); end + def ConstantOperatorWriteNode(name, name_loc, binary_operator_loc, value, binary_operator, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new ConstantOrWriteNode node # @@ -8223,12 +8691,12 @@ module Prism::DSL # Create a new ConstantPathNode node # # source://prism//lib/prism/dsl.rb#231 - def ConstantPathNode(parent, child, delimiter_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end + def ConstantPathNode(parent, name, delimiter_loc, name_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new ConstantPathOperatorWriteNode node # # source://prism//lib/prism/dsl.rb#236 - def ConstantPathOperatorWriteNode(target, operator_loc, value, operator, source = T.unsafe(nil), location = T.unsafe(nil)); end + def ConstantPathOperatorWriteNode(target, binary_operator_loc, value, binary_operator, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new ConstantPathOrWriteNode node # @@ -8238,7 +8706,7 @@ module Prism::DSL # Create a new ConstantPathTargetNode node # # source://prism//lib/prism/dsl.rb#246 - def ConstantPathTargetNode(parent, child, delimiter_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end + def ConstantPathTargetNode(parent, name, delimiter_loc, name_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new ConstantPathWriteNode node # @@ -8338,7 +8806,7 @@ module Prism::DSL # Create a new GlobalVariableOperatorWriteNode node # # source://prism//lib/prism/dsl.rb#346 - def GlobalVariableOperatorWriteNode(name, name_loc, operator_loc, value, operator, source = T.unsafe(nil), location = T.unsafe(nil)); end + def GlobalVariableOperatorWriteNode(name, name_loc, binary_operator_loc, value, binary_operator, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new GlobalVariableOrWriteNode node # @@ -8403,7 +8871,7 @@ module Prism::DSL # Create a new IndexOperatorWriteNode node # # source://prism//lib/prism/dsl.rb#411 - def IndexOperatorWriteNode(flags, receiver, call_operator_loc, opening_loc, arguments, closing_loc, block, operator, operator_loc, value, source = T.unsafe(nil), location = T.unsafe(nil)); end + def IndexOperatorWriteNode(flags, receiver, call_operator_loc, opening_loc, arguments, closing_loc, block, binary_operator, binary_operator_loc, value, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new IndexOrWriteNode node # @@ -8423,7 +8891,7 @@ module Prism::DSL # Create a new InstanceVariableOperatorWriteNode node # # source://prism//lib/prism/dsl.rb#431 - def InstanceVariableOperatorWriteNode(name, name_loc, operator_loc, value, operator, source = T.unsafe(nil), location = T.unsafe(nil)); end + def InstanceVariableOperatorWriteNode(name, name_loc, binary_operator_loc, value, binary_operator, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new InstanceVariableOrWriteNode node # @@ -8503,7 +8971,7 @@ module Prism::DSL # Create a new LocalVariableOperatorWriteNode node # # source://prism//lib/prism/dsl.rb#511 - def LocalVariableOperatorWriteNode(name_loc, operator_loc, value, name, operator, depth, source = T.unsafe(nil), location = T.unsafe(nil)); end + def LocalVariableOperatorWriteNode(name_loc, binary_operator_loc, value, name, binary_operator, depth, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new LocalVariableOrWriteNode node # @@ -8698,7 +9166,7 @@ module Prism::DSL # Create a new ReturnNode node # # source://prism//lib/prism/dsl.rb#701 - def ReturnNode(keyword_loc, arguments, source = T.unsafe(nil), location = T.unsafe(nil)); end + def ReturnNode(flags, keyword_loc, arguments, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new SelfNode node # @@ -8944,13 +9412,13 @@ end # end # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#5699 +# source://prism//lib/prism/node.rb#5853 class Prism::DefNode < ::Prism::Node # def initialize: (Symbol name, Location name_loc, Prism::node? receiver, ParametersNode? parameters, Prism::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#5701 + # source://prism//lib/prism/node.rb#5855 sig do params( source: Prism::Source, @@ -8971,39 +9439,45 @@ class Prism::DefNode < ::Prism::Node end def initialize(source, name, name_loc, receiver, parameters, body, locals, def_keyword_loc, operator_loc, lparen_loc, rparen_loc, equal_loc, end_keyword_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#6069 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5720 + # source://prism//lib/prism/node.rb#5874 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader body: Prism::node? # - # source://prism//lib/prism/node.rb#5773 + # source://prism//lib/prism/node.rb#5927 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5725 + # source://prism//lib/prism/node.rb#5879 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#5739 + # source://prism//lib/prism/node.rb#5893 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#5730 + # source://prism//lib/prism/node.rb#5884 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?name_loc: Location, ?receiver: Prism::node?, ?parameters: ParametersNode?, ?body: Prism::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) -> DefNode # - # source://prism//lib/prism/node.rb#5744 + # source://prism//lib/prism/node.rb#5898 sig do params( name: Symbol, @@ -9026,124 +9500,124 @@ class Prism::DefNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5725 + # source://prism//lib/prism/node.rb#5879 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, receiver: Prism::node?, parameters: ParametersNode?, body: Prism::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#5752 + # source://prism//lib/prism/node.rb#5906 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # def def_keyword: () -> String # - # source://prism//lib/prism/node.rb#5852 + # source://prism//lib/prism/node.rb#6005 sig { returns(String) } def def_keyword; end # attr_reader def_keyword_loc: Location # - # source://prism//lib/prism/node.rb#5779 + # source://prism//lib/prism/node.rb#5933 sig { returns(Prism::Location) } def def_keyword_loc; end # def end_keyword: () -> String? # - # source://prism//lib/prism/node.rb#5877 + # source://prism//lib/prism/node.rb#6030 sig { returns(T.nilable(String)) } def end_keyword; end # attr_reader end_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#5838 + # source://prism//lib/prism/node.rb#5992 sig { returns(T.nilable(Prism::Location)) } def end_keyword_loc; end # def equal: () -> String? # - # source://prism//lib/prism/node.rb#5872 + # source://prism//lib/prism/node.rb#6025 sig { returns(T.nilable(String)) } def equal; end # attr_reader equal_loc: Location? # - # source://prism//lib/prism/node.rb#5825 + # source://prism//lib/prism/node.rb#5979 sig { returns(T.nilable(Prism::Location)) } def equal_loc; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#5882 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#6035 + sig { override.returns(String) } + def inspect; end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#5776 + # source://prism//lib/prism/node.rb#5930 sig { returns(T::Array[Symbol]) } def locals; end # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#5862 + # source://prism//lib/prism/node.rb#6015 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#5799 + # source://prism//lib/prism/node.rb#5953 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#5757 + # source://prism//lib/prism/node.rb#5911 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#5760 + # source://prism//lib/prism/node.rb#5914 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String? # - # source://prism//lib/prism/node.rb#5857 + # source://prism//lib/prism/node.rb#6010 sig { returns(T.nilable(String)) } def operator; end # attr_reader operator_loc: Location? # - # source://prism//lib/prism/node.rb#5786 + # source://prism//lib/prism/node.rb#5940 sig { returns(T.nilable(Prism::Location)) } def operator_loc; end # attr_reader parameters: ParametersNode? # - # source://prism//lib/prism/node.rb#5770 + # source://prism//lib/prism/node.rb#5924 sig { returns(T.nilable(Prism::ParametersNode)) } def parameters; end # attr_reader receiver: Prism::node? # - # source://prism//lib/prism/node.rb#5767 + # source://prism//lib/prism/node.rb#5921 sig { returns(T.nilable(Prism::Node)) } def receiver; end # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#5867 + # source://prism//lib/prism/node.rb#6020 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#5812 + # source://prism//lib/prism/node.rb#5966 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -9162,7 +9636,7 @@ class Prism::DefNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5928 + # source://prism//lib/prism/node.rb#6053 sig { override.returns(Symbol) } def type; end @@ -9174,7 +9648,7 @@ class Prism::DefNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5938 + # source://prism//lib/prism/node.rb#6063 def type; end end end @@ -9184,13 +9658,13 @@ end # defined?(a) # ^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#5947 +# source://prism//lib/prism/node.rb#6091 class Prism::DefinedNode < ::Prism::Node # def initialize: (Location? lparen_loc, Prism::node value, Location? rparen_loc, Location keyword_loc, Location location) -> void # # @return [DefinedNode] a new instance of DefinedNode # - # source://prism//lib/prism/node.rb#5949 + # source://prism//lib/prism/node.rb#6093 sig do params( source: Prism::Source, @@ -9203,33 +9677,39 @@ class Prism::DefinedNode < ::Prism::Node end def initialize(source, lparen_loc, value, rparen_loc, keyword_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#6222 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5960 + # source://prism//lib/prism/node.rb#6104 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5965 + # source://prism//lib/prism/node.rb#6109 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#5975 + # source://prism//lib/prism/node.rb#6119 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#5970 + # source://prism//lib/prism/node.rb#6114 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?lparen_loc: Location?, ?value: Prism::node, ?rparen_loc: Location?, ?keyword_loc: Location, ?location: Location) -> DefinedNode # - # source://prism//lib/prism/node.rb#5980 + # source://prism//lib/prism/node.rb#6124 sig do params( lparen_loc: T.nilable(Prism::Location), @@ -9244,58 +9724,58 @@ class Prism::DefinedNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5965 + # source://prism//lib/prism/node.rb#6109 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { lparen_loc: Location?, value: Prism::node, rparen_loc: Location?, keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#5988 + # source://prism//lib/prism/node.rb#6132 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#6045 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#6188 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#6040 + # source://prism//lib/prism/node.rb#6183 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#6022 + # source://prism//lib/prism/node.rb#6166 sig { returns(Prism::Location) } def keyword_loc; end # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#6030 + # source://prism//lib/prism/node.rb#6173 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#5993 + # source://prism//lib/prism/node.rb#6137 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#6035 + # source://prism//lib/prism/node.rb#6178 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#6009 + # source://prism//lib/prism/node.rb#6153 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -9314,13 +9794,13 @@ class Prism::DefinedNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6069 + # source://prism//lib/prism/node.rb#6206 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#6006 + # source://prism//lib/prism/node.rb#6150 sig { returns(Prism::Node) } def value; end @@ -9332,7 +9812,7 @@ class Prism::DefinedNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6079 + # source://prism//lib/prism/node.rb#6216 def type; end end end @@ -9380,8 +9860,6 @@ end # # source://prism//lib/prism/desugar_compiler.rb#218 class Prism::DesugarCompiler < ::Prism::MutationCompiler - Result = type_member { { fixed: Prism::Node } } - # @@foo &&= bar # # becomes @@ -11559,567 +12037,567 @@ class Prism::DotVisitor < ::Prism::Visitor # Visit a ConstantPathOperatorWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#1307 + # source://prism//lib/prism/dot_visitor.rb#1309 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#1337 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#1362 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#1391 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#1416 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#1433 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#1450 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#1477 def visit_def_node(node); end # Visit a DefinedNode node. # - # source://prism//lib/prism/dot_visitor.rb#1542 + # source://prism//lib/prism/dot_visitor.rb#1546 def visit_defined_node(node); end # Visit a ElseNode node. # - # source://prism//lib/prism/dot_visitor.rb#1573 + # source://prism//lib/prism/dot_visitor.rb#1577 def visit_else_node(node); end # Visit a EmbeddedStatementsNode node. # - # source://prism//lib/prism/dot_visitor.rb#1601 + # source://prism//lib/prism/dot_visitor.rb#1605 def visit_embedded_statements_node(node); end # Visit a EmbeddedVariableNode node. # - # source://prism//lib/prism/dot_visitor.rb#1627 + # source://prism//lib/prism/dot_visitor.rb#1631 def visit_embedded_variable_node(node); end # Visit a EnsureNode node. # - # source://prism//lib/prism/dot_visitor.rb#1648 + # source://prism//lib/prism/dot_visitor.rb#1652 def visit_ensure_node(node); end # Visit a FalseNode node. # - # source://prism//lib/prism/dot_visitor.rb#1674 + # source://prism//lib/prism/dot_visitor.rb#1678 def visit_false_node(node); end # Visit a FindPatternNode node. # - # source://prism//lib/prism/dot_visitor.rb#1688 + # source://prism//lib/prism/dot_visitor.rb#1692 def visit_find_pattern_node(node); end # Visit a FlipFlopNode node. # - # source://prism//lib/prism/dot_visitor.rb#1739 + # source://prism//lib/prism/dot_visitor.rb#1743 def visit_flip_flop_node(node); end # Visit a FloatNode node. # - # source://prism//lib/prism/dot_visitor.rb#1771 + # source://prism//lib/prism/dot_visitor.rb#1775 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#1792 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#1834 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#1848 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#1862 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#1882 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#1909 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#1939 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#1966 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#1983 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#2000 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#2027 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#2060 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#2109 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#2154 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#2172 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#2190 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#2204 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#2236 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#2289 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#2345 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#2398 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#2437 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#2464 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#2494 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#2521 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#2538 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#2555 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#2582 def visit_integer_node(node); end # Visit a InterpolatedMatchLastLineNode node. # - # source://prism//lib/prism/dot_visitor.rb#2598 + # source://prism//lib/prism/dot_visitor.rb#2602 def visit_interpolated_match_last_line_node(node); end # Visit a InterpolatedRegularExpressionNode node. # - # source://prism//lib/prism/dot_visitor.rb#2634 + # source://prism//lib/prism/dot_visitor.rb#2638 def visit_interpolated_regular_expression_node(node); end # Visit a InterpolatedStringNode node. # - # source://prism//lib/prism/dot_visitor.rb#2670 + # source://prism//lib/prism/dot_visitor.rb#2674 def visit_interpolated_string_node(node); end # Visit a InterpolatedSymbolNode node. # - # source://prism//lib/prism/dot_visitor.rb#2710 + # source://prism//lib/prism/dot_visitor.rb#2714 def visit_interpolated_symbol_node(node); end # Visit a InterpolatedXStringNode node. # - # source://prism//lib/prism/dot_visitor.rb#2747 + # source://prism//lib/prism/dot_visitor.rb#2751 def visit_interpolated_x_string_node(node); end # Visit a ItParametersNode node. # - # source://prism//lib/prism/dot_visitor.rb#2780 + # source://prism//lib/prism/dot_visitor.rb#2784 def visit_it_parameters_node(node); end # Visit a KeywordHashNode node. # - # source://prism//lib/prism/dot_visitor.rb#2794 + # source://prism//lib/prism/dot_visitor.rb#2798 def visit_keyword_hash_node(node); end # Visit a KeywordRestParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#2824 + # source://prism//lib/prism/dot_visitor.rb#2828 def visit_keyword_rest_parameter_node(node); end # Visit a LambdaNode node. # - # source://prism//lib/prism/dot_visitor.rb#2852 + # source://prism//lib/prism/dot_visitor.rb#2856 def visit_lambda_node(node); end # Visit a LocalVariableAndWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#2890 + # source://prism//lib/prism/dot_visitor.rb#2894 def visit_local_variable_and_write_node(node); end # Visit a LocalVariableOperatorWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#2920 + # source://prism//lib/prism/dot_visitor.rb#2924 def visit_local_variable_operator_write_node(node); end # Visit a LocalVariableOrWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#2953 + # source://prism//lib/prism/dot_visitor.rb#2957 def visit_local_variable_or_write_node(node); end # Visit a LocalVariableReadNode node. # - # source://prism//lib/prism/dot_visitor.rb#2983 + # source://prism//lib/prism/dot_visitor.rb#2987 def visit_local_variable_read_node(node); end # Visit a LocalVariableTargetNode node. # - # source://prism//lib/prism/dot_visitor.rb#3003 + # source://prism//lib/prism/dot_visitor.rb#3007 def visit_local_variable_target_node(node); end # Visit a LocalVariableWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#3023 + # source://prism//lib/prism/dot_visitor.rb#3027 def visit_local_variable_write_node(node); end # Visit a MatchLastLineNode node. # - # source://prism//lib/prism/dot_visitor.rb#3053 + # source://prism//lib/prism/dot_visitor.rb#3057 def visit_match_last_line_node(node); end # Visit a MatchPredicateNode node. # - # source://prism//lib/prism/dot_visitor.rb#3082 + # source://prism//lib/prism/dot_visitor.rb#3086 def visit_match_predicate_node(node); end # Visit a MatchRequiredNode node. # - # source://prism//lib/prism/dot_visitor.rb#3107 + # source://prism//lib/prism/dot_visitor.rb#3111 def visit_match_required_node(node); end # Visit a MatchWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#3132 + # source://prism//lib/prism/dot_visitor.rb#3136 def visit_match_write_node(node); end # Visit a MissingNode node. # - # source://prism//lib/prism/dot_visitor.rb#3163 + # source://prism//lib/prism/dot_visitor.rb#3167 def visit_missing_node(node); end # Visit a ModuleNode node. # - # source://prism//lib/prism/dot_visitor.rb#3177 + # source://prism//lib/prism/dot_visitor.rb#3181 def visit_module_node(node); end # Visit a MultiTargetNode node. # - # source://prism//lib/prism/dot_visitor.rb#3213 + # source://prism//lib/prism/dot_visitor.rb#3217 def visit_multi_target_node(node); end # Visit a MultiWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#3269 + # source://prism//lib/prism/dot_visitor.rb#3273 def visit_multi_write_node(node); end # Visit a NextNode node. # - # source://prism//lib/prism/dot_visitor.rb#3332 + # source://prism//lib/prism/dot_visitor.rb#3336 def visit_next_node(node); end # Visit a NilNode node. # - # source://prism//lib/prism/dot_visitor.rb#3355 + # source://prism//lib/prism/dot_visitor.rb#3359 def visit_nil_node(node); end # Visit a NoKeywordsParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3369 + # source://prism//lib/prism/dot_visitor.rb#3373 def visit_no_keywords_parameter_node(node); end # Visit a NumberedParametersNode node. # - # source://prism//lib/prism/dot_visitor.rb#3389 + # source://prism//lib/prism/dot_visitor.rb#3393 def visit_numbered_parameters_node(node); end # Visit a NumberedReferenceReadNode node. # - # source://prism//lib/prism/dot_visitor.rb#3406 + # source://prism//lib/prism/dot_visitor.rb#3410 def visit_numbered_reference_read_node(node); end # Visit a OptionalKeywordParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3423 + # source://prism//lib/prism/dot_visitor.rb#3427 def visit_optional_keyword_parameter_node(node); end # Visit a OptionalParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3450 + # source://prism//lib/prism/dot_visitor.rb#3454 def visit_optional_parameter_node(node); end # Visit a OrNode node. # - # source://prism//lib/prism/dot_visitor.rb#3480 + # source://prism//lib/prism/dot_visitor.rb#3484 def visit_or_node(node); end # Visit a ParametersNode node. # - # source://prism//lib/prism/dot_visitor.rb#3505 + # source://prism//lib/prism/dot_visitor.rb#3509 def visit_parameters_node(node); end # Visit a ParenthesesNode node. # - # source://prism//lib/prism/dot_visitor.rb#3589 + # source://prism//lib/prism/dot_visitor.rb#3593 def visit_parentheses_node(node); end # Visit a PinnedExpressionNode node. # - # source://prism//lib/prism/dot_visitor.rb#3615 + # source://prism//lib/prism/dot_visitor.rb#3619 def visit_pinned_expression_node(node); end # Visit a PinnedVariableNode node. # - # source://prism//lib/prism/dot_visitor.rb#3642 + # source://prism//lib/prism/dot_visitor.rb#3646 def visit_pinned_variable_node(node); end # Visit a PostExecutionNode node. # - # source://prism//lib/prism/dot_visitor.rb#3663 + # source://prism//lib/prism/dot_visitor.rb#3667 def visit_post_execution_node(node); end # Visit a PreExecutionNode node. # - # source://prism//lib/prism/dot_visitor.rb#3692 + # source://prism//lib/prism/dot_visitor.rb#3696 def visit_pre_execution_node(node); end # Visit a ProgramNode node. # - # source://prism//lib/prism/dot_visitor.rb#3721 + # source://prism//lib/prism/dot_visitor.rb#3725 def visit_program_node(node); end # Visit a RangeNode node. # - # source://prism//lib/prism/dot_visitor.rb#3742 + # source://prism//lib/prism/dot_visitor.rb#3746 def visit_range_node(node); end # Visit a RationalNode node. # - # source://prism//lib/prism/dot_visitor.rb#3774 + # source://prism//lib/prism/dot_visitor.rb#3778 def visit_rational_node(node); end # Visit a RedoNode node. # - # source://prism//lib/prism/dot_visitor.rb#3792 + # source://prism//lib/prism/dot_visitor.rb#3796 def visit_redo_node(node); end # Visit a RegularExpressionNode node. # - # source://prism//lib/prism/dot_visitor.rb#3806 + # source://prism//lib/prism/dot_visitor.rb#3810 def visit_regular_expression_node(node); end # Visit a RequiredKeywordParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3835 + # source://prism//lib/prism/dot_visitor.rb#3839 def visit_required_keyword_parameter_node(node); end # Visit a RequiredParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3858 + # source://prism//lib/prism/dot_visitor.rb#3862 def visit_required_parameter_node(node); end # Visit a RescueModifierNode node. # - # source://prism//lib/prism/dot_visitor.rb#3878 + # source://prism//lib/prism/dot_visitor.rb#3882 def visit_rescue_modifier_node(node); end # Visit a RescueNode node. # - # source://prism//lib/prism/dot_visitor.rb#3903 + # source://prism//lib/prism/dot_visitor.rb#3907 def visit_rescue_node(node); end # Visit a RestParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3956 + # source://prism//lib/prism/dot_visitor.rb#3960 def visit_rest_parameter_node(node); end # Visit a RetryNode node. # - # source://prism//lib/prism/dot_visitor.rb#3984 + # source://prism//lib/prism/dot_visitor.rb#3988 def visit_retry_node(node); end # Visit a ReturnNode node. # - # source://prism//lib/prism/dot_visitor.rb#3998 + # source://prism//lib/prism/dot_visitor.rb#4002 def visit_return_node(node); end # Visit a SelfNode node. # - # source://prism//lib/prism/dot_visitor.rb#4021 + # source://prism//lib/prism/dot_visitor.rb#4028 def visit_self_node(node); end # Visit a ShareableConstantNode node. # - # source://prism//lib/prism/dot_visitor.rb#4035 + # source://prism//lib/prism/dot_visitor.rb#4042 def visit_shareable_constant_node(node); end # Visit a SingletonClassNode node. # - # source://prism//lib/prism/dot_visitor.rb#4056 + # source://prism//lib/prism/dot_visitor.rb#4063 def visit_singleton_class_node(node); end # Visit a SourceEncodingNode node. # - # source://prism//lib/prism/dot_visitor.rb#4092 + # source://prism//lib/prism/dot_visitor.rb#4099 def visit_source_encoding_node(node); end # Visit a SourceFileNode node. # - # source://prism//lib/prism/dot_visitor.rb#4106 + # source://prism//lib/prism/dot_visitor.rb#4113 def visit_source_file_node(node); end # Visit a SourceLineNode node. # - # source://prism//lib/prism/dot_visitor.rb#4126 + # source://prism//lib/prism/dot_visitor.rb#4133 def visit_source_line_node(node); end # Visit a SplatNode node. # - # source://prism//lib/prism/dot_visitor.rb#4140 + # source://prism//lib/prism/dot_visitor.rb#4147 def visit_splat_node(node); end # Visit a StatementsNode node. # - # source://prism//lib/prism/dot_visitor.rb#4163 + # source://prism//lib/prism/dot_visitor.rb#4170 def visit_statements_node(node); end # Visit a StringNode node. # - # source://prism//lib/prism/dot_visitor.rb#4190 + # source://prism//lib/prism/dot_visitor.rb#4197 def visit_string_node(node); end # Visit a SuperNode node. # - # source://prism//lib/prism/dot_visitor.rb#4223 + # source://prism//lib/prism/dot_visitor.rb#4230 def visit_super_node(node); end # Visit a SymbolNode node. # - # source://prism//lib/prism/dot_visitor.rb#4262 + # source://prism//lib/prism/dot_visitor.rb#4269 def visit_symbol_node(node); end # Visit a TrueNode node. # - # source://prism//lib/prism/dot_visitor.rb#4297 + # source://prism//lib/prism/dot_visitor.rb#4304 def visit_true_node(node); end # Visit a UndefNode node. # - # source://prism//lib/prism/dot_visitor.rb#4311 + # source://prism//lib/prism/dot_visitor.rb#4318 def visit_undef_node(node); end # Visit a UnlessNode node. # - # source://prism//lib/prism/dot_visitor.rb#4341 + # source://prism//lib/prism/dot_visitor.rb#4348 def visit_unless_node(node); end # Visit a UntilNode node. # - # source://prism//lib/prism/dot_visitor.rb#4384 + # source://prism//lib/prism/dot_visitor.rb#4391 def visit_until_node(node); end # Visit a WhenNode node. # - # source://prism//lib/prism/dot_visitor.rb#4419 + # source://prism//lib/prism/dot_visitor.rb#4426 def visit_when_node(node); end # Visit a WhileNode node. # - # source://prism//lib/prism/dot_visitor.rb#4460 + # source://prism//lib/prism/dot_visitor.rb#4467 def visit_while_node(node); end # Visit a XStringNode node. # - # source://prism//lib/prism/dot_visitor.rb#4495 + # source://prism//lib/prism/dot_visitor.rb#4502 def visit_x_string_node(node); end # Visit a YieldNode node. # - # source://prism//lib/prism/dot_visitor.rb#4524 + # source://prism//lib/prism/dot_visitor.rb#4531 def visit_yield_node(node); end private @@ -12127,95 +12605,101 @@ 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#4570 + # source://prism//lib/prism/dot_visitor.rb#4577 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#4578 + # source://prism//lib/prism/dot_visitor.rb#4586 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#4586 + # source://prism//lib/prism/dot_visitor.rb#4594 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#4597 + # source://prism//lib/prism/dot_visitor.rb#4605 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#4606 + # source://prism//lib/prism/dot_visitor.rb#4614 def integer_base_flags_inspect(node); end # Inspect a node that has interpolated_string_node_flags flags to display the flags as a # comma-separated list. # - # source://prism//lib/prism/dot_visitor.rb#4617 + # source://prism//lib/prism/dot_visitor.rb#4625 def interpolated_string_node_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#4626 + # source://prism//lib/prism/dot_visitor.rb#4634 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#4564 + # source://prism//lib/prism/dot_visitor.rb#4571 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#4634 + # source://prism//lib/prism/dot_visitor.rb#4642 def loop_flags_inspect(node); end # Generate a unique node ID for a node throughout the digraph. # - # source://prism//lib/prism/dot_visitor.rb#4559 + # source://prism//lib/prism/dot_visitor.rb#4566 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#4642 + # source://prism//lib/prism/dot_visitor.rb#4650 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#4650 + # source://prism//lib/prism/dot_visitor.rb#4658 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#4658 + # source://prism//lib/prism/dot_visitor.rb#4666 def regular_expression_flags_inspect(node); end + # Inspect a node that has return_node_flags flags to display the flags as a + # comma-separated list. + # + # source://prism//lib/prism/dot_visitor.rb#4684 + def return_node_flags_inspect(node); end + # Inspect a node that has shareable_constant_node_flags flags to display the flags as a # comma-separated list. # - # source://prism//lib/prism/dot_visitor.rb#4676 + # source://prism//lib/prism/dot_visitor.rb#4692 def shareable_constant_node_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#4686 + # source://prism//lib/prism/dot_visitor.rb#4702 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#4697 + # source://prism//lib/prism/dot_visitor.rb#4713 def symbol_flags_inspect(node); end end @@ -12309,13 +12793,13 @@ end # if a then b else c end # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#6088 +# source://prism//lib/prism/node.rb#6235 class Prism::ElseNode < ::Prism::Node # 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#6090 + # source://prism//lib/prism/node.rb#6237 sig do params( source: Prism::Source, @@ -12327,33 +12811,39 @@ class Prism::ElseNode < ::Prism::Node end def initialize(source, else_keyword_loc, statements, end_keyword_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#6349 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6100 + # source://prism//lib/prism/node.rb#6247 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6105 + # source://prism//lib/prism/node.rb#6252 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6117 + # source://prism//lib/prism/node.rb#6264 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6110 + # source://prism//lib/prism/node.rb#6257 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?else_keyword_loc: Location, ?statements: StatementsNode?, ?end_keyword_loc: Location?, ?location: Location) -> ElseNode # - # source://prism//lib/prism/node.rb#6122 + # source://prism//lib/prism/node.rb#6269 sig do params( else_keyword_loc: Prism::Location, @@ -12367,52 +12857,52 @@ class Prism::ElseNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6105 + # source://prism//lib/prism/node.rb#6252 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { else_keyword_loc: Location, statements: StatementsNode?, end_keyword_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#6130 + # source://prism//lib/prism/node.rb#6277 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # def else_keyword: () -> String # - # source://prism//lib/prism/node.rb#6159 + # source://prism//lib/prism/node.rb#6305 sig { returns(String) } def else_keyword; end # attr_reader else_keyword_loc: Location # - # source://prism//lib/prism/node.rb#6135 + # source://prism//lib/prism/node.rb#6282 sig { returns(Prism::Location) } def else_keyword_loc; end # def end_keyword: () -> String? # - # source://prism//lib/prism/node.rb#6164 + # source://prism//lib/prism/node.rb#6310 sig { returns(T.nilable(String)) } def end_keyword; end # attr_reader end_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#6145 + # source://prism//lib/prism/node.rb#6292 sig { returns(T.nilable(Prism::Location)) } def end_keyword_loc; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#6169 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#6315 + sig { override.returns(String) } + def inspect; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#6142 + # source://prism//lib/prism/node.rb#6289 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -12431,7 +12921,7 @@ class Prism::ElseNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6196 + # source://prism//lib/prism/node.rb#6333 sig { override.returns(Symbol) } def type; end @@ -12443,7 +12933,7 @@ class Prism::ElseNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6206 + # source://prism//lib/prism/node.rb#6343 def type; end end end @@ -12451,11 +12941,11 @@ end # EmbDocComment objects correspond to comments that are surrounded by =begin # and =end. # -# source://prism//lib/prism/parse_result.rb#325 +# source://prism//lib/prism/parse_result.rb#403 class Prism::EmbDocComment < ::Prism::Comment # Returns a string representation of this comment. # - # source://prism//lib/prism/parse_result.rb#332 + # source://prism//lib/prism/parse_result.rb#410 sig { returns(String) } def inspect; end @@ -12463,7 +12953,7 @@ class Prism::EmbDocComment < ::Prism::Comment # # @return [Boolean] # - # source://prism//lib/prism/parse_result.rb#327 + # source://prism//lib/prism/parse_result.rb#405 sig { override.returns(T::Boolean) } def trailing?; end end @@ -12473,13 +12963,13 @@ end # "foo #{bar}" # ^^^^^^ # -# source://prism//lib/prism/node.rb#6215 +# source://prism//lib/prism/node.rb#6361 class Prism::EmbeddedStatementsNode < ::Prism::Node # 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#6217 + # source://prism//lib/prism/node.rb#6363 sig do params( source: Prism::Source, @@ -12491,45 +12981,51 @@ class Prism::EmbeddedStatementsNode < ::Prism::Node end def initialize(source, opening_loc, statements, closing_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#6469 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6227 + # source://prism//lib/prism/node.rb#6373 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6232 + # source://prism//lib/prism/node.rb#6378 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#6285 + # source://prism//lib/prism/node.rb#6430 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#6272 + # source://prism//lib/prism/node.rb#6418 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6244 + # source://prism//lib/prism/node.rb#6390 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6237 + # source://prism//lib/prism/node.rb#6383 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?opening_loc: Location, ?statements: StatementsNode?, ?closing_loc: Location, ?location: Location) -> EmbeddedStatementsNode # - # source://prism//lib/prism/node.rb#6249 + # source://prism//lib/prism/node.rb#6395 sig do params( opening_loc: Prism::Location, @@ -12543,40 +13039,40 @@ class Prism::EmbeddedStatementsNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6232 + # source://prism//lib/prism/node.rb#6378 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { opening_loc: Location, statements: StatementsNode?, closing_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#6257 + # source://prism//lib/prism/node.rb#6403 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#6290 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#6435 + sig { override.returns(String) } + def inspect; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#6280 + # source://prism//lib/prism/node.rb#6425 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#6262 + # source://prism//lib/prism/node.rb#6408 sig { returns(Prism::Location) } def opening_loc; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#6269 + # source://prism//lib/prism/node.rb#6415 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -12595,7 +13091,7 @@ class Prism::EmbeddedStatementsNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6317 + # source://prism//lib/prism/node.rb#6453 sig { override.returns(Symbol) } def type; end @@ -12607,7 +13103,7 @@ class Prism::EmbeddedStatementsNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6327 + # source://prism//lib/prism/node.rb#6463 def type; end end end @@ -12617,13 +13113,13 @@ end # "foo #@bar" # ^^^^^ # -# source://prism//lib/prism/node.rb#6336 +# source://prism//lib/prism/node.rb#6481 class Prism::EmbeddedVariableNode < ::Prism::Node # def initialize: (Location operator_loc, Prism::node variable, Location location) -> void # # @return [EmbeddedVariableNode] a new instance of EmbeddedVariableNode # - # source://prism//lib/prism/node.rb#6338 + # source://prism//lib/prism/node.rb#6483 sig do params( source: Prism::Source, @@ -12634,33 +13130,39 @@ class Prism::EmbeddedVariableNode < ::Prism::Node end def initialize(source, operator_loc, variable, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#6574 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6347 + # source://prism//lib/prism/node.rb#6492 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6352 + # source://prism//lib/prism/node.rb#6497 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6362 + # source://prism//lib/prism/node.rb#6507 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6357 + # source://prism//lib/prism/node.rb#6502 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?operator_loc: Location, ?variable: Prism::node, ?location: Location) -> EmbeddedVariableNode # - # source://prism//lib/prism/node.rb#6367 + # source://prism//lib/prism/node.rb#6512 sig do params( operator_loc: Prism::Location, @@ -12673,34 +13175,34 @@ class Prism::EmbeddedVariableNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6352 + # source://prism//lib/prism/node.rb#6497 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { operator_loc: Location, variable: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#6375 + # source://prism//lib/prism/node.rb#6520 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#6396 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#6540 + sig { override.returns(String) } + def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#6391 + # source://prism//lib/prism/node.rb#6535 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#6380 + # source://prism//lib/prism/node.rb#6525 sig { returns(Prism::Location) } def operator_loc; end @@ -12719,13 +13221,13 @@ class Prism::EmbeddedVariableNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6418 + # source://prism//lib/prism/node.rb#6558 sig { override.returns(Symbol) } def type; end # attr_reader variable: Prism::node # - # source://prism//lib/prism/node.rb#6387 + # source://prism//lib/prism/node.rb#6532 sig { returns(Prism::Node) } def variable; end @@ -12737,24 +13239,24 @@ class Prism::EmbeddedVariableNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6428 + # source://prism//lib/prism/node.rb#6568 def type; end end end # Flags for nodes that have unescaped content. # -# source://prism//lib/prism/node.rb#18857 +# source://prism//lib/prism/node.rb#19232 module Prism::EncodingFlags; end # internal bytes forced the encoding to binary # -# source://prism//lib/prism/node.rb#18862 +# source://prism//lib/prism/node.rb#19237 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#18859 +# source://prism//lib/prism/node.rb#19234 Prism::EncodingFlags::FORCED_UTF8_ENCODING = T.let(T.unsafe(nil), Integer) # Represents an `ensure` clause in a `begin` statement. @@ -12766,13 +13268,13 @@ Prism::EncodingFlags::FORCED_UTF8_ENCODING = T.let(T.unsafe(nil), Integer) # bar # end # -# source://prism//lib/prism/node.rb#6441 +# source://prism//lib/prism/node.rb#6589 class Prism::EnsureNode < ::Prism::Node # 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#6443 + # source://prism//lib/prism/node.rb#6591 sig do params( source: Prism::Source, @@ -12784,33 +13286,39 @@ class Prism::EnsureNode < ::Prism::Node end def initialize(source, ensure_keyword_loc, statements, end_keyword_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#6697 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6453 + # source://prism//lib/prism/node.rb#6601 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6458 + # source://prism//lib/prism/node.rb#6606 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6470 + # source://prism//lib/prism/node.rb#6618 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6463 + # source://prism//lib/prism/node.rb#6611 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?ensure_keyword_loc: Location, ?statements: StatementsNode?, ?end_keyword_loc: Location, ?location: Location) -> EnsureNode # - # source://prism//lib/prism/node.rb#6475 + # source://prism//lib/prism/node.rb#6623 sig do params( ensure_keyword_loc: Prism::Location, @@ -12824,52 +13332,52 @@ class Prism::EnsureNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6458 + # source://prism//lib/prism/node.rb#6606 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { ensure_keyword_loc: Location, statements: StatementsNode?, end_keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#6483 + # source://prism//lib/prism/node.rb#6631 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # def end_keyword: () -> String # - # source://prism//lib/prism/node.rb#6511 + # source://prism//lib/prism/node.rb#6658 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#6498 + # source://prism//lib/prism/node.rb#6646 sig { returns(Prism::Location) } def end_keyword_loc; end # def ensure_keyword: () -> String # - # source://prism//lib/prism/node.rb#6506 + # source://prism//lib/prism/node.rb#6653 sig { returns(String) } def ensure_keyword; end # attr_reader ensure_keyword_loc: Location # - # source://prism//lib/prism/node.rb#6488 + # source://prism//lib/prism/node.rb#6636 sig { returns(Prism::Location) } def ensure_keyword_loc; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#6516 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#6663 + sig { override.returns(String) } + def inspect; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#6495 + # source://prism//lib/prism/node.rb#6643 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -12888,7 +13396,7 @@ class Prism::EnsureNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6543 + # source://prism//lib/prism/node.rb#6681 sig { override.returns(Symbol) } def type; end @@ -12900,7 +13408,7 @@ class Prism::EnsureNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6553 + # source://prism//lib/prism/node.rb#6691 def type; end end end @@ -12910,67 +13418,73 @@ end # false # ^^^^^ # -# source://prism//lib/prism/node.rb#6562 +# source://prism//lib/prism/node.rb#6709 class Prism::FalseNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [FalseNode] a new instance of FalseNode # - # source://prism//lib/prism/node.rb#6564 + # source://prism//lib/prism/node.rb#6711 sig { params(source: Prism::Source, location: Prism::Location).void } def initialize(source, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#6785 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6571 + # source://prism//lib/prism/node.rb#6718 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6576 + # source://prism//lib/prism/node.rb#6723 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6586 + # source://prism//lib/prism/node.rb#6733 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6581 + # source://prism//lib/prism/node.rb#6728 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> FalseNode # - # source://prism//lib/prism/node.rb#6591 + # source://prism//lib/prism/node.rb#6738 sig { params(location: Prism::Location).returns(Prism::FalseNode) } def copy(location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6576 + # source://prism//lib/prism/node.rb#6723 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#6599 + # source://prism//lib/prism/node.rb#6746 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#6605 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#6751 + sig { override.returns(String) } + def inspect; 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 @@ -12987,7 +13501,7 @@ class Prism::FalseNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6624 + # source://prism//lib/prism/node.rb#6769 sig { override.returns(Symbol) } def type; end @@ -12999,7 +13513,7 @@ class Prism::FalseNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6634 + # source://prism//lib/prism/node.rb#6779 def type; end end end @@ -13015,13 +13529,13 @@ end # foo in Foo(*bar, baz, *qux) # ^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#6649 +# source://prism//lib/prism/node.rb#6800 class Prism::FindPatternNode < ::Prism::Node # def initialize: (Prism::node? constant, Prism::node left, Array[Prism::node] requireds, Prism::node right, Location? opening_loc, Location? closing_loc, Location location) -> void # # @return [FindPatternNode] a new instance of FindPatternNode # - # source://prism//lib/prism/node.rb#6651 + # source://prism//lib/prism/node.rb#6802 sig do params( source: Prism::Source, @@ -13036,51 +13550,57 @@ class Prism::FindPatternNode < ::Prism::Node end def initialize(source, constant, left, requireds, right, opening_loc, closing_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#6935 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6664 + # source://prism//lib/prism/node.rb#6815 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6669 + # source://prism//lib/prism/node.rb#6820 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#6746 + # source://prism//lib/prism/node.rb#6896 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#6727 + # source://prism//lib/prism/node.rb#6878 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6684 + # source://prism//lib/prism/node.rb#6835 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6674 + # source://prism//lib/prism/node.rb#6825 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader constant: Prism::node? # - # source://prism//lib/prism/node.rb#6702 + # source://prism//lib/prism/node.rb#6853 sig { returns(T.nilable(Prism::Node)) } def constant; end # def copy: (?constant: Prism::node?, ?left: Prism::node, ?requireds: Array[Prism::node], ?right: Prism::node, ?opening_loc: Location?, ?closing_loc: Location?, ?location: Location) -> FindPatternNode # - # source://prism//lib/prism/node.rb#6689 + # source://prism//lib/prism/node.rb#6840 sig do params( constant: T.nilable(Prism::Node), @@ -13097,52 +13617,52 @@ class Prism::FindPatternNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6669 + # source://prism//lib/prism/node.rb#6820 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { constant: Prism::node?, left: Prism::node, requireds: Array[Prism::node], right: Prism::node, opening_loc: Location?, closing_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#6697 + # source://prism//lib/prism/node.rb#6848 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#6751 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#6901 + sig { override.returns(String) } + def inspect; end # attr_reader left: Prism::node # - # source://prism//lib/prism/node.rb#6705 + # source://prism//lib/prism/node.rb#6856 sig { returns(Prism::Node) } def left; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#6741 + # source://prism//lib/prism/node.rb#6891 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#6714 + # source://prism//lib/prism/node.rb#6865 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader requireds: Array[Prism::node] # - # source://prism//lib/prism/node.rb#6708 + # source://prism//lib/prism/node.rb#6859 sig { returns(T::Array[Prism::Node]) } def requireds; end # attr_reader right: Prism::node # - # source://prism//lib/prism/node.rb#6711 + # source://prism//lib/prism/node.rb#6862 sig { returns(Prism::Node) } def right; end @@ -13161,7 +13681,7 @@ class Prism::FindPatternNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6783 + # source://prism//lib/prism/node.rb#6919 sig { override.returns(Symbol) } def type; end @@ -13173,7 +13693,7 @@ class Prism::FindPatternNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6793 + # source://prism//lib/prism/node.rb#6929 def type; end end end @@ -13183,13 +13703,13 @@ end # baz if foo .. bar # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#6802 +# source://prism//lib/prism/node.rb#6951 class Prism::FlipFlopNode < ::Prism::Node # def initialize: (Integer flags, Prism::node? left, Prism::node? right, Location operator_loc, Location location) -> void # # @return [FlipFlopNode] a new instance of FlipFlopNode # - # source://prism//lib/prism/node.rb#6804 + # source://prism//lib/prism/node.rb#6953 sig do params( source: Prism::Source, @@ -13202,33 +13722,39 @@ class Prism::FlipFlopNode < ::Prism::Node end def initialize(source, flags, left, right, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#7061 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6815 + # source://prism//lib/prism/node.rb#6964 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6820 + # source://prism//lib/prism/node.rb#6969 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6833 + # source://prism//lib/prism/node.rb#6982 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6825 + # source://prism//lib/prism/node.rb#6974 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?left: Prism::node?, ?right: Prism::node?, ?operator_loc: Location, ?location: Location) -> FlipFlopNode # - # source://prism//lib/prism/node.rb#6838 + # source://prism//lib/prism/node.rb#6987 sig do params( flags: Integer, @@ -13243,13 +13769,13 @@ class Prism::FlipFlopNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6820 + # source://prism//lib/prism/node.rb#6969 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, left: Prism::node?, right: Prism::node?, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#6846 + # source://prism//lib/prism/node.rb#6995 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -13257,40 +13783,40 @@ class Prism::FlipFlopNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#6869 + # source://prism//lib/prism/node.rb#7017 sig { returns(T::Boolean) } def exclude_end?; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#6879 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#7027 + sig { override.returns(String) } + def inspect; end # attr_reader left: Prism::node? # - # source://prism//lib/prism/node.rb#6855 + # source://prism//lib/prism/node.rb#7004 sig { returns(T.nilable(Prism::Node)) } def left; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#6874 + # source://prism//lib/prism/node.rb#7022 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#6861 + # source://prism//lib/prism/node.rb#7010 sig { returns(Prism::Location) } def operator_loc; end # attr_reader right: Prism::node? # - # source://prism//lib/prism/node.rb#6858 + # source://prism//lib/prism/node.rb#7007 sig { returns(T.nilable(Prism::Node)) } def right; end @@ -13309,15 +13835,15 @@ class Prism::FlipFlopNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6913 + # source://prism//lib/prism/node.rb#7045 sig { override.returns(Symbol) } def type; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#6851 + # source://prism//lib/prism/node.rb#7000 sig { returns(Integer) } def flags; end @@ -13329,7 +13855,7 @@ class Prism::FlipFlopNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6923 + # source://prism//lib/prism/node.rb#7055 def type; end end end @@ -13339,67 +13865,73 @@ end # 1.0 # ^^^ # -# source://prism//lib/prism/node.rb#6932 +# source://prism//lib/prism/node.rb#7074 class Prism::FloatNode < ::Prism::Node # def initialize: (Float value, Location location) -> void # # @return [FloatNode] a new instance of FloatNode # - # source://prism//lib/prism/node.rb#6934 + # source://prism//lib/prism/node.rb#7076 sig { params(source: Prism::Source, value: Float, location: Prism::Location).void } def initialize(source, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#7154 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6942 + # source://prism//lib/prism/node.rb#7084 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6947 + # source://prism//lib/prism/node.rb#7089 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6957 + # source://prism//lib/prism/node.rb#7099 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#6952 + # source://prism//lib/prism/node.rb#7094 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?value: Float, ?location: Location) -> FloatNode # - # source://prism//lib/prism/node.rb#6962 + # source://prism//lib/prism/node.rb#7104 sig { params(value: Float, location: Prism::Location).returns(Prism::FloatNode) } def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6947 + # source://prism//lib/prism/node.rb#7089 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { value: Float, location: Location } # - # source://prism//lib/prism/node.rb#6970 + # source://prism//lib/prism/node.rb#7112 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#6979 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#7120 + sig { override.returns(String) } + def inspect; 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 @@ -13416,13 +13948,13 @@ class Prism::FloatNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6999 + # source://prism//lib/prism/node.rb#7138 sig { override.returns(Symbol) } def type; end # The value of the floating point number as a Float. # - # source://prism//lib/prism/node.rb#6975 + # source://prism//lib/prism/node.rb#7117 sig { returns(Float) } def value; end @@ -13434,7 +13966,7 @@ class Prism::FloatNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7009 + # source://prism//lib/prism/node.rb#7148 def type; end end end @@ -13444,13 +13976,13 @@ end # for i in a end # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#7018 +# source://prism//lib/prism/node.rb#7164 class Prism::ForNode < ::Prism::Node # def initialize: (Prism::node index, Prism::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#7020 + # source://prism//lib/prism/node.rb#7166 sig do params( source: Prism::Source, @@ -13466,39 +13998,45 @@ class Prism::ForNode < ::Prism::Node end def initialize(source, index, collection, statements, for_keyword_loc, in_keyword_loc, do_keyword_loc, end_keyword_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#7314 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7034 + # source://prism//lib/prism/node.rb#7180 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7039 + # source://prism//lib/prism/node.rb#7185 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # attr_reader collection: Prism::node # - # source://prism//lib/prism/node.rb#7074 + # source://prism//lib/prism/node.rb#7220 sig { returns(Prism::Node) } def collection; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7053 + # source://prism//lib/prism/node.rb#7199 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7044 + # source://prism//lib/prism/node.rb#7190 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?index: Prism::node, ?collection: Prism::node, ?statements: StatementsNode?, ?for_keyword_loc: Location, ?in_keyword_loc: Location, ?do_keyword_loc: Location?, ?end_keyword_loc: Location, ?location: Location) -> ForNode # - # source://prism//lib/prism/node.rb#7058 + # source://prism//lib/prism/node.rb#7204 sig do params( index: Prism::Node, @@ -13516,37 +14054,37 @@ class Prism::ForNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7039 + # source://prism//lib/prism/node.rb#7185 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { index: Prism::node, collection: Prism::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#7066 + # source://prism//lib/prism/node.rb#7212 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # def do_keyword: () -> String? # - # source://prism//lib/prism/node.rb#7125 + # source://prism//lib/prism/node.rb#7270 sig { returns(T.nilable(String)) } def do_keyword; end # attr_reader do_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#7094 + # source://prism//lib/prism/node.rb#7240 sig { returns(T.nilable(Prism::Location)) } def do_keyword_loc; end # def end_keyword: () -> String # - # source://prism//lib/prism/node.rb#7130 + # source://prism//lib/prism/node.rb#7275 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#7107 + # source://prism//lib/prism/node.rb#7253 sig { returns(Prism::Location) } def end_keyword_loc; end @@ -13555,43 +14093,43 @@ class Prism::ForNode < ::Prism::Node # def for_keyword: () -> String # - # source://prism//lib/prism/node.rb#7115 + # source://prism//lib/prism/node.rb#7260 sig { returns(String) } def for_keyword; end # attr_reader for_keyword_loc: Location # - # source://prism//lib/prism/node.rb#7080 + # source://prism//lib/prism/node.rb#7226 sig { returns(Prism::Location) } def for_keyword_loc; end # def in_keyword: () -> String # - # source://prism//lib/prism/node.rb#7120 + # source://prism//lib/prism/node.rb#7265 sig { returns(String) } def in_keyword; end # attr_reader in_keyword_loc: Location # - # source://prism//lib/prism/node.rb#7087 + # source://prism//lib/prism/node.rb#7233 sig { returns(Prism::Location) } def in_keyword_loc; end # attr_reader index: Prism::node # - # source://prism//lib/prism/node.rb#7071 + # source://prism//lib/prism/node.rb#7217 sig { returns(Prism::Node) } def index; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#7135 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#7280 + sig { override.returns(String) } + def inspect; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#7077 + # source://prism//lib/prism/node.rb#7223 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -13610,7 +14148,7 @@ class Prism::ForNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7168 + # source://prism//lib/prism/node.rb#7298 sig { override.returns(Symbol) } def type; end @@ -13622,7 +14160,7 @@ class Prism::ForNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7178 + # source://prism//lib/prism/node.rb#7308 def type; end end end @@ -13634,67 +14172,73 @@ end # ^^^ # end # -# source://prism//lib/prism/node.rb#7189 +# source://prism//lib/prism/node.rb#7332 class Prism::ForwardingArgumentsNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [ForwardingArgumentsNode] a new instance of ForwardingArgumentsNode # - # source://prism//lib/prism/node.rb#7191 + # source://prism//lib/prism/node.rb#7334 sig { params(source: Prism::Source, location: Prism::Location).void } def initialize(source, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#7408 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7198 + # source://prism//lib/prism/node.rb#7341 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7203 + # source://prism//lib/prism/node.rb#7346 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7213 + # source://prism//lib/prism/node.rb#7356 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7208 + # source://prism//lib/prism/node.rb#7351 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> ForwardingArgumentsNode # - # source://prism//lib/prism/node.rb#7218 + # source://prism//lib/prism/node.rb#7361 sig { params(location: Prism::Location).returns(Prism::ForwardingArgumentsNode) } def copy(location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7203 + # source://prism//lib/prism/node.rb#7346 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#7226 + # source://prism//lib/prism/node.rb#7369 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#7232 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#7374 + sig { override.returns(String) } + def inspect; 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 @@ -13711,7 +14255,7 @@ class Prism::ForwardingArgumentsNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7251 + # source://prism//lib/prism/node.rb#7392 sig { override.returns(Symbol) } def type; end @@ -13723,7 +14267,7 @@ class Prism::ForwardingArgumentsNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7261 + # source://prism//lib/prism/node.rb#7402 def type; end end end @@ -13734,67 +14278,73 @@ end # ^^^ # end # -# source://prism//lib/prism/node.rb#7271 +# source://prism//lib/prism/node.rb#7418 class Prism::ForwardingParameterNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [ForwardingParameterNode] a new instance of ForwardingParameterNode # - # source://prism//lib/prism/node.rb#7273 + # source://prism//lib/prism/node.rb#7420 sig { params(source: Prism::Source, location: Prism::Location).void } def initialize(source, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#7494 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7280 + # source://prism//lib/prism/node.rb#7427 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7285 + # source://prism//lib/prism/node.rb#7432 sig { override.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#7442 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7290 + # source://prism//lib/prism/node.rb#7437 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> ForwardingParameterNode # - # source://prism//lib/prism/node.rb#7300 + # source://prism//lib/prism/node.rb#7447 sig { params(location: Prism::Location).returns(Prism::ForwardingParameterNode) } def copy(location: T.unsafe(nil)); 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#7432 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#7308 + # source://prism//lib/prism/node.rb#7455 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#7314 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#7460 + sig { override.returns(String) } + def inspect; 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 @@ -13811,7 +14361,7 @@ class Prism::ForwardingParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7333 + # source://prism//lib/prism/node.rb#7478 sig { override.returns(Symbol) } def type; end @@ -13823,7 +14373,7 @@ class Prism::ForwardingParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7343 + # source://prism//lib/prism/node.rb#7488 def type; end end end @@ -13833,73 +14383,79 @@ end # super # ^^^^^ # -# source://prism//lib/prism/node.rb#7352 +# source://prism//lib/prism/node.rb#7503 class Prism::ForwardingSuperNode < ::Prism::Node # def initialize: (BlockNode? block, Location location) -> void # # @return [ForwardingSuperNode] a new instance of ForwardingSuperNode # - # source://prism//lib/prism/node.rb#7354 + # source://prism//lib/prism/node.rb#7505 sig { params(source: Prism::Source, block: T.nilable(Prism::BlockNode), location: Prism::Location).void } def initialize(source, block, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#7585 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7362 + # source://prism//lib/prism/node.rb#7513 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader block: BlockNode? # - # source://prism//lib/prism/node.rb#7397 + # source://prism//lib/prism/node.rb#7548 sig { returns(T.nilable(Prism::BlockNode)) } def block; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7367 + # source://prism//lib/prism/node.rb#7518 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7379 + # source://prism//lib/prism/node.rb#7530 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7372 + # source://prism//lib/prism/node.rb#7523 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?block: BlockNode?, ?location: Location) -> ForwardingSuperNode # - # source://prism//lib/prism/node.rb#7384 + # source://prism//lib/prism/node.rb#7535 sig { params(block: T.nilable(Prism::BlockNode), location: Prism::Location).returns(Prism::ForwardingSuperNode) } def copy(block: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7367 + # source://prism//lib/prism/node.rb#7518 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { block: BlockNode?, location: Location } # - # source://prism//lib/prism/node.rb#7392 + # source://prism//lib/prism/node.rb#7543 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#7401 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#7551 + sig { override.returns(String) } + def inspect; 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 @@ -13916,7 +14472,7 @@ class Prism::ForwardingSuperNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7426 + # source://prism//lib/prism/node.rb#7569 sig { override.returns(Symbol) } def type; end @@ -13928,7 +14484,7 @@ class Prism::ForwardingSuperNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7436 + # source://prism//lib/prism/node.rb#7579 def type; end end end @@ -13938,13 +14494,13 @@ end # $target &&= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#7445 +# source://prism//lib/prism/node.rb#7595 class Prism::GlobalVariableAndWriteNode < ::Prism::Node # def initialize: (Symbol name, Location name_loc, Location operator_loc, Prism::node value, Location location) -> void # # @return [GlobalVariableAndWriteNode] a new instance of GlobalVariableAndWriteNode # - # source://prism//lib/prism/node.rb#7447 + # source://prism//lib/prism/node.rb#7597 sig do params( source: Prism::Source, @@ -13957,33 +14513,39 @@ class Prism::GlobalVariableAndWriteNode < ::Prism::Node end def initialize(source, name, name_loc, operator_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#7700 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7458 + # source://prism//lib/prism/node.rb#7608 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7463 + # source://prism//lib/prism/node.rb#7613 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7473 + # source://prism//lib/prism/node.rb#7623 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7468 + # source://prism//lib/prism/node.rb#7618 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?name_loc: Location, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> GlobalVariableAndWriteNode # - # source://prism//lib/prism/node.rb#7478 + # source://prism//lib/prism/node.rb#7628 sig do params( name: Symbol, @@ -13998,13 +14560,13 @@ class Prism::GlobalVariableAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7463 + # source://prism//lib/prism/node.rb#7613 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#7486 + # source://prism//lib/prism/node.rb#7636 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -14014,33 +14576,33 @@ class Prism::GlobalVariableAndWriteNode < ::Prism::Node sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#7517 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#7666 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#7491 + # source://prism//lib/prism/node.rb#7641 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#7494 + # source://prism//lib/prism/node.rb#7644 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#7512 + # source://prism//lib/prism/node.rb#7661 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#7501 + # source://prism//lib/prism/node.rb#7651 sig { returns(Prism::Location) } def operator_loc; end @@ -14059,13 +14621,13 @@ class Prism::GlobalVariableAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7541 + # source://prism//lib/prism/node.rb#7684 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#7508 + # source://prism//lib/prism/node.rb#7658 sig { returns(Prism::Node) } def value; end @@ -14077,7 +14639,7 @@ class Prism::GlobalVariableAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7551 + # source://prism//lib/prism/node.rb#7694 def type; end end end @@ -14087,75 +14649,93 @@ end # $target += value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#7560 +# source://prism//lib/prism/node.rb#7713 class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node - # def initialize: (Symbol name, Location name_loc, Location operator_loc, Prism::node value, Symbol operator, Location location) -> void + # def initialize: (Symbol name, Location name_loc, Location binary_operator_loc, Prism::node value, Symbol binary_operator, Location location) -> void # # @return [GlobalVariableOperatorWriteNode] a new instance of GlobalVariableOperatorWriteNode # - # source://prism//lib/prism/node.rb#7562 + # source://prism//lib/prism/node.rb#7715 sig do params( source: Prism::Source, name: Symbol, name_loc: Prism::Location, - operator_loc: Prism::Location, + binary_operator_loc: Prism::Location, value: Prism::Node, - operator: Symbol, + binary_operator: Symbol, location: Prism::Location ).void end - def initialize(source, name, name_loc, operator_loc, value, operator, location); end + def initialize(source, name, name_loc, binary_operator_loc, value, binary_operator, location); end + + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#7817 + def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7574 + # source://prism//lib/prism/node.rb#7727 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end + # attr_reader binary_operator: Symbol + # + # source://prism//lib/prism/node.rb#7780 + sig { returns(Symbol) } + def binary_operator; end + + # attr_reader binary_operator_loc: Location + # + # source://prism//lib/prism/node.rb#7770 + sig { returns(Prism::Location) } + def binary_operator_loc; end + # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7579 + # source://prism//lib/prism/node.rb#7732 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7589 + # source://prism//lib/prism/node.rb#7742 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7584 + # source://prism//lib/prism/node.rb#7737 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end - # def copy: (?name: Symbol, ?name_loc: Location, ?operator_loc: Location, ?value: Prism::node, ?operator: Symbol, ?location: Location) -> GlobalVariableOperatorWriteNode + # def copy: (?name: Symbol, ?name_loc: Location, ?binary_operator_loc: Location, ?value: Prism::node, ?binary_operator: Symbol, ?location: Location) -> GlobalVariableOperatorWriteNode # - # source://prism//lib/prism/node.rb#7594 + # source://prism//lib/prism/node.rb#7747 sig do params( name: Symbol, name_loc: Prism::Location, - operator_loc: Prism::Location, + binary_operator_loc: Prism::Location, value: Prism::Node, - operator: Symbol, + binary_operator: Symbol, location: Prism::Location ).returns(Prism::GlobalVariableOperatorWriteNode) end - def copy(name: T.unsafe(nil), name_loc: T.unsafe(nil), operator_loc: T.unsafe(nil), value: T.unsafe(nil), operator: T.unsafe(nil), location: T.unsafe(nil)); end + def copy(name: T.unsafe(nil), name_loc: T.unsafe(nil), binary_operator_loc: T.unsafe(nil), value: T.unsafe(nil), binary_operator: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7579 + # source://prism//lib/prism/node.rb#7732 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Prism::node, operator: Symbol, location: Location } + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, binary_operator_loc: Location, value: Prism::node, binary_operator: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#7602 + # source://prism//lib/prism/node.rb#7755 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -14165,34 +14745,34 @@ class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#7631 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#7783 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#7607 + # source://prism//lib/prism/node.rb#7760 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#7610 + # source://prism//lib/prism/node.rb#7763 sig { returns(Prism::Location) } def name_loc; end - # attr_reader operator: Symbol + # Returns the binary operator used to modify the receiver. This method is + # deprecated in favor of #binary_operator. # - # source://prism//lib/prism/node.rb#7627 - sig { returns(Symbol) } + # source://prism//lib/prism/node_ext.rb#371 def operator; end - # attr_reader operator_loc: Location + # Returns the location of the binary operator used to modify the receiver. + # This method is deprecated in favor of #binary_operator_loc. # - # source://prism//lib/prism/node.rb#7617 - sig { returns(Prism::Location) } + # source://prism//lib/prism/node_ext.rb#378 def operator_loc; end # Sometimes you want to check an instance of a node against a list of @@ -14210,13 +14790,13 @@ class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7656 + # source://prism//lib/prism/node.rb#7801 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#7624 + # source://prism//lib/prism/node.rb#7777 sig { returns(Prism::Node) } def value; end @@ -14228,7 +14808,7 @@ class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7666 + # source://prism//lib/prism/node.rb#7811 def type; end end end @@ -14238,13 +14818,13 @@ end # $target ||= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#7675 +# source://prism//lib/prism/node.rb#7831 class Prism::GlobalVariableOrWriteNode < ::Prism::Node # def initialize: (Symbol name, Location name_loc, Location operator_loc, Prism::node value, Location location) -> void # # @return [GlobalVariableOrWriteNode] a new instance of GlobalVariableOrWriteNode # - # source://prism//lib/prism/node.rb#7677 + # source://prism//lib/prism/node.rb#7833 sig do params( source: Prism::Source, @@ -14257,33 +14837,39 @@ class Prism::GlobalVariableOrWriteNode < ::Prism::Node end def initialize(source, name, name_loc, operator_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#7936 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7688 + # source://prism//lib/prism/node.rb#7844 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7693 + # source://prism//lib/prism/node.rb#7849 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7703 + # source://prism//lib/prism/node.rb#7859 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7698 + # source://prism//lib/prism/node.rb#7854 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?name_loc: Location, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> GlobalVariableOrWriteNode # - # source://prism//lib/prism/node.rb#7708 + # source://prism//lib/prism/node.rb#7864 sig do params( name: Symbol, @@ -14298,13 +14884,13 @@ class Prism::GlobalVariableOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7693 + # source://prism//lib/prism/node.rb#7849 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#7716 + # source://prism//lib/prism/node.rb#7872 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -14314,33 +14900,33 @@ class Prism::GlobalVariableOrWriteNode < ::Prism::Node sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#7747 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#7902 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#7721 + # source://prism//lib/prism/node.rb#7877 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#7724 + # source://prism//lib/prism/node.rb#7880 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#7742 + # source://prism//lib/prism/node.rb#7897 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#7731 + # source://prism//lib/prism/node.rb#7887 sig { returns(Prism::Location) } def operator_loc; end @@ -14359,13 +14945,13 @@ class Prism::GlobalVariableOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7771 + # source://prism//lib/prism/node.rb#7920 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#7738 + # source://prism//lib/prism/node.rb#7894 sig { returns(Prism::Node) } def value; end @@ -14377,7 +14963,7 @@ class Prism::GlobalVariableOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7781 + # source://prism//lib/prism/node.rb#7930 def type; end end end @@ -14387,67 +14973,73 @@ end # $foo # ^^^^ # -# source://prism//lib/prism/node.rb#7790 +# source://prism//lib/prism/node.rb#7949 class Prism::GlobalVariableReadNode < ::Prism::Node # def initialize: (Symbol name, Location location) -> void # # @return [GlobalVariableReadNode] a new instance of GlobalVariableReadNode # - # source://prism//lib/prism/node.rb#7792 + # source://prism//lib/prism/node.rb#7951 sig { params(source: Prism::Source, name: Symbol, location: Prism::Location).void } def initialize(source, name, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#8033 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7800 + # source://prism//lib/prism/node.rb#7959 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7805 + # source://prism//lib/prism/node.rb#7964 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7815 + # source://prism//lib/prism/node.rb#7974 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7810 + # source://prism//lib/prism/node.rb#7969 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?location: Location) -> GlobalVariableReadNode # - # source://prism//lib/prism/node.rb#7820 + # source://prism//lib/prism/node.rb#7979 sig { params(name: Symbol, location: Prism::Location).returns(Prism::GlobalVariableReadNode) } def copy(name: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7805 + # source://prism//lib/prism/node.rb#7964 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#7828 + # source://prism//lib/prism/node.rb#7987 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#7841 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#7999 + sig { override.returns(String) } + def inspect; end # 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. # @@ -14455,7 +15047,7 @@ class Prism::GlobalVariableReadNode < ::Prism::Node # # $_Test # name `:$_Test` # - # source://prism//lib/prism/node.rb#7837 + # source://prism//lib/prism/node.rb#7996 sig { returns(Symbol) } def name; end @@ -14474,7 +15066,7 @@ class Prism::GlobalVariableReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7861 + # source://prism//lib/prism/node.rb#8017 sig { override.returns(Symbol) } def type; end @@ -14486,7 +15078,7 @@ class Prism::GlobalVariableReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7871 + # source://prism//lib/prism/node.rb#8027 def type; end end end @@ -14496,71 +15088,77 @@ end # $foo, $bar = baz # ^^^^ ^^^^ # -# source://prism//lib/prism/node.rb#7880 +# source://prism//lib/prism/node.rb#8043 class Prism::GlobalVariableTargetNode < ::Prism::Node # def initialize: (Symbol name, Location location) -> void # # @return [GlobalVariableTargetNode] a new instance of GlobalVariableTargetNode # - # source://prism//lib/prism/node.rb#7882 + # source://prism//lib/prism/node.rb#8045 sig { params(source: Prism::Source, name: Symbol, location: Prism::Location).void } def initialize(source, name, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#8123 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7890 + # source://prism//lib/prism/node.rb#8053 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7895 + # source://prism//lib/prism/node.rb#8058 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7905 + # source://prism//lib/prism/node.rb#8068 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7900 + # source://prism//lib/prism/node.rb#8063 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?location: Location) -> GlobalVariableTargetNode # - # source://prism//lib/prism/node.rb#7910 + # source://prism//lib/prism/node.rb#8073 sig { params(name: Symbol, location: Prism::Location).returns(Prism::GlobalVariableTargetNode) } def copy(name: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7895 + # source://prism//lib/prism/node.rb#8058 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#7918 + # source://prism//lib/prism/node.rb#8081 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#7927 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#8089 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#7923 + # source://prism//lib/prism/node.rb#8086 sig { returns(Symbol) } def name; end @@ -14579,7 +15177,7 @@ class Prism::GlobalVariableTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7947 + # source://prism//lib/prism/node.rb#8107 sig { override.returns(Symbol) } def type; end @@ -14591,7 +15189,7 @@ class Prism::GlobalVariableTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7957 + # source://prism//lib/prism/node.rb#8117 def type; end end end @@ -14601,13 +15199,13 @@ end # $foo = 1 # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#7966 +# source://prism//lib/prism/node.rb#8133 class Prism::GlobalVariableWriteNode < ::Prism::Node # def initialize: (Symbol name, Location name_loc, Prism::node value, Location operator_loc, Location location) -> void # # @return [GlobalVariableWriteNode] a new instance of GlobalVariableWriteNode # - # source://prism//lib/prism/node.rb#7968 + # source://prism//lib/prism/node.rb#8135 sig do params( source: Prism::Source, @@ -14620,33 +15218,39 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node end def initialize(source, name, name_loc, value, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#8254 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7979 + # source://prism//lib/prism/node.rb#8146 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7984 + # source://prism//lib/prism/node.rb#8151 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7994 + # source://prism//lib/prism/node.rb#8161 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#7989 + # source://prism//lib/prism/node.rb#8156 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?name_loc: Location, ?value: Prism::node, ?operator_loc: Location, ?location: Location) -> GlobalVariableWriteNode # - # source://prism//lib/prism/node.rb#7999 + # source://prism//lib/prism/node.rb#8166 sig do params( name: Symbol, @@ -14661,46 +15265,56 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7984 + # source://prism//lib/prism/node.rb#8151 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, value: Prism::node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#8007 + # source://prism//lib/prism/node.rb#8174 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#8038 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#8220 + sig { override.returns(String) } + def inspect; 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 = :bar # name `:$foo` # - # source://prism//lib/prism/node.rb#8012 + # $_Test = 123 # name `:$_Test` + # + # source://prism//lib/prism/node.rb#8183 sig { returns(Symbol) } def name; end - # attr_reader name_loc: Location + # The location of the global variable's name. # - # source://prism//lib/prism/node.rb#8015 + # $foo = :bar + # ^^^^ + # + # source://prism//lib/prism/node.rb#8189 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#8033 + # source://prism//lib/prism/node.rb#8215 sig { returns(String) } def operator; end - # attr_reader operator_loc: Location + # The location of the `=` operator. + # + # $foo = :bar + # ^ # - # source://prism//lib/prism/node.rb#8025 + # source://prism//lib/prism/node.rb#8208 sig { returns(Prism::Location) } def operator_loc; end @@ -14719,13 +15333,19 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8062 + # source://prism//lib/prism/node.rb#8238 sig { override.returns(Symbol) } def type; end - # attr_reader value: Prism::node + # The value to write to the global variable. It 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#8022 + # $foo = :bar + # ^^^^ + # + # $-xyz = 123 + # ^^^ + # + # source://prism//lib/prism/node.rb#8202 sig { returns(Prism::Node) } def value; end @@ -14737,7 +15357,7 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8072 + # source://prism//lib/prism/node.rb#8248 def type; end end end @@ -14747,13 +15367,13 @@ end # { a => b } # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#8081 +# source://prism//lib/prism/node.rb#8267 class Prism::HashNode < ::Prism::Node # def initialize: (Location opening_loc, Array[AssocNode | AssocSplatNode] elements, Location closing_loc, Location location) -> void # # @return [HashNode] a new instance of HashNode # - # source://prism//lib/prism/node.rb#8083 + # source://prism//lib/prism/node.rb#8269 sig do params( source: Prism::Source, @@ -14765,21 +15385,27 @@ class Prism::HashNode < ::Prism::Node end def initialize(source, opening_loc, elements, closing_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#8385 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8093 + # source://prism//lib/prism/node.rb#8279 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8098 + # source://prism//lib/prism/node.rb#8284 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#8161 + # source://prism//lib/prism/node.rb#8346 sig { returns(String) } def closing; end @@ -14788,25 +15414,25 @@ class Prism::HashNode < ::Prism::Node # { a => b } # ^ # - # source://prism//lib/prism/node.rb#8148 + # source://prism//lib/prism/node.rb#8334 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#8108 + # source://prism//lib/prism/node.rb#8294 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#8103 + # source://prism//lib/prism/node.rb#8289 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?opening_loc: Location, ?elements: Array[AssocNode | AssocSplatNode], ?closing_loc: Location, ?location: Location) -> HashNode # - # source://prism//lib/prism/node.rb#8113 + # source://prism//lib/prism/node.rb#8299 sig do params( opening_loc: Prism::Location, @@ -14820,13 +15446,13 @@ class Prism::HashNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8098 + # source://prism//lib/prism/node.rb#8284 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { opening_loc: Location, elements: Array[AssocNode | AssocSplatNode], closing_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#8121 + # source://prism//lib/prism/node.rb#8307 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -14838,22 +15464,22 @@ class Prism::HashNode < ::Prism::Node # { **foo } # ^^^^^ # - # source://prism//lib/prism/node.rb#8142 + # source://prism//lib/prism/node.rb#8328 sig { returns(T::Array[T.any(Prism::AssocNode, Prism::AssocSplatNode)]) } def elements; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#8166 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#8351 + sig { override.returns(String) } + def inspect; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#8156 + # source://prism//lib/prism/node.rb#8341 sig { returns(String) } def opening; end @@ -14862,7 +15488,7 @@ class Prism::HashNode < ::Prism::Node # { a => b } # ^ # - # source://prism//lib/prism/node.rb#8129 + # source://prism//lib/prism/node.rb#8315 sig { returns(Prism::Location) } def opening_loc; end @@ -14881,7 +15507,7 @@ class Prism::HashNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8188 + # source://prism//lib/prism/node.rb#8369 sig { override.returns(Symbol) } def type; end @@ -14893,7 +15519,7 @@ class Prism::HashNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8198 + # source://prism//lib/prism/node.rb#8379 def type; end end end @@ -14906,13 +15532,13 @@ end # foo => { a: 1, b: 2, **c } # ^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#8210 +# source://prism//lib/prism/node.rb#8401 class Prism::HashPatternNode < ::Prism::Node # def initialize: (Prism::node? constant, Array[AssocNode] elements, AssocSplatNode | NoKeywordsParameterNode | nil rest, Location? opening_loc, Location? closing_loc, Location location) -> void # # @return [HashPatternNode] a new instance of HashPatternNode # - # source://prism//lib/prism/node.rb#8212 + # source://prism//lib/prism/node.rb#8403 sig do params( source: Prism::Source, @@ -14926,51 +15552,57 @@ class Prism::HashPatternNode < ::Prism::Node end def initialize(source, constant, elements, rest, opening_loc, closing_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#8531 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8224 + # source://prism//lib/prism/node.rb#8415 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8229 + # source://prism//lib/prism/node.rb#8420 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#8302 + # source://prism//lib/prism/node.rb#8492 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#8283 + # source://prism//lib/prism/node.rb#8474 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#8243 + # source://prism//lib/prism/node.rb#8434 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#8234 + # source://prism//lib/prism/node.rb#8425 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader constant: Prism::node? # - # source://prism//lib/prism/node.rb#8261 + # source://prism//lib/prism/node.rb#8452 sig { returns(T.nilable(Prism::Node)) } def constant; end # def copy: (?constant: Prism::node?, ?elements: Array[AssocNode], ?rest: AssocSplatNode | NoKeywordsParameterNode | nil, ?opening_loc: Location?, ?closing_loc: Location?, ?location: Location) -> HashPatternNode # - # source://prism//lib/prism/node.rb#8248 + # source://prism//lib/prism/node.rb#8439 sig do params( constant: T.nilable(Prism::Node), @@ -14986,46 +15618,46 @@ class Prism::HashPatternNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8229 + # source://prism//lib/prism/node.rb#8420 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { constant: Prism::node?, elements: Array[AssocNode], rest: AssocSplatNode | NoKeywordsParameterNode | nil, opening_loc: Location?, closing_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#8256 + # source://prism//lib/prism/node.rb#8447 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # attr_reader elements: Array[AssocNode] # - # source://prism//lib/prism/node.rb#8264 + # source://prism//lib/prism/node.rb#8455 sig { returns(T::Array[Prism::AssocNode]) } def elements; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#8307 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#8497 + sig { override.returns(String) } + def inspect; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#8297 + # source://prism//lib/prism/node.rb#8487 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#8270 + # source://prism//lib/prism/node.rb#8461 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader rest: AssocSplatNode | NoKeywordsParameterNode | nil # - # source://prism//lib/prism/node.rb#8267 + # source://prism//lib/prism/node.rb#8458 sig { returns(T.nilable(T.any(Prism::AssocSplatNode, Prism::NoKeywordsParameterNode))) } def rest; end @@ -15044,7 +15676,7 @@ class Prism::HashPatternNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8341 + # source://prism//lib/prism/node.rb#8515 sig { override.returns(Symbol) } def type; end @@ -15056,22 +15688,22 @@ class Prism::HashPatternNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8351 + # source://prism//lib/prism/node.rb#8525 def type; end end end -# source://prism//lib/prism/node_ext.rb#35 +# source://prism//lib/prism/node_ext.rb#46 module Prism::HeredocQuery # Returns true if this node was represented as a heredoc in the source code. # # @return [Boolean] # - # source://prism//lib/prism/node_ext.rb#37 + # source://prism//lib/prism/node_ext.rb#48 def heredoc?; end end -# Represents the use of the `if` keyword, either in the block form or the modifier form. +# Represents the use of the `if` keyword, either in the block form or the modifier form, or a ternary expression. # # bar if foo # ^^^^^^^^^^ @@ -15079,13 +15711,16 @@ end # if foo then bar end # ^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#8363 +# foo ? bar : baz +# ^^^^^^^^^^^^^^^ +# +# source://prism//lib/prism/node.rb#8552 class Prism::IfNode < ::Prism::Node # def initialize: (Location? if_keyword_loc, Prism::node predicate, Location? then_keyword_loc, StatementsNode? statements, Prism::node? consequent, Location? end_keyword_loc, Location location) -> void # # @return [IfNode] a new instance of IfNode # - # source://prism//lib/prism/node.rb#8365 + # source://prism//lib/prism/node.rb#8554 sig do params( source: Prism::Source, @@ -15100,39 +15735,57 @@ class Prism::IfNode < ::Prism::Node end def initialize(source, if_keyword_loc, predicate, then_keyword_loc, statements, consequent, end_keyword_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#8751 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8378 + # source://prism//lib/prism/node.rb#8567 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8387 + # source://prism//lib/prism/node.rb#8576 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#8401 + # source://prism//lib/prism/node.rb#8590 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#8392 + # source://prism//lib/prism/node.rb#8581 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end - # attr_reader consequent: Prism::node? + # Represents an `ElseNode` or an `IfNode` when there is an `else` or an `elsif` in the `if` statement. + # + # if foo + # bar + # elsif baz + # ^^^^^^^^^ + # qux + # ^^^ + # end + # ^^^ # - # source://prism//lib/prism/node.rb#8451 + # if foo then bar else baz end + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/node.rb#8681 sig { returns(T.nilable(Prism::Node)) } def consequent; end # def copy: (?if_keyword_loc: Location?, ?predicate: Prism::node, ?then_keyword_loc: Location?, ?statements: StatementsNode?, ?consequent: Prism::node?, ?end_keyword_loc: Location?, ?location: Location) -> IfNode # - # source://prism//lib/prism/node.rb#8406 + # source://prism//lib/prism/node.rb#8595 sig do params( if_keyword_loc: T.nilable(Prism::Location), @@ -15149,25 +15802,30 @@ class Prism::IfNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8387 + # source://prism//lib/prism/node.rb#8576 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { if_keyword_loc: Location?, predicate: Prism::node, then_keyword_loc: Location?, statements: StatementsNode?, consequent: Prism::node?, end_keyword_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#8414 + # source://prism//lib/prism/node.rb#8603 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # def end_keyword: () -> String? # - # source://prism//lib/prism/node.rb#8478 + # source://prism//lib/prism/node.rb#8712 sig { returns(T.nilable(String)) } def end_keyword; end - # attr_reader end_keyword_loc: Location? + # The location of the `end` keyword if present, `nil` otherwise. + # + # if foo + # bar + # end + # ^^^ # - # source://prism//lib/prism/node.rb#8454 + # source://prism//lib/prism/node.rb#8689 sig { returns(T.nilable(Prism::Location)) } def end_keyword_loc; end @@ -15176,46 +15834,75 @@ class Prism::IfNode < ::Prism::Node # def if_keyword: () -> String? # - # source://prism//lib/prism/node.rb#8468 + # source://prism//lib/prism/node.rb#8702 sig { returns(T.nilable(String)) } def if_keyword; end - # attr_reader if_keyword_loc: Location? + # The location of the `if` keyword if present. + # + # bar if foo + # ^^ + # + # The `if_keyword_loc` field will be `nil` when the `IfNode` represents a ternary expression. # - # source://prism//lib/prism/node.rb#8419 + # source://prism//lib/prism/node.rb#8613 sig { returns(T.nilable(Prism::Location)) } def if_keyword_loc; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#8483 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#8717 + sig { override.returns(String) } + def inspect; end - # attr_reader predicate: Prism::node + # The node for the condition the `IfNode` is testing. + # + # if foo + # ^^^ + # bar + # end + # + # bar if foo + # ^^^ + # + # foo ? bar : baz + # ^^^ # - # source://prism//lib/prism/node.rb#8432 + # source://prism//lib/prism/node.rb#8637 sig { returns(Prism::Node) } def predicate; end - # source://prism//lib/prism/node.rb#8382 + # source://prism//lib/prism/node.rb#8571 def set_newline_flag(newline_marked); end - # attr_reader statements: StatementsNode? + # Represents the body of statements that will be executed when the predicate is evaluated as truthy. Will be `nil` when no body is provided. + # + # if foo + # bar + # ^^^ + # baz + # ^^^ + # end # - # source://prism//lib/prism/node.rb#8448 + # source://prism//lib/prism/node.rb#8666 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end # def then_keyword: () -> String? # - # source://prism//lib/prism/node.rb#8473 + # source://prism//lib/prism/node.rb#8707 sig { returns(T.nilable(String)) } def then_keyword; end - # attr_reader then_keyword_loc: Location? + # The location of the `then` keyword (if present) or the `?` in a ternary expression, `nil` otherwise. + # + # if foo then bar end + # ^^^^ + # + # a ? b : c + # ^ # - # source://prism//lib/prism/node.rb#8435 + # source://prism//lib/prism/node.rb#8646 sig { returns(T.nilable(Prism::Location)) } def then_keyword_loc; end @@ -15234,7 +15921,7 @@ class Prism::IfNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8519 + # source://prism//lib/prism/node.rb#8735 sig { override.returns(Symbol) } def type; end @@ -15246,7 +15933,7 @@ class Prism::IfNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8529 + # source://prism//lib/prism/node.rb#8745 def type; end end end @@ -15256,13 +15943,13 @@ end # 1.0i # ^^^^ # -# source://prism//lib/prism/node.rb#8538 +# source://prism//lib/prism/node.rb#8766 class Prism::ImaginaryNode < ::Prism::Node # def initialize: (FloatNode | IntegerNode | RationalNode numeric, Location location) -> void # # @return [ImaginaryNode] a new instance of ImaginaryNode # - # source://prism//lib/prism/node.rb#8540 + # source://prism//lib/prism/node.rb#8768 sig do params( source: Prism::Source, @@ -15272,33 +15959,39 @@ class Prism::ImaginaryNode < ::Prism::Node end def initialize(source, numeric, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#8846 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8548 + # source://prism//lib/prism/node.rb#8776 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8553 + # source://prism//lib/prism/node.rb#8781 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#8563 + # source://prism//lib/prism/node.rb#8791 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#8558 + # source://prism//lib/prism/node.rb#8786 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?numeric: FloatNode | IntegerNode | RationalNode, ?location: Location) -> ImaginaryNode # - # source://prism//lib/prism/node.rb#8568 + # source://prism//lib/prism/node.rb#8796 sig do params( numeric: T.any(Prism::FloatNode, Prism::IntegerNode, Prism::RationalNode), @@ -15310,28 +16003,28 @@ class Prism::ImaginaryNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8553 + # source://prism//lib/prism/node.rb#8781 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { numeric: FloatNode | IntegerNode | RationalNode, location: Location } # - # source://prism//lib/prism/node.rb#8576 + # source://prism//lib/prism/node.rb#8804 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#8585 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#8812 + sig { override.returns(String) } + def inspect; end # attr_reader numeric: FloatNode | IntegerNode | RationalNode # - # source://prism//lib/prism/node.rb#8581 + # source://prism//lib/prism/node.rb#8809 sig { returns(T.any(Prism::FloatNode, Prism::IntegerNode, Prism::RationalNode)) } def numeric; end @@ -15350,13 +16043,13 @@ class Prism::ImaginaryNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8606 + # source://prism//lib/prism/node.rb#8830 sig { override.returns(Symbol) } def type; end # Returns the value of the node as a Ruby Complex. # - # source://prism//lib/prism/node_ext.rb#87 + # source://prism//lib/prism/node_ext.rb#98 sig { returns(Complex) } def value; end @@ -15368,7 +16061,7 @@ class Prism::ImaginaryNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8616 + # source://prism//lib/prism/node.rb#8840 def type; end end end @@ -15384,67 +16077,73 @@ end # foo in { bar: } # ^^^^ # -# source://prism//lib/prism/node.rb#8631 +# source://prism//lib/prism/node.rb#8862 class Prism::ImplicitNode < ::Prism::Node # def initialize: (Prism::node value, Location location) -> void # # @return [ImplicitNode] a new instance of ImplicitNode # - # source://prism//lib/prism/node.rb#8633 + # source://prism//lib/prism/node.rb#8864 sig { params(source: Prism::Source, value: Prism::Node, location: Prism::Location).void } def initialize(source, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#8942 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8641 + # source://prism//lib/prism/node.rb#8872 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8646 + # source://prism//lib/prism/node.rb#8877 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#8656 + # source://prism//lib/prism/node.rb#8887 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#8651 + # source://prism//lib/prism/node.rb#8882 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?value: Prism::node, ?location: Location) -> ImplicitNode # - # source://prism//lib/prism/node.rb#8661 + # source://prism//lib/prism/node.rb#8892 sig { params(value: Prism::Node, location: Prism::Location).returns(Prism::ImplicitNode) } def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8646 + # source://prism//lib/prism/node.rb#8877 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#8669 + # source://prism//lib/prism/node.rb#8900 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#8678 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#8908 + sig { override.returns(String) } + def inspect; 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 @@ -15461,13 +16160,13 @@ class Prism::ImplicitNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8699 + # source://prism//lib/prism/node.rb#8926 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#8674 + # source://prism//lib/prism/node.rb#8905 sig { returns(Prism::Node) } def value; end @@ -15479,7 +16178,7 @@ class Prism::ImplicitNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8709 + # source://prism//lib/prism/node.rb#8936 def type; end end end @@ -15498,67 +16197,73 @@ end # foo, = bar # ^ # -# source://prism//lib/prism/node.rb#8727 +# source://prism//lib/prism/node.rb#8961 class Prism::ImplicitRestNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [ImplicitRestNode] a new instance of ImplicitRestNode # - # source://prism//lib/prism/node.rb#8729 + # source://prism//lib/prism/node.rb#8963 sig { params(source: Prism::Source, location: Prism::Location).void } def initialize(source, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#9037 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8736 + # source://prism//lib/prism/node.rb#8970 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8741 + # source://prism//lib/prism/node.rb#8975 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#8751 + # source://prism//lib/prism/node.rb#8985 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#8746 + # source://prism//lib/prism/node.rb#8980 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> ImplicitRestNode # - # source://prism//lib/prism/node.rb#8756 + # source://prism//lib/prism/node.rb#8990 sig { params(location: Prism::Location).returns(Prism::ImplicitRestNode) } def copy(location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8741 + # source://prism//lib/prism/node.rb#8975 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#8764 + # source://prism//lib/prism/node.rb#8998 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#8770 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#9003 + sig { override.returns(String) } + def inspect; 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 @@ -15575,7 +16280,7 @@ class Prism::ImplicitRestNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8789 + # source://prism//lib/prism/node.rb#9021 sig { override.returns(Symbol) } def type; end @@ -15587,7 +16292,7 @@ class Prism::ImplicitRestNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8799 + # source://prism//lib/prism/node.rb#9031 def type; end end end @@ -15597,13 +16302,13 @@ end # case a; in b then c end # ^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#8808 +# source://prism//lib/prism/node.rb#9046 class Prism::InNode < ::Prism::Node # def initialize: (Prism::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#8810 + # source://prism//lib/prism/node.rb#9048 sig do params( source: Prism::Source, @@ -15616,33 +16321,39 @@ class Prism::InNode < ::Prism::Node end def initialize(source, pattern, statements, in_loc, then_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#9165 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8821 + # source://prism//lib/prism/node.rb#9059 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8826 + # source://prism//lib/prism/node.rb#9064 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#8839 + # source://prism//lib/prism/node.rb#9077 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#8831 + # source://prism//lib/prism/node.rb#9069 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?pattern: Prism::node, ?statements: StatementsNode?, ?in_loc: Location, ?then_loc: Location?, ?location: Location) -> InNode # - # source://prism//lib/prism/node.rb#8844 + # source://prism//lib/prism/node.rb#9082 sig do params( pattern: Prism::Node, @@ -15657,13 +16368,13 @@ class Prism::InNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8826 + # source://prism//lib/prism/node.rb#9064 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { pattern: Prism::node, statements: StatementsNode?, in_loc: Location, then_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#8852 + # source://prism//lib/prism/node.rb#9090 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -15672,43 +16383,43 @@ class Prism::InNode < ::Prism::Node # def in: () -> String # - # source://prism//lib/prism/node.rb#8884 + # source://prism//lib/prism/node.rb#9121 sig { returns(String) } def in; end # attr_reader in_loc: Location # - # source://prism//lib/prism/node.rb#8863 + # source://prism//lib/prism/node.rb#9101 sig { returns(Prism::Location) } def in_loc; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#8894 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#9131 + sig { override.returns(String) } + def inspect; end # attr_reader pattern: Prism::node # - # source://prism//lib/prism/node.rb#8857 + # source://prism//lib/prism/node.rb#9095 sig { returns(Prism::Node) } def pattern; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#8860 + # source://prism//lib/prism/node.rb#9098 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end # def then: () -> String? # - # source://prism//lib/prism/node.rb#8889 + # source://prism//lib/prism/node.rb#9126 sig { returns(T.nilable(String)) } def then; end # attr_reader then_loc: Location? # - # source://prism//lib/prism/node.rb#8870 + # source://prism//lib/prism/node.rb#9108 sig { returns(T.nilable(Prism::Location)) } def then_loc; end @@ -15727,7 +16438,7 @@ class Prism::InNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8923 + # source://prism//lib/prism/node.rb#9149 sig { override.returns(Symbol) } def type; end @@ -15739,7 +16450,7 @@ class Prism::InNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8933 + # source://prism//lib/prism/node.rb#9159 def type; end end end @@ -15749,13 +16460,13 @@ end # foo.bar[baz] &&= value # ^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#8942 +# source://prism//lib/prism/node.rb#9178 class Prism::IndexAndWriteNode < ::Prism::Node # def initialize: (Integer flags, Prism::node? receiver, Location? call_operator_loc, Location opening_loc, ArgumentsNode? arguments, Location closing_loc, Prism::node? block, Location operator_loc, Prism::node value, Location location) -> void # # @return [IndexAndWriteNode] a new instance of IndexAndWriteNode # - # source://prism//lib/prism/node.rb#8944 + # source://prism//lib/prism/node.rb#9180 sig do params( source: Prism::Source, @@ -15773,15 +16484,21 @@ class Prism::IndexAndWriteNode < ::Prism::Node end def initialize(source, flags, receiver, call_operator_loc, opening_loc, arguments, closing_loc, block, operator_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#9358 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8960 + # source://prism//lib/prism/node.rb#9196 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#9025 + # source://prism//lib/prism/node.rb#9261 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end @@ -15789,61 +16506,61 @@ class Prism::IndexAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9059 + # source://prism//lib/prism/node.rb#9294 sig { returns(T::Boolean) } def attribute_write?; end # attr_reader block: Prism::node? # - # source://prism//lib/prism/node.rb#9035 + # source://prism//lib/prism/node.rb#9271 sig { returns(T.nilable(Prism::Node)) } def block; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#9069 + # source://prism//lib/prism/node.rb#9304 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#9005 + # source://prism//lib/prism/node.rb#9241 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8965 + # source://prism//lib/prism/node.rb#9201 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#9079 + # source://prism//lib/prism/node.rb#9314 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#9028 + # source://prism//lib/prism/node.rb#9264 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#8980 + # source://prism//lib/prism/node.rb#9216 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#8970 + # source://prism//lib/prism/node.rb#9206 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?receiver: Prism::node?, ?call_operator_loc: Location?, ?opening_loc: Location, ?arguments: ArgumentsNode?, ?closing_loc: Location, ?block: Prism::node?, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> IndexAndWriteNode # - # source://prism//lib/prism/node.rb#8985 + # source://prism//lib/prism/node.rb#9221 sig do params( flags: Integer, @@ -15863,13 +16580,13 @@ class Prism::IndexAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8965 + # source://prism//lib/prism/node.rb#9201 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Prism::node?, call_operator_loc: Location?, opening_loc: Location, arguments: ArgumentsNode?, closing_loc: Location, block: Prism::node?, operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#8993 + # source://prism//lib/prism/node.rb#9229 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -15880,43 +16597,43 @@ class Prism::IndexAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9064 + # source://prism//lib/prism/node.rb#9299 sig { returns(T::Boolean) } def ignore_visibility?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#9089 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#9324 + sig { override.returns(String) } + def inspect; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#9074 + # source://prism//lib/prism/node.rb#9309 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#9018 + # source://prism//lib/prism/node.rb#9254 sig { returns(Prism::Location) } def opening_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#9084 + # source://prism//lib/prism/node.rb#9319 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#9038 + # source://prism//lib/prism/node.rb#9274 sig { returns(Prism::Location) } def operator_loc; end # attr_reader receiver: Prism::node? # - # source://prism//lib/prism/node.rb#9002 + # source://prism//lib/prism/node.rb#9238 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -15924,7 +16641,7 @@ class Prism::IndexAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9049 + # source://prism//lib/prism/node.rb#9284 sig { returns(T::Boolean) } def safe_navigation?; end @@ -15943,13 +16660,13 @@ class Prism::IndexAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9134 + # source://prism//lib/prism/node.rb#9342 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#9045 + # source://prism//lib/prism/node.rb#9281 sig { returns(Prism::Node) } def value; end @@ -15957,15 +16674,15 @@ class Prism::IndexAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9054 + # source://prism//lib/prism/node.rb#9289 sig { returns(T::Boolean) } def variable_call?; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#8998 + # source://prism//lib/prism/node.rb#9234 sig { returns(Integer) } def flags; end @@ -15977,7 +16694,7 @@ class Prism::IndexAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9144 + # source://prism//lib/prism/node.rb#9352 def type; end end end @@ -15987,13 +16704,13 @@ end # foo.bar[baz] += value # ^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#9153 +# source://prism//lib/prism/node.rb#9376 class Prism::IndexOperatorWriteNode < ::Prism::Node - # def initialize: (Integer flags, Prism::node? receiver, Location? call_operator_loc, Location opening_loc, ArgumentsNode? arguments, Location closing_loc, Prism::node? block, Symbol operator, Location operator_loc, Prism::node value, Location location) -> void + # def initialize: (Integer flags, Prism::node? receiver, Location? call_operator_loc, Location opening_loc, ArgumentsNode? arguments, Location closing_loc, Prism::node? block, Symbol binary_operator, Location binary_operator_loc, Prism::node value, Location location) -> void # # @return [IndexOperatorWriteNode] a new instance of IndexOperatorWriteNode # - # source://prism//lib/prism/node.rb#9155 + # source://prism//lib/prism/node.rb#9378 sig do params( source: Prism::Source, @@ -16004,23 +16721,29 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node arguments: T.nilable(Prism::ArgumentsNode), closing_loc: Prism::Location, block: T.nilable(Prism::Node), - operator: Symbol, - operator_loc: Prism::Location, + binary_operator: Symbol, + binary_operator_loc: Prism::Location, value: Prism::Node, location: Prism::Location ).void end - def initialize(source, flags, receiver, call_operator_loc, opening_loc, arguments, closing_loc, block, operator, operator_loc, value, location); end + def initialize(source, flags, receiver, call_operator_loc, opening_loc, arguments, closing_loc, block, binary_operator, binary_operator_loc, value, location); end + + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#9555 + def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9172 + # source://prism//lib/prism/node.rb#9395 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#9237 + # source://prism//lib/prism/node.rb#9460 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end @@ -16028,61 +16751,73 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9274 + # source://prism//lib/prism/node.rb#9496 sig { returns(T::Boolean) } def attribute_write?; end - # attr_reader block: Prism::node? + # attr_reader binary_operator: Symbol # - # source://prism//lib/prism/node.rb#9247 - sig { returns(T.nilable(Prism::Node)) } - def block; end + # source://prism//lib/prism/node.rb#9473 + sig { returns(Symbol) } + def binary_operator; end - # def call_operator: () -> String? + # attr_reader binary_operator_loc: Location # - # source://prism//lib/prism/node.rb#9284 + # source://prism//lib/prism/node.rb#9476 + sig { returns(Prism::Location) } + def binary_operator_loc; end + + # attr_reader block: Prism::node? + # + # source://prism//lib/prism/node.rb#9470 + sig { returns(T.nilable(Prism::Node)) } + def block; end + + # def call_operator: () -> String? + # + # source://prism//lib/prism/node.rb#9506 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#9217 + # source://prism//lib/prism/node.rb#9440 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9177 + # source://prism//lib/prism/node.rb#9400 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#9294 + # source://prism//lib/prism/node.rb#9516 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#9240 + # source://prism//lib/prism/node.rb#9463 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9192 + # source://prism//lib/prism/node.rb#9415 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#9182 + # source://prism//lib/prism/node.rb#9405 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end - # def copy: (?flags: Integer, ?receiver: Prism::node?, ?call_operator_loc: Location?, ?opening_loc: Location, ?arguments: ArgumentsNode?, ?closing_loc: Location, ?block: Prism::node?, ?operator: Symbol, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> IndexOperatorWriteNode + # def copy: (?flags: Integer, ?receiver: Prism::node?, ?call_operator_loc: Location?, ?opening_loc: Location, ?arguments: ArgumentsNode?, ?closing_loc: Location, ?block: Prism::node?, ?binary_operator: Symbol, ?binary_operator_loc: Location, ?value: Prism::node, ?location: Location) -> IndexOperatorWriteNode # - # source://prism//lib/prism/node.rb#9197 + # source://prism//lib/prism/node.rb#9420 sig do params( flags: Integer, @@ -16092,24 +16827,24 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node arguments: T.nilable(Prism::ArgumentsNode), closing_loc: Prism::Location, block: T.nilable(Prism::Node), - operator: Symbol, - operator_loc: Prism::Location, + binary_operator: Symbol, + binary_operator_loc: Prism::Location, value: Prism::Node, location: Prism::Location ).returns(Prism::IndexOperatorWriteNode) end - def copy(flags: T.unsafe(nil), receiver: T.unsafe(nil), call_operator_loc: T.unsafe(nil), opening_loc: T.unsafe(nil), arguments: T.unsafe(nil), closing_loc: T.unsafe(nil), block: T.unsafe(nil), operator: T.unsafe(nil), operator_loc: T.unsafe(nil), value: T.unsafe(nil), location: T.unsafe(nil)); end + def copy(flags: T.unsafe(nil), receiver: T.unsafe(nil), call_operator_loc: T.unsafe(nil), opening_loc: T.unsafe(nil), arguments: T.unsafe(nil), closing_loc: T.unsafe(nil), block: T.unsafe(nil), binary_operator: T.unsafe(nil), binary_operator_loc: T.unsafe(nil), value: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9177 + # source://prism//lib/prism/node.rb#9400 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Prism::node?, call_operator_loc: Location?, opening_loc: Location, arguments: ArgumentsNode?, closing_loc: Location, block: Prism::node?, operator: Symbol, operator_loc: Location, value: Prism::node, location: Location } + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Prism::node?, call_operator_loc: Location?, opening_loc: Location, arguments: ArgumentsNode?, closing_loc: Location, block: Prism::node?, binary_operator: Symbol, binary_operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#9205 + # source://prism//lib/prism/node.rb#9428 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -16120,43 +16855,43 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9279 + # source://prism//lib/prism/node.rb#9501 sig { returns(T::Boolean) } def ignore_visibility?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#9299 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#9521 + sig { override.returns(String) } + def inspect; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#9289 + # source://prism//lib/prism/node.rb#9511 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#9230 + # source://prism//lib/prism/node.rb#9453 sig { returns(Prism::Location) } def opening_loc; end - # attr_reader operator: Symbol + # Returns the binary operator used to modify the receiver. This method is + # deprecated in favor of #binary_operator. # - # source://prism//lib/prism/node.rb#9250 - sig { returns(Symbol) } + # source://prism//lib/prism/node_ext.rb#387 def operator; end - # attr_reader operator_loc: Location + # Returns the location of the binary operator used to modify the receiver. + # This method is deprecated in favor of #binary_operator_loc. # - # source://prism//lib/prism/node.rb#9253 - sig { returns(Prism::Location) } + # source://prism//lib/prism/node_ext.rb#394 def operator_loc; end # attr_reader receiver: Prism::node? # - # source://prism//lib/prism/node.rb#9214 + # source://prism//lib/prism/node.rb#9437 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -16164,7 +16899,7 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9264 + # source://prism//lib/prism/node.rb#9486 sig { returns(T::Boolean) } def safe_navigation?; end @@ -16183,13 +16918,13 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9345 + # source://prism//lib/prism/node.rb#9539 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#9260 + # source://prism//lib/prism/node.rb#9483 sig { returns(Prism::Node) } def value; end @@ -16197,15 +16932,15 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9269 + # source://prism//lib/prism/node.rb#9491 sig { returns(T::Boolean) } def variable_call?; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#9210 + # source://prism//lib/prism/node.rb#9433 sig { returns(Integer) } def flags; end @@ -16217,7 +16952,7 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9355 + # source://prism//lib/prism/node.rb#9549 def type; end end end @@ -16227,13 +16962,13 @@ end # foo.bar[baz] ||= value # ^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#9364 +# source://prism//lib/prism/node.rb#9574 class Prism::IndexOrWriteNode < ::Prism::Node # def initialize: (Integer flags, Prism::node? receiver, Location? call_operator_loc, Location opening_loc, ArgumentsNode? arguments, Location closing_loc, Prism::node? block, Location operator_loc, Prism::node value, Location location) -> void # # @return [IndexOrWriteNode] a new instance of IndexOrWriteNode # - # source://prism//lib/prism/node.rb#9366 + # source://prism//lib/prism/node.rb#9576 sig do params( source: Prism::Source, @@ -16251,15 +16986,21 @@ class Prism::IndexOrWriteNode < ::Prism::Node end def initialize(source, flags, receiver, call_operator_loc, opening_loc, arguments, closing_loc, block, operator_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#9754 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9382 + # source://prism//lib/prism/node.rb#9592 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#9447 + # source://prism//lib/prism/node.rb#9657 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end @@ -16267,61 +17008,61 @@ class Prism::IndexOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9481 + # source://prism//lib/prism/node.rb#9690 sig { returns(T::Boolean) } def attribute_write?; end # attr_reader block: Prism::node? # - # source://prism//lib/prism/node.rb#9457 + # source://prism//lib/prism/node.rb#9667 sig { returns(T.nilable(Prism::Node)) } def block; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#9491 + # source://prism//lib/prism/node.rb#9700 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#9427 + # source://prism//lib/prism/node.rb#9637 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9387 + # source://prism//lib/prism/node.rb#9597 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#9501 + # source://prism//lib/prism/node.rb#9710 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#9450 + # source://prism//lib/prism/node.rb#9660 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9402 + # source://prism//lib/prism/node.rb#9612 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#9392 + # source://prism//lib/prism/node.rb#9602 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?receiver: Prism::node?, ?call_operator_loc: Location?, ?opening_loc: Location, ?arguments: ArgumentsNode?, ?closing_loc: Location, ?block: Prism::node?, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> IndexOrWriteNode # - # source://prism//lib/prism/node.rb#9407 + # source://prism//lib/prism/node.rb#9617 sig do params( flags: Integer, @@ -16341,13 +17082,13 @@ class Prism::IndexOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9387 + # source://prism//lib/prism/node.rb#9597 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Prism::node?, call_operator_loc: Location?, opening_loc: Location, arguments: ArgumentsNode?, closing_loc: Location, block: Prism::node?, operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#9415 + # source://prism//lib/prism/node.rb#9625 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -16358,43 +17099,43 @@ class Prism::IndexOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9486 + # source://prism//lib/prism/node.rb#9695 sig { returns(T::Boolean) } def ignore_visibility?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#9511 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#9720 + sig { override.returns(String) } + def inspect; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#9496 + # source://prism//lib/prism/node.rb#9705 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#9440 + # source://prism//lib/prism/node.rb#9650 sig { returns(Prism::Location) } def opening_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#9506 + # source://prism//lib/prism/node.rb#9715 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#9460 + # source://prism//lib/prism/node.rb#9670 sig { returns(Prism::Location) } def operator_loc; end # attr_reader receiver: Prism::node? # - # source://prism//lib/prism/node.rb#9424 + # source://prism//lib/prism/node.rb#9634 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -16402,7 +17143,7 @@ class Prism::IndexOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9471 + # source://prism//lib/prism/node.rb#9680 sig { returns(T::Boolean) } def safe_navigation?; end @@ -16421,13 +17162,13 @@ class Prism::IndexOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9556 + # source://prism//lib/prism/node.rb#9738 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#9467 + # source://prism//lib/prism/node.rb#9677 sig { returns(Prism::Node) } def value; end @@ -16435,15 +17176,15 @@ class Prism::IndexOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9476 + # source://prism//lib/prism/node.rb#9685 sig { returns(T::Boolean) } def variable_call?; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#9420 + # source://prism//lib/prism/node.rb#9630 sig { returns(Integer) } def flags; end @@ -16455,7 +17196,7 @@ class Prism::IndexOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9566 + # source://prism//lib/prism/node.rb#9748 def type; end end end @@ -16473,13 +17214,13 @@ end # for foo[bar] in baz do end # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#9583 +# source://prism//lib/prism/node.rb#9780 class Prism::IndexTargetNode < ::Prism::Node # def initialize: (Integer flags, Prism::node receiver, Location opening_loc, ArgumentsNode? arguments, Location closing_loc, Prism::node? block, Location location) -> void # # @return [IndexTargetNode] a new instance of IndexTargetNode # - # source://prism//lib/prism/node.rb#9585 + # source://prism//lib/prism/node.rb#9782 sig do params( source: Prism::Source, @@ -16494,15 +17235,21 @@ class Prism::IndexTargetNode < ::Prism::Node end def initialize(source, flags, receiver, opening_loc, arguments, closing_loc, block, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#9923 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9598 + # source://prism//lib/prism/node.rb#9795 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#9649 + # source://prism//lib/prism/node.rb#9846 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end @@ -16510,49 +17257,49 @@ class Prism::IndexTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9673 + # source://prism//lib/prism/node.rb#9869 sig { returns(T::Boolean) } def attribute_write?; end # attr_reader block: Prism::node? # - # source://prism//lib/prism/node.rb#9659 + # source://prism//lib/prism/node.rb#9856 sig { returns(T.nilable(Prism::Node)) } def block; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9603 + # source://prism//lib/prism/node.rb#9800 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#9688 + # source://prism//lib/prism/node.rb#9884 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#9652 + # source://prism//lib/prism/node.rb#9849 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9617 + # source://prism//lib/prism/node.rb#9814 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#9608 + # source://prism//lib/prism/node.rb#9805 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?receiver: Prism::node, ?opening_loc: Location, ?arguments: ArgumentsNode?, ?closing_loc: Location, ?block: Prism::node?, ?location: Location) -> IndexTargetNode # - # source://prism//lib/prism/node.rb#9622 + # source://prism//lib/prism/node.rb#9819 sig do params( flags: Integer, @@ -16569,13 +17316,13 @@ class Prism::IndexTargetNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9603 + # source://prism//lib/prism/node.rb#9800 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, receiver: Prism::node, opening_loc: Location, arguments: ArgumentsNode?, closing_loc: Location, block: Prism::node?, location: Location } # - # source://prism//lib/prism/node.rb#9630 + # source://prism//lib/prism/node.rb#9827 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -16586,31 +17333,31 @@ class Prism::IndexTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9678 + # source://prism//lib/prism/node.rb#9874 sig { returns(T::Boolean) } def ignore_visibility?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#9693 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#9889 + sig { override.returns(String) } + def inspect; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#9683 + # source://prism//lib/prism/node.rb#9879 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#9642 + # source://prism//lib/prism/node.rb#9839 sig { returns(Prism::Location) } def opening_loc; end # attr_reader receiver: Prism::node # - # source://prism//lib/prism/node.rb#9639 + # source://prism//lib/prism/node.rb#9836 sig { returns(Prism::Node) } def receiver; end @@ -16618,77 +17365,894 @@ class Prism::IndexTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9663 - sig { returns(T::Boolean) } - def safe_navigation?; end + # source://prism//lib/prism/node.rb#9859 + sig { returns(T::Boolean) } + def safe_navigation?; 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#9907 + sig { override.returns(Symbol) } + def type; end + + # def variable_call?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#9864 + sig { returns(T::Boolean) } + def variable_call?; end + + protected + + # protected attr_reader flags: Integer + # + # source://prism//lib/prism/node.rb#9832 + 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. + # 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#9917 + def type; end + end +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#388 +class Prism::InlineComment < ::Prism::Comment + # Returns a string representation of this comment. + # + # source://prism//lib/prism/parse_result.rb#396 + sig { returns(String) } + def inspect; end + + # Returns true if this comment happens on the same line as other code and + # false if the comment is by itself. + # + # @return [Boolean] + # + # source://prism//lib/prism/parse_result.rb#391 + sig { override.returns(T::Boolean) } + def trailing?; end +end + +# This visitor is responsible for composing the strings that get returned by +# the various #inspect methods defined on each of the nodes. +# +# source://prism//lib/prism/inspect_visitor.rb#12 +class Prism::InspectVisitor < ::Prism::Visitor + # Initializes a new instance of the InspectVisitor. + # + # @return [InspectVisitor] a new instance of InspectVisitor + # + # source://prism//lib/prism/inspect_visitor.rb#35 + sig { params(indent: String).void } + def initialize(indent = T.unsafe(nil)); end + + # The list of commands that we need to execute in order to compose the + # final string. + # + # source://prism//lib/prism/inspect_visitor.rb#32 + def commands; end + + # Compose the final string. + # + # source://prism//lib/prism/inspect_visitor.rb#48 + sig { returns(String) } + def compose; end + + # The current prefix string. + # + # source://prism//lib/prism/inspect_visitor.rb#28 + def indent; end + + # Inspect a AliasGlobalVariableNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#77 + def visit_alias_global_variable_node(node); end + + # Inspect a AliasMethodNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#87 + def visit_alias_method_node(node); end + + # Inspect a AlternationPatternNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#97 + def visit_alternation_pattern_node(node); end + + # Inspect a AndNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#107 + def visit_and_node(node); end + + # Inspect a ArgumentsNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#117 + def visit_arguments_node(node); end + + # Inspect a ArrayNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#133 + def visit_array_node(node); end + + # Inspect a ArrayPatternNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#151 + def visit_array_pattern_node(node); end + + # Inspect a AssocNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#188 + def visit_assoc_node(node); end + + # Inspect a AssocSplatNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#198 + def visit_assoc_splat_node(node); end + + # Inspect a BackReferenceReadNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#210 + def visit_back_reference_read_node(node); end + + # Inspect a BeginNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#216 + def visit_begin_node(node); end + + # Inspect a BlockArgumentNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#247 + def visit_block_argument_node(node); end + + # Inspect a BlockLocalVariableNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#259 + def visit_block_local_variable_node(node); end + + # Inspect a BlockNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#267 + def visit_block_node(node); end + + # Inspect a BlockParameterNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#287 + def visit_block_parameter_node(node); end + + # Inspect a BlockParametersNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#301 + def visit_block_parameters_node(node); end + + # Inspect a BreakNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#323 + def visit_break_node(node); end + + # Inspect a CallAndWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#335 + def visit_call_and_write_node(node); end + + # Inspect a CallNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#355 + def visit_call_node(node); end + + # Inspect a CallOperatorWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#385 + def visit_call_operator_write_node(node); end + + # Inspect a CallOrWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#406 + def visit_call_or_write_node(node); end + + # Inspect a CallTargetNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#426 + def visit_call_target_node(node); end + + # Inspect a CapturePatternNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#438 + def visit_capture_pattern_node(node); end + + # Inspect a CaseMatchNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#448 + def visit_case_match_node(node); end + + # Inspect a CaseNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#476 + def visit_case_node(node); end + + # Inspect a ClassNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#504 + def visit_class_node(node); end + + # Inspect a ClassVariableAndWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#528 + def visit_class_variable_and_write_node(node); end + + # Inspect a ClassVariableOperatorWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#538 + def visit_class_variable_operator_write_node(node); end + + # Inspect a ClassVariableOrWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#549 + def visit_class_variable_or_write_node(node); end + + # Inspect a ClassVariableReadNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#559 + def visit_class_variable_read_node(node); end + + # Inspect a ClassVariableTargetNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#565 + def visit_class_variable_target_node(node); end + + # Inspect a ClassVariableWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#571 + def visit_class_variable_write_node(node); end + + # Inspect a ConstantAndWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#581 + def visit_constant_and_write_node(node); end + + # Inspect a ConstantOperatorWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#591 + def visit_constant_operator_write_node(node); end + + # Inspect a ConstantOrWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#602 + def visit_constant_or_write_node(node); end + + # Inspect a ConstantPathAndWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#612 + def visit_constant_path_and_write_node(node); end + + # Inspect a ConstantPathNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#622 + def visit_constant_path_node(node); end + + # Inspect a ConstantPathOperatorWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#640 + def visit_constant_path_operator_write_node(node); end + + # Inspect a ConstantPathOrWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#651 + def visit_constant_path_or_write_node(node); end + + # Inspect a ConstantPathTargetNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#661 + def visit_constant_path_target_node(node); end + + # Inspect a ConstantPathWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#679 + def visit_constant_path_write_node(node); end + + # Inspect a ConstantReadNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#689 + def visit_constant_read_node(node); end + + # Inspect a ConstantTargetNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#695 + def visit_constant_target_node(node); end + + # Inspect a ConstantWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#701 + def visit_constant_write_node(node); end + + # Inspect a DefNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#711 + def visit_def_node(node); end + + # Inspect a DefinedNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#743 + def visit_defined_node(node); end + + # Inspect a ElseNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#753 + def visit_else_node(node); end + + # Inspect a EmbeddedStatementsNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#766 + def visit_embedded_statements_node(node); end + + # Inspect a EmbeddedVariableNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#779 + def visit_embedded_variable_node(node); end + + # Inspect a EnsureNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#787 + def visit_ensure_node(node); end + + # Inspect a FalseNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#800 + def visit_false_node(node); end + + # Inspect a FindPatternNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#805 + def visit_find_pattern_node(node); end + + # Inspect a FlipFlopNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#831 + def visit_flip_flop_node(node); end + + # Inspect a FloatNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#851 + def visit_float_node(node); end + + # Inspect a ForNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#857 + def visit_for_node(node); end + + # Inspect a ForwardingArgumentsNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#876 + def visit_forwarding_arguments_node(node); end + + # Inspect a ForwardingParameterNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#881 + def visit_forwarding_parameter_node(node); end + + # Inspect a ForwardingSuperNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#886 + def visit_forwarding_super_node(node); end + + # Inspect a GlobalVariableAndWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#897 + def visit_global_variable_and_write_node(node); end + + # Inspect a GlobalVariableOperatorWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#907 + def visit_global_variable_operator_write_node(node); end + + # Inspect a GlobalVariableOrWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#918 + def visit_global_variable_or_write_node(node); end + + # Inspect a GlobalVariableReadNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#928 + def visit_global_variable_read_node(node); end + + # Inspect a GlobalVariableTargetNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#934 + def visit_global_variable_target_node(node); end + + # Inspect a GlobalVariableWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#940 + def visit_global_variable_write_node(node); end + + # Inspect a HashNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#950 + def visit_hash_node(node); end + + # Inspect a HashPatternNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#966 + def visit_hash_pattern_node(node); end + + # Inspect a IfNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#994 + def visit_if_node(node); end + + # Inspect a ImaginaryNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1016 + def visit_imaginary_node(node); end + + # Inspect a ImplicitNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1023 + def visit_implicit_node(node); end + + # Inspect a ImplicitRestNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1030 + def visit_implicit_rest_node(node); end + + # Inspect a InNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1035 + def visit_in_node(node); end + + # Inspect a IndexAndWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1050 + def visit_index_and_write_node(node); end + + # Inspect a IndexOperatorWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1081 + def visit_index_operator_write_node(node); end + + # Inspect a IndexOrWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1113 + def visit_index_or_write_node(node); end + + # Inspect a IndexTargetNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1144 + def visit_index_target_node(node); end + + # Inspect a InstanceVariableAndWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1167 + def visit_instance_variable_and_write_node(node); end + + # Inspect a InstanceVariableOperatorWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1177 + def visit_instance_variable_operator_write_node(node); end + + # Inspect a InstanceVariableOrWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1188 + def visit_instance_variable_or_write_node(node); end + + # Inspect a InstanceVariableReadNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1198 + def visit_instance_variable_read_node(node); end + + # Inspect a InstanceVariableTargetNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1204 + def visit_instance_variable_target_node(node); end + + # Inspect a InstanceVariableWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1210 + def visit_instance_variable_write_node(node); end + + # Inspect a IntegerNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1220 + def visit_integer_node(node); end + + # Inspect a InterpolatedMatchLastLineNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1228 + def visit_interpolated_match_last_line_node(node); end + + # Inspect a InterpolatedRegularExpressionNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1246 + def visit_interpolated_regular_expression_node(node); end + + # Inspect a InterpolatedStringNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1264 + def visit_interpolated_string_node(node); end + + # Inspect a InterpolatedSymbolNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1282 + def visit_interpolated_symbol_node(node); end + + # Inspect a InterpolatedXStringNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1298 + def visit_interpolated_x_string_node(node); end + + # Inspect a ItParametersNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1314 + def visit_it_parameters_node(node); end + + # Inspect a KeywordHashNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1319 + def visit_keyword_hash_node(node); end + + # Inspect a KeywordRestParameterNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1335 + def visit_keyword_rest_parameter_node(node); end + + # Inspect a LambdaNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1349 + def visit_lambda_node(node); end + + # Inspect a LocalVariableAndWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1370 + def visit_local_variable_and_write_node(node); end + + # Inspect a LocalVariableOperatorWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1381 + def visit_local_variable_operator_write_node(node); end + + # Inspect a LocalVariableOrWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1393 + def visit_local_variable_or_write_node(node); end + + # Inspect a LocalVariableReadNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1404 + def visit_local_variable_read_node(node); end + + # Inspect a LocalVariableTargetNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1411 + def visit_local_variable_target_node(node); end + + # Inspect a LocalVariableWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1418 + def visit_local_variable_write_node(node); end + + # Inspect a MatchLastLineNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1429 + def visit_match_last_line_node(node); end + + # Inspect a MatchPredicateNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1440 + def visit_match_predicate_node(node); end + + # Inspect a MatchRequiredNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1450 + def visit_match_required_node(node); end + + # Inspect a MatchWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1460 + def visit_match_write_node(node); end + + # Inspect a MissingNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1476 + def visit_missing_node(node); end + + # Inspect a ModuleNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1481 + def visit_module_node(node); end + + # Inspect a MultiTargetNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1498 + def visit_multi_target_node(node); end + + # Inspect a MultiWriteNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1529 + def visit_multi_write_node(node); end + + # Inspect a NextNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1563 + def visit_next_node(node); end + + # Inspect a NilNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1575 + def visit_nil_node(node); end + + # Inspect a NoKeywordsParameterNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1580 + def visit_no_keywords_parameter_node(node); end + + # Inspect a NumberedParametersNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1587 + def visit_numbered_parameters_node(node); end + + # Inspect a NumberedReferenceReadNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1593 + def visit_numbered_reference_read_node(node); end + + # Inspect a OptionalKeywordParameterNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1599 + def visit_optional_keyword_parameter_node(node); end + + # Inspect a OptionalParameterNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1610 + def visit_optional_parameter_node(node); end + + # Inspect a OrNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1622 + def visit_or_node(node); end + + # Inspect a ParametersNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1632 + def visit_parameters_node(node); end + + # Inspect a ParenthesesNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1691 + def visit_parentheses_node(node); end + + # Inspect a PinnedExpressionNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1704 + def visit_pinned_expression_node(node); end + + # Inspect a PinnedVariableNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1714 + def visit_pinned_variable_node(node); end + + # Inspect a PostExecutionNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1722 + def visit_post_execution_node(node); end + + # Inspect a PreExecutionNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1736 + def visit_pre_execution_node(node); end + + # Inspect a ProgramNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1750 + def visit_program_node(node); end + + # Inspect a RangeNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1758 + def visit_range_node(node); end + + # Inspect a RationalNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1778 + def visit_rational_node(node); end + + # Inspect a RedoNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1785 + def visit_redo_node(node); end + + # Inspect a RegularExpressionNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1790 + def visit_regular_expression_node(node); end + + # Inspect a RequiredKeywordParameterNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1801 + def visit_required_keyword_parameter_node(node); end + + # Inspect a RequiredParameterNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1810 + def visit_required_parameter_node(node); end + + # Inspect a RescueModifierNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1818 + def visit_rescue_modifier_node(node); end + + # Inspect a RescueNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1828 + def visit_rescue_node(node); end + + # Inspect a RestParameterNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1862 + def visit_rest_parameter_node(node); end + + # Inspect a RetryNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1876 + def visit_retry_node(node); end + + # Inspect a ReturnNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1881 + def visit_return_node(node); end + + # Inspect a SelfNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1895 + def visit_self_node(node); end + + # Inspect a ShareableConstantNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1900 + def visit_shareable_constant_node(node); end + + # Inspect a SingletonClassNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1909 + def visit_singleton_class_node(node); end + + # Inspect a SourceEncodingNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1926 + def visit_source_encoding_node(node); end + + # Inspect a SourceFileNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1931 + def visit_source_file_node(node); end + + # Inspect a SourceLineNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1939 + def visit_source_line_node(node); end + + # Inspect a SplatNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1944 + def visit_splat_node(node); end + + # Inspect a StatementsNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1956 + def visit_statements_node(node); end + + # Inspect a StringNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1970 + def visit_string_node(node); end + + # Inspect a SuperNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1981 + def visit_super_node(node); end + + # Inspect a SymbolNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#2001 + def visit_symbol_node(node); end + + # Inspect a TrueNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#2012 + def visit_true_node(node); end + + # Inspect a UndefNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#2017 + def visit_undef_node(node); end + + # Inspect a UnlessNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#2032 + def visit_unless_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. + # Inspect a UntilNode node. # - # 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/inspect_visitor.rb#2054 + def visit_until_node(node); end + + # Inspect a WhenNode node. # - # def type: () -> Symbol + # source://prism//lib/prism/inspect_visitor.rb#2071 + def visit_when_node(node); end + + # Inspect a WhileNode node. # - # source://prism//lib/prism/node.rb#9730 - sig { override.returns(Symbol) } - def type; end + # source://prism//lib/prism/inspect_visitor.rb#2093 + def visit_while_node(node); end - # def variable_call?: () -> bool + # Inspect a XStringNode node. # - # @return [Boolean] + # source://prism//lib/prism/inspect_visitor.rb#2110 + def visit_x_string_node(node); end + + # Inspect a YieldNode node. # - # source://prism//lib/prism/node.rb#9668 - sig { returns(T::Boolean) } - def variable_call?; end + # source://prism//lib/prism/inspect_visitor.rb#2121 + def visit_yield_node(node); end private - # private attr_reader flags: Integer + # Compose a string representing the given inner location field. # - # source://prism//lib/prism/node.rb#9635 - sig { returns(Integer) } - def flags; end + # source://prism//lib/prism/inspect_visitor.rb#2148 + def inspect_location(location); end + + # Compose a header for the given node. + # + # source://prism//lib/prism/inspect_visitor.rb#2137 + def inspect_node(name, 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 + # Compose an inspect string for the given node. # - # source://prism//lib/prism/node.rb#9740 - def type; end + # source://prism//lib/prism/inspect_visitor.rb#41 + sig { params(node: Prism::Node).returns(String) } + def compose(node); end end end -# InlineComment objects are the most common. They correspond to comments in -# the source file like this one that start with #. +# Most of the time, we can simply pass down the indent to the next node. +# However, when we are inside a list we want some extra special formatting +# when we hit an element in that list. In this case, we have a special +# command that replaces the subsequent indent with the given value. # -# source://prism//lib/prism/parse_result.rb#310 -class Prism::InlineComment < ::Prism::Comment - # Returns a string representation of this comment. +# source://prism//lib/prism/inspect_visitor.rb#17 +class Prism::InspectVisitor::Replace + # @return [Replace] a new instance of Replace # - # source://prism//lib/prism/parse_result.rb#318 - sig { returns(String) } - def inspect; end + # source://prism//lib/prism/inspect_visitor.rb#20 + def initialize(value); end - # Returns true if this comment happens on the same line as other code and - # false if the comment is by itself. - # - # @return [Boolean] - # - # source://prism//lib/prism/parse_result.rb#313 - sig { override.returns(T::Boolean) } - def trailing?; end + # source://prism//lib/prism/inspect_visitor.rb#18 + def value; end end # Represents the use of the `&&=` operator for assignment to an instance variable. @@ -16696,13 +18260,13 @@ end # @target &&= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#9749 +# source://prism//lib/prism/node.rb#9938 class Prism::InstanceVariableAndWriteNode < ::Prism::Node # def initialize: (Symbol name, Location name_loc, Location operator_loc, Prism::node value, Location location) -> void # # @return [InstanceVariableAndWriteNode] a new instance of InstanceVariableAndWriteNode # - # source://prism//lib/prism/node.rb#9751 + # source://prism//lib/prism/node.rb#9940 sig do params( source: Prism::Source, @@ -16715,33 +18279,39 @@ class Prism::InstanceVariableAndWriteNode < ::Prism::Node end def initialize(source, name, name_loc, operator_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#10043 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9762 + # source://prism//lib/prism/node.rb#9951 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9767 + # source://prism//lib/prism/node.rb#9956 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9777 + # source://prism//lib/prism/node.rb#9966 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#9772 + # source://prism//lib/prism/node.rb#9961 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?name_loc: Location, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> InstanceVariableAndWriteNode # - # source://prism//lib/prism/node.rb#9782 + # source://prism//lib/prism/node.rb#9971 sig do params( name: Symbol, @@ -16756,13 +18326,13 @@ class Prism::InstanceVariableAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9767 + # source://prism//lib/prism/node.rb#9956 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#9790 + # source://prism//lib/prism/node.rb#9979 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -16772,33 +18342,33 @@ class Prism::InstanceVariableAndWriteNode < ::Prism::Node sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#9821 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#10009 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#9795 + # source://prism//lib/prism/node.rb#9984 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#9798 + # source://prism//lib/prism/node.rb#9987 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#9816 + # source://prism//lib/prism/node.rb#10004 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#9805 + # source://prism//lib/prism/node.rb#9994 sig { returns(Prism::Location) } def operator_loc; end @@ -16817,13 +18387,13 @@ class Prism::InstanceVariableAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9845 + # source://prism//lib/prism/node.rb#10027 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#9812 + # source://prism//lib/prism/node.rb#10001 sig { returns(Prism::Node) } def value; end @@ -16835,7 +18405,7 @@ class Prism::InstanceVariableAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9855 + # source://prism//lib/prism/node.rb#10037 def type; end end end @@ -16845,75 +18415,93 @@ end # @target += value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#9864 +# source://prism//lib/prism/node.rb#10056 class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node - # def initialize: (Symbol name, Location name_loc, Location operator_loc, Prism::node value, Symbol operator, Location location) -> void + # def initialize: (Symbol name, Location name_loc, Location binary_operator_loc, Prism::node value, Symbol binary_operator, Location location) -> void # # @return [InstanceVariableOperatorWriteNode] a new instance of InstanceVariableOperatorWriteNode # - # source://prism//lib/prism/node.rb#9866 + # source://prism//lib/prism/node.rb#10058 sig do params( source: Prism::Source, name: Symbol, name_loc: Prism::Location, - operator_loc: Prism::Location, + binary_operator_loc: Prism::Location, value: Prism::Node, - operator: Symbol, + binary_operator: Symbol, location: Prism::Location ).void end - def initialize(source, name, name_loc, operator_loc, value, operator, location); end + def initialize(source, name, name_loc, binary_operator_loc, value, binary_operator, location); end + + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#10160 + def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9878 + # source://prism//lib/prism/node.rb#10070 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end + # attr_reader binary_operator: Symbol + # + # source://prism//lib/prism/node.rb#10123 + sig { returns(Symbol) } + def binary_operator; end + + # attr_reader binary_operator_loc: Location + # + # source://prism//lib/prism/node.rb#10113 + sig { returns(Prism::Location) } + def binary_operator_loc; end + # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9883 + # source://prism//lib/prism/node.rb#10075 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9893 + # source://prism//lib/prism/node.rb#10085 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#9888 + # source://prism//lib/prism/node.rb#10080 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end - # def copy: (?name: Symbol, ?name_loc: Location, ?operator_loc: Location, ?value: Prism::node, ?operator: Symbol, ?location: Location) -> InstanceVariableOperatorWriteNode + # def copy: (?name: Symbol, ?name_loc: Location, ?binary_operator_loc: Location, ?value: Prism::node, ?binary_operator: Symbol, ?location: Location) -> InstanceVariableOperatorWriteNode # - # source://prism//lib/prism/node.rb#9898 + # source://prism//lib/prism/node.rb#10090 sig do params( name: Symbol, name_loc: Prism::Location, - operator_loc: Prism::Location, + binary_operator_loc: Prism::Location, value: Prism::Node, - operator: Symbol, + binary_operator: Symbol, location: Prism::Location ).returns(Prism::InstanceVariableOperatorWriteNode) end - def copy(name: T.unsafe(nil), name_loc: T.unsafe(nil), operator_loc: T.unsafe(nil), value: T.unsafe(nil), operator: T.unsafe(nil), location: T.unsafe(nil)); end + def copy(name: T.unsafe(nil), name_loc: T.unsafe(nil), binary_operator_loc: T.unsafe(nil), value: T.unsafe(nil), binary_operator: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9883 + # source://prism//lib/prism/node.rb#10075 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Prism::node, operator: Symbol, location: Location } + # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, binary_operator_loc: Location, value: Prism::node, binary_operator: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#9906 + # source://prism//lib/prism/node.rb#10098 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -16923,34 +18511,34 @@ class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#9935 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#10126 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#9911 + # source://prism//lib/prism/node.rb#10103 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#9914 + # source://prism//lib/prism/node.rb#10106 sig { returns(Prism::Location) } def name_loc; end - # attr_reader operator: Symbol + # Returns the binary operator used to modify the receiver. This method is + # deprecated in favor of #binary_operator. # - # source://prism//lib/prism/node.rb#9931 - sig { returns(Symbol) } + # source://prism//lib/prism/node_ext.rb#403 def operator; end - # attr_reader operator_loc: Location + # Returns the location of the binary operator used to modify the receiver. + # This method is deprecated in favor of #binary_operator_loc. # - # source://prism//lib/prism/node.rb#9921 - sig { returns(Prism::Location) } + # source://prism//lib/prism/node_ext.rb#410 def operator_loc; end # Sometimes you want to check an instance of a node against a list of @@ -16968,13 +18556,13 @@ class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9960 + # source://prism//lib/prism/node.rb#10144 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#9928 + # source://prism//lib/prism/node.rb#10120 sig { returns(Prism::Node) } def value; end @@ -16986,7 +18574,7 @@ class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9970 + # source://prism//lib/prism/node.rb#10154 def type; end end end @@ -16996,13 +18584,13 @@ end # @target ||= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#9979 +# source://prism//lib/prism/node.rb#10174 class Prism::InstanceVariableOrWriteNode < ::Prism::Node # def initialize: (Symbol name, Location name_loc, Location operator_loc, Prism::node value, Location location) -> void # # @return [InstanceVariableOrWriteNode] a new instance of InstanceVariableOrWriteNode # - # source://prism//lib/prism/node.rb#9981 + # source://prism//lib/prism/node.rb#10176 sig do params( source: Prism::Source, @@ -17015,33 +18603,39 @@ class Prism::InstanceVariableOrWriteNode < ::Prism::Node end def initialize(source, name, name_loc, operator_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#10279 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9992 + # source://prism//lib/prism/node.rb#10187 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9997 + # source://prism//lib/prism/node.rb#10192 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10007 + # source://prism//lib/prism/node.rb#10202 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#10002 + # source://prism//lib/prism/node.rb#10197 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?name_loc: Location, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> InstanceVariableOrWriteNode # - # source://prism//lib/prism/node.rb#10012 + # source://prism//lib/prism/node.rb#10207 sig do params( name: Symbol, @@ -17056,13 +18650,13 @@ class Prism::InstanceVariableOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9997 + # source://prism//lib/prism/node.rb#10192 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#10020 + # source://prism//lib/prism/node.rb#10215 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -17072,33 +18666,33 @@ class Prism::InstanceVariableOrWriteNode < ::Prism::Node sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#10051 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#10245 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#10025 + # source://prism//lib/prism/node.rb#10220 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#10028 + # source://prism//lib/prism/node.rb#10223 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#10046 + # source://prism//lib/prism/node.rb#10240 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#10035 + # source://prism//lib/prism/node.rb#10230 sig { returns(Prism::Location) } def operator_loc; end @@ -17117,13 +18711,13 @@ class Prism::InstanceVariableOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10075 + # source://prism//lib/prism/node.rb#10263 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#10042 + # source://prism//lib/prism/node.rb#10237 sig { returns(Prism::Node) } def value; end @@ -17135,7 +18729,7 @@ class Prism::InstanceVariableOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10085 + # source://prism//lib/prism/node.rb#10273 def type; end end end @@ -17145,67 +18739,73 @@ end # @foo # ^^^^ # -# source://prism//lib/prism/node.rb#10094 +# source://prism//lib/prism/node.rb#10292 class Prism::InstanceVariableReadNode < ::Prism::Node # def initialize: (Symbol name, Location location) -> void # # @return [InstanceVariableReadNode] a new instance of InstanceVariableReadNode # - # source://prism//lib/prism/node.rb#10096 + # source://prism//lib/prism/node.rb#10294 sig { params(source: Prism::Source, name: Symbol, location: Prism::Location).void } def initialize(source, name, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#10376 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10104 + # source://prism//lib/prism/node.rb#10302 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10109 + # source://prism//lib/prism/node.rb#10307 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10119 + # source://prism//lib/prism/node.rb#10317 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#10114 + # source://prism//lib/prism/node.rb#10312 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?location: Location) -> InstanceVariableReadNode # - # source://prism//lib/prism/node.rb#10124 + # source://prism//lib/prism/node.rb#10322 sig { params(name: Symbol, location: Prism::Location).returns(Prism::InstanceVariableReadNode) } def copy(name: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10109 + # source://prism//lib/prism/node.rb#10307 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#10132 + # source://prism//lib/prism/node.rb#10330 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#10145 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#10342 + sig { override.returns(String) } + def inspect; end # 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). # @@ -17213,7 +18813,7 @@ class Prism::InstanceVariableReadNode < ::Prism::Node # # @_test # name `:@_test` # - # source://prism//lib/prism/node.rb#10141 + # source://prism//lib/prism/node.rb#10339 sig { returns(Symbol) } def name; end @@ -17232,7 +18832,7 @@ class Prism::InstanceVariableReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10165 + # source://prism//lib/prism/node.rb#10360 sig { override.returns(Symbol) } def type; end @@ -17244,7 +18844,7 @@ class Prism::InstanceVariableReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10175 + # source://prism//lib/prism/node.rb#10370 def type; end end end @@ -17254,71 +18854,77 @@ end # @foo, @bar = baz # ^^^^ ^^^^ # -# source://prism//lib/prism/node.rb#10184 +# source://prism//lib/prism/node.rb#10386 class Prism::InstanceVariableTargetNode < ::Prism::Node # def initialize: (Symbol name, Location location) -> void # # @return [InstanceVariableTargetNode] a new instance of InstanceVariableTargetNode # - # source://prism//lib/prism/node.rb#10186 + # source://prism//lib/prism/node.rb#10388 sig { params(source: Prism::Source, name: Symbol, location: Prism::Location).void } def initialize(source, name, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#10466 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10194 + # source://prism//lib/prism/node.rb#10396 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10199 + # source://prism//lib/prism/node.rb#10401 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10209 + # source://prism//lib/prism/node.rb#10411 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#10204 + # source://prism//lib/prism/node.rb#10406 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?location: Location) -> InstanceVariableTargetNode # - # source://prism//lib/prism/node.rb#10214 + # source://prism//lib/prism/node.rb#10416 sig { params(name: Symbol, location: Prism::Location).returns(Prism::InstanceVariableTargetNode) } def copy(name: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10199 + # source://prism//lib/prism/node.rb#10401 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#10222 + # source://prism//lib/prism/node.rb#10424 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#10231 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#10432 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#10227 + # source://prism//lib/prism/node.rb#10429 sig { returns(Symbol) } def name; end @@ -17337,7 +18943,7 @@ class Prism::InstanceVariableTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10251 + # source://prism//lib/prism/node.rb#10450 sig { override.returns(Symbol) } def type; end @@ -17349,7 +18955,7 @@ class Prism::InstanceVariableTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10261 + # source://prism//lib/prism/node.rb#10460 def type; end end end @@ -17359,13 +18965,13 @@ end # @foo = 1 # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#10270 +# source://prism//lib/prism/node.rb#10476 class Prism::InstanceVariableWriteNode < ::Prism::Node # def initialize: (Symbol name, Location name_loc, Prism::node value, Location operator_loc, Location location) -> void # # @return [InstanceVariableWriteNode] a new instance of InstanceVariableWriteNode # - # source://prism//lib/prism/node.rb#10272 + # source://prism//lib/prism/node.rb#10478 sig do params( source: Prism::Source, @@ -17378,33 +18984,39 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node end def initialize(source, name, name_loc, value, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#10597 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10283 + # source://prism//lib/prism/node.rb#10489 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10288 + # source://prism//lib/prism/node.rb#10494 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10298 + # source://prism//lib/prism/node.rb#10504 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#10293 + # source://prism//lib/prism/node.rb#10499 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?name_loc: Location, ?value: Prism::node, ?operator_loc: Location, ?location: Location) -> InstanceVariableWriteNode # - # source://prism//lib/prism/node.rb#10303 + # source://prism//lib/prism/node.rb#10509 sig do params( name: Symbol, @@ -17419,24 +19031,24 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10288 + # source://prism//lib/prism/node.rb#10494 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, name_loc: Location, value: Prism::node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#10311 + # source://prism//lib/prism/node.rb#10517 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#10359 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#10563 + sig { override.returns(String) } + def inspect; end # 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). # @@ -17444,7 +19056,7 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # # @_foo = "bar" # name `@_foo` # - # source://prism//lib/prism/node.rb#10320 + # source://prism//lib/prism/node.rb#10526 sig { returns(Symbol) } def name; end @@ -17453,13 +19065,13 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # @_x = 1 # ^^^ # - # source://prism//lib/prism/node.rb#10326 + # source://prism//lib/prism/node.rb#10532 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#10354 + # source://prism//lib/prism/node.rb#10558 sig { returns(String) } def operator; end @@ -17468,7 +19080,7 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # @x = y # ^ # - # source://prism//lib/prism/node.rb#10346 + # source://prism//lib/prism/node.rb#10551 sig { returns(Prism::Location) } def operator_loc; end @@ -17487,12 +19099,11 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10383 + # source://prism//lib/prism/node.rb#10581 sig { override.returns(Symbol) } def type; end - # The value to assign to the instance variable. Can be any node that - # represents a non-void expression. + # The value to write to the instance variable. It can be any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression). # # @foo = :bar # ^^^^ @@ -17500,7 +19111,7 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # @_x = 1234 # ^^^^ # - # source://prism//lib/prism/node.rb#10340 + # source://prism//lib/prism/node.rb#10545 sig { returns(Prism::Node) } def value; end @@ -17512,34 +19123,34 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10393 + # source://prism//lib/prism/node.rb#10591 def type; end end end # Flags for integer nodes that correspond to the base of the integer. # -# source://prism//lib/prism/node.rb#18866 +# source://prism//lib/prism/node.rb#19241 module Prism::IntegerBaseFlags; end # 0b prefix # -# source://prism//lib/prism/node.rb#18868 +# source://prism//lib/prism/node.rb#19243 Prism::IntegerBaseFlags::BINARY = T.let(T.unsafe(nil), Integer) # 0d or no prefix # -# source://prism//lib/prism/node.rb#18871 +# source://prism//lib/prism/node.rb#19246 Prism::IntegerBaseFlags::DECIMAL = T.let(T.unsafe(nil), Integer) # 0x prefix # -# source://prism//lib/prism/node.rb#18877 +# source://prism//lib/prism/node.rb#19252 Prism::IntegerBaseFlags::HEXADECIMAL = T.let(T.unsafe(nil), Integer) # 0o or 0 prefix # -# source://prism//lib/prism/node.rb#18874 +# source://prism//lib/prism/node.rb#19249 Prism::IntegerBaseFlags::OCTAL = T.let(T.unsafe(nil), Integer) # Represents an integer number literal. @@ -17547,19 +19158,25 @@ Prism::IntegerBaseFlags::OCTAL = T.let(T.unsafe(nil), Integer) # 1 # ^ # -# source://prism//lib/prism/node.rb#10402 +# source://prism//lib/prism/node.rb#10610 class Prism::IntegerNode < ::Prism::Node # def initialize: (Integer flags, Integer value, Location location) -> void # # @return [IntegerNode] a new instance of IntegerNode # - # source://prism//lib/prism/node.rb#10404 + # source://prism//lib/prism/node.rb#10612 sig { params(source: Prism::Source, flags: Integer, value: Integer, location: Prism::Location).void } def initialize(source, flags, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#10715 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10413 + # source://prism//lib/prism/node.rb#10621 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -17567,31 +19184,31 @@ class Prism::IntegerNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10454 + # source://prism//lib/prism/node.rb#10661 sig { returns(T::Boolean) } def binary?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10418 + # source://prism//lib/prism/node.rb#10626 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10428 + # source://prism//lib/prism/node.rb#10636 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#10423 + # source://prism//lib/prism/node.rb#10631 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?value: Integer, ?location: Location) -> IntegerNode # - # source://prism//lib/prism/node.rb#10433 + # source://prism//lib/prism/node.rb#10641 sig { params(flags: Integer, value: Integer, location: Prism::Location).returns(Prism::IntegerNode) } def copy(flags: T.unsafe(nil), value: T.unsafe(nil), location: T.unsafe(nil)); end @@ -17599,20 +19216,20 @@ class Prism::IntegerNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10459 + # source://prism//lib/prism/node.rb#10666 sig { returns(T::Boolean) } def decimal?; end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10418 + # source://prism//lib/prism/node.rb#10626 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, value: Integer, location: Location } # - # source://prism//lib/prism/node.rb#10441 + # source://prism//lib/prism/node.rb#10649 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -17623,21 +19240,21 @@ class Prism::IntegerNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10469 + # source://prism//lib/prism/node.rb#10676 sig { returns(T::Boolean) } def hexadecimal?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#10474 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#10681 + sig { override.returns(String) } + def inspect; end # def octal?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10464 + # source://prism//lib/prism/node.rb#10671 sig { returns(T::Boolean) } def octal?; end @@ -17656,21 +19273,21 @@ class Prism::IntegerNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10496 + # source://prism//lib/prism/node.rb#10699 sig { override.returns(Symbol) } def type; end # The value of the integer literal as a number. # - # source://prism//lib/prism/node.rb#10450 + # source://prism//lib/prism/node.rb#10658 sig { returns(Integer) } def value; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#10446 + # source://prism//lib/prism/node.rb#10654 sig { returns(Integer) } def flags; end @@ -17682,7 +19299,7 @@ class Prism::IntegerNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10506 + # source://prism//lib/prism/node.rb#10709 def type; end end end @@ -17692,7 +19309,7 @@ end # if /foo #{bar} baz/ then end # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#10515 +# source://prism//lib/prism/node.rb#10726 class Prism::InterpolatedMatchLastLineNode < ::Prism::Node include ::Prism::RegularExpressionOptions @@ -17700,7 +19317,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [InterpolatedMatchLastLineNode] a new instance of InterpolatedMatchLastLineNode # - # source://prism//lib/prism/node.rb#10517 + # source://prism//lib/prism/node.rb#10728 sig do params( source: Prism::Source, @@ -17713,9 +19330,15 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node end def initialize(source, flags, opening_loc, parts, closing_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#10897 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10528 + # source://prism//lib/prism/node.rb#10739 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -17723,43 +19346,43 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10613 + # source://prism//lib/prism/node.rb#10823 sig { returns(T::Boolean) } def ascii_8bit?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10538 + # source://prism//lib/prism/node.rb#10749 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#10648 + # source://prism//lib/prism/node.rb#10858 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#10580 + # source://prism//lib/prism/node.rb#10791 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10548 + # source://prism//lib/prism/node.rb#10759 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#10543 + # source://prism//lib/prism/node.rb#10754 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?opening_loc: Location, ?parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode], ?closing_loc: Location, ?location: Location) -> InterpolatedMatchLastLineNode # - # source://prism//lib/prism/node.rb#10553 + # source://prism//lib/prism/node.rb#10764 sig do params( flags: Integer, @@ -17774,13 +19397,13 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10538 + # source://prism//lib/prism/node.rb#10749 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, opening_loc: Location, parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode], closing_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#10561 + # source://prism//lib/prism/node.rb#10772 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -17788,7 +19411,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10608 + # source://prism//lib/prism/node.rb#10818 sig { returns(T::Boolean) } def euc_jp?; end @@ -17796,7 +19419,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10593 + # source://prism//lib/prism/node.rb#10803 sig { returns(T::Boolean) } def extended?; end @@ -17807,7 +19430,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10633 + # source://prism//lib/prism/node.rb#10843 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -17815,7 +19438,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10638 + # source://prism//lib/prism/node.rb#10848 sig { returns(T::Boolean) } def forced_us_ascii_encoding?; end @@ -17823,7 +19446,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10628 + # source://prism//lib/prism/node.rb#10838 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -17831,21 +19454,21 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10588 + # source://prism//lib/prism/node.rb#10798 sig { returns(T::Boolean) } def ignore_case?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#10653 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#10863 + sig { override.returns(String) } + def inspect; end # def multi_line?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10598 + # source://prism//lib/prism/node.rb#10808 sig { returns(T::Boolean) } def multi_line?; end @@ -17853,19 +19476,19 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10603 + # source://prism//lib/prism/node.rb#10813 sig { returns(T::Boolean) } def once?; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#10643 + # source://prism//lib/prism/node.rb#10853 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#10570 + # source://prism//lib/prism/node.rb#10781 sig { returns(Prism::Location) } def opening_loc; end @@ -17874,11 +19497,11 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # attr_reader parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode] # - # source://prism//lib/prism/node.rb#10577 + # source://prism//lib/prism/node.rb#10788 sig { returns(T::Array[T.any(Prism::StringNode, Prism::EmbeddedStatementsNode, Prism::EmbeddedVariableNode)]) } def parts; end - # source://prism//lib/prism/node.rb#10532 + # source://prism//lib/prism/node.rb#10743 def set_newline_flag(newline_marked); end # Sometimes you want to check an instance of a node against a list of @@ -17896,7 +19519,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10677 + # source://prism//lib/prism/node.rb#10881 sig { override.returns(Symbol) } def type; end @@ -17904,7 +19527,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10623 + # source://prism//lib/prism/node.rb#10833 sig { returns(T::Boolean) } def utf_8?; end @@ -17912,15 +19535,15 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10618 + # source://prism//lib/prism/node.rb#10828 sig { returns(T::Boolean) } def windows_31j?; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#10566 + # source://prism//lib/prism/node.rb#10777 sig { returns(Integer) } def flags; end @@ -17932,7 +19555,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10687 + # source://prism//lib/prism/node.rb#10891 def type; end end end @@ -17942,7 +19565,7 @@ end # /foo #{bar} baz/ # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#10696 +# source://prism//lib/prism/node.rb#10911 class Prism::InterpolatedRegularExpressionNode < ::Prism::Node include ::Prism::RegularExpressionOptions @@ -17950,7 +19573,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [InterpolatedRegularExpressionNode] a new instance of InterpolatedRegularExpressionNode # - # source://prism//lib/prism/node.rb#10698 + # source://prism//lib/prism/node.rb#10913 sig do params( source: Prism::Source, @@ -17963,9 +19586,15 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node end def initialize(source, flags, opening_loc, parts, closing_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#11082 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10709 + # source://prism//lib/prism/node.rb#10924 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -17973,43 +19602,43 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10794 + # source://prism//lib/prism/node.rb#11008 sig { returns(T::Boolean) } def ascii_8bit?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10719 + # source://prism//lib/prism/node.rb#10934 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#10829 + # source://prism//lib/prism/node.rb#11043 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#10761 + # source://prism//lib/prism/node.rb#10976 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10729 + # source://prism//lib/prism/node.rb#10944 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#10724 + # source://prism//lib/prism/node.rb#10939 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?opening_loc: Location, ?parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode], ?closing_loc: Location, ?location: Location) -> InterpolatedRegularExpressionNode # - # source://prism//lib/prism/node.rb#10734 + # source://prism//lib/prism/node.rb#10949 sig do params( flags: Integer, @@ -18024,13 +19653,13 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10719 + # source://prism//lib/prism/node.rb#10934 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, opening_loc: Location, parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode], closing_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#10742 + # source://prism//lib/prism/node.rb#10957 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -18038,7 +19667,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10789 + # source://prism//lib/prism/node.rb#11003 sig { returns(T::Boolean) } def euc_jp?; end @@ -18046,7 +19675,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10774 + # source://prism//lib/prism/node.rb#10988 sig { returns(T::Boolean) } def extended?; end @@ -18057,7 +19686,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10814 + # source://prism//lib/prism/node.rb#11028 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -18065,7 +19694,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10819 + # source://prism//lib/prism/node.rb#11033 sig { returns(T::Boolean) } def forced_us_ascii_encoding?; end @@ -18073,7 +19702,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10809 + # source://prism//lib/prism/node.rb#11023 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -18081,21 +19710,21 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10769 + # source://prism//lib/prism/node.rb#10983 sig { returns(T::Boolean) } def ignore_case?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#10834 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#11048 + sig { override.returns(String) } + def inspect; end # def multi_line?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10779 + # source://prism//lib/prism/node.rb#10993 sig { returns(T::Boolean) } def multi_line?; end @@ -18103,19 +19732,19 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10784 + # source://prism//lib/prism/node.rb#10998 sig { returns(T::Boolean) } def once?; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#10824 + # source://prism//lib/prism/node.rb#11038 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#10751 + # source://prism//lib/prism/node.rb#10966 sig { returns(Prism::Location) } def opening_loc; end @@ -18124,11 +19753,11 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # attr_reader parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode] # - # source://prism//lib/prism/node.rb#10758 + # source://prism//lib/prism/node.rb#10973 sig { returns(T::Array[T.any(Prism::StringNode, Prism::EmbeddedStatementsNode, Prism::EmbeddedVariableNode)]) } def parts; end - # source://prism//lib/prism/node.rb#10713 + # source://prism//lib/prism/node.rb#10928 def set_newline_flag(newline_marked); end # Sometimes you want to check an instance of a node against a list of @@ -18146,7 +19775,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10858 + # source://prism//lib/prism/node.rb#11066 sig { override.returns(Symbol) } def type; end @@ -18154,7 +19783,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10804 + # source://prism//lib/prism/node.rb#11018 sig { returns(T::Boolean) } def utf_8?; end @@ -18162,15 +19791,15 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10799 + # source://prism//lib/prism/node.rb#11013 sig { returns(T::Boolean) } def windows_31j?; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#10747 + # source://prism//lib/prism/node.rb#10962 sig { returns(Integer) } def flags; end @@ -18182,7 +19811,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10868 + # source://prism//lib/prism/node.rb#11076 def type; end end end @@ -18192,7 +19821,7 @@ end # "foo #{bar} baz" # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#10877 +# source://prism//lib/prism/node.rb#11096 class Prism::InterpolatedStringNode < ::Prism::Node include ::Prism::HeredocQuery @@ -18200,7 +19829,7 @@ class Prism::InterpolatedStringNode < ::Prism::Node # # @return [InterpolatedStringNode] a new instance of InterpolatedStringNode # - # source://prism//lib/prism/node.rb#10879 + # source://prism//lib/prism/node.rb#11098 sig do params( source: Prism::Source, @@ -18213,45 +19842,51 @@ class Prism::InterpolatedStringNode < ::Prism::Node end def initialize(source, flags, opening_loc, parts, closing_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#11234 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10890 + # source://prism//lib/prism/node.rb#11109 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10900 + # source://prism//lib/prism/node.rb#11119 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#10977 + # source://prism//lib/prism/node.rb#11195 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#10948 + # source://prism//lib/prism/node.rb#11167 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10910 + # source://prism//lib/prism/node.rb#11129 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#10905 + # source://prism//lib/prism/node.rb#11124 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?opening_loc: Location?, ?parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode | InterpolatedStringNode], ?closing_loc: Location?, ?location: Location) -> InterpolatedStringNode # - # source://prism//lib/prism/node.rb#10915 + # source://prism//lib/prism/node.rb#11134 sig do params( flags: Integer, @@ -18266,13 +19901,13 @@ class Prism::InterpolatedStringNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10900 + # source://prism//lib/prism/node.rb#11119 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, opening_loc: Location?, parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode | InterpolatedStringNode], closing_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#10923 + # source://prism//lib/prism/node.rb#11142 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -18283,48 +19918,48 @@ class Prism::InterpolatedStringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10962 + # source://prism//lib/prism/node.rb#11180 sig { returns(T::Boolean) } def frozen?; end sig { returns(T::Boolean) } def heredoc?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#10982 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#11200 + sig { override.returns(String) } + def inspect; end # def mutable?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10967 + # source://prism//lib/prism/node.rb#11185 sig { returns(T::Boolean) } def mutable?; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#10972 + # source://prism//lib/prism/node.rb#11190 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#10932 + # source://prism//lib/prism/node.rb#11151 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode | InterpolatedStringNode] # - # source://prism//lib/prism/node.rb#10945 + # source://prism//lib/prism/node.rb#11164 sig do returns(T::Array[T.any(Prism::StringNode, Prism::EmbeddedStatementsNode, Prism::EmbeddedVariableNode, Prism::InterpolatedStringNode)]) end def parts; end - # source://prism//lib/prism/node.rb#10894 + # source://prism//lib/prism/node.rb#11113 def set_newline_flag(newline_marked); end # Sometimes you want to check an instance of a node against a list of @@ -18342,15 +19977,15 @@ class Prism::InterpolatedStringNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11006 + # source://prism//lib/prism/node.rb#11218 sig { override.returns(Symbol) } def type; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#10928 + # source://prism//lib/prism/node.rb#11147 sig { returns(Integer) } def flags; end @@ -18362,20 +19997,20 @@ class Prism::InterpolatedStringNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11016 + # source://prism//lib/prism/node.rb#11228 def type; end end end # Flags for interpolated string nodes that indicated mutability if they are also marked as literals. # -# source://prism//lib/prism/node.rb#18881 +# source://prism//lib/prism/node.rb#19256 module Prism::InterpolatedStringNodeFlags; end -# source://prism//lib/prism/node.rb#18883 +# source://prism//lib/prism/node.rb#19258 Prism::InterpolatedStringNodeFlags::FROZEN = T.let(T.unsafe(nil), Integer) -# source://prism//lib/prism/node.rb#18886 +# source://prism//lib/prism/node.rb#19261 Prism::InterpolatedStringNodeFlags::MUTABLE = T.let(T.unsafe(nil), Integer) # Represents a symbol literal that contains interpolation. @@ -18383,13 +20018,13 @@ Prism::InterpolatedStringNodeFlags::MUTABLE = T.let(T.unsafe(nil), Integer) # :"foo #{bar} baz" # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#11025 +# source://prism//lib/prism/node.rb#11248 class Prism::InterpolatedSymbolNode < ::Prism::Node # def initialize: (Location? opening_loc, Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode] parts, Location? closing_loc, Location location) -> void # # @return [InterpolatedSymbolNode] a new instance of InterpolatedSymbolNode # - # source://prism//lib/prism/node.rb#11027 + # source://prism//lib/prism/node.rb#11250 sig do params( source: Prism::Source, @@ -18401,45 +20036,51 @@ class Prism::InterpolatedSymbolNode < ::Prism::Node end def initialize(source, opening_loc, parts, closing_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#11371 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11037 + # source://prism//lib/prism/node.rb#11260 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11047 + # source://prism//lib/prism/node.rb#11270 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#11110 + # source://prism//lib/prism/node.rb#11332 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#11091 + # source://prism//lib/prism/node.rb#11314 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11057 + # source://prism//lib/prism/node.rb#11280 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#11052 + # source://prism//lib/prism/node.rb#11275 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?opening_loc: Location?, ?parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode], ?closing_loc: Location?, ?location: Location) -> InterpolatedSymbolNode # - # source://prism//lib/prism/node.rb#11062 + # source://prism//lib/prism/node.rb#11285 sig do params( opening_loc: T.nilable(Prism::Location), @@ -18453,44 +20094,44 @@ class Prism::InterpolatedSymbolNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11047 + # source://prism//lib/prism/node.rb#11270 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { opening_loc: Location?, parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode], closing_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#11070 + # source://prism//lib/prism/node.rb#11293 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#11115 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#11337 + sig { override.returns(String) } + def inspect; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#11105 + # source://prism//lib/prism/node.rb#11327 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#11075 + # source://prism//lib/prism/node.rb#11298 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode] # - # source://prism//lib/prism/node.rb#11088 + # source://prism//lib/prism/node.rb#11311 sig { returns(T::Array[T.any(Prism::StringNode, Prism::EmbeddedStatementsNode, Prism::EmbeddedVariableNode)]) } def parts; end - # source://prism//lib/prism/node.rb#11041 + # source://prism//lib/prism/node.rb#11264 def set_newline_flag(newline_marked); end # Sometimes you want to check an instance of a node against a list of @@ -18508,7 +20149,7 @@ class Prism::InterpolatedSymbolNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11137 + # source://prism//lib/prism/node.rb#11355 sig { override.returns(Symbol) } def type; end @@ -18520,7 +20161,7 @@ class Prism::InterpolatedSymbolNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11147 + # source://prism//lib/prism/node.rb#11365 def type; end end end @@ -18530,7 +20171,7 @@ end # `foo #{bar} baz` # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#11156 +# source://prism//lib/prism/node.rb#11384 class Prism::InterpolatedXStringNode < ::Prism::Node include ::Prism::HeredocQuery @@ -18538,7 +20179,7 @@ class Prism::InterpolatedXStringNode < ::Prism::Node # # @return [InterpolatedXStringNode] a new instance of InterpolatedXStringNode # - # source://prism//lib/prism/node.rb#11158 + # source://prism//lib/prism/node.rb#11386 sig do params( source: Prism::Source, @@ -18550,45 +20191,51 @@ class Prism::InterpolatedXStringNode < ::Prism::Node end def initialize(source, opening_loc, parts, closing_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#11495 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11168 + # source://prism//lib/prism/node.rb#11396 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11178 + # source://prism//lib/prism/node.rb#11406 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#11229 + # source://prism//lib/prism/node.rb#11456 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#11216 + # source://prism//lib/prism/node.rb#11444 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11188 + # source://prism//lib/prism/node.rb#11416 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#11183 + # source://prism//lib/prism/node.rb#11411 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?opening_loc: Location, ?parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode], ?closing_loc: Location, ?location: Location) -> InterpolatedXStringNode # - # source://prism//lib/prism/node.rb#11193 + # source://prism//lib/prism/node.rb#11421 sig do params( opening_loc: Prism::Location, @@ -18602,13 +20249,13 @@ class Prism::InterpolatedXStringNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11178 + # source://prism//lib/prism/node.rb#11406 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { opening_loc: Location, parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode], closing_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#11201 + # source://prism//lib/prism/node.rb#11429 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -18618,31 +20265,31 @@ class Prism::InterpolatedXStringNode < ::Prism::Node sig { returns(T::Boolean) } def heredoc?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#11234 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#11461 + sig { override.returns(String) } + def inspect; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#11224 + # source://prism//lib/prism/node.rb#11451 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#11206 + # source://prism//lib/prism/node.rb#11434 sig { returns(Prism::Location) } def opening_loc; end # attr_reader parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode] # - # source://prism//lib/prism/node.rb#11213 + # source://prism//lib/prism/node.rb#11441 sig { returns(T::Array[T.any(Prism::StringNode, Prism::EmbeddedStatementsNode, Prism::EmbeddedVariableNode)]) } def parts; end - # source://prism//lib/prism/node.rb#11172 + # source://prism//lib/prism/node.rb#11400 def set_newline_flag(newline_marked); end # Sometimes you want to check an instance of a node against a list of @@ -18660,7 +20307,7 @@ class Prism::InterpolatedXStringNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11256 + # source://prism//lib/prism/node.rb#11479 sig { override.returns(Symbol) } def type; end @@ -18672,7 +20319,7 @@ class Prism::InterpolatedXStringNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11266 + # source://prism//lib/prism/node.rb#11489 def type; end end end @@ -18682,67 +20329,73 @@ end # -> { it + it } # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#11275 +# source://prism//lib/prism/node.rb#11508 class Prism::ItParametersNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [ItParametersNode] a new instance of ItParametersNode # - # source://prism//lib/prism/node.rb#11277 + # source://prism//lib/prism/node.rb#11510 sig { params(source: Prism::Source, location: Prism::Location).void } def initialize(source, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#11584 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11284 + # source://prism//lib/prism/node.rb#11517 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11289 + # source://prism//lib/prism/node.rb#11522 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11299 + # source://prism//lib/prism/node.rb#11532 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#11294 + # source://prism//lib/prism/node.rb#11527 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> ItParametersNode # - # source://prism//lib/prism/node.rb#11304 + # source://prism//lib/prism/node.rb#11537 sig { params(location: Prism::Location).returns(Prism::ItParametersNode) } def copy(location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11289 + # source://prism//lib/prism/node.rb#11522 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#11312 + # source://prism//lib/prism/node.rb#11545 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#11318 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#11550 + sig { override.returns(String) } + def inspect; 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 @@ -18759,7 +20412,7 @@ class Prism::ItParametersNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11337 + # source://prism//lib/prism/node.rb#11568 sig { override.returns(Symbol) } def type; end @@ -18771,7 +20424,7 @@ class Prism::ItParametersNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11347 + # source://prism//lib/prism/node.rb#11578 def type; end end end @@ -18781,13 +20434,13 @@ end # foo(a: b) # ^^^^ # -# source://prism//lib/prism/node.rb#11356 +# source://prism//lib/prism/node.rb#11593 class Prism::KeywordHashNode < ::Prism::Node # def initialize: (Integer flags, Array[AssocNode | AssocSplatNode] elements, Location location) -> void # # @return [KeywordHashNode] a new instance of KeywordHashNode # - # source://prism//lib/prism/node.rb#11358 + # source://prism//lib/prism/node.rb#11595 sig do params( source: Prism::Source, @@ -18798,33 +20451,39 @@ class Prism::KeywordHashNode < ::Prism::Node end def initialize(source, flags, elements, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#11683 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11367 + # source://prism//lib/prism/node.rb#11604 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11372 + # source://prism//lib/prism/node.rb#11609 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11382 + # source://prism//lib/prism/node.rb#11619 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#11377 + # source://prism//lib/prism/node.rb#11614 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?elements: Array[AssocNode | AssocSplatNode], ?location: Location) -> KeywordHashNode # - # source://prism//lib/prism/node.rb#11387 + # source://prism//lib/prism/node.rb#11624 sig do params( flags: Integer, @@ -18837,36 +20496,36 @@ class Prism::KeywordHashNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11372 + # source://prism//lib/prism/node.rb#11609 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, elements: Array[AssocNode | AssocSplatNode], location: Location } # - # source://prism//lib/prism/node.rb#11395 + # source://prism//lib/prism/node.rb#11632 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # attr_reader elements: Array[AssocNode | AssocSplatNode] # - # source://prism//lib/prism/node.rb#11404 + # source://prism//lib/prism/node.rb#11641 sig { returns(T::Array[T.any(Prism::AssocNode, Prism::AssocSplatNode)]) } def elements; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#11413 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#11649 + sig { override.returns(String) } + def inspect; end # def symbol_keys?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11408 + # source://prism//lib/prism/node.rb#11644 sig { returns(T::Boolean) } def symbol_keys?; end @@ -18885,15 +20544,15 @@ class Prism::KeywordHashNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11435 + # source://prism//lib/prism/node.rb#11667 sig { override.returns(Symbol) } def type; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#11400 + # source://prism//lib/prism/node.rb#11637 sig { returns(Integer) } def flags; end @@ -18905,19 +20564,19 @@ class Prism::KeywordHashNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11445 + # source://prism//lib/prism/node.rb#11677 def type; end end end # Flags for keyword hash nodes. # -# source://prism//lib/prism/node.rb#18890 +# source://prism//lib/prism/node.rb#19265 module Prism::KeywordHashNodeFlags; end # 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#18892 +# source://prism//lib/prism/node.rb#19267 Prism::KeywordHashNodeFlags::SYMBOL_KEYS = T.let(T.unsafe(nil), Integer) # Represents a keyword rest parameter to a method, block, or lambda definition. @@ -18926,13 +20585,13 @@ Prism::KeywordHashNodeFlags::SYMBOL_KEYS = T.let(T.unsafe(nil), Integer) # ^^^ # end # -# source://prism//lib/prism/node.rb#11455 +# source://prism//lib/prism/node.rb#11696 class Prism::KeywordRestParameterNode < ::Prism::Node # 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#11457 + # source://prism//lib/prism/node.rb#11698 sig do params( source: Prism::Source, @@ -18945,33 +20604,39 @@ class Prism::KeywordRestParameterNode < ::Prism::Node end def initialize(source, flags, name, name_loc, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#11813 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11468 + # source://prism//lib/prism/node.rb#11709 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11473 + # source://prism//lib/prism/node.rb#11714 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11483 + # source://prism//lib/prism/node.rb#11724 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#11478 + # source://prism//lib/prism/node.rb#11719 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?name: Symbol?, ?name_loc: Location?, ?operator_loc: Location, ?location: Location) -> KeywordRestParameterNode # - # source://prism//lib/prism/node.rb#11488 + # source://prism//lib/prism/node.rb#11729 sig do params( flags: Integer, @@ -18986,46 +20651,46 @@ class Prism::KeywordRestParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11473 + # source://prism//lib/prism/node.rb#11714 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, name: Symbol?, name_loc: Location?, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#11496 + # source://prism//lib/prism/node.rb#11737 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#11539 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#11779 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol? # - # source://prism//lib/prism/node.rb#11505 + # source://prism//lib/prism/node.rb#11746 sig { returns(T.nilable(Symbol)) } def name; end # attr_reader name_loc: Location? # - # source://prism//lib/prism/node.rb#11508 + # source://prism//lib/prism/node.rb#11749 sig { returns(T.nilable(Prism::Location)) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#11534 + # source://prism//lib/prism/node.rb#11774 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#11521 + # source://prism//lib/prism/node.rb#11762 sig { returns(Prism::Location) } def operator_loc; end @@ -19033,7 +20698,7 @@ class Prism::KeywordRestParameterNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11529 + # source://prism//lib/prism/node.rb#11769 sig { returns(T::Boolean) } def repeated_parameter?; end @@ -19052,15 +20717,15 @@ class Prism::KeywordRestParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11567 + # source://prism//lib/prism/node.rb#11797 sig { override.returns(Symbol) } def type; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#11501 + # source://prism//lib/prism/node.rb#11742 sig { returns(Integer) } def flags; end @@ -19072,7 +20737,7 @@ class Prism::KeywordRestParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11577 + # source://prism//lib/prism/node.rb#11807 def type; end end end @@ -19082,13 +20747,13 @@ end # ->(value) { value * 2 } # ^^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#11586 +# source://prism//lib/prism/node.rb#11826 class Prism::LambdaNode < ::Prism::Node # def initialize: (Array[Symbol] locals, Location operator_loc, Location opening_loc, Location closing_loc, Prism::node? parameters, Prism::node? body, Location location) -> void # # @return [LambdaNode] a new instance of LambdaNode # - # source://prism//lib/prism/node.rb#11588 + # source://prism//lib/prism/node.rb#11828 sig do params( source: Prism::Source, @@ -19103,51 +20768,57 @@ class Prism::LambdaNode < ::Prism::Node end def initialize(source, locals, operator_loc, opening_loc, closing_loc, parameters, body, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#11956 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11601 + # source://prism//lib/prism/node.rb#11841 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader body: Prism::node? # - # source://prism//lib/prism/node.rb#11664 + # source://prism//lib/prism/node.rb#11904 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11606 + # source://prism//lib/prism/node.rb#11846 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#11678 + # source://prism//lib/prism/node.rb#11917 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#11654 + # source://prism//lib/prism/node.rb#11894 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11619 + # source://prism//lib/prism/node.rb#11859 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#11611 + # source://prism//lib/prism/node.rb#11851 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?locals: Array[Symbol], ?operator_loc: Location, ?opening_loc: Location, ?closing_loc: Location, ?parameters: Prism::node?, ?body: Prism::node?, ?location: Location) -> LambdaNode # - # source://prism//lib/prism/node.rb#11624 + # source://prism//lib/prism/node.rb#11864 sig do params( locals: T::Array[Symbol], @@ -19164,58 +20835,58 @@ class Prism::LambdaNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11606 + # source://prism//lib/prism/node.rb#11846 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { locals: Array[Symbol], operator_loc: Location, opening_loc: Location, closing_loc: Location, parameters: Prism::node?, body: Prism::node?, location: Location } # - # source://prism//lib/prism/node.rb#11632 + # source://prism//lib/prism/node.rb#11872 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#11683 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#11922 + sig { override.returns(String) } + def inspect; end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#11637 + # source://prism//lib/prism/node.rb#11877 sig { returns(T::Array[Symbol]) } def locals; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#11673 + # source://prism//lib/prism/node.rb#11912 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#11647 + # source://prism//lib/prism/node.rb#11887 sig { returns(Prism::Location) } def opening_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#11668 + # source://prism//lib/prism/node.rb#11907 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#11640 + # source://prism//lib/prism/node.rb#11880 sig { returns(Prism::Location) } def operator_loc; end # attr_reader parameters: Prism::node? # - # source://prism//lib/prism/node.rb#11661 + # source://prism//lib/prism/node.rb#11901 sig { returns(T.nilable(Prism::Node)) } def parameters; end @@ -19234,7 +20905,7 @@ class Prism::LambdaNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11718 + # source://prism//lib/prism/node.rb#11940 sig { override.returns(Symbol) } def type; end @@ -19246,7 +20917,7 @@ class Prism::LambdaNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11728 + # source://prism//lib/prism/node.rb#11950 def type; end end end @@ -19261,29 +20932,29 @@ end class Prism::LexCompat # @return [LexCompat] a new instance of LexCompat # - # source://prism//lib/prism/lex_compat.rb#602 + # source://prism//lib/prism/lex_compat.rb#619 def initialize(source, **options); end # Returns the value of attribute options. # - # source://prism//lib/prism/lex_compat.rb#600 + # source://prism//lib/prism/lex_compat.rb#617 def options; end - # source://prism//lib/prism/lex_compat.rb#607 + # source://prism//lib/prism/lex_compat.rb#624 def result; end # Returns the value of attribute source. # - # source://prism//lib/prism/lex_compat.rb#600 + # source://prism//lib/prism/lex_compat.rb#617 def source; end end # Ripper doesn't include the rest of the token in the event, so we need to # trim it down to just the content on the first line when comparing. # -# source://prism//lib/prism/lex_compat.rb#213 +# source://prism//lib/prism/lex_compat.rb#230 class Prism::LexCompat::EndContentToken < ::Prism::LexCompat::Token - # source://prism//lib/prism/lex_compat.rb#214 + # source://prism//lib/prism/lex_compat.rb#231 def ==(other); end end @@ -19291,13 +20962,13 @@ end # heredoc that should be appended onto the list of tokens when the heredoc # closes. # -# source://prism//lib/prism/lex_compat.rb#274 +# source://prism//lib/prism/lex_compat.rb#291 module Prism::LexCompat::Heredoc class << self # Here we will split between the two types of heredocs and return the # object that will store their tokens. # - # source://prism//lib/prism/lex_compat.rb#586 + # source://prism//lib/prism/lex_compat.rb#603 def build(opening); end end end @@ -19306,23 +20977,23 @@ end # that need to be split on "\\\n" to mimic Ripper's behavior. We also need # to keep track of the state that the heredoc was opened in. # -# source://prism//lib/prism/lex_compat.rb#298 +# source://prism//lib/prism/lex_compat.rb#315 class Prism::LexCompat::Heredoc::DashHeredoc # @return [DashHeredoc] a new instance of DashHeredoc # - # source://prism//lib/prism/lex_compat.rb#301 + # source://prism//lib/prism/lex_compat.rb#318 def initialize(split); end - # source://prism//lib/prism/lex_compat.rb#306 + # source://prism//lib/prism/lex_compat.rb#323 def <<(token); end - # source://prism//lib/prism/lex_compat.rb#299 + # source://prism//lib/prism/lex_compat.rb#316 def split; end - # source://prism//lib/prism/lex_compat.rb#310 + # source://prism//lib/prism/lex_compat.rb#327 def to_a; end - # source://prism//lib/prism/lex_compat.rb#299 + # source://prism//lib/prism/lex_compat.rb#316 def tokens; end end @@ -19337,45 +21008,45 @@ end # some extra manipulation on the tokens to make them match Ripper's # output by mirroring the dedent logic that Ripper uses. # -# source://prism//lib/prism/lex_compat.rb#357 +# source://prism//lib/prism/lex_compat.rb#374 class Prism::LexCompat::Heredoc::DedentingHeredoc # @return [DedentingHeredoc] a new instance of DedentingHeredoc # - # source://prism//lib/prism/lex_compat.rb#362 + # source://prism//lib/prism/lex_compat.rb#379 def initialize; end # As tokens are coming in, we track the minimum amount of common leading # whitespace on plain string content tokens. This allows us to later # remove that amount of whitespace from the beginning of each line. # - # source://prism//lib/prism/lex_compat.rb#373 + # source://prism//lib/prism/lex_compat.rb#390 def <<(token); end # Returns the value of attribute dedent. # - # source://prism//lib/prism/lex_compat.rb#360 + # source://prism//lib/prism/lex_compat.rb#377 def dedent; end # Returns the value of attribute dedent_next. # - # source://prism//lib/prism/lex_compat.rb#360 + # source://prism//lib/prism/lex_compat.rb#377 def dedent_next; end # Returns the value of attribute embexpr_balance. # - # source://prism//lib/prism/lex_compat.rb#360 + # source://prism//lib/prism/lex_compat.rb#377 def embexpr_balance; end - # source://prism//lib/prism/lex_compat.rb#410 + # source://prism//lib/prism/lex_compat.rb#427 def to_a; end # Returns the value of attribute tokens. # - # source://prism//lib/prism/lex_compat.rb#360 + # source://prism//lib/prism/lex_compat.rb#377 def tokens; end end -# source://prism//lib/prism/lex_compat.rb#358 +# source://prism//lib/prism/lex_compat.rb#375 Prism::LexCompat::Heredoc::DedentingHeredoc::TAB_WIDTH = T.let(T.unsafe(nil), Integer) # Heredocs that are no dash or tilde heredocs are just a list of tokens. @@ -19383,20 +21054,20 @@ Prism::LexCompat::Heredoc::DedentingHeredoc::TAB_WIDTH = T.let(T.unsafe(nil), In # order back into the token stream and set the state of the last token to # the state that the heredoc was opened in. # -# source://prism//lib/prism/lex_compat.rb#279 +# source://prism//lib/prism/lex_compat.rb#296 class Prism::LexCompat::Heredoc::PlainHeredoc # @return [PlainHeredoc] a new instance of PlainHeredoc # - # source://prism//lib/prism/lex_compat.rb#282 + # source://prism//lib/prism/lex_compat.rb#299 def initialize; end - # source://prism//lib/prism/lex_compat.rb#286 + # source://prism//lib/prism/lex_compat.rb#303 def <<(token); end - # source://prism//lib/prism/lex_compat.rb#290 + # source://prism//lib/prism/lex_compat.rb#307 def to_a; end - # source://prism//lib/prism/lex_compat.rb#280 + # source://prism//lib/prism/lex_compat.rb#297 def tokens; end end @@ -19405,27 +21076,27 @@ end # through named captures in regular expressions). In that case we don't # compare the state. # -# source://prism//lib/prism/lex_compat.rb#231 +# source://prism//lib/prism/lex_compat.rb#248 class Prism::LexCompat::IdentToken < ::Prism::LexCompat::Token - # source://prism//lib/prism/lex_compat.rb#232 + # source://prism//lib/prism/lex_compat.rb#249 def ==(other); end end # Tokens where state should be ignored # used for :on_comment, :on_heredoc_end, :on_embexpr_end # -# source://prism//lib/prism/lex_compat.rb#221 +# source://prism//lib/prism/lex_compat.rb#238 class Prism::LexCompat::IgnoreStateToken < ::Prism::LexCompat::Token - # source://prism//lib/prism/lex_compat.rb#222 + # source://prism//lib/prism/lex_compat.rb#239 def ==(other); end end # Ignored newlines can occasionally have a LABEL state attached to them, so # we compare the state differently here. # -# source://prism//lib/prism/lex_compat.rb#242 +# source://prism//lib/prism/lex_compat.rb#259 class Prism::LexCompat::IgnoredNewlineToken < ::Prism::LexCompat::Token - # source://prism//lib/prism/lex_compat.rb#243 + # source://prism//lib/prism/lex_compat.rb#260 def ==(other); end end @@ -19438,9 +21109,9 @@ end # more accurately, so we need to allow comparing against both END and # END|LABEL. # -# source://prism//lib/prism/lex_compat.rb#262 +# source://prism//lib/prism/lex_compat.rb#279 class Prism::LexCompat::ParamToken < ::Prism::LexCompat::Token - # source://prism//lib/prism/lex_compat.rb#263 + # source://prism//lib/prism/lex_compat.rb#280 def ==(other); end end @@ -19448,55 +21119,112 @@ end # many-to-one mapping because we split up our token types, whereas Ripper # tends to group them. # -# source://prism//lib/prism/lex_compat.rb#16 +# source://prism//lib/prism/lex_compat.rb#33 Prism::LexCompat::RIPPER = T.let(T.unsafe(nil), Hash) +# A result class specialized for holding tokens produced by the lexer. +# +# source://prism//lib/prism/lex_compat.rb#14 +class Prism::LexCompat::Result < ::Prism::Result + # Create a new lex compat result object with the given values. + # + # @return [Result] a new instance of Result + # + # source://prism//lib/prism/lex_compat.rb#19 + def initialize(value, comments, magic_comments, data_loc, errors, warnings, source); end + + # Implement the hash pattern matching interface for Result. + # + # source://prism//lib/prism/lex_compat.rb#25 + def deconstruct_keys(keys); end + + # The list of tokens that were produced by the lexer. + # + # source://prism//lib/prism/lex_compat.rb#16 + def value; end +end + # When we produce tokens, we produce the same arrays that Ripper does. # 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#204 class Prism::LexCompat::Token < ::SimpleDelegator # The type of the token. # - # source://prism//lib/prism/lex_compat.rb#196 + # source://prism//lib/prism/lex_compat.rb#213 def event; end # The location of the token in the source. # - # source://prism//lib/prism/lex_compat.rb#191 + # source://prism//lib/prism/lex_compat.rb#208 def location; end # The state of the lexer when this token was produced. # - # source://prism//lib/prism/lex_compat.rb#206 + # source://prism//lib/prism/lex_compat.rb#223 def state; end # The slice of the source that this token represents. # - # source://prism//lib/prism/lex_compat.rb#201 + # source://prism//lib/prism/lex_compat.rb#218 + def value; end +end + +# This is a result specific to the `lex` and `lex_file` methods. +# +# source://prism//lib/prism/parse_result.rb#593 +class Prism::LexResult < ::Prism::Result + # Create a new lex result object with the given values. + # + # @return [LexResult] a new instance of LexResult + # + # source://prism//lib/prism/parse_result.rb#598 + sig do + params( + value: T::Array[T.untyped], + comments: T::Array[Prism::Comment], + magic_comments: T::Array[Prism::MagicComment], + data_loc: T.nilable(Prism::Location), + errors: T::Array[Prism::ParseError], + warnings: T::Array[Prism::ParseWarning], + source: Prism::Source + ).void + end + def initialize(value, comments, magic_comments, data_loc, errors, warnings, source); end + + # Implement the hash pattern matching interface for LexResult. + # + # source://prism//lib/prism/parse_result.rb#604 + sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } + def deconstruct_keys(keys); end + + # The list of tokens that were parsed from the source code. + # + # source://prism//lib/prism/parse_result.rb#595 + sig { returns(T::Array[T.untyped]) } def value; end end # This is a class that wraps the Ripper lexer to produce almost exactly the # same tokens. # -# source://prism//lib/prism/lex_compat.rb#855 +# source://prism//lib/prism/lex_compat.rb#872 class Prism::LexRipper # @return [LexRipper] a new instance of LexRipper # - # source://prism//lib/prism/lex_compat.rb#858 + # source://prism//lib/prism/lex_compat.rb#875 def initialize(source); end - # source://prism//lib/prism/lex_compat.rb#862 + # source://prism//lib/prism/lex_compat.rb#879 def result; end - # source://prism//lib/prism/lex_compat.rb#856 + # source://prism//lib/prism/lex_compat.rb#873 def source; end private - # source://prism//lib/prism/lex_compat.rb#896 + # source://prism//lib/prism/lex_compat.rb#913 def lex(source); end end @@ -19505,13 +21233,13 @@ end # target &&= value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#11737 +# source://prism//lib/prism/node.rb#11972 class Prism::LocalVariableAndWriteNode < ::Prism::Node # def initialize: (Location name_loc, Location operator_loc, Prism::node value, Symbol name, Integer depth, Location location) -> void # # @return [LocalVariableAndWriteNode] a new instance of LocalVariableAndWriteNode # - # source://prism//lib/prism/node.rb#11739 + # source://prism//lib/prism/node.rb#11974 sig do params( source: Prism::Source, @@ -19525,33 +21253,39 @@ class Prism::LocalVariableAndWriteNode < ::Prism::Node end def initialize(source, name_loc, operator_loc, value, name, depth, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#12081 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11751 + # source://prism//lib/prism/node.rb#11986 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11756 + # source://prism//lib/prism/node.rb#11991 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11766 + # source://prism//lib/prism/node.rb#12001 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#11761 + # source://prism//lib/prism/node.rb#11996 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name_loc: Location, ?operator_loc: Location, ?value: Prism::node, ?name: Symbol, ?depth: Integer, ?location: Location) -> LocalVariableAndWriteNode # - # source://prism//lib/prism/node.rb#11771 + # source://prism//lib/prism/node.rb#12006 sig do params( name_loc: Prism::Location, @@ -19567,19 +21301,19 @@ class Prism::LocalVariableAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11756 + # source://prism//lib/prism/node.rb#11991 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name_loc: Location, operator_loc: Location, value: Prism::node, name: Symbol, depth: Integer, location: Location } # - # source://prism//lib/prism/node.rb#11779 + # source://prism//lib/prism/node.rb#12014 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # attr_reader depth: Integer # - # source://prism//lib/prism/node.rb#11804 + # source://prism//lib/prism/node.rb#12039 sig { returns(Integer) } def depth; end @@ -19589,33 +21323,33 @@ class Prism::LocalVariableAndWriteNode < ::Prism::Node sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#11813 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#12047 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#11801 + # source://prism//lib/prism/node.rb#12036 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#11784 + # source://prism//lib/prism/node.rb#12019 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#11808 + # source://prism//lib/prism/node.rb#12042 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#11791 + # source://prism//lib/prism/node.rb#12026 sig { returns(Prism::Location) } def operator_loc; end @@ -19634,13 +21368,13 @@ class Prism::LocalVariableAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11838 + # source://prism//lib/prism/node.rb#12065 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#11798 + # source://prism//lib/prism/node.rb#12033 sig { returns(Prism::Node) } def value; end @@ -19652,7 +21386,7 @@ class Prism::LocalVariableAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11848 + # source://prism//lib/prism/node.rb#12075 def type; end end end @@ -19662,83 +21396,101 @@ end # target += value # ^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#11857 +# source://prism//lib/prism/node.rb#12095 class Prism::LocalVariableOperatorWriteNode < ::Prism::Node - # def initialize: (Location name_loc, Location operator_loc, Prism::node value, Symbol name, Symbol operator, Integer depth, Location location) -> void + # def initialize: (Location name_loc, Location binary_operator_loc, Prism::node value, Symbol name, Symbol binary_operator, Integer depth, Location location) -> void # # @return [LocalVariableOperatorWriteNode] a new instance of LocalVariableOperatorWriteNode # - # source://prism//lib/prism/node.rb#11859 + # source://prism//lib/prism/node.rb#12097 sig do params( source: Prism::Source, name_loc: Prism::Location, - operator_loc: Prism::Location, + binary_operator_loc: Prism::Location, value: Prism::Node, name: Symbol, - operator: Symbol, + binary_operator: Symbol, depth: Integer, location: Prism::Location ).void end - def initialize(source, name_loc, operator_loc, value, name, operator, depth, location); end + def initialize(source, name_loc, binary_operator_loc, value, name, binary_operator, depth, location); end + + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#12203 + def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11872 + # source://prism//lib/prism/node.rb#12110 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end + # attr_reader binary_operator: Symbol + # + # source://prism//lib/prism/node.rb#12163 + sig { returns(Symbol) } + def binary_operator; end + + # attr_reader binary_operator_loc: Location + # + # source://prism//lib/prism/node.rb#12150 + sig { returns(Prism::Location) } + def binary_operator_loc; end + # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11877 + # source://prism//lib/prism/node.rb#12115 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11887 + # source://prism//lib/prism/node.rb#12125 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#11882 + # source://prism//lib/prism/node.rb#12120 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end - # def copy: (?name_loc: Location, ?operator_loc: Location, ?value: Prism::node, ?name: Symbol, ?operator: Symbol, ?depth: Integer, ?location: Location) -> LocalVariableOperatorWriteNode + # def copy: (?name_loc: Location, ?binary_operator_loc: Location, ?value: Prism::node, ?name: Symbol, ?binary_operator: Symbol, ?depth: Integer, ?location: Location) -> LocalVariableOperatorWriteNode # - # source://prism//lib/prism/node.rb#11892 + # source://prism//lib/prism/node.rb#12130 sig do params( name_loc: Prism::Location, - operator_loc: Prism::Location, + binary_operator_loc: Prism::Location, value: Prism::Node, name: Symbol, - operator: Symbol, + binary_operator: Symbol, depth: Integer, location: Prism::Location ).returns(Prism::LocalVariableOperatorWriteNode) end - def copy(name_loc: T.unsafe(nil), operator_loc: T.unsafe(nil), value: T.unsafe(nil), name: T.unsafe(nil), operator: T.unsafe(nil), depth: T.unsafe(nil), location: T.unsafe(nil)); end + def copy(name_loc: T.unsafe(nil), binary_operator_loc: T.unsafe(nil), value: T.unsafe(nil), name: T.unsafe(nil), binary_operator: T.unsafe(nil), depth: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11877 + # source://prism//lib/prism/node.rb#12115 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (Array[Symbol] keys) -> { name_loc: Location, operator_loc: Location, value: Prism::node, name: Symbol, operator: Symbol, depth: Integer, location: Location } + # def deconstruct_keys: (Array[Symbol] keys) -> { name_loc: Location, binary_operator_loc: Location, value: Prism::node, name: Symbol, binary_operator: Symbol, depth: Integer, location: Location } # - # source://prism//lib/prism/node.rb#11900 + # source://prism//lib/prism/node.rb#12138 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # attr_reader depth: Integer # - # source://prism//lib/prism/node.rb#11928 + # source://prism//lib/prism/node.rb#12166 sig { returns(Integer) } def depth; end @@ -19748,34 +21500,34 @@ class Prism::LocalVariableOperatorWriteNode < ::Prism::Node sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#11932 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#12169 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#11922 + # source://prism//lib/prism/node.rb#12160 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#11905 + # source://prism//lib/prism/node.rb#12143 sig { returns(Prism::Location) } def name_loc; end - # attr_reader operator: Symbol + # Returns the binary operator used to modify the receiver. This method is + # deprecated in favor of #binary_operator. # - # source://prism//lib/prism/node.rb#11925 - sig { returns(Symbol) } + # source://prism//lib/prism/node_ext.rb#419 def operator; end - # attr_reader operator_loc: Location + # Returns the location of the binary operator used to modify the receiver. + # This method is deprecated in favor of #binary_operator_loc. # - # source://prism//lib/prism/node.rb#11912 - sig { returns(Prism::Location) } + # source://prism//lib/prism/node_ext.rb#426 def operator_loc; end # Sometimes you want to check an instance of a node against a list of @@ -19793,13 +21545,13 @@ class Prism::LocalVariableOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11958 + # source://prism//lib/prism/node.rb#12187 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#11919 + # source://prism//lib/prism/node.rb#12157 sig { returns(Prism::Node) } def value; end @@ -19811,7 +21563,7 @@ class Prism::LocalVariableOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11968 + # source://prism//lib/prism/node.rb#12197 def type; end end end @@ -19821,13 +21573,13 @@ end # target ||= value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#11977 +# source://prism//lib/prism/node.rb#12218 class Prism::LocalVariableOrWriteNode < ::Prism::Node # def initialize: (Location name_loc, Location operator_loc, Prism::node value, Symbol name, Integer depth, Location location) -> void # # @return [LocalVariableOrWriteNode] a new instance of LocalVariableOrWriteNode # - # source://prism//lib/prism/node.rb#11979 + # source://prism//lib/prism/node.rb#12220 sig do params( source: Prism::Source, @@ -19841,33 +21593,39 @@ class Prism::LocalVariableOrWriteNode < ::Prism::Node end def initialize(source, name_loc, operator_loc, value, name, depth, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#12327 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11991 + # source://prism//lib/prism/node.rb#12232 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11996 + # source://prism//lib/prism/node.rb#12237 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12006 + # source://prism//lib/prism/node.rb#12247 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12001 + # source://prism//lib/prism/node.rb#12242 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name_loc: Location, ?operator_loc: Location, ?value: Prism::node, ?name: Symbol, ?depth: Integer, ?location: Location) -> LocalVariableOrWriteNode # - # source://prism//lib/prism/node.rb#12011 + # source://prism//lib/prism/node.rb#12252 sig do params( name_loc: Prism::Location, @@ -19883,19 +21641,19 @@ class Prism::LocalVariableOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11996 + # source://prism//lib/prism/node.rb#12237 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name_loc: Location, operator_loc: Location, value: Prism::node, name: Symbol, depth: Integer, location: Location } # - # source://prism//lib/prism/node.rb#12019 + # source://prism//lib/prism/node.rb#12260 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # attr_reader depth: Integer # - # source://prism//lib/prism/node.rb#12044 + # source://prism//lib/prism/node.rb#12285 sig { returns(Integer) } def depth; end @@ -19905,33 +21663,33 @@ class Prism::LocalVariableOrWriteNode < ::Prism::Node sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#12053 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#12293 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#12041 + # source://prism//lib/prism/node.rb#12282 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#12024 + # source://prism//lib/prism/node.rb#12265 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#12048 + # source://prism//lib/prism/node.rb#12288 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#12031 + # source://prism//lib/prism/node.rb#12272 sig { returns(Prism::Location) } def operator_loc; end @@ -19950,13 +21708,13 @@ class Prism::LocalVariableOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12078 + # source://prism//lib/prism/node.rb#12311 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#12038 + # source://prism//lib/prism/node.rb#12279 sig { returns(Prism::Node) } def value; end @@ -19968,7 +21726,7 @@ class Prism::LocalVariableOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12088 + # source://prism//lib/prism/node.rb#12321 def type; end end end @@ -19978,56 +21736,62 @@ end # foo # ^^^ # -# source://prism//lib/prism/node.rb#12097 +# source://prism//lib/prism/node.rb#12341 class Prism::LocalVariableReadNode < ::Prism::Node # def initialize: (Symbol name, Integer depth, Location location) -> void # # @return [LocalVariableReadNode] a new instance of LocalVariableReadNode # - # source://prism//lib/prism/node.rb#12099 + # source://prism//lib/prism/node.rb#12343 sig { params(source: Prism::Source, name: Symbol, depth: Integer, location: Prism::Location).void } def initialize(source, name, depth, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#12443 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12108 + # source://prism//lib/prism/node.rb#12352 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12113 + # source://prism//lib/prism/node.rb#12357 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12123 + # source://prism//lib/prism/node.rb#12367 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12118 + # source://prism//lib/prism/node.rb#12362 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?depth: Integer, ?location: Location) -> LocalVariableReadNode # - # source://prism//lib/prism/node.rb#12128 + # source://prism//lib/prism/node.rb#12372 sig { params(name: Symbol, depth: Integer, location: Prism::Location).returns(Prism::LocalVariableReadNode) } def copy(name: T.unsafe(nil), depth: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12113 + # source://prism//lib/prism/node.rb#12357 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, depth: Integer, location: Location } # - # source://prism//lib/prism/node.rb#12136 + # source://prism//lib/prism/node.rb#12380 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -20039,18 +21803,18 @@ class Prism::LocalVariableReadNode < ::Prism::Node # # 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#12162 + # source://prism//lib/prism/node.rb#12406 sig { returns(Integer) } def depth; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#12166 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#12409 + sig { override.returns(String) } + def inspect; end # The name of the local variable, which is an [identifier](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#identifiers). # @@ -20066,7 +21830,7 @@ class Prism::LocalVariableReadNode < ::Prism::Node # # it # name `:0it` # - # source://prism//lib/prism/node.rb#12153 + # source://prism//lib/prism/node.rb#12397 sig { returns(Symbol) } def name; end @@ -20085,7 +21849,7 @@ class Prism::LocalVariableReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12187 + # source://prism//lib/prism/node.rb#12427 sig { override.returns(Symbol) } def type; end @@ -20097,7 +21861,7 @@ class Prism::LocalVariableReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12197 + # source://prism//lib/prism/node.rb#12437 def type; end end end @@ -20107,77 +21871,83 @@ end # foo, bar = baz # ^^^ ^^^ # -# source://prism//lib/prism/node.rb#12206 +# source://prism//lib/prism/node.rb#12454 class Prism::LocalVariableTargetNode < ::Prism::Node # def initialize: (Symbol name, Integer depth, Location location) -> void # # @return [LocalVariableTargetNode] a new instance of LocalVariableTargetNode # - # source://prism//lib/prism/node.rb#12208 + # source://prism//lib/prism/node.rb#12456 sig { params(source: Prism::Source, name: Symbol, depth: Integer, location: Prism::Location).void } def initialize(source, name, depth, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#12538 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12217 + # source://prism//lib/prism/node.rb#12465 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12222 + # source://prism//lib/prism/node.rb#12470 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12232 + # source://prism//lib/prism/node.rb#12480 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12227 + # source://prism//lib/prism/node.rb#12475 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?depth: Integer, ?location: Location) -> LocalVariableTargetNode # - # source://prism//lib/prism/node.rb#12237 + # source://prism//lib/prism/node.rb#12485 sig { params(name: Symbol, depth: Integer, location: Prism::Location).returns(Prism::LocalVariableTargetNode) } def copy(name: T.unsafe(nil), depth: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12222 + # source://prism//lib/prism/node.rb#12470 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, depth: Integer, location: Location } # - # source://prism//lib/prism/node.rb#12245 + # source://prism//lib/prism/node.rb#12493 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # attr_reader depth: Integer # - # source://prism//lib/prism/node.rb#12253 + # source://prism//lib/prism/node.rb#12501 sig { returns(Integer) } def depth; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#12257 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#12504 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#12250 + # source://prism//lib/prism/node.rb#12498 sig { returns(Symbol) } def name; end @@ -20196,7 +21966,7 @@ class Prism::LocalVariableTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12278 + # source://prism//lib/prism/node.rb#12522 sig { override.returns(Symbol) } def type; end @@ -20208,7 +21978,7 @@ class Prism::LocalVariableTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12288 + # source://prism//lib/prism/node.rb#12532 def type; end end end @@ -20218,13 +21988,13 @@ end # foo = 1 # ^^^^^^^ # -# source://prism//lib/prism/node.rb#12297 +# source://prism//lib/prism/node.rb#12549 class Prism::LocalVariableWriteNode < ::Prism::Node # def initialize: (Symbol name, Integer depth, Location name_loc, Prism::node value, Location operator_loc, Location location) -> void # # @return [LocalVariableWriteNode] a new instance of LocalVariableWriteNode # - # source://prism//lib/prism/node.rb#12299 + # source://prism//lib/prism/node.rb#12551 sig do params( source: Prism::Source, @@ -20238,33 +22008,39 @@ class Prism::LocalVariableWriteNode < ::Prism::Node end def initialize(source, name, depth, name_loc, value, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#12684 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12311 + # source://prism//lib/prism/node.rb#12563 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12316 + # source://prism//lib/prism/node.rb#12568 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12326 + # source://prism//lib/prism/node.rb#12578 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12321 + # source://prism//lib/prism/node.rb#12573 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?name: Symbol, ?depth: Integer, ?name_loc: Location, ?value: Prism::node, ?operator_loc: Location, ?location: Location) -> LocalVariableWriteNode # - # source://prism//lib/prism/node.rb#12331 + # source://prism//lib/prism/node.rb#12583 sig do params( name: Symbol, @@ -20280,52 +22056,68 @@ class Prism::LocalVariableWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12316 + # source://prism//lib/prism/node.rb#12568 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { name: Symbol, depth: Integer, name_loc: Location, value: Prism::node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#12339 + # source://prism//lib/prism/node.rb#12591 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end - # attr_reader depth: Integer + # The number of semantic scopes we have to traverse to find the declaration of this variable. + # + # foo = 1 # depth 0 # - # source://prism//lib/prism/node.rb#12347 + # tap { foo = 1 } # 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#12609 sig { returns(Integer) } def depth; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#12373 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#12650 + sig { override.returns(String) } + def inspect; 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). + # + # foo = :bar # name `:foo` # - # source://prism//lib/prism/node.rb#12344 + # abc = 123 # name `:abc` + # + # source://prism//lib/prism/node.rb#12600 sig { returns(Symbol) } def name; end - # attr_reader name_loc: Location + # The location of the variable name. + # + # foo = :bar + # ^^^ # - # source://prism//lib/prism/node.rb#12350 + # source://prism//lib/prism/node.rb#12615 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#12368 + # source://prism//lib/prism/node.rb#12645 sig { returns(String) } def operator; end - # attr_reader operator_loc: Location + # The location of the `=` operator. + # + # x = :y + # ^ # - # source://prism//lib/prism/node.rb#12360 + # source://prism//lib/prism/node.rb#12638 sig { returns(Prism::Location) } def operator_loc; end @@ -20344,13 +22136,23 @@ class Prism::LocalVariableWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12398 + # source://prism//lib/prism/node.rb#12668 sig { override.returns(Symbol) } def type; end - # attr_reader value: Prism::node + # The value to write to the local variable. It 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#12357 + # foo = :bar + # ^^^^ + # + # abc = 1234 + # ^^^^ + # + # Note that since the name of a local variable is known before the value is parsed, it is valid for a local variable to appear within the value of its own write. + # + # foo = foo + # + # source://prism//lib/prism/node.rb#12632 sig { returns(Prism::Node) } def value; end @@ -20362,104 +22164,112 @@ class Prism::LocalVariableWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12408 + # source://prism//lib/prism/node.rb#12678 def type; end end end # This represents a location in the source. # -# source://prism//lib/prism/parse_result.rb#104 +# source://prism//lib/prism/parse_result.rb#156 class Prism::Location # Create a new location object with the given source, start byte offset, and # byte length. # # @return [Location] a new instance of Location # - # source://prism//lib/prism/parse_result.rb#119 + # source://prism//lib/prism/parse_result.rb#171 sig { params(source: Prism::Source, start_offset: Integer, length: Integer).void } def initialize(source, start_offset, length); end # Returns true if the given other location is equal to this location. # - # source://prism//lib/prism/parse_result.rb#269 + # source://prism//lib/prism/parse_result.rb#335 sig { params(other: T.untyped).returns(T::Boolean) } def ==(other); end + # Join this location with the first occurrence of the string in the source + # that occurs after this location on the same line, and return the new + # location. This will raise an error if the string does not exist. + # + # source://prism//lib/prism/parse_result.rb#354 + sig { params(string: String).returns(Prism::Location) } + def adjoin(string); end + # Returns a new location that is the result of chopping off the last byte. # - # source://prism//lib/prism/parse_result.rb#165 + # source://prism//lib/prism/parse_result.rb#217 sig { returns(Prism::Location) } def chop; end # Returns all comments that are associated with this location (both leading # and trailing comments). # - # source://prism//lib/prism/parse_result.rb#155 + # source://prism//lib/prism/parse_result.rb#207 sig { returns(T::Array[Prism::Comment]) } def comments; end # Create a new location object with the given options. # - # source://prism//lib/prism/parse_result.rb#160 + # source://prism//lib/prism/parse_result.rb#212 sig { params(source: Prism::Source, start_offset: Integer, length: Integer).returns(Prism::Location) } def copy(source: T.unsafe(nil), start_offset: T.unsafe(nil), length: T.unsafe(nil)); end # Implement the hash pattern matching interface for Location. # - # source://prism//lib/prism/parse_result.rb#259 + # source://prism//lib/prism/parse_result.rb#325 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # The column number in characters where this location ends from the start of # the line. # - # source://prism//lib/prism/parse_result.rb#248 + # source://prism//lib/prism/parse_result.rb#314 sig { returns(Integer) } def end_character_column; end # The character offset from the beginning of the source where this location # ends. # - # source://prism//lib/prism/parse_result.rb#197 + # source://prism//lib/prism/parse_result.rb#263 sig { returns(Integer) } def end_character_offset; end # The column number in code units of the given encoding where this location # ends from the start of the line. # - # source://prism//lib/prism/parse_result.rb#254 + # source://prism//lib/prism/parse_result.rb#320 sig { params(encoding: Encoding).returns(Integer) } def end_code_units_column(encoding = T.unsafe(nil)); end # The offset from the start of the file in code units of the given encoding. # - # source://prism//lib/prism/parse_result.rb#202 + # source://prism//lib/prism/parse_result.rb#268 sig { params(encoding: Encoding).returns(Integer) } def end_code_units_offset(encoding = T.unsafe(nil)); end # The column number in bytes where this location ends from the start of the # line. # - # source://prism//lib/prism/parse_result.rb#242 + # source://prism//lib/prism/parse_result.rb#308 sig { returns(Integer) } def end_column; end # The line number where this location ends. # - # source://prism//lib/prism/parse_result.rb#218 + # source://prism//lib/prism/parse_result.rb#284 sig { returns(Integer) } def end_line; end # The byte offset from the beginning of the source where this location ends. # - # source://prism//lib/prism/parse_result.rb#191 + # source://prism//lib/prism/parse_result.rb#257 sig { returns(Integer) } def end_offset; end # Returns a string representation of this location. # - # source://prism//lib/prism/parse_result.rb#170 + # source://prism//lib/prism/parse_result.rb#222 sig { returns(String) } def inspect; end @@ -20467,102 +22277,117 @@ class Prism::Location # other location. Raises an error if this location is not before the other # location or if they don't share the same source. # - # source://prism//lib/prism/parse_result.rb#278 + # source://prism//lib/prism/parse_result.rb#344 sig { params(other: Prism::Location).returns(Prism::Location) } def join(other); end # Attach a comment to the leading comments of this location. # - # source://prism//lib/prism/parse_result.rb#138 + # source://prism//lib/prism/parse_result.rb#190 sig { params(comment: Prism::Comment).void } def leading_comment(comment); end # These are the comments that are associated with this location that exist # before the start of this location. # - # source://prism//lib/prism/parse_result.rb#133 + # source://prism//lib/prism/parse_result.rb#185 sig { returns(T::Array[Prism::Comment]) } def leading_comments; end # The length of this location in bytes. # - # source://prism//lib/prism/parse_result.rb#115 + # source://prism//lib/prism/parse_result.rb#167 + sig { returns(Integer) } def length; end # Implement the pretty print interface for Location. # - # source://prism//lib/prism/parse_result.rb#264 + # source://prism//lib/prism/parse_result.rb#330 sig { params(q: T.untyped).void } def pretty_print(q); end # The source code that this location represents. # - # source://prism//lib/prism/parse_result.rb#175 + # source://prism//lib/prism/parse_result.rb#232 sig { returns(String) } def slice; end + # The source code that this location represents starting from the beginning + # of the line that this location starts on to the end of the line that this + # location ends on. + # + # source://prism//lib/prism/parse_result.rb#239 + def slice_lines; end + + # Returns all of the lines of the source code associated with this location. + # + # source://prism//lib/prism/parse_result.rb#227 + sig { returns(T::Array[String]) } + def source_lines; end + # The column number in characters where this location ends from the start of # the line. # - # source://prism//lib/prism/parse_result.rb#230 + # source://prism//lib/prism/parse_result.rb#296 sig { returns(Integer) } def start_character_column; end # The character offset from the beginning of the source where this location # starts. # - # source://prism//lib/prism/parse_result.rb#181 + # source://prism//lib/prism/parse_result.rb#247 sig { returns(Integer) } def start_character_offset; end # The column number in code units of the given encoding where this location # starts from the start of the line. # - # source://prism//lib/prism/parse_result.rb#236 + # source://prism//lib/prism/parse_result.rb#302 sig { params(encoding: Encoding).returns(Integer) } def start_code_units_column(encoding = T.unsafe(nil)); end # The offset from the start of the file in code units of the given encoding. # - # source://prism//lib/prism/parse_result.rb#186 + # source://prism//lib/prism/parse_result.rb#252 sig { params(encoding: Encoding).returns(Integer) } def start_code_units_offset(encoding = T.unsafe(nil)); end # The column number in bytes where this location starts from the start of # the line. # - # source://prism//lib/prism/parse_result.rb#224 + # source://prism//lib/prism/parse_result.rb#290 sig { returns(Integer) } def start_column; end # The line number where this location starts. # - # source://prism//lib/prism/parse_result.rb#207 + # source://prism//lib/prism/parse_result.rb#273 sig { returns(Integer) } def start_line; end # The content of the line where this location starts before this location. # - # source://prism//lib/prism/parse_result.rb#212 + # source://prism//lib/prism/parse_result.rb#278 sig { returns(String) } def start_line_slice; end # The byte offset from the beginning of the source where this location # starts. # - # source://prism//lib/prism/parse_result.rb#112 + # source://prism//lib/prism/parse_result.rb#164 + sig { returns(Integer) } def start_offset; end # Attach a comment to the trailing comments of this location. # - # source://prism//lib/prism/parse_result.rb#149 + # source://prism//lib/prism/parse_result.rb#201 sig { params(comment: Prism::Comment).void } def trailing_comment(comment); end # These are the comments that are associated with this location that exist # after the end of this location. # - # source://prism//lib/prism/parse_result.rb#144 + # source://prism//lib/prism/parse_result.rb#196 sig { returns(T::Array[Prism::Comment]) } def trailing_comments; end @@ -20571,64 +22396,67 @@ class Prism::Location # A Source object that is used to determine more information from the given # offset and length. # - # source://prism//lib/prism/parse_result.rb#107 + # source://prism//lib/prism/parse_result.rb#159 + sig { returns(Prism::Source) } def source; end end # Flags for while and until loop nodes. # -# source://prism//lib/prism/node.rb#18896 +# source://prism//lib/prism/node.rb#19271 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#18898 +# source://prism//lib/prism/node.rb#19273 Prism::LoopFlags::BEGIN_MODIFIER = T.let(T.unsafe(nil), Integer) # This represents a magic comment that was encountered during parsing. # -# source://prism//lib/prism/parse_result.rb#338 +# source://prism//lib/prism/parse_result.rb#416 class Prism::MagicComment # Create a new magic comment object with the given key and value locations. # # @return [MagicComment] a new instance of MagicComment # - # source://prism//lib/prism/parse_result.rb#346 + # source://prism//lib/prism/parse_result.rb#424 sig { params(key_loc: Prism::Location, value_loc: Prism::Location).void } def initialize(key_loc, value_loc); end # Implement the hash pattern matching interface for MagicComment. # - # source://prism//lib/prism/parse_result.rb#362 + # source://prism//lib/prism/parse_result.rb#440 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # Returns a string representation of this magic comment. # - # source://prism//lib/prism/parse_result.rb#367 + # source://prism//lib/prism/parse_result.rb#445 sig { returns(String) } def inspect; end # Returns the key of the magic comment by slicing it from the source code. # - # source://prism//lib/prism/parse_result.rb#352 + # source://prism//lib/prism/parse_result.rb#430 sig { returns(String) } def key; end # A Location object representing the location of the key in the source. # - # source://prism//lib/prism/parse_result.rb#340 + # source://prism//lib/prism/parse_result.rb#418 + sig { returns(Prism::Location) } def key_loc; end # Returns the value of the magic comment by slicing it from the source code. # - # source://prism//lib/prism/parse_result.rb#357 + # source://prism//lib/prism/parse_result.rb#435 sig { returns(String) } def value; end # A Location object representing the location of the value in the source. # - # source://prism//lib/prism/parse_result.rb#343 + # source://prism//lib/prism/parse_result.rb#421 + sig { returns(Prism::Location) } def value_loc; end end @@ -20637,7 +22465,7 @@ end # if /foo/i then end # ^^^^^^ # -# source://prism//lib/prism/node.rb#12417 +# source://prism//lib/prism/node.rb#12698 class Prism::MatchLastLineNode < ::Prism::Node include ::Prism::RegularExpressionOptions @@ -20645,7 +22473,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [MatchLastLineNode] a new instance of MatchLastLineNode # - # source://prism//lib/prism/node.rb#12419 + # source://prism//lib/prism/node.rb#12700 sig do params( source: Prism::Source, @@ -20659,9 +22487,15 @@ class Prism::MatchLastLineNode < ::Prism::Node end def initialize(source, flags, opening_loc, content_loc, closing_loc, unescaped, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#12877 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12431 + # source://prism//lib/prism/node.rb#12712 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -20669,55 +22503,55 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12518 + # source://prism//lib/prism/node.rb#12798 sig { returns(T::Boolean) } def ascii_8bit?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12436 + # source://prism//lib/prism/node.rb#12717 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#12558 + # source://prism//lib/prism/node.rb#12838 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#12482 + # source://prism//lib/prism/node.rb#12763 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12446 + # source://prism//lib/prism/node.rb#12727 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12441 + # source://prism//lib/prism/node.rb#12722 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def content: () -> String # - # source://prism//lib/prism/node.rb#12553 + # source://prism//lib/prism/node.rb#12833 sig { returns(String) } def content; end # attr_reader content_loc: Location # - # source://prism//lib/prism/node.rb#12475 + # source://prism//lib/prism/node.rb#12756 sig { returns(Prism::Location) } def content_loc; end # def copy: (?flags: Integer, ?opening_loc: Location, ?content_loc: Location, ?closing_loc: Location, ?unescaped: String, ?location: Location) -> MatchLastLineNode # - # source://prism//lib/prism/node.rb#12451 + # source://prism//lib/prism/node.rb#12732 sig do params( flags: Integer, @@ -20733,13 +22567,13 @@ class Prism::MatchLastLineNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12436 + # source://prism//lib/prism/node.rb#12717 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # 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#12459 + # source://prism//lib/prism/node.rb#12740 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -20747,7 +22581,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12513 + # source://prism//lib/prism/node.rb#12793 sig { returns(T::Boolean) } def euc_jp?; end @@ -20755,7 +22589,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12498 + # source://prism//lib/prism/node.rb#12778 sig { returns(T::Boolean) } def extended?; end @@ -20766,7 +22600,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12538 + # source://prism//lib/prism/node.rb#12818 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -20774,7 +22608,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12543 + # source://prism//lib/prism/node.rb#12823 sig { returns(T::Boolean) } def forced_us_ascii_encoding?; end @@ -20782,7 +22616,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12533 + # source://prism//lib/prism/node.rb#12813 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -20790,21 +22624,21 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12493 + # source://prism//lib/prism/node.rb#12773 sig { returns(T::Boolean) } def ignore_case?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#12563 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#12843 + sig { override.returns(String) } + def inspect; end # def multi_line?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12503 + # source://prism//lib/prism/node.rb#12783 sig { returns(T::Boolean) } def multi_line?; end @@ -20812,19 +22646,19 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12508 + # source://prism//lib/prism/node.rb#12788 sig { returns(T::Boolean) } def once?; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#12548 + # source://prism//lib/prism/node.rb#12828 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#12468 + # source://prism//lib/prism/node.rb#12749 sig { returns(Prism::Location) } def opening_loc; end @@ -20846,13 +22680,13 @@ class Prism::MatchLastLineNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12588 + # source://prism//lib/prism/node.rb#12861 sig { override.returns(Symbol) } def type; end # attr_reader unescaped: String # - # source://prism//lib/prism/node.rb#12489 + # source://prism//lib/prism/node.rb#12770 sig { returns(String) } def unescaped; end @@ -20860,7 +22694,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12528 + # source://prism//lib/prism/node.rb#12808 sig { returns(T::Boolean) } def utf_8?; end @@ -20868,15 +22702,15 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12523 + # source://prism//lib/prism/node.rb#12803 sig { returns(T::Boolean) } def windows_31j?; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#12464 + # source://prism//lib/prism/node.rb#12745 sig { returns(Integer) } def flags; end @@ -20888,7 +22722,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12598 + # source://prism//lib/prism/node.rb#12871 def type; end end end @@ -20898,13 +22732,13 @@ end # foo in bar # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#12607 +# source://prism//lib/prism/node.rb#12891 class Prism::MatchPredicateNode < ::Prism::Node # def initialize: (Prism::node value, Prism::node pattern, Location operator_loc, Location location) -> void # # @return [MatchPredicateNode] a new instance of MatchPredicateNode # - # source://prism//lib/prism/node.rb#12609 + # source://prism//lib/prism/node.rb#12893 sig do params( source: Prism::Source, @@ -20916,33 +22750,39 @@ class Prism::MatchPredicateNode < ::Prism::Node end def initialize(source, value, pattern, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#12988 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12619 + # source://prism//lib/prism/node.rb#12903 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12624 + # source://prism//lib/prism/node.rb#12908 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12634 + # source://prism//lib/prism/node.rb#12918 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12629 + # source://prism//lib/prism/node.rb#12913 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?value: Prism::node, ?pattern: Prism::node, ?operator_loc: Location, ?location: Location) -> MatchPredicateNode # - # source://prism//lib/prism/node.rb#12639 + # source://prism//lib/prism/node.rb#12923 sig do params( value: Prism::Node, @@ -20956,40 +22796,40 @@ class Prism::MatchPredicateNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12624 + # source://prism//lib/prism/node.rb#12908 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { value: Prism::node, pattern: Prism::node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#12647 + # source://prism//lib/prism/node.rb#12931 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#12671 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#12954 + sig { override.returns(String) } + def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#12666 + # source://prism//lib/prism/node.rb#12949 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#12658 + # source://prism//lib/prism/node.rb#12942 sig { returns(Prism::Location) } def operator_loc; end # attr_reader pattern: Prism::node # - # source://prism//lib/prism/node.rb#12655 + # source://prism//lib/prism/node.rb#12939 sig { returns(Prism::Node) } def pattern; end @@ -21008,13 +22848,13 @@ class Prism::MatchPredicateNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12695 + # source://prism//lib/prism/node.rb#12972 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#12652 + # source://prism//lib/prism/node.rb#12936 sig { returns(Prism::Node) } def value; end @@ -21026,7 +22866,7 @@ class Prism::MatchPredicateNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12705 + # source://prism//lib/prism/node.rb#12982 def type; end end end @@ -21036,13 +22876,13 @@ end # foo => bar # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#12714 +# source://prism//lib/prism/node.rb#13000 class Prism::MatchRequiredNode < ::Prism::Node # def initialize: (Prism::node value, Prism::node pattern, Location operator_loc, Location location) -> void # # @return [MatchRequiredNode] a new instance of MatchRequiredNode # - # source://prism//lib/prism/node.rb#12716 + # source://prism//lib/prism/node.rb#13002 sig do params( source: Prism::Source, @@ -21054,33 +22894,39 @@ class Prism::MatchRequiredNode < ::Prism::Node end def initialize(source, value, pattern, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#13097 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12726 + # source://prism//lib/prism/node.rb#13012 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12731 + # source://prism//lib/prism/node.rb#13017 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12741 + # source://prism//lib/prism/node.rb#13027 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12736 + # source://prism//lib/prism/node.rb#13022 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?value: Prism::node, ?pattern: Prism::node, ?operator_loc: Location, ?location: Location) -> MatchRequiredNode # - # source://prism//lib/prism/node.rb#12746 + # source://prism//lib/prism/node.rb#13032 sig do params( value: Prism::Node, @@ -21094,40 +22940,40 @@ class Prism::MatchRequiredNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12731 + # source://prism//lib/prism/node.rb#13017 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { value: Prism::node, pattern: Prism::node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#12754 + # source://prism//lib/prism/node.rb#13040 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#12778 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#13063 + sig { override.returns(String) } + def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#12773 + # source://prism//lib/prism/node.rb#13058 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#12765 + # source://prism//lib/prism/node.rb#13051 sig { returns(Prism::Location) } def operator_loc; end # attr_reader pattern: Prism::node # - # source://prism//lib/prism/node.rb#12762 + # source://prism//lib/prism/node.rb#13048 sig { returns(Prism::Node) } def pattern; end @@ -21146,13 +22992,13 @@ class Prism::MatchRequiredNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12802 + # source://prism//lib/prism/node.rb#13081 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#12759 + # source://prism//lib/prism/node.rb#13045 sig { returns(Prism::Node) } def value; end @@ -21164,7 +23010,7 @@ class Prism::MatchRequiredNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12812 + # source://prism//lib/prism/node.rb#13091 def type; end end end @@ -21174,13 +23020,13 @@ end # /(?bar)/ =~ baz # ^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#12821 +# source://prism//lib/prism/node.rb#13109 class Prism::MatchWriteNode < ::Prism::Node # def initialize: (CallNode call, Array[LocalVariableTargetNode] targets, Location location) -> void # # @return [MatchWriteNode] a new instance of MatchWriteNode # - # source://prism//lib/prism/node.rb#12823 + # source://prism//lib/prism/node.rb#13111 sig do params( source: Prism::Source, @@ -21191,39 +23037,45 @@ class Prism::MatchWriteNode < ::Prism::Node end def initialize(source, call, targets, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#13193 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12832 + # source://prism//lib/prism/node.rb#13120 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader call: CallNode # - # source://prism//lib/prism/node.rb#12865 + # source://prism//lib/prism/node.rb#13153 sig { returns(Prism::CallNode) } def call; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12837 + # source://prism//lib/prism/node.rb#13125 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12847 + # source://prism//lib/prism/node.rb#13135 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12842 + # source://prism//lib/prism/node.rb#13130 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?call: CallNode, ?targets: Array[LocalVariableTargetNode], ?location: Location) -> MatchWriteNode # - # source://prism//lib/prism/node.rb#12852 + # source://prism//lib/prism/node.rb#13140 sig do params( call: Prism::CallNode, @@ -21236,28 +23088,28 @@ class Prism::MatchWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12837 + # source://prism//lib/prism/node.rb#13125 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { call: CallNode, targets: Array[LocalVariableTargetNode], location: Location } # - # source://prism//lib/prism/node.rb#12860 + # source://prism//lib/prism/node.rb#13148 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#12872 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#13159 + sig { override.returns(String) } + def inspect; end # attr_reader targets: Array[LocalVariableTargetNode] # - # source://prism//lib/prism/node.rb#12868 + # source://prism//lib/prism/node.rb#13156 sig { returns(T::Array[Prism::LocalVariableTargetNode]) } def targets; end @@ -21276,7 +23128,7 @@ class Prism::MatchWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12894 + # source://prism//lib/prism/node.rb#13177 sig { override.returns(Symbol) } def type; end @@ -21288,74 +23140,80 @@ class Prism::MatchWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12904 + # source://prism//lib/prism/node.rb#13187 def type; end end end # Represents a node that is missing from the source and results in a syntax error. # -# source://prism//lib/prism/node.rb#12910 +# source://prism//lib/prism/node.rb#13202 class Prism::MissingNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [MissingNode] a new instance of MissingNode # - # source://prism//lib/prism/node.rb#12912 + # source://prism//lib/prism/node.rb#13204 sig { params(source: Prism::Source, location: Prism::Location).void } def initialize(source, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#13278 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12919 + # source://prism//lib/prism/node.rb#13211 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12924 + # source://prism//lib/prism/node.rb#13216 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12934 + # source://prism//lib/prism/node.rb#13226 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#12929 + # source://prism//lib/prism/node.rb#13221 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> MissingNode # - # source://prism//lib/prism/node.rb#12939 + # source://prism//lib/prism/node.rb#13231 sig { params(location: Prism::Location).returns(Prism::MissingNode) } def copy(location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12924 + # source://prism//lib/prism/node.rb#13216 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#12947 + # source://prism//lib/prism/node.rb#13239 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#12953 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#13244 + sig { override.returns(String) } + def inspect; 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 @@ -21372,7 +23230,7 @@ class Prism::MissingNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12972 + # source://prism//lib/prism/node.rb#13262 sig { override.returns(Symbol) } def type; end @@ -21384,7 +23242,7 @@ class Prism::MissingNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12982 + # source://prism//lib/prism/node.rb#13272 def type; end end end @@ -21394,13 +23252,13 @@ end # module Foo end # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#12991 +# source://prism//lib/prism/node.rb#13287 class Prism::ModuleNode < ::Prism::Node # def initialize: (Array[Symbol] locals, Location module_keyword_loc, Prism::node constant_path, Prism::node? body, Location end_keyword_loc, Symbol name, Location location) -> void # # @return [ModuleNode] a new instance of ModuleNode # - # source://prism//lib/prism/node.rb#12993 + # source://prism//lib/prism/node.rb#13289 sig do params( source: Prism::Source, @@ -21415,45 +23273,51 @@ class Prism::ModuleNode < ::Prism::Node end def initialize(source, locals, module_keyword_loc, constant_path, body, end_keyword_loc, name, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#13408 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13006 + # source://prism//lib/prism/node.rb#13302 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader body: Prism::node? # - # source://prism//lib/prism/node.rb#13055 + # source://prism//lib/prism/node.rb#13351 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13011 + # source://prism//lib/prism/node.rb#13307 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#13024 + # source://prism//lib/prism/node.rb#13320 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#13016 + # source://prism//lib/prism/node.rb#13312 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader constant_path: Prism::node # - # source://prism//lib/prism/node.rb#13052 + # source://prism//lib/prism/node.rb#13348 sig { returns(Prism::Node) } def constant_path; end # def copy: (?locals: Array[Symbol], ?module_keyword_loc: Location, ?constant_path: Prism::node, ?body: Prism::node?, ?end_keyword_loc: Location, ?name: Symbol, ?location: Location) -> ModuleNode # - # source://prism//lib/prism/node.rb#13029 + # source://prism//lib/prism/node.rb#13325 sig do params( locals: T::Array[Symbol], @@ -21470,58 +23334,58 @@ class Prism::ModuleNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13011 + # source://prism//lib/prism/node.rb#13307 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { locals: Array[Symbol], module_keyword_loc: Location, constant_path: Prism::node, body: Prism::node?, end_keyword_loc: Location, name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#13037 + # source://prism//lib/prism/node.rb#13333 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # def end_keyword: () -> String # - # source://prism//lib/prism/node.rb#13074 + # source://prism//lib/prism/node.rb#13369 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#13058 + # source://prism//lib/prism/node.rb#13354 sig { returns(Prism::Location) } def end_keyword_loc; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#13079 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#13374 + sig { override.returns(String) } + def inspect; end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#13042 + # source://prism//lib/prism/node.rb#13338 sig { returns(T::Array[Symbol]) } def locals; end # def module_keyword: () -> String # - # source://prism//lib/prism/node.rb#13069 + # source://prism//lib/prism/node.rb#13364 sig { returns(String) } def module_keyword; end # attr_reader module_keyword_loc: Location # - # source://prism//lib/prism/node.rb#13045 + # source://prism//lib/prism/node.rb#13341 sig { returns(Prism::Location) } def module_keyword_loc; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#13065 + # source://prism//lib/prism/node.rb#13361 sig { returns(Symbol) } def name; end @@ -21540,7 +23404,7 @@ class Prism::ModuleNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13110 + # source://prism//lib/prism/node.rb#13392 sig { override.returns(Symbol) } def type; end @@ -21552,7 +23416,7 @@ class Prism::ModuleNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13120 + # source://prism//lib/prism/node.rb#13402 def type; end end end @@ -21562,13 +23426,13 @@ end # a, (b, c) = 1, 2, 3 # ^^^^^^ # -# source://prism//lib/prism/node.rb#13129 +# source://prism//lib/prism/node.rb#13424 class Prism::MultiTargetNode < ::Prism::Node # def initialize: (Array[LocalVariableTargetNode | InstanceVariableTargetNode | ClassVariableTargetNode | GlobalVariableTargetNode | ConstantTargetNode | ConstantPathTargetNode | CallTargetNode | IndexTargetNode | MultiTargetNode | RequiredParameterNode | BackReferenceReadNode | NumberedReferenceReadNode] lefts, Prism::node? rest, Array[LocalVariableTargetNode | InstanceVariableTargetNode | ClassVariableTargetNode | GlobalVariableTargetNode | ConstantTargetNode | ConstantPathTargetNode | CallTargetNode | IndexTargetNode | MultiTargetNode | RequiredParameterNode | BackReferenceReadNode] rights, Location? lparen_loc, Location? rparen_loc, Location location) -> void # # @return [MultiTargetNode] a new instance of MultiTargetNode # - # source://prism//lib/prism/node.rb#13131 + # source://prism//lib/prism/node.rb#13426 sig do params( source: Prism::Source, @@ -21582,33 +23446,39 @@ class Prism::MultiTargetNode < ::Prism::Node end def initialize(source, lefts, rest, rights, lparen_loc, rparen_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#13554 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13143 + # source://prism//lib/prism/node.rb#13438 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13148 + # source://prism//lib/prism/node.rb#13443 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#13162 + # source://prism//lib/prism/node.rb#13457 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#13153 + # source://prism//lib/prism/node.rb#13448 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?lefts: Array[LocalVariableTargetNode | InstanceVariableTargetNode | ClassVariableTargetNode | GlobalVariableTargetNode | ConstantTargetNode | ConstantPathTargetNode | CallTargetNode | IndexTargetNode | MultiTargetNode | RequiredParameterNode | BackReferenceReadNode | NumberedReferenceReadNode], ?rest: Prism::node?, ?rights: Array[LocalVariableTargetNode | InstanceVariableTargetNode | ClassVariableTargetNode | GlobalVariableTargetNode | ConstantTargetNode | ConstantPathTargetNode | CallTargetNode | IndexTargetNode | MultiTargetNode | RequiredParameterNode | BackReferenceReadNode], ?lparen_loc: Location?, ?rparen_loc: Location?, ?location: Location) -> MultiTargetNode # - # source://prism//lib/prism/node.rb#13167 + # source://prism//lib/prism/node.rb#13462 sig do params( lefts: T::Array[T.any(Prism::LocalVariableTargetNode, Prism::InstanceVariableTargetNode, Prism::ClassVariableTargetNode, Prism::GlobalVariableTargetNode, Prism::ConstantTargetNode, Prism::ConstantPathTargetNode, Prism::CallTargetNode, Prism::IndexTargetNode, Prism::MultiTargetNode, Prism::RequiredParameterNode, Prism::BackReferenceReadNode, Prism::NumberedReferenceReadNode)], @@ -21624,28 +23494,28 @@ class Prism::MultiTargetNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13148 + # source://prism//lib/prism/node.rb#13443 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { lefts: Array[LocalVariableTargetNode | InstanceVariableTargetNode | ClassVariableTargetNode | GlobalVariableTargetNode | ConstantTargetNode | ConstantPathTargetNode | CallTargetNode | IndexTargetNode | MultiTargetNode | RequiredParameterNode | BackReferenceReadNode | NumberedReferenceReadNode], rest: Prism::node?, rights: Array[LocalVariableTargetNode | InstanceVariableTargetNode | ClassVariableTargetNode | GlobalVariableTargetNode | ConstantTargetNode | ConstantPathTargetNode | CallTargetNode | IndexTargetNode | MultiTargetNode | RequiredParameterNode | BackReferenceReadNode], lparen_loc: Location?, rparen_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#13175 + # source://prism//lib/prism/node.rb#13470 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#13226 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#13520 + sig { override.returns(String) } + def inspect; end # attr_reader lefts: Array[LocalVariableTargetNode | InstanceVariableTargetNode | ClassVariableTargetNode | GlobalVariableTargetNode | ConstantTargetNode | ConstantPathTargetNode | CallTargetNode | IndexTargetNode | MultiTargetNode | RequiredParameterNode | BackReferenceReadNode | NumberedReferenceReadNode] # - # source://prism//lib/prism/node.rb#13180 + # source://prism//lib/prism/node.rb#13475 sig do returns(T::Array[T.any(Prism::LocalVariableTargetNode, Prism::InstanceVariableTargetNode, Prism::ClassVariableTargetNode, Prism::GlobalVariableTargetNode, Prism::ConstantTargetNode, Prism::ConstantPathTargetNode, Prism::CallTargetNode, Prism::IndexTargetNode, Prism::MultiTargetNode, Prism::RequiredParameterNode, Prism::BackReferenceReadNode, Prism::NumberedReferenceReadNode)]) end @@ -21653,25 +23523,25 @@ class Prism::MultiTargetNode < ::Prism::Node # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#13216 + # source://prism//lib/prism/node.rb#13510 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#13189 + # source://prism//lib/prism/node.rb#13484 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # attr_reader rest: Prism::node? # - # source://prism//lib/prism/node.rb#13183 + # source://prism//lib/prism/node.rb#13478 sig { returns(T.nilable(Prism::Node)) } def rest; end # attr_reader rights: Array[LocalVariableTargetNode | InstanceVariableTargetNode | ClassVariableTargetNode | GlobalVariableTargetNode | ConstantTargetNode | ConstantPathTargetNode | CallTargetNode | IndexTargetNode | MultiTargetNode | RequiredParameterNode | BackReferenceReadNode] # - # source://prism//lib/prism/node.rb#13186 + # source://prism//lib/prism/node.rb#13481 sig do returns(T::Array[T.any(Prism::LocalVariableTargetNode, Prism::InstanceVariableTargetNode, Prism::ClassVariableTargetNode, Prism::GlobalVariableTargetNode, Prism::ConstantTargetNode, Prism::ConstantPathTargetNode, Prism::CallTargetNode, Prism::IndexTargetNode, Prism::MultiTargetNode, Prism::RequiredParameterNode, Prism::BackReferenceReadNode)]) end @@ -21679,13 +23549,13 @@ class Prism::MultiTargetNode < ::Prism::Node # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#13221 + # source://prism//lib/prism/node.rb#13515 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#13202 + # source://prism//lib/prism/node.rb#13497 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -21704,7 +23574,7 @@ class Prism::MultiTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13255 + # source://prism//lib/prism/node.rb#13538 sig { override.returns(Symbol) } def type; end @@ -21716,7 +23586,7 @@ class Prism::MultiTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13265 + # source://prism//lib/prism/node.rb#13548 def type; end end end @@ -21726,13 +23596,13 @@ end # a, b, c = 1, 2, 3 # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#13274 +# source://prism//lib/prism/node.rb#13570 class Prism::MultiWriteNode < ::Prism::Node # def initialize: (Array[LocalVariableTargetNode | InstanceVariableTargetNode | ClassVariableTargetNode | GlobalVariableTargetNode | ConstantTargetNode | ConstantPathTargetNode | CallTargetNode | IndexTargetNode | MultiTargetNode] lefts, Prism::node? rest, Array[LocalVariableTargetNode | InstanceVariableTargetNode | ClassVariableTargetNode | GlobalVariableTargetNode | ConstantTargetNode | ConstantPathTargetNode | CallTargetNode | IndexTargetNode | MultiTargetNode] rights, Location? lparen_loc, Location? rparen_loc, Location operator_loc, Prism::node value, Location location) -> void # # @return [MultiWriteNode] a new instance of MultiWriteNode # - # source://prism//lib/prism/node.rb#13276 + # source://prism//lib/prism/node.rb#13572 sig do params( source: Prism::Source, @@ -21748,33 +23618,39 @@ class Prism::MultiWriteNode < ::Prism::Node end def initialize(source, lefts, rest, rights, lparen_loc, rparen_loc, operator_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#13718 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13290 + # source://prism//lib/prism/node.rb#13586 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13295 + # source://prism//lib/prism/node.rb#13591 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#13310 + # source://prism//lib/prism/node.rb#13606 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#13300 + # source://prism//lib/prism/node.rb#13596 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?lefts: Array[LocalVariableTargetNode | InstanceVariableTargetNode | ClassVariableTargetNode | GlobalVariableTargetNode | ConstantTargetNode | ConstantPathTargetNode | CallTargetNode | IndexTargetNode | MultiTargetNode], ?rest: Prism::node?, ?rights: Array[LocalVariableTargetNode | InstanceVariableTargetNode | ClassVariableTargetNode | GlobalVariableTargetNode | ConstantTargetNode | ConstantPathTargetNode | CallTargetNode | IndexTargetNode | MultiTargetNode], ?lparen_loc: Location?, ?rparen_loc: Location?, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> MultiWriteNode # - # source://prism//lib/prism/node.rb#13315 + # source://prism//lib/prism/node.rb#13611 sig do params( lefts: T::Array[T.any(Prism::LocalVariableTargetNode, Prism::InstanceVariableTargetNode, Prism::ClassVariableTargetNode, Prism::GlobalVariableTargetNode, Prism::ConstantTargetNode, Prism::ConstantPathTargetNode, Prism::CallTargetNode, Prism::IndexTargetNode, Prism::MultiTargetNode)], @@ -21792,28 +23668,28 @@ class Prism::MultiWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13295 + # source://prism//lib/prism/node.rb#13591 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { lefts: Array[LocalVariableTargetNode | InstanceVariableTargetNode | ClassVariableTargetNode | GlobalVariableTargetNode | ConstantTargetNode | ConstantPathTargetNode | CallTargetNode | IndexTargetNode | MultiTargetNode], rest: Prism::node?, rights: Array[LocalVariableTargetNode | InstanceVariableTargetNode | ClassVariableTargetNode | GlobalVariableTargetNode | ConstantTargetNode | ConstantPathTargetNode | CallTargetNode | IndexTargetNode | MultiTargetNode], lparen_loc: Location?, rparen_loc: Location?, operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#13323 + # source://prism//lib/prism/node.rb#13619 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#13389 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#13684 + sig { override.returns(String) } + def inspect; end # attr_reader lefts: Array[LocalVariableTargetNode | InstanceVariableTargetNode | ClassVariableTargetNode | GlobalVariableTargetNode | ConstantTargetNode | ConstantPathTargetNode | CallTargetNode | IndexTargetNode | MultiTargetNode] # - # source://prism//lib/prism/node.rb#13328 + # source://prism//lib/prism/node.rb#13624 sig do returns(T::Array[T.any(Prism::LocalVariableTargetNode, Prism::InstanceVariableTargetNode, Prism::ClassVariableTargetNode, Prism::GlobalVariableTargetNode, Prism::ConstantTargetNode, Prism::ConstantPathTargetNode, Prism::CallTargetNode, Prism::IndexTargetNode, Prism::MultiTargetNode)]) end @@ -21821,37 +23697,37 @@ class Prism::MultiWriteNode < ::Prism::Node # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#13374 + # source://prism//lib/prism/node.rb#13669 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#13337 + # source://prism//lib/prism/node.rb#13633 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#13384 + # source://prism//lib/prism/node.rb#13679 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#13363 + # source://prism//lib/prism/node.rb#13659 sig { returns(Prism::Location) } def operator_loc; end # attr_reader rest: Prism::node? # - # source://prism//lib/prism/node.rb#13331 + # source://prism//lib/prism/node.rb#13627 sig { returns(T.nilable(Prism::Node)) } def rest; end # attr_reader rights: Array[LocalVariableTargetNode | InstanceVariableTargetNode | ClassVariableTargetNode | GlobalVariableTargetNode | ConstantTargetNode | ConstantPathTargetNode | CallTargetNode | IndexTargetNode | MultiTargetNode] # - # source://prism//lib/prism/node.rb#13334 + # source://prism//lib/prism/node.rb#13630 sig do returns(T::Array[T.any(Prism::LocalVariableTargetNode, Prism::InstanceVariableTargetNode, Prism::ClassVariableTargetNode, Prism::GlobalVariableTargetNode, Prism::ConstantTargetNode, Prism::ConstantPathTargetNode, Prism::CallTargetNode, Prism::IndexTargetNode, Prism::MultiTargetNode)]) end @@ -21859,13 +23735,13 @@ class Prism::MultiWriteNode < ::Prism::Node # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#13379 + # source://prism//lib/prism/node.rb#13674 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#13350 + # source://prism//lib/prism/node.rb#13646 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -21884,13 +23760,13 @@ class Prism::MultiWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13421 + # source://prism//lib/prism/node.rb#13702 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#13370 + # source://prism//lib/prism/node.rb#13666 sig { returns(Prism::Node) } def value; end @@ -21902,7 +23778,7 @@ class Prism::MultiWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13431 + # source://prism//lib/prism/node.rb#13712 def type; end end end @@ -22662,8 +24538,6 @@ class Prism::MutationCompiler < ::Prism::Compiler # # source://prism//lib/prism/mutation_compiler.rb#760 def visit_yield_node(node); end - - Result = type_member end # Represents the use of the `next` keyword. @@ -22671,13 +24545,13 @@ end # next 1 # ^^^^^^ # -# source://prism//lib/prism/node.rb#13440 +# source://prism//lib/prism/node.rb#13736 class Prism::NextNode < ::Prism::Node # def initialize: (ArgumentsNode? arguments, Location keyword_loc, Location location) -> void # # @return [NextNode] a new instance of NextNode # - # source://prism//lib/prism/node.rb#13442 + # source://prism//lib/prism/node.rb#13738 sig do params( source: Prism::Source, @@ -22688,39 +24562,45 @@ class Prism::NextNode < ::Prism::Node end def initialize(source, arguments, keyword_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#13831 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13451 + # source://prism//lib/prism/node.rb#13747 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#13486 + # source://prism//lib/prism/node.rb#13782 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13456 + # source://prism//lib/prism/node.rb#13752 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#13468 + # source://prism//lib/prism/node.rb#13764 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#13461 + # source://prism//lib/prism/node.rb#13757 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?arguments: ArgumentsNode?, ?keyword_loc: Location, ?location: Location) -> NextNode # - # source://prism//lib/prism/node.rb#13473 + # source://prism//lib/prism/node.rb#13769 sig do params( arguments: T.nilable(Prism::ArgumentsNode), @@ -22733,34 +24613,34 @@ class Prism::NextNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13456 + # source://prism//lib/prism/node.rb#13752 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { arguments: ArgumentsNode?, keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#13481 + # source://prism//lib/prism/node.rb#13777 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#13502 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#13797 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#13497 + # source://prism//lib/prism/node.rb#13792 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#13489 + # source://prism//lib/prism/node.rb#13785 sig { returns(Prism::Location) } def keyword_loc; end @@ -22779,7 +24659,7 @@ class Prism::NextNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13528 + # source://prism//lib/prism/node.rb#13815 sig { override.returns(Symbol) } def type; end @@ -22791,7 +24671,7 @@ class Prism::NextNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13538 + # source://prism//lib/prism/node.rb#13825 def type; end end end @@ -22801,67 +24681,73 @@ end # nil # ^^^ # -# source://prism//lib/prism/node.rb#13547 +# source://prism//lib/prism/node.rb#13842 class Prism::NilNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [NilNode] a new instance of NilNode # - # source://prism//lib/prism/node.rb#13549 + # source://prism//lib/prism/node.rb#13844 sig { params(source: Prism::Source, location: Prism::Location).void } def initialize(source, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#13918 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13556 + # source://prism//lib/prism/node.rb#13851 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13561 + # source://prism//lib/prism/node.rb#13856 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#13571 + # source://prism//lib/prism/node.rb#13866 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#13566 + # source://prism//lib/prism/node.rb#13861 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> NilNode # - # source://prism//lib/prism/node.rb#13576 + # source://prism//lib/prism/node.rb#13871 sig { params(location: Prism::Location).returns(Prism::NilNode) } def copy(location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13561 + # source://prism//lib/prism/node.rb#13856 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#13584 + # source://prism//lib/prism/node.rb#13879 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#13590 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#13884 + sig { override.returns(String) } + def inspect; 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 @@ -22878,7 +24764,7 @@ class Prism::NilNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13609 + # source://prism//lib/prism/node.rb#13902 sig { override.returns(Symbol) } def type; end @@ -22890,7 +24776,7 @@ class Prism::NilNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13619 + # source://prism//lib/prism/node.rb#13912 def type; end end end @@ -22901,13 +24787,13 @@ end # ^^^^^ # end # -# source://prism//lib/prism/node.rb#13629 +# source://prism//lib/prism/node.rb#13928 class Prism::NoKeywordsParameterNode < ::Prism::Node # def initialize: (Location operator_loc, Location keyword_loc, Location location) -> void # # @return [NoKeywordsParameterNode] a new instance of NoKeywordsParameterNode # - # source://prism//lib/prism/node.rb#13631 + # source://prism//lib/prism/node.rb#13930 sig do params( source: Prism::Source, @@ -22918,33 +24804,39 @@ class Prism::NoKeywordsParameterNode < ::Prism::Node end def initialize(source, operator_loc, keyword_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#14030 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13640 + # source://prism//lib/prism/node.rb#13939 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13645 + # source://prism//lib/prism/node.rb#13944 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#13655 + # source://prism//lib/prism/node.rb#13954 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#13650 + # source://prism//lib/prism/node.rb#13949 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?operator_loc: Location, ?keyword_loc: Location, ?location: Location) -> NoKeywordsParameterNode # - # source://prism//lib/prism/node.rb#13660 + # source://prism//lib/prism/node.rb#13959 sig do params( operator_loc: Prism::Location, @@ -22957,46 +24849,46 @@ class Prism::NoKeywordsParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13645 + # source://prism//lib/prism/node.rb#13944 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { operator_loc: Location, keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#13668 + # source://prism//lib/prism/node.rb#13967 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#13698 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#13996 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#13693 + # source://prism//lib/prism/node.rb#13991 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#13680 + # source://prism//lib/prism/node.rb#13979 sig { returns(Prism::Location) } def keyword_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#13688 + # source://prism//lib/prism/node.rb#13986 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#13673 + # source://prism//lib/prism/node.rb#13972 sig { returns(Prism::Location) } def operator_loc; end @@ -23015,7 +24907,7 @@ class Prism::NoKeywordsParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13719 + # source://prism//lib/prism/node.rb#14014 sig { override.returns(Symbol) } def type; end @@ -23027,7 +24919,7 @@ class Prism::NoKeywordsParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13729 + # source://prism//lib/prism/node.rb#14024 def type; end end end @@ -23043,7 +24935,7 @@ class Prism::Node # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#90 + # source://prism//lib/prism/node.rb#143 sig { abstract.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -23052,7 +24944,7 @@ class Prism::Node # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#96 + # source://prism//lib/prism/node.rb#149 sig { abstract.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end @@ -23061,7 +24953,7 @@ class Prism::Node # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#110 + # source://prism//lib/prism/node.rb#163 sig { abstract.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end @@ -23070,7 +24962,7 @@ class Prism::Node # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#104 + # source://prism//lib/prism/node.rb#157 sig { abstract.returns(T::Array[Prism::Node]) } def compact_child_nodes; end @@ -23079,10 +24971,13 @@ class Prism::Node # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#96 + # source://prism//lib/prism/node.rb#149 sig { abstract.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end + # source://prism//lib/prism/node_ext.rb#7 + def deprecated(*replacements); end + # The end offset of the node in the source. This method is effectively a # delegate method to the location object. # @@ -23097,9 +24992,9 @@ class Prism::Node # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#121 - sig { abstract.params(inspector: Prism::NodeInspector).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#174 + sig { abstract.returns(String) } + def inspect; end # A Location instance that represents the location of this node in the # source. @@ -23116,19 +25011,41 @@ class Prism::Node # Similar to inspect, but respects the current level of indentation given by # the pretty print object. # - # source://prism//lib/prism/node.rb#58 + # source://prism//lib/prism/node.rb#74 sig { params(q: T.untyped).void } def pretty_print(q); end + # Returns all of the lines of the source code associated with this node. + # An alias for source_lines, used to mimic the API from + # RubyVM::AbstractSyntaxTree to make it easier to migrate. + # + # source://prism//lib/prism/node.rb#52 + sig { returns(T::Array[String]) } + def script_lines; end + # source://prism//lib/prism/node.rb#43 def set_newline_flag(newline_marked); end # Slice the location of the node from the source. # - # source://prism//lib/prism/node.rb#52 + # source://prism//lib/prism/node.rb#61 sig { returns(String) } def slice; end + # Slice the location of the node from the source, starting at the beginning + # of the line that the location starts on, ending at the end of the line + # that the location ends on. + # + # source://prism//lib/prism/node.rb#68 + sig { returns(String) } + def slice_lines; end + + # Returns all of the lines of the source code associated with this node. + # + # source://prism//lib/prism/node.rb#52 + sig { returns(T::Array[String]) } + def source_lines; end + # The start offset of the node in the source. This method is effectively a # delegate method to the location object. # @@ -23138,16 +25055,27 @@ class Prism::Node # Convert this node into a graphviz dot graph string. # - # source://prism//lib/prism/node.rb#66 + # source://prism//lib/prism/node.rb#82 sig { returns(String) } def to_dot; end + # Returns a list of nodes that are descendants of this node that contain the + # given line and column. This is useful for locating a node that is selected + # based on the line and column of the source code. + # + # Important to note is that the column given to this method should be in + # bytes, as opposed to characters or code units. + # + # source://prism//lib/prism/node.rb#93 + sig { params(line: Integer, column: Integer).returns(T::Array[Prism::Node]) } + def tunnel(line, column); 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#116 + # source://prism//lib/prism/node.rb#169 sig { abstract.returns(Symbol) } def type; end @@ -23156,6 +25084,7 @@ class Prism::Node # A pointer to the source that this node was created from. # # source://prism//lib/prism/node.rb#14 + sig { returns(Prism::Source) } def source; end class << self @@ -23165,142 +25094,94 @@ class Prism::Node # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#74 + # source://prism//lib/prism/node.rb#127 def fields; end # Returns the type of the node as a symbol. # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#126 + # source://prism//lib/prism/node.rb#179 def type; end end end -# This object is responsible for generating the output for the inspect method -# implementations of child nodes. -# -# source://prism//lib/prism/node_inspector.rb#6 -class Prism::NodeInspector - # @return [NodeInspector] a new instance of NodeInspector - # - # source://prism//lib/prism/node_inspector.rb#9 - def initialize(prefix = T.unsafe(nil)); end - - # Appends a line to the output with the current prefix. - # - # source://prism//lib/prism/node_inspector.rb#15 - def <<(line); end - - # Returns a new inspector that can be used to inspect a child node. - # - # source://prism//lib/prism/node_inspector.rb#59 - def child_inspector(append); end - - # Generates a string that represents a child node. - # - # source://prism//lib/prism/node_inspector.rb#54 - def child_node(node, append); end - - # This generates a string that is used as the header of the inspect output - # for any given node. - # - # source://prism//lib/prism/node_inspector.rb#21 - def header(node); end - - # Generates a string that represents a list of nodes. It handles properly - # using the box drawing characters to make the output look nice. - # - # source://prism//lib/prism/node_inspector.rb#31 - def list(prefix, nodes); end - - # Generates a string that represents a location field on a node. - # - # source://prism//lib/prism/node_inspector.rb#45 - def location(value); end - - # source://prism//lib/prism/node_inspector.rb#7 - def output; end - - # source://prism//lib/prism/node_inspector.rb#7 - def prefix; end - - # Returns the output as a string. - # - # source://prism//lib/prism/node_inspector.rb#64 - def to_str; end -end - # 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#13738 +# source://prism//lib/prism/node.rb#14041 class Prism::NumberedParametersNode < ::Prism::Node # def initialize: (Integer maximum, Location location) -> void # # @return [NumberedParametersNode] a new instance of NumberedParametersNode # - # source://prism//lib/prism/node.rb#13740 + # source://prism//lib/prism/node.rb#14043 sig { params(source: Prism::Source, maximum: Integer, location: Prism::Location).void } def initialize(source, maximum, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#14121 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13748 + # source://prism//lib/prism/node.rb#14051 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13753 + # source://prism//lib/prism/node.rb#14056 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#13763 + # source://prism//lib/prism/node.rb#14066 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#13758 + # source://prism//lib/prism/node.rb#14061 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?maximum: Integer, ?location: Location) -> NumberedParametersNode # - # source://prism//lib/prism/node.rb#13768 + # source://prism//lib/prism/node.rb#14071 sig { params(maximum: Integer, location: Prism::Location).returns(Prism::NumberedParametersNode) } def copy(maximum: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13753 + # source://prism//lib/prism/node.rb#14056 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { maximum: Integer, location: Location } # - # source://prism//lib/prism/node.rb#13776 + # source://prism//lib/prism/node.rb#14079 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#13785 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#14087 + sig { override.returns(String) } + def inspect; end # attr_reader maximum: Integer # - # source://prism//lib/prism/node.rb#13781 + # source://prism//lib/prism/node.rb#14084 sig { returns(Integer) } def maximum; end @@ -23319,7 +25200,7 @@ class Prism::NumberedParametersNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13805 + # source://prism//lib/prism/node.rb#14105 sig { override.returns(Symbol) } def type; end @@ -23331,7 +25212,7 @@ class Prism::NumberedParametersNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13815 + # source://prism//lib/prism/node.rb#14115 def type; end end end @@ -23341,67 +25222,73 @@ end # $1 # ^^ # -# source://prism//lib/prism/node.rb#13824 +# source://prism//lib/prism/node.rb#14131 class Prism::NumberedReferenceReadNode < ::Prism::Node # def initialize: (Integer number, Location location) -> void # # @return [NumberedReferenceReadNode] a new instance of NumberedReferenceReadNode # - # source://prism//lib/prism/node.rb#13826 + # source://prism//lib/prism/node.rb#14133 sig { params(source: Prism::Source, number: Integer, location: Prism::Location).void } def initialize(source, number, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#14217 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13834 + # source://prism//lib/prism/node.rb#14141 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13839 + # source://prism//lib/prism/node.rb#14146 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#13849 + # source://prism//lib/prism/node.rb#14156 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#13844 + # source://prism//lib/prism/node.rb#14151 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?number: Integer, ?location: Location) -> NumberedReferenceReadNode # - # source://prism//lib/prism/node.rb#13854 + # source://prism//lib/prism/node.rb#14161 sig { params(number: Integer, location: Prism::Location).returns(Prism::NumberedReferenceReadNode) } def copy(number: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13839 + # source://prism//lib/prism/node.rb#14146 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { number: Integer, location: Location } # - # source://prism//lib/prism/node.rb#13862 + # source://prism//lib/prism/node.rb#14169 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#13877 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#14183 + sig { override.returns(String) } + def inspect; end # The (1-indexed, from the left) number of the capture group. Numbered references that are too large result in this value being `0`. # @@ -23411,7 +25298,7 @@ class Prism::NumberedReferenceReadNode < ::Prism::Node # # $4294967296 # number `0` # - # source://prism//lib/prism/node.rb#13873 + # source://prism//lib/prism/node.rb#14180 sig { returns(Integer) } def number; end @@ -23430,7 +25317,7 @@ class Prism::NumberedReferenceReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13897 + # source://prism//lib/prism/node.rb#14201 sig { override.returns(Symbol) } def type; end @@ -23442,7 +25329,7 @@ class Prism::NumberedReferenceReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13907 + # source://prism//lib/prism/node.rb#14211 def type; end end end @@ -23453,13 +25340,13 @@ end # ^^^^ # end # -# source://prism//lib/prism/node.rb#13917 +# source://prism//lib/prism/node.rb#14228 class Prism::OptionalKeywordParameterNode < ::Prism::Node # def initialize: (Integer flags, Symbol name, Location name_loc, Prism::node value, Location location) -> void # # @return [OptionalKeywordParameterNode] a new instance of OptionalKeywordParameterNode # - # source://prism//lib/prism/node.rb#13919 + # source://prism//lib/prism/node.rb#14230 sig do params( source: Prism::Source, @@ -23472,33 +25359,39 @@ class Prism::OptionalKeywordParameterNode < ::Prism::Node end def initialize(source, flags, name, name_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#14330 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13930 + # source://prism//lib/prism/node.rb#14241 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13935 + # source://prism//lib/prism/node.rb#14246 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#13945 + # source://prism//lib/prism/node.rb#14256 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#13940 + # source://prism//lib/prism/node.rb#14251 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?name: Symbol, ?name_loc: Location, ?value: Prism::node, ?location: Location) -> OptionalKeywordParameterNode # - # source://prism//lib/prism/node.rb#13950 + # source://prism//lib/prism/node.rb#14261 sig do params( flags: Integer, @@ -23513,34 +25406,34 @@ class Prism::OptionalKeywordParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13935 + # source://prism//lib/prism/node.rb#14246 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, name: Symbol, name_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#13958 + # source://prism//lib/prism/node.rb#14269 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#13986 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#14296 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#13967 + # source://prism//lib/prism/node.rb#14278 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#13970 + # source://prism//lib/prism/node.rb#14281 sig { returns(Prism::Location) } def name_loc; end @@ -23548,7 +25441,7 @@ class Prism::OptionalKeywordParameterNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#13981 + # source://prism//lib/prism/node.rb#14291 sig { returns(T::Boolean) } def repeated_parameter?; end @@ -23567,21 +25460,21 @@ class Prism::OptionalKeywordParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14011 + # source://prism//lib/prism/node.rb#14314 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#13977 + # source://prism//lib/prism/node.rb#14288 sig { returns(Prism::Node) } def value; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#13963 + # source://prism//lib/prism/node.rb#14274 sig { returns(Integer) } def flags; end @@ -23593,7 +25486,7 @@ class Prism::OptionalKeywordParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14021 + # source://prism//lib/prism/node.rb#14324 def type; end end end @@ -23604,13 +25497,13 @@ end # ^^^^^ # end # -# source://prism//lib/prism/node.rb#14031 +# source://prism//lib/prism/node.rb#14344 class Prism::OptionalParameterNode < ::Prism::Node # def initialize: (Integer flags, Symbol name, Location name_loc, Location operator_loc, Prism::node value, Location location) -> void # # @return [OptionalParameterNode] a new instance of OptionalParameterNode # - # source://prism//lib/prism/node.rb#14033 + # source://prism//lib/prism/node.rb#14346 sig do params( source: Prism::Source, @@ -23624,33 +25517,39 @@ class Prism::OptionalParameterNode < ::Prism::Node end def initialize(source, flags, name, name_loc, operator_loc, value, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#14459 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14045 + # source://prism//lib/prism/node.rb#14358 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14050 + # source://prism//lib/prism/node.rb#14363 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14060 + # source://prism//lib/prism/node.rb#14373 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#14055 + # source://prism//lib/prism/node.rb#14368 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?name: Symbol, ?name_loc: Location, ?operator_loc: Location, ?value: Prism::node, ?location: Location) -> OptionalParameterNode # - # source://prism//lib/prism/node.rb#14065 + # source://prism//lib/prism/node.rb#14378 sig do params( flags: Integer, @@ -23666,46 +25565,46 @@ class Prism::OptionalParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14050 + # source://prism//lib/prism/node.rb#14363 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, name: Symbol, name_loc: Location, operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#14073 + # source://prism//lib/prism/node.rb#14386 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#14113 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#14425 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#14082 + # source://prism//lib/prism/node.rb#14395 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#14085 + # source://prism//lib/prism/node.rb#14398 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#14108 + # source://prism//lib/prism/node.rb#14420 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#14092 + # source://prism//lib/prism/node.rb#14405 sig { returns(Prism::Location) } def operator_loc; end @@ -23713,7 +25612,7 @@ class Prism::OptionalParameterNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#14103 + # source://prism//lib/prism/node.rb#14415 sig { returns(T::Boolean) } def repeated_parameter?; end @@ -23732,21 +25631,21 @@ class Prism::OptionalParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14139 + # source://prism//lib/prism/node.rb#14443 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#14099 + # source://prism//lib/prism/node.rb#14412 sig { returns(Prism::Node) } def value; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#14078 + # source://prism//lib/prism/node.rb#14391 sig { returns(Integer) } def flags; end @@ -23758,7 +25657,7 @@ class Prism::OptionalParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14149 + # source://prism//lib/prism/node.rb#14453 def type; end end end @@ -23768,13 +25667,13 @@ end # left or right # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#14158 +# source://prism//lib/prism/node.rb#14473 class Prism::OrNode < ::Prism::Node # def initialize: (Prism::node left, Prism::node right, Location operator_loc, Location location) -> void # # @return [OrNode] a new instance of OrNode # - # source://prism//lib/prism/node.rb#14160 + # source://prism//lib/prism/node.rb#14475 sig do params( source: Prism::Source, @@ -23786,33 +25685,39 @@ class Prism::OrNode < ::Prism::Node end def initialize(source, left, right, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#14585 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14170 + # source://prism//lib/prism/node.rb#14485 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14175 + # source://prism//lib/prism/node.rb#14490 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14185 + # source://prism//lib/prism/node.rb#14500 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#14180 + # source://prism//lib/prism/node.rb#14495 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?left: Prism::node, ?right: Prism::node, ?operator_loc: Location, ?location: Location) -> OrNode # - # source://prism//lib/prism/node.rb#14190 + # source://prism//lib/prism/node.rb#14505 sig do params( left: Prism::Node, @@ -23826,24 +25731,24 @@ class Prism::OrNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14175 + # source://prism//lib/prism/node.rb#14490 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { left: Prism::node, right: Prism::node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#14198 + # source://prism//lib/prism/node.rb#14513 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#14237 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#14551 + sig { override.returns(String) } + def inspect; end # 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). # @@ -23853,13 +25758,13 @@ class Prism::OrNode < ::Prism::Node # 1 || 2 # ^ # - # source://prism//lib/prism/node.rb#14209 + # source://prism//lib/prism/node.rb#14524 sig { returns(Prism::Node) } def left; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#14232 + # source://prism//lib/prism/node.rb#14546 sig { returns(String) } def operator; end @@ -23868,7 +25773,7 @@ class Prism::OrNode < ::Prism::Node # left or right # ^^ # - # source://prism//lib/prism/node.rb#14224 + # source://prism//lib/prism/node.rb#14539 sig { returns(Prism::Location) } def operator_loc; end @@ -23880,7 +25785,7 @@ class Prism::OrNode < ::Prism::Node # 1 or 2 # ^ # - # source://prism//lib/prism/node.rb#14218 + # source://prism//lib/prism/node.rb#14533 sig { returns(Prism::Node) } def right; end @@ -23899,7 +25804,7 @@ class Prism::OrNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14261 + # source://prism//lib/prism/node.rb#14569 sig { override.returns(Symbol) } def type; end @@ -23911,7 +25816,7 @@ class Prism::OrNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14271 + # source://prism//lib/prism/node.rb#14579 def type; end end end @@ -24160,12 +26065,12 @@ Prism::Pack::UTF8 = T.let(T.unsafe(nil), Symbol) # Flags for parameter nodes. # -# source://prism//lib/prism/node.rb#18902 +# source://prism//lib/prism/node.rb#19277 module Prism::ParameterFlags; end # a parameter name that has been repeated in the method signature # -# source://prism//lib/prism/node.rb#18904 +# source://prism//lib/prism/node.rb#19279 Prism::ParameterFlags::REPEATED_PARAMETER = T.let(T.unsafe(nil), Integer) # Represents the list of parameters on a method, block, or lambda definition. @@ -24174,20 +26079,20 @@ Prism::ParameterFlags::REPEATED_PARAMETER = T.let(T.unsafe(nil), Integer) # ^^^^^^^ # end # -# source://prism//lib/prism/node.rb#14281 +# source://prism//lib/prism/node.rb#14598 class Prism::ParametersNode < ::Prism::Node - # def initialize: (Array[RequiredParameterNode | MultiTargetNode] requireds, Array[OptionalParameterNode] optionals, RestParameterNode | ImplicitRestNode | nil rest, Array[RequiredParameterNode | MultiTargetNode | KeywordRestParameterNode | NoKeywordsParameterNode] posts, Array[RequiredKeywordParameterNode | OptionalKeywordParameterNode] keywords, KeywordRestParameterNode | ForwardingParameterNode | NoKeywordsParameterNode | nil keyword_rest, BlockParameterNode? block, Location location) -> void + # def initialize: (Array[RequiredParameterNode | MultiTargetNode] requireds, Array[OptionalParameterNode] optionals, RestParameterNode | ImplicitRestNode | nil rest, Array[RequiredParameterNode | MultiTargetNode | KeywordRestParameterNode | NoKeywordsParameterNode | ForwardingParameterNode] posts, Array[RequiredKeywordParameterNode | OptionalKeywordParameterNode] keywords, KeywordRestParameterNode | ForwardingParameterNode | NoKeywordsParameterNode | nil keyword_rest, BlockParameterNode? block, Location location) -> void # # @return [ParametersNode] a new instance of ParametersNode # - # source://prism//lib/prism/node.rb#14283 + # source://prism//lib/prism/node.rb#14600 sig do params( source: Prism::Source, requireds: T::Array[T.any(Prism::RequiredParameterNode, Prism::MultiTargetNode)], optionals: T::Array[Prism::OptionalParameterNode], rest: T.nilable(T.any(Prism::RestParameterNode, Prism::ImplicitRestNode)), - posts: T::Array[T.any(Prism::RequiredParameterNode, Prism::MultiTargetNode, Prism::KeywordRestParameterNode, Prism::NoKeywordsParameterNode)], + posts: T::Array[T.any(Prism::RequiredParameterNode, Prism::MultiTargetNode, Prism::KeywordRestParameterNode, Prism::NoKeywordsParameterNode, Prism::ForwardingParameterNode)], keywords: T::Array[T.any(Prism::RequiredKeywordParameterNode, Prism::OptionalKeywordParameterNode)], keyword_rest: T.nilable(T.any(Prism::KeywordRestParameterNode, Prism::ForwardingParameterNode, Prism::NoKeywordsParameterNode)), block: T.nilable(Prism::BlockParameterNode), @@ -24196,45 +26101,51 @@ class Prism::ParametersNode < ::Prism::Node end def initialize(source, requireds, optionals, rest, posts, keywords, keyword_rest, block, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#14710 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14297 + # source://prism//lib/prism/node.rb#14614 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader block: BlockParameterNode? # - # source://prism//lib/prism/node.rb#14356 + # source://prism//lib/prism/node.rb#14673 sig { returns(T.nilable(Prism::BlockParameterNode)) } def block; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14302 + # source://prism//lib/prism/node.rb#14619 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14320 + # source://prism//lib/prism/node.rb#14637 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#14307 + # source://prism//lib/prism/node.rb#14624 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end - # def copy: (?requireds: Array[RequiredParameterNode | MultiTargetNode], ?optionals: Array[OptionalParameterNode], ?rest: RestParameterNode | ImplicitRestNode | nil, ?posts: Array[RequiredParameterNode | MultiTargetNode | KeywordRestParameterNode | NoKeywordsParameterNode], ?keywords: Array[RequiredKeywordParameterNode | OptionalKeywordParameterNode], ?keyword_rest: KeywordRestParameterNode | ForwardingParameterNode | NoKeywordsParameterNode | nil, ?block: BlockParameterNode?, ?location: Location) -> ParametersNode + # def copy: (?requireds: Array[RequiredParameterNode | MultiTargetNode], ?optionals: Array[OptionalParameterNode], ?rest: RestParameterNode | ImplicitRestNode | nil, ?posts: Array[RequiredParameterNode | MultiTargetNode | KeywordRestParameterNode | NoKeywordsParameterNode | ForwardingParameterNode], ?keywords: Array[RequiredKeywordParameterNode | OptionalKeywordParameterNode], ?keyword_rest: KeywordRestParameterNode | ForwardingParameterNode | NoKeywordsParameterNode | nil, ?block: BlockParameterNode?, ?location: Location) -> ParametersNode # - # source://prism//lib/prism/node.rb#14325 + # source://prism//lib/prism/node.rb#14642 sig do params( requireds: T::Array[T.any(Prism::RequiredParameterNode, Prism::MultiTargetNode)], optionals: T::Array[Prism::OptionalParameterNode], rest: T.nilable(T.any(Prism::RestParameterNode, Prism::ImplicitRestNode)), - posts: T::Array[T.any(Prism::RequiredParameterNode, Prism::MultiTargetNode, Prism::KeywordRestParameterNode, Prism::NoKeywordsParameterNode)], + posts: T::Array[T.any(Prism::RequiredParameterNode, Prism::MultiTargetNode, Prism::KeywordRestParameterNode, Prism::NoKeywordsParameterNode, Prism::ForwardingParameterNode)], keywords: T::Array[T.any(Prism::RequiredKeywordParameterNode, Prism::OptionalKeywordParameterNode)], keyword_rest: T.nilable(T.any(Prism::KeywordRestParameterNode, Prism::ForwardingParameterNode, Prism::NoKeywordsParameterNode)), block: T.nilable(Prism::BlockParameterNode), @@ -24246,28 +26157,28 @@ class Prism::ParametersNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14302 + # source://prism//lib/prism/node.rb#14619 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (Array[Symbol] keys) -> { requireds: Array[RequiredParameterNode | MultiTargetNode], optionals: Array[OptionalParameterNode], rest: RestParameterNode | ImplicitRestNode | nil, posts: Array[RequiredParameterNode | MultiTargetNode | KeywordRestParameterNode | NoKeywordsParameterNode], keywords: Array[RequiredKeywordParameterNode | OptionalKeywordParameterNode], keyword_rest: KeywordRestParameterNode | ForwardingParameterNode | NoKeywordsParameterNode | nil, block: BlockParameterNode?, location: Location } + # def deconstruct_keys: (Array[Symbol] keys) -> { requireds: Array[RequiredParameterNode | MultiTargetNode], optionals: Array[OptionalParameterNode], rest: RestParameterNode | ImplicitRestNode | nil, posts: Array[RequiredParameterNode | MultiTargetNode | KeywordRestParameterNode | NoKeywordsParameterNode | ForwardingParameterNode], keywords: Array[RequiredKeywordParameterNode | OptionalKeywordParameterNode], keyword_rest: KeywordRestParameterNode | ForwardingParameterNode | NoKeywordsParameterNode | nil, block: BlockParameterNode?, location: Location } # - # source://prism//lib/prism/node.rb#14333 + # source://prism//lib/prism/node.rb#14650 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#14360 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#14676 + sig { override.returns(String) } + def inspect; end # attr_reader keyword_rest: KeywordRestParameterNode | ForwardingParameterNode | NoKeywordsParameterNode | nil # - # source://prism//lib/prism/node.rb#14353 + # source://prism//lib/prism/node.rb#14670 sig do returns(T.nilable(T.any(Prism::KeywordRestParameterNode, Prism::ForwardingParameterNode, Prism::NoKeywordsParameterNode))) end @@ -24275,39 +26186,39 @@ class Prism::ParametersNode < ::Prism::Node # attr_reader keywords: Array[RequiredKeywordParameterNode | OptionalKeywordParameterNode] # - # source://prism//lib/prism/node.rb#14350 + # source://prism//lib/prism/node.rb#14667 sig { returns(T::Array[T.any(Prism::RequiredKeywordParameterNode, Prism::OptionalKeywordParameterNode)]) } def keywords; end # attr_reader optionals: Array[OptionalParameterNode] # - # source://prism//lib/prism/node.rb#14341 + # source://prism//lib/prism/node.rb#14658 sig { returns(T::Array[Prism::OptionalParameterNode]) } def optionals; end - # attr_reader posts: Array[RequiredParameterNode | MultiTargetNode | KeywordRestParameterNode | NoKeywordsParameterNode] + # attr_reader posts: Array[RequiredParameterNode | MultiTargetNode | KeywordRestParameterNode | NoKeywordsParameterNode | ForwardingParameterNode] # - # source://prism//lib/prism/node.rb#14347 + # source://prism//lib/prism/node.rb#14664 sig do - returns(T::Array[T.any(Prism::RequiredParameterNode, Prism::MultiTargetNode, Prism::KeywordRestParameterNode, Prism::NoKeywordsParameterNode)]) + returns(T::Array[T.any(Prism::RequiredParameterNode, Prism::MultiTargetNode, Prism::KeywordRestParameterNode, Prism::NoKeywordsParameterNode, Prism::ForwardingParameterNode)]) end def posts; end # attr_reader requireds: Array[RequiredParameterNode | MultiTargetNode] # - # source://prism//lib/prism/node.rb#14338 + # source://prism//lib/prism/node.rb#14655 sig { returns(T::Array[T.any(Prism::RequiredParameterNode, Prism::MultiTargetNode)]) } def requireds; end # attr_reader rest: RestParameterNode | ImplicitRestNode | nil # - # source://prism//lib/prism/node.rb#14344 + # source://prism//lib/prism/node.rb#14661 sig { returns(T.nilable(T.any(Prism::RestParameterNode, Prism::ImplicitRestNode))) } def rest; end # Mirrors the Method#parameters method. # - # source://prism//lib/prism/node_ext.rb#210 + # source://prism//lib/prism/node_ext.rb#238 sig { returns(T::Array[T.any([Symbol, Symbol], [Symbol])]) } def signature; end @@ -24326,7 +26237,7 @@ class Prism::ParametersNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14401 + # source://prism//lib/prism/node.rb#14694 sig { override.returns(Symbol) } def type; end @@ -24338,7 +26249,7 @@ class Prism::ParametersNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14411 + # source://prism//lib/prism/node.rb#14704 def type; end end end @@ -24348,13 +26259,13 @@ end # (10 + 34) # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#14420 +# source://prism//lib/prism/node.rb#14730 class Prism::ParenthesesNode < ::Prism::Node # def initialize: (Prism::node? body, Location opening_loc, Location closing_loc, Location location) -> void # # @return [ParenthesesNode] a new instance of ParenthesesNode # - # source://prism//lib/prism/node.rb#14422 + # source://prism//lib/prism/node.rb#14732 sig do params( source: Prism::Source, @@ -24366,51 +26277,57 @@ class Prism::ParenthesesNode < ::Prism::Node end def initialize(source, body, opening_loc, closing_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#14842 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14432 + # source://prism//lib/prism/node.rb#14742 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader body: Prism::node? # - # source://prism//lib/prism/node.rb#14471 + # source://prism//lib/prism/node.rb#14781 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14441 + # source://prism//lib/prism/node.rb#14751 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#14494 + # source://prism//lib/prism/node.rb#14803 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#14481 + # source://prism//lib/prism/node.rb#14791 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14453 + # source://prism//lib/prism/node.rb#14763 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#14446 + # source://prism//lib/prism/node.rb#14756 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?body: Prism::node?, ?opening_loc: Location, ?closing_loc: Location, ?location: Location) -> ParenthesesNode # - # source://prism//lib/prism/node.rb#14458 + # source://prism//lib/prism/node.rb#14768 sig do params( body: T.nilable(Prism::Node), @@ -24424,38 +26341,38 @@ class Prism::ParenthesesNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14441 + # source://prism//lib/prism/node.rb#14751 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { body: Prism::node?, opening_loc: Location, closing_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#14466 + # source://prism//lib/prism/node.rb#14776 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#14499 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#14808 + sig { override.returns(String) } + def inspect; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#14489 + # source://prism//lib/prism/node.rb#14798 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#14474 + # source://prism//lib/prism/node.rb#14784 sig { returns(Prism::Location) } def opening_loc; end - # source://prism//lib/prism/node.rb#14436 + # source://prism//lib/prism/node.rb#14746 def set_newline_flag(newline_marked); end # Sometimes you want to check an instance of a node against a list of @@ -24473,7 +26390,7 @@ class Prism::ParenthesesNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14526 + # source://prism//lib/prism/node.rb#14826 sig { override.returns(Symbol) } def type; end @@ -24485,71 +26402,109 @@ class Prism::ParenthesesNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14536 + # source://prism//lib/prism/node.rb#14836 def type; end end end # This represents an error that was encountered during parsing. # -# source://prism//lib/prism/parse_result.rb#373 +# source://prism//lib/prism/parse_result.rb#451 class Prism::ParseError # Create a new error object with the given message and location. # # @return [ParseError] a new instance of ParseError # - # source://prism//lib/prism/parse_result.rb#388 + # source://prism//lib/prism/parse_result.rb#466 sig { params(type: Symbol, message: String, location: Prism::Location, level: Symbol).void } def initialize(type, message, location, level); end # Implement the hash pattern matching interface for ParseError. # - # source://prism//lib/prism/parse_result.rb#396 + # source://prism//lib/prism/parse_result.rb#474 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # Returns a string representation of this error. # - # source://prism//lib/prism/parse_result.rb#401 + # source://prism//lib/prism/parse_result.rb#479 sig { returns(String) } def inspect; end # The level of this error. # - # source://prism//lib/prism/parse_result.rb#385 + # source://prism//lib/prism/parse_result.rb#463 + sig { returns(Symbol) } def level; end # A Location object representing the location of this error in the source. # - # source://prism//lib/prism/parse_result.rb#382 + # source://prism//lib/prism/parse_result.rb#460 + sig { returns(Prism::Location) } def location; end # The message associated with this error. # - # source://prism//lib/prism/parse_result.rb#379 + # source://prism//lib/prism/parse_result.rb#457 + sig { returns(String) } def message; end # The type of error. This is an _internal_ symbol that is used for # communicating with translation layers. It is not meant to be public API. # - # source://prism//lib/prism/parse_result.rb#376 + # source://prism//lib/prism/parse_result.rb#454 + sig { returns(Symbol) } def type; end end -# This represents the result of a call to ::parse or ::parse_file. It contains -# the AST, any comments that were encounters, and any errors that were -# encountered. +# This is a result specific to the `parse_lex` and `parse_lex_file` methods. +# +# source://prism//lib/prism/parse_result.rb#610 +class Prism::ParseLexResult < ::Prism::Result + # Create a new parse lex result object with the given values. + # + # @return [ParseLexResult] a new instance of ParseLexResult + # + # source://prism//lib/prism/parse_result.rb#616 + sig do + params( + value: [Prism::ProgramNode, T::Array[T.untyped]], + comments: T::Array[Prism::Comment], + magic_comments: T::Array[Prism::MagicComment], + data_loc: T.nilable(Prism::Location), + errors: T::Array[Prism::ParseError], + warnings: T::Array[Prism::ParseWarning], + source: Prism::Source + ).void + end + def initialize(value, comments, magic_comments, data_loc, errors, warnings, source); end + + # Implement the hash pattern matching interface for ParseLexResult. + # + # source://prism//lib/prism/parse_result.rb#622 + sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } + def deconstruct_keys(keys); end + + # A tuple of the syntax tree and the list of tokens that were parsed from + # the source code. + # + # source://prism//lib/prism/parse_result.rb#613 + sig { returns([Prism::ProgramNode, T::Array[T.untyped]]) } + def value; end +end + +# This is a result specific to the `parse` and `parse_file` methods. # -# source://prism//lib/prism/parse_result.rb#443 -class Prism::ParseResult +# source://prism//lib/prism/parse_result.rb#576 +class Prism::ParseResult < ::Prism::Result # Create a new parse result object with the given values. # # @return [ParseResult] a new instance of ParseResult # - # source://prism//lib/prism/parse_result.rb#470 + # source://prism//lib/prism/parse_result.rb#581 sig do params( - value: Value, + value: Prism::ProgramNode, comments: T::Array[Prism::Comment], magic_comments: T::Array[Prism::MagicComment], data_loc: T.nilable(Prism::Location), @@ -24565,81 +26520,22 @@ class Prism::ParseResult # source://prism//lib/prism/parse_result/comments.rb#190 def attach_comments!; end - # The list of comments that were encountered during parsing. - # - # source://prism//lib/prism/parse_result.rb#450 - def comments; end - - # 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#458 - def data_loc; end - # Implement the hash pattern matching interface for ParseResult. # - # source://prism//lib/prism/parse_result.rb#481 + # source://prism//lib/prism/parse_result.rb#587 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end - # Returns the encoding of the source code that was parsed. - # - # source://prism//lib/prism/parse_result.rb#486 - sig { returns(Encoding) } - def encoding; end - - # The list of errors that were generated during parsing. - # - # source://prism//lib/prism/parse_result.rb#461 - def errors; end - - # Returns true if there were errors during parsing and false if there were - # not. - # - # @return [Boolean] - # - # source://prism//lib/prism/parse_result.rb#498 - sig { returns(T::Boolean) } - def failure?; end - - # The list of magic comments that were encountered during parsing. - # - # source://prism//lib/prism/parse_result.rb#453 - def magic_comments; end - # Walk the tree and mark nodes that are on a new line. # # source://prism//lib/prism/parse_result/newlines.rb#60 def mark_newlines!; end - # A Source instance that represents the source code that was parsed. - # - # source://prism//lib/prism/parse_result.rb#467 - def source; end - - # Returns true if there were no errors during parsing and false if there - # were. - # - # @return [Boolean] - # - # source://prism//lib/prism/parse_result.rb#492 - sig { returns(T::Boolean) } - 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. + # The syntax tree that was parsed from the source code. # - # source://prism//lib/prism/parse_result.rb#447 + # source://prism//lib/prism/parse_result.rb#578 + sig { returns(Prism::ProgramNode) } def value; end - - # The list of warnings that were generated during parsing. - # - # source://prism//lib/prism/parse_result.rb#464 - def warnings; end - - Value = type_member end # When we've parsed the source, we have both the syntax tree and the list of @@ -24802,47 +26698,51 @@ end # This represents a warning that was encountered during parsing. # -# source://prism//lib/prism/parse_result.rb#407 +# source://prism//lib/prism/parse_result.rb#485 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#422 + # source://prism//lib/prism/parse_result.rb#500 sig { params(type: Symbol, message: String, location: Prism::Location, level: Symbol).void } def initialize(type, message, location, level); end # Implement the hash pattern matching interface for ParseWarning. # - # source://prism//lib/prism/parse_result.rb#430 + # source://prism//lib/prism/parse_result.rb#508 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # Returns a string representation of this warning. # - # source://prism//lib/prism/parse_result.rb#435 + # source://prism//lib/prism/parse_result.rb#513 sig { returns(String) } def inspect; end # The level of this warning. # - # source://prism//lib/prism/parse_result.rb#419 + # source://prism//lib/prism/parse_result.rb#497 + sig { returns(Symbol) } def level; end # A Location object representing the location of this warning in the source. # - # source://prism//lib/prism/parse_result.rb#416 + # source://prism//lib/prism/parse_result.rb#494 + sig { returns(Prism::Location) } def location; end # The message associated with this warning. # - # source://prism//lib/prism/parse_result.rb#413 + # source://prism//lib/prism/parse_result.rb#491 + sig { returns(String) } def message; end # The type of warning. This is an _internal_ symbol that is used for # communicating with translation layers. It is not meant to be public API. # - # source://prism//lib/prism/parse_result.rb#410 + # source://prism//lib/prism/parse_result.rb#488 + sig { returns(Symbol) } def type; end end @@ -24935,6 +26835,11 @@ class Prism::Pattern # source://prism//lib/prism/pattern.rb#118 def compile_array_pattern_node(node); end + # Compile a name associated with a constant. + # + # source://prism//lib/prism/pattern.rb#168 + def compile_constant_name(node, name); end + # in Prism::ConstantReadNode # # source://prism//lib/prism/pattern.rb#148 @@ -24943,7 +26848,7 @@ class Prism::Pattern # in ConstantReadNode # in String # - # source://prism//lib/prism/pattern.rb#160 + # source://prism//lib/prism/pattern.rb#163 def compile_constant_read_node(node); end # Raise an error because the given node is not supported. @@ -24956,35 +26861,35 @@ class Prism::Pattern # in InstanceVariableReadNode[name: Symbol] # in { name: Symbol } # - # source://prism//lib/prism/pattern.rb#178 + # source://prism//lib/prism/pattern.rb#184 def compile_hash_pattern_node(node); end # in nil # - # source://prism//lib/prism/pattern.rb#208 + # source://prism//lib/prism/pattern.rb#214 def compile_nil_node(node); end # Compile any kind of node. Dispatch out to the individual compilation # methods based on the type of node. # - # source://prism//lib/prism/pattern.rb#237 + # source://prism//lib/prism/pattern.rb#243 def compile_node(node); end # in /foo/ # - # source://prism//lib/prism/pattern.rb#213 + # source://prism//lib/prism/pattern.rb#219 def compile_regular_expression_node(node); end # in "" # in "foo" # - # source://prism//lib/prism/pattern.rb#221 + # source://prism//lib/prism/pattern.rb#227 def compile_string_node(node); end # in :+ # in :foo # - # source://prism//lib/prism/pattern.rb#229 + # source://prism//lib/prism/pattern.rb#235 def compile_symbol_node(node); end end @@ -25007,13 +26912,13 @@ end # foo in ^(bar) # ^^^^^^ # -# source://prism//lib/prism/node.rb#14545 +# source://prism//lib/prism/node.rb#14854 class Prism::PinnedExpressionNode < ::Prism::Node # def initialize: (Prism::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#14547 + # source://prism//lib/prism/node.rb#14856 sig do params( source: Prism::Source, @@ -25026,33 +26931,39 @@ class Prism::PinnedExpressionNode < ::Prism::Node end def initialize(source, expression, operator_loc, lparen_loc, rparen_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#14973 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14558 + # source://prism//lib/prism/node.rb#14867 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14563 + # source://prism//lib/prism/node.rb#14872 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14573 + # source://prism//lib/prism/node.rb#14882 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#14568 + # source://prism//lib/prism/node.rb#14877 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?expression: Prism::node, ?operator_loc: Location, ?lparen_loc: Location, ?rparen_loc: Location, ?location: Location) -> PinnedExpressionNode # - # source://prism//lib/prism/node.rb#14578 + # source://prism//lib/prism/node.rb#14887 sig do params( expression: Prism::Node, @@ -25067,64 +26978,64 @@ class Prism::PinnedExpressionNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14563 + # source://prism//lib/prism/node.rb#14872 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { expression: Prism::node, operator_loc: Location, lparen_loc: Location, rparen_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#14586 + # source://prism//lib/prism/node.rb#14895 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # attr_reader expression: Prism::node # - # source://prism//lib/prism/node.rb#14591 + # source://prism//lib/prism/node.rb#14900 sig { returns(Prism::Node) } def expression; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#14631 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#14939 + sig { override.returns(String) } + def inspect; end # def lparen: () -> String # - # source://prism//lib/prism/node.rb#14621 + # source://prism//lib/prism/node.rb#14929 sig { returns(String) } def lparen; end # attr_reader lparen_loc: Location # - # source://prism//lib/prism/node.rb#14601 + # source://prism//lib/prism/node.rb#14910 sig { returns(Prism::Location) } def lparen_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#14616 + # source://prism//lib/prism/node.rb#14924 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#14594 + # source://prism//lib/prism/node.rb#14903 sig { returns(Prism::Location) } def operator_loc; end # def rparen: () -> String # - # source://prism//lib/prism/node.rb#14626 + # source://prism//lib/prism/node.rb#14934 sig { returns(String) } def rparen; end # attr_reader rparen_loc: Location # - # source://prism//lib/prism/node.rb#14608 + # source://prism//lib/prism/node.rb#14917 sig { returns(Prism::Location) } def rparen_loc; end @@ -25143,7 +27054,7 @@ class Prism::PinnedExpressionNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14655 + # source://prism//lib/prism/node.rb#14957 sig { override.returns(Symbol) } def type; end @@ -25155,7 +27066,7 @@ class Prism::PinnedExpressionNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14665 + # source://prism//lib/prism/node.rb#14967 def type; end end end @@ -25165,13 +27076,13 @@ end # foo in ^bar # ^^^^ # -# source://prism//lib/prism/node.rb#14674 +# source://prism//lib/prism/node.rb#14986 class Prism::PinnedVariableNode < ::Prism::Node # def initialize: (Prism::node variable, Location operator_loc, Location location) -> void # # @return [PinnedVariableNode] a new instance of PinnedVariableNode # - # source://prism//lib/prism/node.rb#14676 + # source://prism//lib/prism/node.rb#14988 sig do params( source: Prism::Source, @@ -25182,33 +27093,39 @@ class Prism::PinnedVariableNode < ::Prism::Node end def initialize(source, variable, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#15079 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14685 + # source://prism//lib/prism/node.rb#14997 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14690 + # source://prism//lib/prism/node.rb#15002 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14700 + # source://prism//lib/prism/node.rb#15012 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#14695 + # source://prism//lib/prism/node.rb#15007 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?variable: Prism::node, ?operator_loc: Location, ?location: Location) -> PinnedVariableNode # - # source://prism//lib/prism/node.rb#14705 + # source://prism//lib/prism/node.rb#15017 sig do params( variable: Prism::Node, @@ -25221,34 +27138,34 @@ class Prism::PinnedVariableNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14690 + # source://prism//lib/prism/node.rb#15002 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { variable: Prism::node, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#14713 + # source://prism//lib/prism/node.rb#15025 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#14734 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#15045 + sig { override.returns(String) } + def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#14729 + # source://prism//lib/prism/node.rb#15040 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#14721 + # source://prism//lib/prism/node.rb#15033 sig { returns(Prism::Location) } def operator_loc; end @@ -25267,13 +27184,13 @@ class Prism::PinnedVariableNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14756 + # source://prism//lib/prism/node.rb#15063 sig { override.returns(Symbol) } def type; end # attr_reader variable: Prism::node # - # source://prism//lib/prism/node.rb#14718 + # source://prism//lib/prism/node.rb#15030 sig { returns(Prism::Node) } def variable; end @@ -25285,7 +27202,7 @@ class Prism::PinnedVariableNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14766 + # source://prism//lib/prism/node.rb#15073 def type; end end end @@ -25295,13 +27212,13 @@ end # END { foo } # ^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#14775 +# source://prism//lib/prism/node.rb#15090 class Prism::PostExecutionNode < ::Prism::Node # 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#14777 + # source://prism//lib/prism/node.rb#15092 sig do params( source: Prism::Source, @@ -25314,45 +27231,51 @@ class Prism::PostExecutionNode < ::Prism::Node end def initialize(source, statements, keyword_loc, opening_loc, closing_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#15211 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14788 + # source://prism//lib/prism/node.rb#15103 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14793 + # source://prism//lib/prism/node.rb#15108 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#14858 + # source://prism//lib/prism/node.rb#15172 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#14840 + # source://prism//lib/prism/node.rb#15155 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14805 + # source://prism//lib/prism/node.rb#15120 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#14798 + # source://prism//lib/prism/node.rb#15113 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?statements: StatementsNode?, ?keyword_loc: Location, ?opening_loc: Location, ?closing_loc: Location, ?location: Location) -> PostExecutionNode # - # source://prism//lib/prism/node.rb#14810 + # source://prism//lib/prism/node.rb#15125 sig do params( statements: T.nilable(Prism::StatementsNode), @@ -25367,52 +27290,52 @@ class Prism::PostExecutionNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14793 + # source://prism//lib/prism/node.rb#15108 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # 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#14818 + # source://prism//lib/prism/node.rb#15133 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#14863 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#15177 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#14848 + # source://prism//lib/prism/node.rb#15162 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#14826 + # source://prism//lib/prism/node.rb#15141 sig { returns(Prism::Location) } def keyword_loc; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#14853 + # source://prism//lib/prism/node.rb#15167 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#14833 + # source://prism//lib/prism/node.rb#15148 sig { returns(Prism::Location) } def opening_loc; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#14823 + # source://prism//lib/prism/node.rb#15138 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -25431,7 +27354,7 @@ class Prism::PostExecutionNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14891 + # source://prism//lib/prism/node.rb#15195 sig { override.returns(Symbol) } def type; end @@ -25443,7 +27366,7 @@ class Prism::PostExecutionNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14901 + # source://prism//lib/prism/node.rb#15205 def type; end end end @@ -25453,13 +27376,13 @@ end # BEGIN { foo } # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#14910 +# source://prism//lib/prism/node.rb#15224 class Prism::PreExecutionNode < ::Prism::Node # 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#14912 + # source://prism//lib/prism/node.rb#15226 sig do params( source: Prism::Source, @@ -25472,45 +27395,51 @@ class Prism::PreExecutionNode < ::Prism::Node end def initialize(source, statements, keyword_loc, opening_loc, closing_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#15345 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14923 + # source://prism//lib/prism/node.rb#15237 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14928 + # source://prism//lib/prism/node.rb#15242 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#14993 + # source://prism//lib/prism/node.rb#15306 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#14975 + # source://prism//lib/prism/node.rb#15289 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14940 + # source://prism//lib/prism/node.rb#15254 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#14933 + # source://prism//lib/prism/node.rb#15247 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?statements: StatementsNode?, ?keyword_loc: Location, ?opening_loc: Location, ?closing_loc: Location, ?location: Location) -> PreExecutionNode # - # source://prism//lib/prism/node.rb#14945 + # source://prism//lib/prism/node.rb#15259 sig do params( statements: T.nilable(Prism::StatementsNode), @@ -25525,52 +27454,52 @@ class Prism::PreExecutionNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14928 + # source://prism//lib/prism/node.rb#15242 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # 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#14953 + # source://prism//lib/prism/node.rb#15267 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#14998 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#15311 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#14983 + # source://prism//lib/prism/node.rb#15296 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#14961 + # source://prism//lib/prism/node.rb#15275 sig { returns(Prism::Location) } def keyword_loc; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#14988 + # source://prism//lib/prism/node.rb#15301 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#14968 + # source://prism//lib/prism/node.rb#15282 sig { returns(Prism::Location) } def opening_loc; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#14958 + # source://prism//lib/prism/node.rb#15272 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -25589,7 +27518,7 @@ class Prism::PreExecutionNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15026 + # source://prism//lib/prism/node.rb#15329 sig { override.returns(Symbol) } def type; end @@ -25601,20 +27530,20 @@ class Prism::PreExecutionNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15036 + # source://prism//lib/prism/node.rb#15339 def type; end end end # The top level node of any parse tree. # -# source://prism//lib/prism/node.rb#15042 +# source://prism//lib/prism/node.rb#15355 class Prism::ProgramNode < ::Prism::Node # def initialize: (Array[Symbol] locals, StatementsNode statements, Location location) -> void # # @return [ProgramNode] a new instance of ProgramNode # - # source://prism//lib/prism/node.rb#15044 + # source://prism//lib/prism/node.rb#15357 sig do params( source: Prism::Source, @@ -25625,33 +27554,39 @@ class Prism::ProgramNode < ::Prism::Node end def initialize(source, locals, statements, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#15439 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15053 + # source://prism//lib/prism/node.rb#15366 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15058 + # source://prism//lib/prism/node.rb#15371 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15068 + # source://prism//lib/prism/node.rb#15381 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15063 + # source://prism//lib/prism/node.rb#15376 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?locals: Array[Symbol], ?statements: StatementsNode, ?location: Location) -> ProgramNode # - # source://prism//lib/prism/node.rb#15073 + # source://prism//lib/prism/node.rb#15386 sig do params( locals: T::Array[Symbol], @@ -25664,34 +27599,34 @@ class Prism::ProgramNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15058 + # source://prism//lib/prism/node.rb#15371 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { locals: Array[Symbol], statements: StatementsNode, location: Location } # - # source://prism//lib/prism/node.rb#15081 + # source://prism//lib/prism/node.rb#15394 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#15093 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#15405 + sig { override.returns(String) } + def inspect; end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#15086 + # source://prism//lib/prism/node.rb#15399 sig { returns(T::Array[Symbol]) } def locals; end # attr_reader statements: StatementsNode # - # source://prism//lib/prism/node.rb#15089 + # source://prism//lib/prism/node.rb#15402 sig { returns(Prism::StatementsNode) } def statements; end @@ -25710,7 +27645,7 @@ class Prism::ProgramNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15115 + # source://prism//lib/prism/node.rb#15423 sig { override.returns(Symbol) } def type; end @@ -25722,19 +27657,19 @@ class Prism::ProgramNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15125 + # source://prism//lib/prism/node.rb#15433 def type; end end end # Flags for range and flip-flop nodes. # -# source://prism//lib/prism/node.rb#18908 +# source://prism//lib/prism/node.rb#19283 module Prism::RangeFlags; end # ... operator # -# source://prism//lib/prism/node.rb#18910 +# source://prism//lib/prism/node.rb#19285 Prism::RangeFlags::EXCLUDE_END = T.let(T.unsafe(nil), Integer) # Represents the use of the `..` or `...` operators. @@ -25745,13 +27680,13 @@ Prism::RangeFlags::EXCLUDE_END = T.let(T.unsafe(nil), Integer) # c if a =~ /left/ ... b =~ /right/ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#15137 +# source://prism//lib/prism/node.rb#15454 class Prism::RangeNode < ::Prism::Node # def initialize: (Integer flags, Prism::node? left, Prism::node? right, Location operator_loc, Location location) -> void # # @return [RangeNode] a new instance of RangeNode # - # source://prism//lib/prism/node.rb#15139 + # source://prism//lib/prism/node.rb#15456 sig do params( source: Prism::Source, @@ -25764,33 +27699,39 @@ class Prism::RangeNode < ::Prism::Node end def initialize(source, flags, left, right, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#15577 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15150 + # source://prism//lib/prism/node.rb#15467 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15155 + # source://prism//lib/prism/node.rb#15472 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15168 + # source://prism//lib/prism/node.rb#15485 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15160 + # source://prism//lib/prism/node.rb#15477 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?left: Prism::node?, ?right: Prism::node?, ?operator_loc: Location, ?location: Location) -> RangeNode # - # source://prism//lib/prism/node.rb#15173 + # source://prism//lib/prism/node.rb#15490 sig do params( flags: Integer, @@ -25805,13 +27746,13 @@ class Prism::RangeNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15155 + # source://prism//lib/prism/node.rb#15472 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, left: Prism::node?, right: Prism::node?, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#15181 + # source://prism//lib/prism/node.rb#15498 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -25819,18 +27760,18 @@ class Prism::RangeNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15217 + # source://prism//lib/prism/node.rb#15533 sig { returns(T::Boolean) } def exclude_end?; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#15227 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#15543 + sig { override.returns(String) } + def inspect; end # 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). # @@ -25840,19 +27781,19 @@ class Prism::RangeNode < ::Prism::Node # hello...goodbye # ^^^^^ # - # source://prism//lib/prism/node.rb#15196 + # source://prism//lib/prism/node.rb#15513 sig { returns(T.nilable(Prism::Node)) } def left; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#15222 + # source://prism//lib/prism/node.rb#15538 sig { returns(String) } def operator; end # The location of the `..` or `...` operator. # - # source://prism//lib/prism/node.rb#15209 + # source://prism//lib/prism/node.rb#15526 sig { returns(Prism::Location) } def operator_loc; end @@ -25865,7 +27806,7 @@ class Prism::RangeNode < ::Prism::Node # ^^^ # If neither right-hand or left-hand side was included, this will be a MissingNode. # - # source://prism//lib/prism/node.rb#15206 + # source://prism//lib/prism/node.rb#15523 sig { returns(T.nilable(Prism::Node)) } def right; end @@ -25884,15 +27825,15 @@ class Prism::RangeNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15261 + # source://prism//lib/prism/node.rb#15561 sig { override.returns(Symbol) } def type; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#15186 + # source://prism//lib/prism/node.rb#15503 sig { returns(Integer) } def flags; end @@ -25904,7 +27845,7 @@ class Prism::RangeNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15271 + # source://prism//lib/prism/node.rb#15571 def type; end end end @@ -25914,71 +27855,77 @@ end # 1.0r # ^^^^ # -# source://prism//lib/prism/node.rb#15280 +# source://prism//lib/prism/node.rb#15590 class Prism::RationalNode < ::Prism::Node # def initialize: (Prism::node numeric, Location location) -> void # # @return [RationalNode] a new instance of RationalNode # - # source://prism//lib/prism/node.rb#15282 + # source://prism//lib/prism/node.rb#15592 sig { params(source: Prism::Source, numeric: Prism::Node, location: Prism::Location).void } def initialize(source, numeric, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#15670 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15290 + # source://prism//lib/prism/node.rb#15600 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15295 + # source://prism//lib/prism/node.rb#15605 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15305 + # source://prism//lib/prism/node.rb#15615 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15300 + # source://prism//lib/prism/node.rb#15610 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?numeric: Prism::node, ?location: Location) -> RationalNode # - # source://prism//lib/prism/node.rb#15310 + # source://prism//lib/prism/node.rb#15620 sig { params(numeric: Prism::Node, location: Prism::Location).returns(Prism::RationalNode) } def copy(numeric: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15295 + # source://prism//lib/prism/node.rb#15605 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { numeric: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#15318 + # source://prism//lib/prism/node.rb#15628 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#15327 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#15636 + sig { override.returns(String) } + def inspect; end # attr_reader numeric: Prism::node # - # source://prism//lib/prism/node.rb#15323 + # source://prism//lib/prism/node.rb#15633 sig { returns(Prism::Node) } def numeric; end @@ -25997,13 +27944,13 @@ class Prism::RationalNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15348 + # source://prism//lib/prism/node.rb#15654 sig { override.returns(Symbol) } def type; end # Returns the value of the node as a Ruby Rational. # - # source://prism//lib/prism/node_ext.rb#94 + # source://prism//lib/prism/node_ext.rb#105 sig { returns(Rational) } def value; end @@ -26015,7 +27962,7 @@ class Prism::RationalNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15358 + # source://prism//lib/prism/node.rb#15664 def type; end end end @@ -26025,67 +27972,73 @@ end # redo # ^^^^ # -# source://prism//lib/prism/node.rb#15367 +# source://prism//lib/prism/node.rb#15680 class Prism::RedoNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [RedoNode] a new instance of RedoNode # - # source://prism//lib/prism/node.rb#15369 + # source://prism//lib/prism/node.rb#15682 sig { params(source: Prism::Source, location: Prism::Location).void } def initialize(source, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#15756 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15376 + # source://prism//lib/prism/node.rb#15689 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15381 + # source://prism//lib/prism/node.rb#15694 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15391 + # source://prism//lib/prism/node.rb#15704 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15386 + # source://prism//lib/prism/node.rb#15699 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> RedoNode # - # source://prism//lib/prism/node.rb#15396 + # source://prism//lib/prism/node.rb#15709 sig { params(location: Prism::Location).returns(Prism::RedoNode) } def copy(location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15381 + # source://prism//lib/prism/node.rb#15694 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#15404 + # source://prism//lib/prism/node.rb#15717 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#15410 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#15722 + sig { override.returns(String) } + def inspect; 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 @@ -26102,7 +28055,7 @@ class Prism::RedoNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15429 + # source://prism//lib/prism/node.rb#15740 sig { override.returns(Symbol) } def type; end @@ -26114,7 +28067,7 @@ class Prism::RedoNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15439 + # source://prism//lib/prism/node.rb#15750 def type; end end end @@ -26128,7 +28081,7 @@ module Prism::Reflection class << self # Returns the fields for the given node. # - # source://prism//lib/prism/reflection.rb#114 + # source://prism//lib/prism/reflection.rb#104 sig { params(node: T.class_of(Prism::Node)).returns(T::Array[Prism::Reflection::Field]) } def fields_for(node); end end @@ -26147,13 +28100,6 @@ class Prism::Reflection::ConstantField < ::Prism::Reflection::Field; end # source://prism//lib/prism/reflection.rb#55 class Prism::Reflection::ConstantListField < ::Prism::Reflection::Field; end -# A double field represents a double-precision floating point value. It is -# used exclusively to represent the value of a floating point literal. It -# resolves to a Float in Ruby. -# -# source://prism//lib/prism/reflection.rb#110 -class Prism::Reflection::DoubleField < ::Prism::Reflection::Field; end - # A field represents a single piece of data on a node. It is the base class # for all other field types. # @@ -26170,6 +28116,7 @@ class Prism::Reflection::Field # The name of the field. # # source://prism//lib/prism/reflection.rb#18 + sig { returns(Symbol) } def name; end end @@ -26178,27 +28125,35 @@ end # node because the integer is kept private. Instead, the various flags in # the bitset should be accessed through their query methods. # -# source://prism//lib/prism/reflection.rb#90 +# source://prism//lib/prism/reflection.rb#92 class Prism::Reflection::FlagsField < ::Prism::Reflection::Field # Initializes the flags field with the given name and flags. # # @return [FlagsField] a new instance of FlagsField # - # source://prism//lib/prism/reflection.rb#95 + # source://prism//lib/prism/reflection.rb#97 sig { params(name: Symbol, flags: T::Array[Symbol]).void } def initialize(name, flags); end # The names of the flags in the bitset. # - # source://prism//lib/prism/reflection.rb#92 + # source://prism//lib/prism/reflection.rb#94 + sig { returns(T::Array[Symbol]) } def flags; end end -# An integer field represents an arbitrarily-sized integer value. It is used -# exclusively to represent the value of an integer literal. It resolves to -# an Integer in Ruby. +# A float field represents a double-precision floating point value. It is +# used exclusively to represent the value of a floating point literal. It +# resolves to a Float in Ruby. +# +# source://prism//lib/prism/reflection.rb#85 +class Prism::Reflection::FloatField < ::Prism::Reflection::Field; end + +# An integer field represents an integer value. It is used to represent the +# value of an integer literal, the depth of local variables, and the number +# of a numbered reference. It resolves to an Integer in Ruby. # -# source://prism//lib/prism/reflection.rb#104 +# source://prism//lib/prism/reflection.rb#79 class Prism::Reflection::IntegerField < ::Prism::Reflection::Field; end # A location field represents the location of some part of the node in the @@ -26247,76 +28202,64 @@ class Prism::Reflection::OptionalNodeField < ::Prism::Reflection::Field; end # source://prism//lib/prism/reflection.rb#61 class Prism::Reflection::StringField < ::Prism::Reflection::Field; end -# A uint32 field represents an unsigned 32-bit integer value on a node. It -# resolves to an Integer in Ruby. -# -# source://prism//lib/prism/reflection.rb#83 -class Prism::Reflection::UInt32Field < ::Prism::Reflection::Field; end - -# A uint8 field represents an unsigned 8-bit integer value on a node. It -# resolves to an Integer in Ruby. -# -# source://prism//lib/prism/reflection.rb#78 -class Prism::Reflection::UInt8Field < ::Prism::Reflection::Field; end - # Flags for regular expression and match last line nodes. # -# source://prism//lib/prism/node.rb#18914 +# source://prism//lib/prism/node.rb#19289 module Prism::RegularExpressionFlags; end # n - forces the ASCII-8BIT encoding # -# source://prism//lib/prism/node.rb#18931 +# source://prism//lib/prism/node.rb#19306 Prism::RegularExpressionFlags::ASCII_8BIT = T.let(T.unsafe(nil), Integer) # e - forces the EUC-JP encoding # -# source://prism//lib/prism/node.rb#18928 +# source://prism//lib/prism/node.rb#19303 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#18919 +# source://prism//lib/prism/node.rb#19294 Prism::RegularExpressionFlags::EXTENDED = T.let(T.unsafe(nil), Integer) # internal bytes forced the encoding to binary # -# source://prism//lib/prism/node.rb#18943 +# source://prism//lib/prism/node.rb#19318 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#18946 +# source://prism//lib/prism/node.rb#19321 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#18940 +# source://prism//lib/prism/node.rb#19315 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#18916 +# source://prism//lib/prism/node.rb#19291 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#18922 +# source://prism//lib/prism/node.rb#19297 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#18925 +# source://prism//lib/prism/node.rb#19300 Prism::RegularExpressionFlags::ONCE = T.let(T.unsafe(nil), Integer) # u - forces the UTF-8 encoding # -# source://prism//lib/prism/node.rb#18937 +# source://prism//lib/prism/node.rb#19312 Prism::RegularExpressionFlags::UTF_8 = T.let(T.unsafe(nil), Integer) # s - forces the Windows-31J encoding # -# source://prism//lib/prism/node.rb#18934 +# source://prism//lib/prism/node.rb#19309 Prism::RegularExpressionFlags::WINDOWS_31J = T.let(T.unsafe(nil), Integer) # Represents a regular expression literal with no interpolation. @@ -26324,7 +28267,7 @@ Prism::RegularExpressionFlags::WINDOWS_31J = T.let(T.unsafe(nil), Integer) # /foo/i # ^^^^^^ # -# source://prism//lib/prism/node.rb#15448 +# source://prism//lib/prism/node.rb#15765 class Prism::RegularExpressionNode < ::Prism::Node include ::Prism::RegularExpressionOptions @@ -26332,7 +28275,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [RegularExpressionNode] a new instance of RegularExpressionNode # - # source://prism//lib/prism/node.rb#15450 + # source://prism//lib/prism/node.rb#15767 sig do params( source: Prism::Source, @@ -26346,9 +28289,15 @@ class Prism::RegularExpressionNode < ::Prism::Node end def initialize(source, flags, opening_loc, content_loc, closing_loc, unescaped, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#15944 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15462 + # source://prism//lib/prism/node.rb#15779 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -26356,55 +28305,55 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15549 + # source://prism//lib/prism/node.rb#15865 sig { returns(T::Boolean) } def ascii_8bit?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15467 + # source://prism//lib/prism/node.rb#15784 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#15589 + # source://prism//lib/prism/node.rb#15905 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#15513 + # source://prism//lib/prism/node.rb#15830 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15477 + # source://prism//lib/prism/node.rb#15794 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15472 + # source://prism//lib/prism/node.rb#15789 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def content: () -> String # - # source://prism//lib/prism/node.rb#15584 + # source://prism//lib/prism/node.rb#15900 sig { returns(String) } def content; end # attr_reader content_loc: Location # - # source://prism//lib/prism/node.rb#15506 + # source://prism//lib/prism/node.rb#15823 sig { returns(Prism::Location) } def content_loc; end # def copy: (?flags: Integer, ?opening_loc: Location, ?content_loc: Location, ?closing_loc: Location, ?unescaped: String, ?location: Location) -> RegularExpressionNode # - # source://prism//lib/prism/node.rb#15482 + # source://prism//lib/prism/node.rb#15799 sig do params( flags: Integer, @@ -26420,13 +28369,13 @@ class Prism::RegularExpressionNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15467 + # source://prism//lib/prism/node.rb#15784 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # 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#15490 + # source://prism//lib/prism/node.rb#15807 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -26434,7 +28383,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15544 + # source://prism//lib/prism/node.rb#15860 sig { returns(T::Boolean) } def euc_jp?; end @@ -26442,7 +28391,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15529 + # source://prism//lib/prism/node.rb#15845 sig { returns(T::Boolean) } def extended?; end @@ -26453,7 +28402,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15569 + # source://prism//lib/prism/node.rb#15885 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -26461,7 +28410,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15574 + # source://prism//lib/prism/node.rb#15890 sig { returns(T::Boolean) } def forced_us_ascii_encoding?; end @@ -26469,7 +28418,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15564 + # source://prism//lib/prism/node.rb#15880 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -26477,21 +28426,21 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15524 + # source://prism//lib/prism/node.rb#15840 sig { returns(T::Boolean) } def ignore_case?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#15594 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#15910 + sig { override.returns(String) } + def inspect; end # def multi_line?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15534 + # source://prism//lib/prism/node.rb#15850 sig { returns(T::Boolean) } def multi_line?; end @@ -26499,19 +28448,19 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15539 + # source://prism//lib/prism/node.rb#15855 sig { returns(T::Boolean) } def once?; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#15579 + # source://prism//lib/prism/node.rb#15895 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#15499 + # source://prism//lib/prism/node.rb#15816 sig { returns(Prism::Location) } def opening_loc; end @@ -26533,13 +28482,13 @@ class Prism::RegularExpressionNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15619 + # source://prism//lib/prism/node.rb#15928 sig { override.returns(Symbol) } def type; end # attr_reader unescaped: String # - # source://prism//lib/prism/node.rb#15520 + # source://prism//lib/prism/node.rb#15837 sig { returns(String) } def unescaped; end @@ -26547,7 +28496,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15559 + # source://prism//lib/prism/node.rb#15875 sig { returns(T::Boolean) } def utf_8?; end @@ -26555,15 +28504,15 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15554 + # source://prism//lib/prism/node.rb#15870 sig { returns(T::Boolean) } def windows_31j?; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#15495 + # source://prism//lib/prism/node.rb#15812 sig { returns(Integer) } def flags; end @@ -26575,17 +28524,17 @@ class Prism::RegularExpressionNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15629 + # source://prism//lib/prism/node.rb#15938 def type; end end end -# source://prism//lib/prism/node_ext.rb#6 +# source://prism//lib/prism/node_ext.rb#17 module Prism::RegularExpressionOptions # Returns a numeric value that represents the flags that were used to create # the regular expression. # - # source://prism//lib/prism/node_ext.rb#9 + # source://prism//lib/prism/node_ext.rb#20 def options; end end @@ -26595,13 +28544,13 @@ end # ^^ # end # -# source://prism//lib/prism/node.rb#15639 +# source://prism//lib/prism/node.rb#15959 class Prism::RequiredKeywordParameterNode < ::Prism::Node # 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#15641 + # source://prism//lib/prism/node.rb#15961 sig do params( source: Prism::Source, @@ -26613,33 +28562,39 @@ class Prism::RequiredKeywordParameterNode < ::Prism::Node end def initialize(source, flags, name, name_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#16057 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15651 + # source://prism//lib/prism/node.rb#15971 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15656 + # source://prism//lib/prism/node.rb#15976 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15666 + # source://prism//lib/prism/node.rb#15986 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15661 + # source://prism//lib/prism/node.rb#15981 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?name: Symbol, ?name_loc: Location, ?location: Location) -> RequiredKeywordParameterNode # - # source://prism//lib/prism/node.rb#15671 + # source://prism//lib/prism/node.rb#15991 sig do params( flags: Integer, @@ -26653,34 +28608,34 @@ class Prism::RequiredKeywordParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15656 + # source://prism//lib/prism/node.rb#15976 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, name: Symbol, name_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#15679 + # source://prism//lib/prism/node.rb#15999 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#15704 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#16023 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#15688 + # source://prism//lib/prism/node.rb#16008 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#15691 + # source://prism//lib/prism/node.rb#16011 sig { returns(Prism::Location) } def name_loc; end @@ -26688,7 +28643,7 @@ class Prism::RequiredKeywordParameterNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15699 + # source://prism//lib/prism/node.rb#16018 sig { returns(T::Boolean) } def repeated_parameter?; end @@ -26707,15 +28662,15 @@ class Prism::RequiredKeywordParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15727 + # source://prism//lib/prism/node.rb#16041 sig { override.returns(Symbol) } def type; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#15684 + # source://prism//lib/prism/node.rb#16004 sig { returns(Integer) } def flags; end @@ -26727,7 +28682,7 @@ class Prism::RequiredKeywordParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15737 + # source://prism//lib/prism/node.rb#16051 def type; end end end @@ -26738,71 +28693,77 @@ end # ^ # end # -# source://prism//lib/prism/node.rb#15747 +# source://prism//lib/prism/node.rb#16070 class Prism::RequiredParameterNode < ::Prism::Node # def initialize: (Integer flags, Symbol name, Location location) -> void # # @return [RequiredParameterNode] a new instance of RequiredParameterNode # - # source://prism//lib/prism/node.rb#15749 + # source://prism//lib/prism/node.rb#16072 sig { params(source: Prism::Source, flags: Integer, name: Symbol, location: Prism::Location).void } def initialize(source, flags, name, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#16160 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15758 + # source://prism//lib/prism/node.rb#16081 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15763 + # source://prism//lib/prism/node.rb#16086 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15773 + # source://prism//lib/prism/node.rb#16096 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15768 + # source://prism//lib/prism/node.rb#16091 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?name: Symbol, ?location: Location) -> RequiredParameterNode # - # source://prism//lib/prism/node.rb#15778 + # source://prism//lib/prism/node.rb#16101 sig { params(flags: Integer, name: Symbol, location: Prism::Location).returns(Prism::RequiredParameterNode) } def copy(flags: T.unsafe(nil), name: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15763 + # source://prism//lib/prism/node.rb#16086 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, name: Symbol, location: Location } # - # source://prism//lib/prism/node.rb#15786 + # source://prism//lib/prism/node.rb#16109 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#15804 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#16126 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#15795 + # source://prism//lib/prism/node.rb#16118 sig { returns(Symbol) } def name; end @@ -26810,7 +28771,7 @@ class Prism::RequiredParameterNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15799 + # source://prism//lib/prism/node.rb#16121 sig { returns(T::Boolean) } def repeated_parameter?; end @@ -26829,15 +28790,15 @@ class Prism::RequiredParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15826 + # source://prism//lib/prism/node.rb#16144 sig { override.returns(Symbol) } def type; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#15791 + # source://prism//lib/prism/node.rb#16114 sig { returns(Integer) } def flags; end @@ -26849,7 +28810,7 @@ class Prism::RequiredParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15836 + # source://prism//lib/prism/node.rb#16154 def type; end end end @@ -26859,13 +28820,13 @@ end # foo rescue nil # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#15845 +# source://prism//lib/prism/node.rb#16171 class Prism::RescueModifierNode < ::Prism::Node # def initialize: (Prism::node expression, Location keyword_loc, Prism::node rescue_expression, Location location) -> void # # @return [RescueModifierNode] a new instance of RescueModifierNode # - # source://prism//lib/prism/node.rb#15847 + # source://prism//lib/prism/node.rb#16173 sig do params( source: Prism::Source, @@ -26877,33 +28838,39 @@ class Prism::RescueModifierNode < ::Prism::Node end def initialize(source, expression, keyword_loc, rescue_expression, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#16272 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15857 + # source://prism//lib/prism/node.rb#16183 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15866 + # source://prism//lib/prism/node.rb#16192 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15876 + # source://prism//lib/prism/node.rb#16202 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15871 + # source://prism//lib/prism/node.rb#16197 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?expression: Prism::node, ?keyword_loc: Location, ?rescue_expression: Prism::node, ?location: Location) -> RescueModifierNode # - # source://prism//lib/prism/node.rb#15881 + # source://prism//lib/prism/node.rb#16207 sig do params( expression: Prism::Node, @@ -26917,50 +28884,50 @@ class Prism::RescueModifierNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15866 + # source://prism//lib/prism/node.rb#16192 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { expression: Prism::node, keyword_loc: Location, rescue_expression: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#15889 + # source://prism//lib/prism/node.rb#16215 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # attr_reader expression: Prism::node # - # source://prism//lib/prism/node.rb#15894 + # source://prism//lib/prism/node.rb#16220 sig { returns(Prism::Node) } def expression; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#15913 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#16238 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#15908 + # source://prism//lib/prism/node.rb#16233 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#15897 + # source://prism//lib/prism/node.rb#16223 sig { returns(Prism::Location) } def keyword_loc; end # attr_reader rescue_expression: Prism::node # - # source://prism//lib/prism/node.rb#15904 + # source://prism//lib/prism/node.rb#16230 sig { returns(Prism::Node) } def rescue_expression; end - # source://prism//lib/prism/node.rb#15861 + # source://prism//lib/prism/node.rb#16187 def set_newline_flag(newline_marked); end # Sometimes you want to check an instance of a node against a list of @@ -26978,7 +28945,7 @@ class Prism::RescueModifierNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15937 + # source://prism//lib/prism/node.rb#16256 sig { override.returns(Symbol) } def type; end @@ -26990,7 +28957,7 @@ class Prism::RescueModifierNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15947 + # source://prism//lib/prism/node.rb#16266 def type; end end end @@ -27005,13 +28972,13 @@ end # # `Foo, *splat, Bar` are in the `exceptions` field. `ex` is in the `exception` field. # -# source://prism//lib/prism/node.rb#15961 +# source://prism//lib/prism/node.rb#16289 class Prism::RescueNode < ::Prism::Node # def initialize: (Location keyword_loc, Array[Prism::node] exceptions, Location? operator_loc, Prism::node? reference, StatementsNode? statements, RescueNode? consequent, Location location) -> void # # @return [RescueNode] a new instance of RescueNode # - # source://prism//lib/prism/node.rb#15963 + # source://prism//lib/prism/node.rb#16291 sig do params( source: Prism::Source, @@ -27026,39 +28993,45 @@ class Prism::RescueNode < ::Prism::Node end def initialize(source, keyword_loc, exceptions, operator_loc, reference, statements, consequent, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#16418 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15976 + # source://prism//lib/prism/node.rb#16304 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15981 + # source://prism//lib/prism/node.rb#16309 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15996 + # source://prism//lib/prism/node.rb#16324 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#15986 + # source://prism//lib/prism/node.rb#16314 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader consequent: RescueNode? # - # source://prism//lib/prism/node.rb#16043 + # source://prism//lib/prism/node.rb#16371 sig { returns(T.nilable(Prism::RescueNode)) } def consequent; end # def copy: (?keyword_loc: Location, ?exceptions: Array[Prism::node], ?operator_loc: Location?, ?reference: Prism::node?, ?statements: StatementsNode?, ?consequent: RescueNode?, ?location: Location) -> RescueNode # - # source://prism//lib/prism/node.rb#16001 + # source://prism//lib/prism/node.rb#16329 sig do params( keyword_loc: Prism::Location, @@ -27075,64 +29048,64 @@ class Prism::RescueNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15981 + # source://prism//lib/prism/node.rb#16309 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { keyword_loc: Location, exceptions: Array[Prism::node], operator_loc: Location?, reference: Prism::node?, statements: StatementsNode?, consequent: RescueNode?, location: Location } # - # source://prism//lib/prism/node.rb#16009 + # source://prism//lib/prism/node.rb#16337 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # attr_reader exceptions: Array[Prism::node] # - # source://prism//lib/prism/node.rb#16021 + # source://prism//lib/prism/node.rb#16349 sig { returns(T::Array[Prism::Node]) } def exceptions; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#16057 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#16384 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#16047 + # source://prism//lib/prism/node.rb#16374 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#16014 + # source://prism//lib/prism/node.rb#16342 sig { returns(Prism::Location) } def keyword_loc; end # def operator: () -> String? # - # source://prism//lib/prism/node.rb#16052 + # source://prism//lib/prism/node.rb#16379 sig { returns(T.nilable(String)) } def operator; end # attr_reader operator_loc: Location? # - # source://prism//lib/prism/node.rb#16024 + # source://prism//lib/prism/node.rb#16352 sig { returns(T.nilable(Prism::Location)) } def operator_loc; end # attr_reader reference: Prism::node? # - # source://prism//lib/prism/node.rb#16037 + # source://prism//lib/prism/node.rb#16365 sig { returns(T.nilable(Prism::Node)) } def reference; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#16040 + # source://prism//lib/prism/node.rb#16368 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -27151,7 +29124,7 @@ class Prism::RescueNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16097 + # source://prism//lib/prism/node.rb#16402 sig { override.returns(Symbol) } def type; end @@ -27163,7 +29136,7 @@ class Prism::RescueNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16107 + # source://prism//lib/prism/node.rb#16412 def type; end end end @@ -27174,13 +29147,13 @@ end # ^^ # end # -# source://prism//lib/prism/node.rb#16117 +# source://prism//lib/prism/node.rb#16435 class Prism::RestParameterNode < ::Prism::Node # 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#16119 + # source://prism//lib/prism/node.rb#16437 sig do params( source: Prism::Source, @@ -27193,33 +29166,39 @@ class Prism::RestParameterNode < ::Prism::Node end def initialize(source, flags, name, name_loc, operator_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#16552 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16130 + # source://prism//lib/prism/node.rb#16448 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16135 + # source://prism//lib/prism/node.rb#16453 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#16145 + # source://prism//lib/prism/node.rb#16463 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#16140 + # source://prism//lib/prism/node.rb#16458 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?name: Symbol?, ?name_loc: Location?, ?operator_loc: Location, ?location: Location) -> RestParameterNode # - # source://prism//lib/prism/node.rb#16150 + # source://prism//lib/prism/node.rb#16468 sig do params( flags: Integer, @@ -27234,95 +29213,187 @@ class Prism::RestParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16135 + # source://prism//lib/prism/node.rb#16453 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, name: Symbol?, name_loc: Location?, operator_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#16158 + # source://prism//lib/prism/node.rb#16476 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#16201 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#16518 + sig { override.returns(String) } + def inspect; end # attr_reader name: Symbol? # - # source://prism//lib/prism/node.rb#16167 + # source://prism//lib/prism/node.rb#16485 sig { returns(T.nilable(Symbol)) } def name; end # attr_reader name_loc: Location? # - # source://prism//lib/prism/node.rb#16170 + # source://prism//lib/prism/node.rb#16488 sig { returns(T.nilable(Prism::Location)) } def name_loc; end - # def operator: () -> String + # def operator: () -> String + # + # source://prism//lib/prism/node.rb#16513 + sig { returns(String) } + def operator; end + + # attr_reader operator_loc: Location + # + # source://prism//lib/prism/node.rb#16501 + sig { returns(Prism::Location) } + def operator_loc; end + + # def repeated_parameter?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#16508 + 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 + # 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#16536 + sig { override.returns(Symbol) } + def type; end + + protected + + # protected attr_reader flags: Integer + # + # source://prism//lib/prism/node.rb#16481 + 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. + # 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#16546 + def type; end + end +end + +# This represents the result of a call to ::parse or ::parse_file. It contains +# the requested structure, any comments that were encounters, and any errors +# that were encountered. +# +# source://prism//lib/prism/parse_result.rb#521 +class Prism::Result + # Create a new result object with the given values. + # + # @return [Result] a new instance of Result + # + # source://prism//lib/prism/parse_result.rb#543 + sig do + params( + comments: T::Array[Prism::Comment], + magic_comments: T::Array[Prism::MagicComment], + data_loc: T.nilable(Prism::Location), + errors: T::Array[Prism::ParseError], + warnings: T::Array[Prism::ParseWarning], + source: Prism::Source + ).void + end + def initialize(comments, magic_comments, data_loc, errors, warnings, source); end + + # The list of comments that were encountered during parsing. + # + # source://prism//lib/prism/parse_result.rb#523 + sig { returns(T::Array[Prism::Comment]) } + def comments; end + + # 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#531 + sig { returns(T.nilable(Prism::Location)) } + def data_loc; end + + # Implement the hash pattern matching interface for Result. + # + # source://prism//lib/prism/parse_result.rb#553 + sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } + def deconstruct_keys(keys); end + + # Returns the encoding of the source code that was parsed. # - # source://prism//lib/prism/node.rb#16196 - sig { returns(String) } - def operator; end + # source://prism//lib/prism/parse_result.rb#558 + sig { returns(Encoding) } + def encoding; end - # attr_reader operator_loc: Location + # The list of errors that were generated during parsing. # - # source://prism//lib/prism/node.rb#16183 - sig { returns(Prism::Location) } - def operator_loc; end + # source://prism//lib/prism/parse_result.rb#534 + sig { returns(T::Array[Prism::ParseError]) } + def errors; end - # def repeated_parameter?: () -> bool + # Returns true if there were errors during parsing and false if there were + # not. # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16191 + # source://prism//lib/prism/parse_result.rb#570 sig { returns(T::Boolean) } - def repeated_parameter?; end + def failure?; 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 + # The list of magic comments that were encountered during parsing. # - # source://prism//lib/prism/node.rb#16229 - sig { override.returns(Symbol) } - def type; end + # source://prism//lib/prism/parse_result.rb#526 + sig { returns(T::Array[Prism::MagicComment]) } + def magic_comments; end - private + # A Source instance that represents the source code that was parsed. + # + # source://prism//lib/prism/parse_result.rb#540 + sig { returns(Prism::Source) } + def source; end - # private attr_reader flags: Integer + # Returns true if there were no errors during parsing and false if there + # were. # - # source://prism//lib/prism/node.rb#16163 - sig { returns(Integer) } - def flags; end + # @return [Boolean] + # + # source://prism//lib/prism/parse_result.rb#564 + sig { returns(T::Boolean) } + def success?; 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#16239 - def type; end - end + # The list of warnings that were generated during parsing. + # + # source://prism//lib/prism/parse_result.rb#537 + sig { returns(T::Array[Prism::ParseWarning]) } + def warnings; end end # Represents the use of the `retry` keyword. @@ -27330,67 +29401,73 @@ end # retry # ^^^^^ # -# source://prism//lib/prism/node.rb#16248 +# source://prism//lib/prism/node.rb#16565 class Prism::RetryNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [RetryNode] a new instance of RetryNode # - # source://prism//lib/prism/node.rb#16250 + # source://prism//lib/prism/node.rb#16567 sig { params(source: Prism::Source, location: Prism::Location).void } def initialize(source, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#16641 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16257 + # source://prism//lib/prism/node.rb#16574 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16262 + # source://prism//lib/prism/node.rb#16579 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#16272 + # source://prism//lib/prism/node.rb#16589 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#16267 + # source://prism//lib/prism/node.rb#16584 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> RetryNode # - # source://prism//lib/prism/node.rb#16277 + # source://prism//lib/prism/node.rb#16594 sig { params(location: Prism::Location).returns(Prism::RetryNode) } def copy(location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16262 + # source://prism//lib/prism/node.rb#16579 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#16285 + # source://prism//lib/prism/node.rb#16602 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#16291 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#16607 + sig { override.returns(String) } + def inspect; 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 @@ -27407,7 +29484,7 @@ class Prism::RetryNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16310 + # source://prism//lib/prism/node.rb#16625 sig { override.returns(Symbol) } def type; end @@ -27419,7 +29496,7 @@ class Prism::RetryNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16320 + # source://prism//lib/prism/node.rb#16635 def type; end end end @@ -27429,99 +29506,115 @@ end # return 1 # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#16329 +# source://prism//lib/prism/node.rb#16650 class Prism::ReturnNode < ::Prism::Node - # def initialize: (Location keyword_loc, ArgumentsNode? arguments, Location location) -> void + # def initialize: (Integer flags, Location keyword_loc, ArgumentsNode? arguments, Location location) -> void # # @return [ReturnNode] a new instance of ReturnNode # - # source://prism//lib/prism/node.rb#16331 + # source://prism//lib/prism/node.rb#16652 sig do params( source: Prism::Source, + flags: Integer, keyword_loc: Prism::Location, arguments: T.nilable(Prism::ArgumentsNode), location: Prism::Location ).void end - def initialize(source, keyword_loc, arguments, location); end + def initialize(source, flags, keyword_loc, arguments, location); end + + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#16755 + def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16340 + # source://prism//lib/prism/node.rb#16662 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#16382 + # source://prism//lib/prism/node.rb#16708 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16345 + # source://prism//lib/prism/node.rb#16667 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#16357 + # source://prism//lib/prism/node.rb#16679 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#16350 + # source://prism//lib/prism/node.rb#16672 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end - # def copy: (?keyword_loc: Location, ?arguments: ArgumentsNode?, ?location: Location) -> ReturnNode + # def copy: (?flags: Integer, ?keyword_loc: Location, ?arguments: ArgumentsNode?, ?location: Location) -> ReturnNode # - # source://prism//lib/prism/node.rb#16362 + # source://prism//lib/prism/node.rb#16684 sig do params( + flags: Integer, keyword_loc: Prism::Location, arguments: T.nilable(Prism::ArgumentsNode), location: Prism::Location ).returns(Prism::ReturnNode) end - def copy(keyword_loc: T.unsafe(nil), arguments: T.unsafe(nil), location: T.unsafe(nil)); end + def copy(flags: T.unsafe(nil), keyword_loc: T.unsafe(nil), arguments: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16345 + # source://prism//lib/prism/node.rb#16667 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (Array[Symbol] keys) -> { keyword_loc: Location, arguments: ArgumentsNode?, location: Location } + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, keyword_loc: Location, arguments: ArgumentsNode?, location: Location } # - # source://prism//lib/prism/node.rb#16370 + # source://prism//lib/prism/node.rb#16692 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#16391 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#16721 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#16386 + # source://prism//lib/prism/node.rb#16716 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#16375 + # source://prism//lib/prism/node.rb#16701 sig { returns(Prism::Location) } def keyword_loc; end + # def redundant?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#16711 + sig { returns(T::Boolean) } + def redundant?; 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 @@ -27537,10 +29630,18 @@ class Prism::ReturnNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16417 + # source://prism//lib/prism/node.rb#16739 sig { override.returns(Symbol) } def type; end + protected + + # protected attr_reader flags: Integer + # + # source://prism//lib/prism/node.rb#16697 + 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. @@ -27549,77 +29650,93 @@ class Prism::ReturnNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16427 + # source://prism//lib/prism/node.rb#16749 def type; end end end +# Flags for return nodes. +# +# source://prism//lib/prism/node.rb#19325 +module Prism::ReturnNodeFlags; end + +# a return statement that is redundant because it is the last statement in a method +# +# source://prism//lib/prism/node.rb#19327 +Prism::ReturnNodeFlags::REDUNDANT = T.let(T.unsafe(nil), Integer) + # Represents the `self` keyword. # # self # ^^^^ # -# source://prism//lib/prism/node.rb#16436 +# source://prism//lib/prism/node.rb#16767 class Prism::SelfNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [SelfNode] a new instance of SelfNode # - # source://prism//lib/prism/node.rb#16438 + # source://prism//lib/prism/node.rb#16769 sig { params(source: Prism::Source, location: Prism::Location).void } def initialize(source, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#16843 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16445 + # source://prism//lib/prism/node.rb#16776 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16450 + # source://prism//lib/prism/node.rb#16781 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#16460 + # source://prism//lib/prism/node.rb#16791 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#16455 + # source://prism//lib/prism/node.rb#16786 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> SelfNode # - # source://prism//lib/prism/node.rb#16465 + # source://prism//lib/prism/node.rb#16796 sig { params(location: Prism::Location).returns(Prism::SelfNode) } def copy(location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16450 + # source://prism//lib/prism/node.rb#16781 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#16473 + # source://prism//lib/prism/node.rb#16804 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#16479 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#16809 + sig { override.returns(String) } + def inspect; 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 @@ -27636,7 +29753,7 @@ class Prism::SelfNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16498 + # source://prism//lib/prism/node.rb#16827 sig { override.returns(Symbol) } def type; end @@ -27648,7 +29765,7 @@ class Prism::SelfNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16508 + # source://prism//lib/prism/node.rb#16837 def type; end end end @@ -27715,22 +29832,22 @@ class Prism::Serialize::Loader # source://prism//lib/prism/serialize.rb#114 def load_line_offsets; end - # source://prism//lib/prism/serialize.rb#413 + # source://prism//lib/prism/serialize.rb#433 def load_metadata; end - # source://prism//lib/prism/serialize.rb#447 + # source://prism//lib/prism/serialize.rb#467 def load_nodes; end - # source://prism//lib/prism/serialize.rb#461 + # source://prism//lib/prism/serialize.rb#481 def load_result; end # source://prism//lib/prism/serialize.rb#110 def load_start_line; end - # source://prism//lib/prism/serialize.rb#422 + # source://prism//lib/prism/serialize.rb#442 def load_tokens; end - # source://prism//lib/prism/serialize.rb#435 + # source://prism//lib/prism/serialize.rb#455 def load_tokens_result; end # Returns the value of attribute serialized. @@ -27750,61 +29867,61 @@ class Prism::Serialize::Loader private - # source://prism//lib/prism/serialize.rb#547 + # source://prism//lib/prism/serialize.rb#567 def load_constant(index); end - # source://prism//lib/prism/serialize.rb#500 + # source://prism//lib/prism/serialize.rb#520 def load_double; end - # source://prism//lib/prism/serialize.rb#515 + # source://prism//lib/prism/serialize.rb#535 def load_embedded_string; end - # source://prism//lib/prism/serialize.rb#577 + # source://prism//lib/prism/serialize.rb#597 def load_error_level; end - # source://prism//lib/prism/serialize.rb#489 + # source://prism//lib/prism/serialize.rb#509 def load_integer; end - # source://prism//lib/prism/serialize.rb#531 + # source://prism//lib/prism/serialize.rb#551 def load_location; end - # source://prism//lib/prism/serialize.rb#535 + # source://prism//lib/prism/serialize.rb#555 def load_location_object; end - # source://prism//lib/prism/serialize.rb#606 + # source://prism//lib/prism/serialize.rb#626 def load_node; end - # source://prism//lib/prism/serialize.rb#572 + # source://prism//lib/prism/serialize.rb#592 def load_optional_constant; end - # source://prism//lib/prism/serialize.rb#539 + # source://prism//lib/prism/serialize.rb#559 def load_optional_location; end - # source://prism//lib/prism/serialize.rb#543 + # source://prism//lib/prism/serialize.rb#563 def load_optional_location_object; end - # source://prism//lib/prism/serialize.rb#508 + # source://prism//lib/prism/serialize.rb#528 def load_optional_node; end - # source://prism//lib/prism/serialize.rb#568 + # source://prism//lib/prism/serialize.rb#588 def load_required_constant; end - # source://prism//lib/prism/serialize.rb#519 + # source://prism//lib/prism/serialize.rb#539 def load_string; end - # source://prism//lib/prism/serialize.rb#504 + # source://prism//lib/prism/serialize.rb#524 def load_uint32; end - # source://prism//lib/prism/serialize.rb#484 + # source://prism//lib/prism/serialize.rb#504 def load_varsint; end # variable-length integer using https://en.wikipedia.org/wiki/LEB128 # This is also what protobuf uses: https://protobuf.dev/programming-guides/encoding/#varints # - # source://prism//lib/prism/serialize.rb#470 + # source://prism//lib/prism/serialize.rb#490 def load_varuint; end - # source://prism//lib/prism/serialize.rb#592 + # source://prism//lib/prism/serialize.rb#612 def load_warning_level; end end @@ -27836,7 +29953,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#1830 +# source://prism//lib/prism/serialize.rb#1850 Prism::Serialize::TOKEN_TYPES = T.let(T.unsafe(nil), Array) # This node wraps a constant write to indicate that when the value is written, it should have its shareability state modified. @@ -27844,13 +29961,13 @@ Prism::Serialize::TOKEN_TYPES = T.let(T.unsafe(nil), Array) # C = { a: 1 } # ^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#16518 +# source://prism//lib/prism/node.rb#16853 class Prism::ShareableConstantNode < ::Prism::Node # def initialize: (Integer flags, ConstantWriteNode | ConstantAndWriteNode | ConstantOrWriteNode | ConstantOperatorWriteNode | ConstantPathWriteNode | ConstantPathAndWriteNode | ConstantPathOrWriteNode | ConstantPathOperatorWriteNode write, Location location) -> void # # @return [ShareableConstantNode] a new instance of ShareableConstantNode # - # source://prism//lib/prism/node.rb#16520 + # source://prism//lib/prism/node.rb#16855 sig do params( source: Prism::Source, @@ -27861,33 +29978,39 @@ class Prism::ShareableConstantNode < ::Prism::Node end def initialize(source, flags, write, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#16953 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16529 + # source://prism//lib/prism/node.rb#16864 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16534 + # source://prism//lib/prism/node.rb#16869 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#16544 + # source://prism//lib/prism/node.rb#16879 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#16539 + # source://prism//lib/prism/node.rb#16874 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?write: ConstantWriteNode | ConstantAndWriteNode | ConstantOrWriteNode | ConstantOperatorWriteNode | ConstantPathWriteNode | ConstantPathAndWriteNode | ConstantPathOrWriteNode | ConstantPathOperatorWriteNode, ?location: Location) -> ShareableConstantNode # - # source://prism//lib/prism/node.rb#16549 + # source://prism//lib/prism/node.rb#16884 sig do params( flags: Integer, @@ -27900,13 +30023,13 @@ class Prism::ShareableConstantNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16534 + # source://prism//lib/prism/node.rb#16869 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, write: ConstantWriteNode | ConstantAndWriteNode | ConstantOrWriteNode | ConstantOperatorWriteNode | ConstantPathWriteNode | ConstantPathAndWriteNode | ConstantPathOrWriteNode | ConstantPathOperatorWriteNode, location: Location } # - # source://prism//lib/prism/node.rb#16557 + # source://prism//lib/prism/node.rb#16892 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -27914,7 +30037,7 @@ class Prism::ShareableConstantNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16580 + # source://prism//lib/prism/node.rb#16914 sig { returns(T::Boolean) } def experimental_copy?; end @@ -27922,24 +30045,24 @@ class Prism::ShareableConstantNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16575 + # source://prism//lib/prism/node.rb#16909 sig { returns(T::Boolean) } def experimental_everything?; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#16585 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#16919 + sig { override.returns(String) } + def inspect; end # def literal?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16570 + # source://prism//lib/prism/node.rb#16904 sig { returns(T::Boolean) } def literal?; end @@ -27958,23 +30081,23 @@ class Prism::ShareableConstantNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16608 + # source://prism//lib/prism/node.rb#16937 sig { override.returns(Symbol) } def type; end # The constant write that should be modified with the shareability state. # - # source://prism//lib/prism/node.rb#16566 + # source://prism//lib/prism/node.rb#16901 sig do returns(T.any(Prism::ConstantWriteNode, Prism::ConstantAndWriteNode, Prism::ConstantOrWriteNode, Prism::ConstantOperatorWriteNode, Prism::ConstantPathWriteNode, Prism::ConstantPathAndWriteNode, Prism::ConstantPathOrWriteNode, Prism::ConstantPathOperatorWriteNode)) end def write; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#16562 + # source://prism//lib/prism/node.rb#16897 sig { returns(Integer) } def flags; end @@ -27986,29 +30109,29 @@ class Prism::ShareableConstantNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16618 + # source://prism//lib/prism/node.rb#16947 def type; end end end # Flags for shareable constant nodes. # -# source://prism//lib/prism/node.rb#18950 +# source://prism//lib/prism/node.rb#19331 module Prism::ShareableConstantNodeFlags; end # constant writes that should be modified with shareable constant value experimental copy # -# source://prism//lib/prism/node.rb#18958 +# source://prism//lib/prism/node.rb#19339 Prism::ShareableConstantNodeFlags::EXPERIMENTAL_COPY = T.let(T.unsafe(nil), Integer) # constant writes that should be modified with shareable constant value experimental everything # -# source://prism//lib/prism/node.rb#18955 +# source://prism//lib/prism/node.rb#19336 Prism::ShareableConstantNodeFlags::EXPERIMENTAL_EVERYTHING = T.let(T.unsafe(nil), Integer) # constant writes that should be modified with shareable constant value literal # -# source://prism//lib/prism/node.rb#18952 +# source://prism//lib/prism/node.rb#19333 Prism::ShareableConstantNodeFlags::LITERAL = T.let(T.unsafe(nil), Integer) # Represents a singleton class declaration involving the `class` keyword. @@ -28016,13 +30139,13 @@ Prism::ShareableConstantNodeFlags::LITERAL = T.let(T.unsafe(nil), Integer) # class << self end # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#16627 +# source://prism//lib/prism/node.rb#16964 class Prism::SingletonClassNode < ::Prism::Node # def initialize: (Array[Symbol] locals, Location class_keyword_loc, Location operator_loc, Prism::node expression, Prism::node? body, Location end_keyword_loc, Location location) -> void # # @return [SingletonClassNode] a new instance of SingletonClassNode # - # source://prism//lib/prism/node.rb#16629 + # source://prism//lib/prism/node.rb#16966 sig do params( source: Prism::Source, @@ -28037,51 +30160,57 @@ class Prism::SingletonClassNode < ::Prism::Node end def initialize(source, locals, class_keyword_loc, operator_loc, expression, body, end_keyword_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#17094 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16642 + # source://prism//lib/prism/node.rb#16979 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader body: Prism::node? # - # source://prism//lib/prism/node.rb#16698 + # source://prism//lib/prism/node.rb#17035 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16647 + # source://prism//lib/prism/node.rb#16984 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def class_keyword: () -> String # - # source://prism//lib/prism/node.rb#16709 + # source://prism//lib/prism/node.rb#17045 sig { returns(String) } def class_keyword; end # attr_reader class_keyword_loc: Location # - # source://prism//lib/prism/node.rb#16681 + # source://prism//lib/prism/node.rb#17018 sig { returns(Prism::Location) } def class_keyword_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#16660 + # source://prism//lib/prism/node.rb#16997 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#16652 + # source://prism//lib/prism/node.rb#16989 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?locals: Array[Symbol], ?class_keyword_loc: Location, ?operator_loc: Location, ?expression: Prism::node, ?body: Prism::node?, ?end_keyword_loc: Location, ?location: Location) -> SingletonClassNode # - # source://prism//lib/prism/node.rb#16665 + # source://prism//lib/prism/node.rb#17002 sig do params( locals: T::Array[Symbol], @@ -28098,58 +30227,58 @@ class Prism::SingletonClassNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16647 + # source://prism//lib/prism/node.rb#16984 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { locals: Array[Symbol], class_keyword_loc: Location, operator_loc: Location, expression: Prism::node, body: Prism::node?, end_keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#16673 + # source://prism//lib/prism/node.rb#17010 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # def end_keyword: () -> String # - # source://prism//lib/prism/node.rb#16719 + # source://prism//lib/prism/node.rb#17055 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#16701 + # source://prism//lib/prism/node.rb#17038 sig { returns(Prism::Location) } def end_keyword_loc; end # attr_reader expression: Prism::node # - # source://prism//lib/prism/node.rb#16695 + # source://prism//lib/prism/node.rb#17032 sig { returns(Prism::Node) } def expression; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#16724 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#17060 + sig { override.returns(String) } + def inspect; end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#16678 + # source://prism//lib/prism/node.rb#17015 sig { returns(T::Array[Symbol]) } def locals; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#16714 + # source://prism//lib/prism/node.rb#17050 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#16688 + # source://prism//lib/prism/node.rb#17025 sig { returns(Prism::Location) } def operator_loc; end @@ -28168,7 +30297,7 @@ class Prism::SingletonClassNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16755 + # source://prism//lib/prism/node.rb#17078 sig { override.returns(Symbol) } def type; end @@ -28180,7 +30309,7 @@ class Prism::SingletonClassNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16765 + # source://prism//lib/prism/node.rb#17088 def type; end end end @@ -28195,26 +30324,26 @@ class Prism::Source # # @return [Source] a new instance of Source # - # source://prism//lib/prism/parse_result.rb#18 + # source://prism//lib/prism/parse_result.rb#26 sig { params(source: String, start_line: Integer, offsets: T::Array[Integer]).void } def initialize(source, start_line = T.unsafe(nil), offsets = T.unsafe(nil)); end # Return the column number in characters for the given byte offset. # - # source://prism//lib/prism/parse_result.rb#59 + # source://prism//lib/prism/parse_result.rb#78 sig { params(byte_offset: Integer).returns(Integer) } def character_column(byte_offset); end # Return the character offset for the given byte offset. # - # source://prism//lib/prism/parse_result.rb#54 + # source://prism//lib/prism/parse_result.rb#73 sig { params(byte_offset: Integer).returns(Integer) } def character_offset(byte_offset); end # Returns the column number in code units for the given encoding for the # given byte offset. # - # source://prism//lib/prism/parse_result.rb#76 + # source://prism//lib/prism/parse_result.rb#95 sig { params(byte_offset: Integer, encoding: Encoding).returns(Integer) } def code_units_column(byte_offset, encoding); end @@ -28225,57 +30354,72 @@ class Prism::Source # concept of code units that differs from the number of characters in other # encodings, it is not captured here. # - # source://prism//lib/prism/parse_result.rb#69 + # source://prism//lib/prism/parse_result.rb#88 sig { params(byte_offset: Integer, encoding: Encoding).returns(Integer) } def code_units_offset(byte_offset, encoding); end # Return the column number for the given byte offset. # - # source://prism//lib/prism/parse_result.rb#49 + # source://prism//lib/prism/parse_result.rb#68 sig { params(byte_offset: Integer).returns(Integer) } def column(byte_offset); end # Returns the encoding of the source code, which is set by parameters to the # parser or by the encoding magic comment. # - # source://prism//lib/prism/parse_result.rb#26 + # source://prism//lib/prism/parse_result.rb#34 sig { returns(Encoding) } def encoding; end # Binary search through the offsets to find the line number for the given # byte offset. # - # source://prism//lib/prism/parse_result.rb#38 + # source://prism//lib/prism/parse_result.rb#51 sig { params(byte_offset: Integer).returns(Integer) } def line(byte_offset); end + # Returns the byte offset of the end of the line corresponding to the given + # byte offset. + # + # source://prism//lib/prism/parse_result.rb#63 + def line_end(byte_offset); end + # Return the byte offset of the start of the line corresponding to the given # byte offset. # - # source://prism//lib/prism/parse_result.rb#44 + # source://prism//lib/prism/parse_result.rb#57 sig { params(byte_offset: Integer).returns(Integer) } def line_start(byte_offset); end + # Returns the lines of the source code as an array of strings. + # + # source://prism//lib/prism/parse_result.rb#39 + sig { returns(T::Array[String]) } + def lines; end + # The list of newline byte offsets in the source code. # - # source://prism//lib/prism/parse_result.rb#15 + # source://prism//lib/prism/parse_result.rb#23 + sig { returns(T::Array[Integer]) } def offsets; end # Perform a byteslice on the source code using the given byte offset and # byte length. # - # source://prism//lib/prism/parse_result.rb#32 + # source://prism//lib/prism/parse_result.rb#45 sig { params(byte_offset: Integer, length: Integer).returns(String) } def slice(byte_offset, length); end # The source code that this source object represents. # - # source://prism//lib/prism/parse_result.rb#9 + # source://prism//lib/prism/parse_result.rb#17 + sig { returns(String) } def source; end # The line number where this source starts. # - # source://prism//lib/prism/parse_result.rb#12 + # source://prism//lib/prism/parse_result.rb#20 + sig { returns(Integer) } def start_line; end private @@ -28283,8 +30427,18 @@ class Prism::Source # Binary search through the offsets to find the line number for the given # byte offset. # - # source://prism//lib/prism/parse_result.rb#84 + # source://prism//lib/prism/parse_result.rb#103 def find_line(byte_offset); end + + class << self + # Create a new source object with the given source code. This method should + # be used instead of `new` and it will return either a `Source` or a + # specialized and more performant `ASCIISource` if no multibyte characters + # are present in the source code. + # + # source://prism//lib/prism/parse_result.rb#12 + def for(source, start_line = T.unsafe(nil), offsets = T.unsafe(nil)); end + end end # Represents the use of the `__ENCODING__` keyword. @@ -28292,67 +30446,73 @@ end # __ENCODING__ # ^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#16774 +# source://prism//lib/prism/node.rb#17110 class Prism::SourceEncodingNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [SourceEncodingNode] a new instance of SourceEncodingNode # - # source://prism//lib/prism/node.rb#16776 + # source://prism//lib/prism/node.rb#17112 sig { params(source: Prism::Source, location: Prism::Location).void } def initialize(source, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#17186 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16783 + # source://prism//lib/prism/node.rb#17119 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16788 + # source://prism//lib/prism/node.rb#17124 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#16798 + # source://prism//lib/prism/node.rb#17134 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#16793 + # source://prism//lib/prism/node.rb#17129 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> SourceEncodingNode # - # source://prism//lib/prism/node.rb#16803 + # source://prism//lib/prism/node.rb#17139 sig { params(location: Prism::Location).returns(Prism::SourceEncodingNode) } def copy(location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16788 + # source://prism//lib/prism/node.rb#17124 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#16811 + # source://prism//lib/prism/node.rb#17147 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#16817 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#17152 + sig { override.returns(String) } + def inspect; 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 @@ -28369,7 +30529,7 @@ class Prism::SourceEncodingNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16836 + # source://prism//lib/prism/node.rb#17170 sig { override.returns(Symbol) } def type; end @@ -28381,7 +30541,7 @@ class Prism::SourceEncodingNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16846 + # source://prism//lib/prism/node.rb#17180 def type; end end end @@ -28391,65 +30551,71 @@ end # __FILE__ # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#16855 +# source://prism//lib/prism/node.rb#17195 class Prism::SourceFileNode < ::Prism::Node # def initialize: (Integer flags, String filepath, Location location) -> void # # @return [SourceFileNode] a new instance of SourceFileNode # - # source://prism//lib/prism/node.rb#16857 + # source://prism//lib/prism/node.rb#17197 sig { params(source: Prism::Source, flags: Integer, filepath: String, location: Prism::Location).void } def initialize(source, flags, filepath, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#17300 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16866 + # source://prism//lib/prism/node.rb#17206 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16871 + # source://prism//lib/prism/node.rb#17211 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#16881 + # source://prism//lib/prism/node.rb#17221 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#16876 + # source://prism//lib/prism/node.rb#17216 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?filepath: String, ?location: Location) -> SourceFileNode # - # source://prism//lib/prism/node.rb#16886 + # source://prism//lib/prism/node.rb#17226 sig { params(flags: Integer, filepath: String, location: Prism::Location).returns(Prism::SourceFileNode) } def copy(flags: T.unsafe(nil), filepath: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16871 + # source://prism//lib/prism/node.rb#17211 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, filepath: String, location: Location } # - # source://prism//lib/prism/node.rb#16894 + # source://prism//lib/prism/node.rb#17234 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # attr_reader filepath: String + # Represents the file path being parsed. This corresponds directly to the `filepath` option given to the various `Prism::parse*` APIs. # - # source://prism//lib/prism/node.rb#16903 + # source://prism//lib/prism/node.rb#17243 sig { returns(String) } def filepath; end @@ -28457,7 +30623,7 @@ class Prism::SourceFileNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16912 + # source://prism//lib/prism/node.rb#17251 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -28465,7 +30631,7 @@ class Prism::SourceFileNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16907 + # source://prism//lib/prism/node.rb#17246 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -28473,21 +30639,21 @@ class Prism::SourceFileNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16917 + # source://prism//lib/prism/node.rb#17256 sig { returns(T::Boolean) } def frozen?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#16927 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#17266 + sig { override.returns(String) } + def inspect; end # def mutable?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16922 + # source://prism//lib/prism/node.rb#17261 sig { returns(T::Boolean) } def mutable?; end @@ -28506,15 +30672,15 @@ class Prism::SourceFileNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16949 + # source://prism//lib/prism/node.rb#17284 sig { override.returns(Symbol) } def type; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#16899 + # source://prism//lib/prism/node.rb#17239 sig { returns(Integer) } def flags; end @@ -28526,7 +30692,7 @@ class Prism::SourceFileNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16959 + # source://prism//lib/prism/node.rb#17294 def type; end end end @@ -28536,67 +30702,73 @@ end # __LINE__ # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#16968 +# source://prism//lib/prism/node.rb#17311 class Prism::SourceLineNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [SourceLineNode] a new instance of SourceLineNode # - # source://prism//lib/prism/node.rb#16970 + # source://prism//lib/prism/node.rb#17313 sig { params(source: Prism::Source, location: Prism::Location).void } def initialize(source, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#17387 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16977 + # source://prism//lib/prism/node.rb#17320 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16982 + # source://prism//lib/prism/node.rb#17325 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#16992 + # source://prism//lib/prism/node.rb#17335 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#16987 + # source://prism//lib/prism/node.rb#17330 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> SourceLineNode # - # source://prism//lib/prism/node.rb#16997 + # source://prism//lib/prism/node.rb#17340 sig { params(location: Prism::Location).returns(Prism::SourceLineNode) } def copy(location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16982 + # source://prism//lib/prism/node.rb#17325 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#17005 + # source://prism//lib/prism/node.rb#17348 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#17011 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#17353 + sig { override.returns(String) } + def inspect; 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 @@ -28613,7 +30785,7 @@ class Prism::SourceLineNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17030 + # source://prism//lib/prism/node.rb#17371 sig { override.returns(Symbol) } def type; end @@ -28625,7 +30797,7 @@ class Prism::SourceLineNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17040 + # source://prism//lib/prism/node.rb#17381 def type; end end end @@ -28635,13 +30807,13 @@ end # [*a] # ^^ # -# source://prism//lib/prism/node.rb#17049 +# source://prism//lib/prism/node.rb#17396 class Prism::SplatNode < ::Prism::Node # def initialize: (Location operator_loc, Prism::node? expression, Location location) -> void # # @return [SplatNode] a new instance of SplatNode # - # source://prism//lib/prism/node.rb#17051 + # source://prism//lib/prism/node.rb#17398 sig do params( source: Prism::Source, @@ -28652,33 +30824,39 @@ class Prism::SplatNode < ::Prism::Node end def initialize(source, operator_loc, expression, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#17491 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17060 + # source://prism//lib/prism/node.rb#17407 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17065 + # source://prism//lib/prism/node.rb#17412 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#17077 + # source://prism//lib/prism/node.rb#17424 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#17070 + # source://prism//lib/prism/node.rb#17417 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?operator_loc: Location, ?expression: Prism::node?, ?location: Location) -> SplatNode # - # source://prism//lib/prism/node.rb#17082 + # source://prism//lib/prism/node.rb#17429 sig do params( operator_loc: Prism::Location, @@ -28691,40 +30869,40 @@ class Prism::SplatNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17065 + # source://prism//lib/prism/node.rb#17412 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { operator_loc: Location, expression: Prism::node?, location: Location } # - # source://prism//lib/prism/node.rb#17090 + # source://prism//lib/prism/node.rb#17437 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # attr_reader expression: Prism::node? # - # source://prism//lib/prism/node.rb#17102 + # source://prism//lib/prism/node.rb#17449 sig { returns(T.nilable(Prism::Node)) } def expression; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#17111 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#17457 + sig { override.returns(String) } + def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#17106 + # source://prism//lib/prism/node.rb#17452 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#17095 + # source://prism//lib/prism/node.rb#17442 sig { returns(Prism::Location) } def operator_loc; end @@ -28743,7 +30921,7 @@ class Prism::SplatNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17137 + # source://prism//lib/prism/node.rb#17475 sig { override.returns(Symbol) } def type; end @@ -28755,7 +30933,7 @@ class Prism::SplatNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17147 + # source://prism//lib/prism/node.rb#17485 def type; end end end @@ -28765,73 +30943,79 @@ end # foo; bar; baz # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#17156 +# source://prism//lib/prism/node.rb#17502 class Prism::StatementsNode < ::Prism::Node # def initialize: (Array[Prism::node] body, Location location) -> void # # @return [StatementsNode] a new instance of StatementsNode # - # source://prism//lib/prism/node.rb#17158 + # source://prism//lib/prism/node.rb#17504 sig { params(source: Prism::Source, body: T::Array[Prism::Node], location: Prism::Location).void } def initialize(source, body, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#17582 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17166 + # source://prism//lib/prism/node.rb#17512 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader body: Array[Prism::node] # - # source://prism//lib/prism/node.rb#17199 + # source://prism//lib/prism/node.rb#17545 sig { returns(T::Array[Prism::Node]) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17171 + # source://prism//lib/prism/node.rb#17517 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#17181 + # source://prism//lib/prism/node.rb#17527 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#17176 + # source://prism//lib/prism/node.rb#17522 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?body: Array[Prism::node], ?location: Location) -> StatementsNode # - # source://prism//lib/prism/node.rb#17186 + # source://prism//lib/prism/node.rb#17532 sig { params(body: T::Array[Prism::Node], location: Prism::Location).returns(Prism::StatementsNode) } def copy(body: T.unsafe(nil), location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17171 + # source://prism//lib/prism/node.rb#17517 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { body: Array[Prism::node], location: Location } # - # source://prism//lib/prism/node.rb#17194 + # source://prism//lib/prism/node.rb#17540 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#17203 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#17548 + sig { override.returns(String) } + def inspect; 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 @@ -28848,7 +31032,7 @@ class Prism::StatementsNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17223 + # source://prism//lib/prism/node.rb#17566 sig { override.returns(Symbol) } def type; end @@ -28860,30 +31044,30 @@ class Prism::StatementsNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17233 + # source://prism//lib/prism/node.rb#17576 def type; end end end # Flags for string nodes. # -# source://prism//lib/prism/node.rb#18962 +# source://prism//lib/prism/node.rb#19343 module Prism::StringFlags; end # internal bytes forced the encoding to binary # -# source://prism//lib/prism/node.rb#18967 +# source://prism//lib/prism/node.rb#19348 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#18964 +# source://prism//lib/prism/node.rb#19345 Prism::StringFlags::FORCED_UTF8_ENCODING = T.let(T.unsafe(nil), Integer) -# source://prism//lib/prism/node.rb#18970 +# source://prism//lib/prism/node.rb#19351 Prism::StringFlags::FROZEN = T.let(T.unsafe(nil), Integer) -# source://prism//lib/prism/node.rb#18973 +# source://prism//lib/prism/node.rb#19354 Prism::StringFlags::MUTABLE = 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. @@ -28897,7 +31081,7 @@ Prism::StringFlags::MUTABLE = T.let(T.unsafe(nil), Integer) # "foo #{bar} baz" # ^^^^ ^^^^ # -# source://prism//lib/prism/node.rb#17248 +# source://prism//lib/prism/node.rb#17599 class Prism::StringNode < ::Prism::Node include ::Prism::HeredocQuery @@ -28905,7 +31089,7 @@ class Prism::StringNode < ::Prism::Node # # @return [StringNode] a new instance of StringNode # - # source://prism//lib/prism/node.rb#17250 + # source://prism//lib/prism/node.rb#17601 sig do params( source: Prism::Source, @@ -28919,57 +31103,63 @@ class Prism::StringNode < ::Prism::Node end def initialize(source, flags, opening_loc, content_loc, closing_loc, unescaped, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#17755 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17262 + # source://prism//lib/prism/node.rb#17613 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17267 + # source://prism//lib/prism/node.rb#17618 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#17366 + # source://prism//lib/prism/node.rb#17716 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#17319 + # source://prism//lib/prism/node.rb#17670 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#17277 + # source://prism//lib/prism/node.rb#17628 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#17272 + # source://prism//lib/prism/node.rb#17623 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def content: () -> String # - # source://prism//lib/prism/node.rb#17361 + # source://prism//lib/prism/node.rb#17711 sig { returns(String) } def content; end # attr_reader content_loc: Location # - # source://prism//lib/prism/node.rb#17312 + # source://prism//lib/prism/node.rb#17663 sig { returns(Prism::Location) } def content_loc; end # def copy: (?flags: Integer, ?opening_loc: Location?, ?content_loc: Location, ?closing_loc: Location?, ?unescaped: String, ?location: Location) -> StringNode # - # source://prism//lib/prism/node.rb#17282 + # source://prism//lib/prism/node.rb#17633 sig do params( flags: Integer, @@ -28985,13 +31175,13 @@ class Prism::StringNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17267 + # source://prism//lib/prism/node.rb#17618 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # 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#17290 + # source://prism//lib/prism/node.rb#17641 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -29002,7 +31192,7 @@ class Prism::StringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#17341 + # source://prism//lib/prism/node.rb#17691 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -29010,7 +31200,7 @@ class Prism::StringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#17336 + # source://prism//lib/prism/node.rb#17686 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -29018,43 +31208,43 @@ class Prism::StringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#17346 + # source://prism//lib/prism/node.rb#17696 sig { returns(T::Boolean) } def frozen?; end sig { returns(T::Boolean) } def heredoc?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#17371 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#17721 + sig { override.returns(String) } + def inspect; end # def mutable?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#17351 + # source://prism//lib/prism/node.rb#17701 sig { returns(T::Boolean) } def mutable?; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#17356 + # source://prism//lib/prism/node.rb#17706 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#17299 + # source://prism//lib/prism/node.rb#17650 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # Occasionally it's helpful to treat a string as if it were interpolated so # that there's a consistent interface for working with strings. # - # source://prism//lib/prism/node_ext.rb#55 + # source://prism//lib/prism/node_ext.rb#66 sig { returns(Prism::InterpolatedStringNode) } def to_interpolated; end @@ -29073,21 +31263,21 @@ class Prism::StringNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17396 + # source://prism//lib/prism/node.rb#17739 sig { override.returns(Symbol) } def type; end # attr_reader unescaped: String # - # source://prism//lib/prism/node.rb#17332 + # source://prism//lib/prism/node.rb#17683 sig { returns(String) } def unescaped; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#17295 + # source://prism//lib/prism/node.rb#17646 sig { returns(Integer) } def flags; end @@ -29099,7 +31289,7 @@ class Prism::StringNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17406 + # source://prism//lib/prism/node.rb#17749 def type; end end end @@ -29112,13 +31302,13 @@ end # super foo, bar # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#17418 +# source://prism//lib/prism/node.rb#17772 class Prism::SuperNode < ::Prism::Node # def initialize: (Location keyword_loc, Location? lparen_loc, ArgumentsNode? arguments, Location? rparen_loc, Prism::node? block, Location location) -> void # # @return [SuperNode] a new instance of SuperNode # - # source://prism//lib/prism/node.rb#17420 + # source://prism//lib/prism/node.rb#17774 sig do params( source: Prism::Source, @@ -29132,45 +31322,51 @@ class Prism::SuperNode < ::Prism::Node end def initialize(source, keyword_loc, lparen_loc, arguments, rparen_loc, block, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#17910 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17432 + # source://prism//lib/prism/node.rb#17786 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#17488 + # source://prism//lib/prism/node.rb#17842 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end # attr_reader block: Prism::node? # - # source://prism//lib/prism/node.rb#17504 + # source://prism//lib/prism/node.rb#17858 sig { returns(T.nilable(Prism::Node)) } def block; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17437 + # source://prism//lib/prism/node.rb#17791 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#17450 + # source://prism//lib/prism/node.rb#17804 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#17442 + # source://prism//lib/prism/node.rb#17796 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?keyword_loc: Location, ?lparen_loc: Location?, ?arguments: ArgumentsNode?, ?rparen_loc: Location?, ?block: Prism::node?, ?location: Location) -> SuperNode # - # source://prism//lib/prism/node.rb#17455 + # source://prism//lib/prism/node.rb#17809 sig do params( keyword_loc: Prism::Location, @@ -29186,58 +31382,58 @@ class Prism::SuperNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17437 + # source://prism//lib/prism/node.rb#17791 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { keyword_loc: Location, lparen_loc: Location?, arguments: ArgumentsNode?, rparen_loc: Location?, block: Prism::node?, location: Location } # - # source://prism//lib/prism/node.rb#17463 + # source://prism//lib/prism/node.rb#17817 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#17523 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#17876 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#17508 + # source://prism//lib/prism/node.rb#17861 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#17468 + # source://prism//lib/prism/node.rb#17822 sig { returns(Prism::Location) } def keyword_loc; end # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#17513 + # source://prism//lib/prism/node.rb#17866 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#17475 + # source://prism//lib/prism/node.rb#17829 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#17518 + # source://prism//lib/prism/node.rb#17871 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#17491 + # source://prism//lib/prism/node.rb#17845 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -29256,7 +31452,7 @@ class Prism::SuperNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17557 + # source://prism//lib/prism/node.rb#17894 sig { override.returns(Symbol) } def type; end @@ -29268,29 +31464,29 @@ class Prism::SuperNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17567 + # source://prism//lib/prism/node.rb#17904 def type; end end end # Flags for symbol nodes. # -# source://prism//lib/prism/node.rb#18977 +# source://prism//lib/prism/node.rb#19358 module Prism::SymbolFlags; end # internal bytes forced the encoding to binary # -# source://prism//lib/prism/node.rb#18982 +# source://prism//lib/prism/node.rb#19363 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#18985 +# source://prism//lib/prism/node.rb#19366 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#18979 +# source://prism//lib/prism/node.rb#19360 Prism::SymbolFlags::FORCED_UTF8_ENCODING = T.let(T.unsafe(nil), Integer) # Represents a symbol literal or a symbol contained within a `%i` list. @@ -29301,13 +31497,13 @@ Prism::SymbolFlags::FORCED_UTF8_ENCODING = T.let(T.unsafe(nil), Integer) # %i[foo] # ^^^ # -# source://prism//lib/prism/node.rb#17579 +# source://prism//lib/prism/node.rb#17927 class Prism::SymbolNode < ::Prism::Node # 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#17581 + # source://prism//lib/prism/node.rb#17929 sig do params( source: Prism::Source, @@ -29321,45 +31517,51 @@ class Prism::SymbolNode < ::Prism::Node end def initialize(source, flags, opening_loc, value_loc, closing_loc, unescaped, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#18084 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17593 + # source://prism//lib/prism/node.rb#17941 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17598 + # source://prism//lib/prism/node.rb#17946 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#17698 + # source://prism//lib/prism/node.rb#18045 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#17656 + # source://prism//lib/prism/node.rb#18004 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#17608 + # source://prism//lib/prism/node.rb#17956 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#17603 + # source://prism//lib/prism/node.rb#17951 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?opening_loc: Location?, ?value_loc: Location?, ?closing_loc: Location?, ?unescaped: String, ?location: Location) -> SymbolNode # - # source://prism//lib/prism/node.rb#17613 + # source://prism//lib/prism/node.rb#17961 sig do params( flags: Integer, @@ -29375,13 +31577,13 @@ class Prism::SymbolNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17598 + # source://prism//lib/prism/node.rb#17946 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # 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#17621 + # source://prism//lib/prism/node.rb#17969 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -29392,7 +31594,7 @@ class Prism::SymbolNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#17678 + # source://prism//lib/prism/node.rb#18025 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -29400,7 +31602,7 @@ class Prism::SymbolNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#17683 + # source://prism//lib/prism/node.rb#18030 sig { returns(T::Boolean) } def forced_us_ascii_encoding?; end @@ -29408,25 +31610,25 @@ class Prism::SymbolNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#17673 + # source://prism//lib/prism/node.rb#18020 sig { returns(T::Boolean) } def forced_utf8_encoding?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#17703 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#18050 + sig { override.returns(String) } + def inspect; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#17688 + # source://prism//lib/prism/node.rb#18035 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#17630 + # source://prism//lib/prism/node.rb#17978 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end @@ -29445,33 +31647,33 @@ class Prism::SymbolNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17728 + # source://prism//lib/prism/node.rb#18068 sig { override.returns(Symbol) } def type; end # attr_reader unescaped: String # - # source://prism//lib/prism/node.rb#17669 + # source://prism//lib/prism/node.rb#18017 sig { returns(String) } def unescaped; end # def value: () -> String? # - # source://prism//lib/prism/node.rb#17693 + # source://prism//lib/prism/node.rb#18040 sig { returns(T.nilable(String)) } def value; end # attr_reader value_loc: Location? # - # source://prism//lib/prism/node.rb#17643 + # source://prism//lib/prism/node.rb#17991 sig { returns(T.nilable(Prism::Location)) } def value_loc; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#17626 + # source://prism//lib/prism/node.rb#17974 sig { returns(Integer) } def flags; end @@ -29483,62 +31685,65 @@ class Prism::SymbolNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17738 + # source://prism//lib/prism/node.rb#18078 def type; end end end # This represents a token from the Ruby source. # -# source://prism//lib/prism/parse_result.rb#504 +# source://prism//lib/prism/parse_result.rb#628 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#516 + # source://prism//lib/prism/parse_result.rb#640 sig { params(source: Prism::Source, type: Symbol, value: String, location: T.any(Integer, Prism::Location)).void } def initialize(source, type, value, location); end # Returns true if the given other token is equal to this token. # - # source://prism//lib/prism/parse_result.rb#551 + # source://prism//lib/prism/parse_result.rb#675 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#524 + # source://prism//lib/prism/parse_result.rb#648 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, 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#529 + # source://prism//lib/prism/parse_result.rb#653 sig { returns(Prism::Location) } def location; end # Implement the pretty print interface for Token. # - # source://prism//lib/prism/parse_result.rb#536 + # source://prism//lib/prism/parse_result.rb#660 sig { params(q: T.untyped).void } def pretty_print(q); end # The type of token that this token is. # - # source://prism//lib/prism/parse_result.rb#510 + # source://prism//lib/prism/parse_result.rb#634 + sig { returns(Symbol) } def type; end # A byteslice of the source that this token represents. # - # source://prism//lib/prism/parse_result.rb#513 + # source://prism//lib/prism/parse_result.rb#637 + sig { returns(String) } def value; end private # The Source object that represents the source this token came from. # - # source://prism//lib/prism/parse_result.rb#506 + # source://prism//lib/prism/parse_result.rb#630 + sig { returns(Prism::Source) } def source; end end @@ -29683,8 +31888,6 @@ end # # source://prism//lib/prism/translation/parser/compiler.rb#8 class Prism::Translation::Parser::Compiler < ::Prism::Compiler - Result = type_member { { fixed: Parser::AST::Node } } - # Initialize a new compiler with the given parser, offset cache, and # options. # @@ -29839,12 +32042,10 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # source://prism//lib/prism/translation/parser/compiler.rb#233 def visit_break_node(node); end - # foo.bar += baz - # ^^^^^^^^^^^^^^^ # foo.bar &&= baz # ^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#319 + # source://prism//lib/prism/translation/parser/compiler.rb#338 def visit_call_and_write_node(node); end # foo @@ -29865,138 +32066,124 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # source://prism//lib/prism/translation/parser/compiler.rb#319 def visit_call_operator_write_node(node); end - # foo.bar += baz - # ^^^^^^^^^^^^^^^ # foo.bar ||= baz # ^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#319 + # source://prism//lib/prism/translation/parser/compiler.rb#357 def visit_call_or_write_node(node); end # foo.bar, = 1 # ^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#346 + # source://prism//lib/prism/translation/parser/compiler.rb#376 def visit_call_target_node(node); end # foo => bar => baz # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#358 + # source://prism//lib/prism/translation/parser/compiler.rb#388 def visit_capture_pattern_node(node); end # case foo; in bar; end # ^^^^^^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#377 + # source://prism//lib/prism/translation/parser/compiler.rb#407 def visit_case_match_node(node); end # case foo; when bar; end # ^^^^^^^^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#364 + # source://prism//lib/prism/translation/parser/compiler.rb#394 def visit_case_node(node); end # class Foo; end # ^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#390 + # source://prism//lib/prism/translation/parser/compiler.rb#420 def visit_class_node(node); end - # @@foo += bar - # ^^^^^^^^^^^^ # @@foo &&= bar # ^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#419 + # source://prism//lib/prism/translation/parser/compiler.rb#459 def visit_class_variable_and_write_node(node); end # @@foo += bar # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#419 + # source://prism//lib/prism/translation/parser/compiler.rb#449 def visit_class_variable_operator_write_node(node); end - # @@foo += bar - # ^^^^^^^^^^^^ # @@foo ||= bar # ^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#419 + # source://prism//lib/prism/translation/parser/compiler.rb#469 def visit_class_variable_or_write_node(node); end # @@foo # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#403 + # source://prism//lib/prism/translation/parser/compiler.rb#433 def visit_class_variable_read_node(node); end # @@foo, = bar # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#437 + # source://prism//lib/prism/translation/parser/compiler.rb#479 def visit_class_variable_target_node(node); end # @@foo = 1 # ^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#409 + # source://prism//lib/prism/translation/parser/compiler.rb#439 def visit_class_variable_write_node(node); end - # Foo += bar - # ^^^^^^^^^^^ # Foo &&= bar # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#458 + # source://prism//lib/prism/translation/parser/compiler.rb#510 def visit_constant_and_write_node(node); end # Foo += bar # ^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#458 + # source://prism//lib/prism/translation/parser/compiler.rb#500 def visit_constant_operator_write_node(node); end - # Foo += bar - # ^^^^^^^^^^^ # Foo ||= bar # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#458 + # source://prism//lib/prism/translation/parser/compiler.rb#520 def visit_constant_or_write_node(node); end - # Foo::Bar += baz - # ^^^^^^^^^^^^^^^ # Foo::Bar &&= baz # ^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#512 + # source://prism//lib/prism/translation/parser/compiler.rb#576 def visit_constant_path_and_write_node(node); end # Foo::Bar # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#482 + # source://prism//lib/prism/translation/parser/compiler.rb#536 def visit_constant_path_node(node); end # Foo::Bar += baz # ^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#512 + # source://prism//lib/prism/translation/parser/compiler.rb#566 def visit_constant_path_operator_write_node(node); end - # Foo::Bar += baz - # ^^^^^^^^^^^^^^^ # Foo::Bar ||= baz # ^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#512 + # source://prism//lib/prism/translation/parser/compiler.rb#586 def visit_constant_path_or_write_node(node); end # Foo::Bar, = baz # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#530 + # source://prism//lib/prism/translation/parser/compiler.rb#596 def visit_constant_path_target_node(node); end # Foo::Bar = 1 @@ -30005,19 +32192,19 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # Foo::Foo, Bar::Bar = 1 # ^^^^^^^^ ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#502 + # source://prism//lib/prism/translation/parser/compiler.rb#556 def visit_constant_path_write_node(node); end # Foo # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#443 + # source://prism//lib/prism/translation/parser/compiler.rb#485 def visit_constant_read_node(node); end # Foo, = bar # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#476 + # source://prism//lib/prism/translation/parser/compiler.rb#530 def visit_constant_target_node(node); end # Foo = 1 @@ -30026,7 +32213,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # Foo, Bar = 1 # ^^^ ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#452 + # source://prism//lib/prism/translation/parser/compiler.rb#494 def visit_constant_write_node(node); end # def foo; end @@ -30035,7 +32222,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # def self.foo; end # ^^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#539 + # source://prism//lib/prism/translation/parser/compiler.rb#605 def visit_def_node(node); end # defined? a @@ -30044,25 +32231,25 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # defined?(a) # ^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#586 + # source://prism//lib/prism/translation/parser/compiler.rb#652 def visit_defined_node(node); end # if foo then bar else baz end # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#598 + # source://prism//lib/prism/translation/parser/compiler.rb#664 def visit_else_node(node); end # "foo #{bar}" # ^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#604 + # source://prism//lib/prism/translation/parser/compiler.rb#670 def visit_embedded_statements_node(node); end # "foo #@bar" # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#614 + # source://prism//lib/prism/translation/parser/compiler.rb#680 def visit_embedded_variable_node(node); end # begin; foo; ensure; bar; end @@ -30070,19 +32257,19 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # # @raise [CompilationError] # - # source://prism//lib/prism/translation/parser/compiler.rb#620 + # source://prism//lib/prism/translation/parser/compiler.rb#686 def visit_ensure_node(node); end # false # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#626 + # source://prism//lib/prism/translation/parser/compiler.rb#692 def visit_false_node(node); end # foo => [*, bar, *] # ^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#632 + # source://prism//lib/prism/translation/parser/compiler.rb#698 def visit_find_pattern_node(node); end # 0..5 @@ -30090,31 +32277,31 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # if foo .. bar; end # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1350 + # source://prism//lib/prism/translation/parser/compiler.rb#1494 def visit_flip_flop_node(node); end # 1.0 # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#644 + # source://prism//lib/prism/translation/parser/compiler.rb#710 def visit_float_node(node); end # for foo in bar do end # ^^^^^^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#650 + # source://prism//lib/prism/translation/parser/compiler.rb#716 def visit_for_node(node); end # def foo(...); bar(...); end # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#668 + # source://prism//lib/prism/translation/parser/compiler.rb#734 def visit_forwarding_arguments_node(node); end # def foo(...); end # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#674 + # source://prism//lib/prism/translation/parser/compiler.rb#740 def visit_forwarding_parameter_node(node); end # super @@ -30123,59 +32310,55 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # super {} # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#683 + # source://prism//lib/prism/translation/parser/compiler.rb#749 def visit_forwarding_super_node(node); end - # $foo += bar - # ^^^^^^^^^^^ # $foo &&= bar # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#711 + # source://prism//lib/prism/translation/parser/compiler.rb#787 def visit_global_variable_and_write_node(node); end # $foo += bar # ^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#711 + # source://prism//lib/prism/translation/parser/compiler.rb#777 def visit_global_variable_operator_write_node(node); end - # $foo += bar - # ^^^^^^^^^^^ # $foo ||= bar # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#711 + # source://prism//lib/prism/translation/parser/compiler.rb#797 def visit_global_variable_or_write_node(node); end # $foo # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#695 + # source://prism//lib/prism/translation/parser/compiler.rb#761 def visit_global_variable_read_node(node); end # $foo, = bar # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#729 + # source://prism//lib/prism/translation/parser/compiler.rb#807 def visit_global_variable_target_node(node); end # $foo = 1 # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#701 + # source://prism//lib/prism/translation/parser/compiler.rb#767 def visit_global_variable_write_node(node); end # {} # ^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#735 + # source://prism//lib/prism/translation/parser/compiler.rb#813 def visit_hash_node(node); end # foo => {} # ^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#745 + # source://prism//lib/prism/translation/parser/compiler.rb#823 def visit_hash_pattern_node(node); end # if foo then bar end @@ -30187,13 +32370,13 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # foo ? bar : baz # ^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#763 + # source://prism//lib/prism/translation/parser/compiler.rb#841 def visit_if_node(node); end # 1i # ^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#805 + # source://prism//lib/prism/translation/parser/compiler.rb#883 def visit_imaginary_node(node); end # { foo: } @@ -30201,7 +32384,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # # @raise [CompilationError] # - # source://prism//lib/prism/translation/parser/compiler.rb#811 + # source://prism//lib/prism/translation/parser/compiler.rb#889 def visit_implicit_node(node); end # foo { |bar,| } @@ -30209,80 +32392,74 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # # @raise [CompilationError] # - # source://prism//lib/prism/translation/parser/compiler.rb#817 + # source://prism//lib/prism/translation/parser/compiler.rb#895 def visit_implicit_rest_node(node); end # case foo; in bar; end # ^^^^^^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#823 + # source://prism//lib/prism/translation/parser/compiler.rb#901 def visit_in_node(node); end - # foo[bar] += baz - # ^^^^^^^^^^^^^^^ # foo[bar] &&= baz # ^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#849 + # source://prism//lib/prism/translation/parser/compiler.rb#945 def visit_index_and_write_node(node); end # foo[bar] += baz # ^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#849 + # source://prism//lib/prism/translation/parser/compiler.rb#927 def visit_index_operator_write_node(node); end - # foo[bar] += baz - # ^^^^^^^^^^^^^^^ # foo[bar] ||= baz # ^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#849 + # source://prism//lib/prism/translation/parser/compiler.rb#963 def visit_index_or_write_node(node); end # foo[bar], = 1 # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#875 + # source://prism//lib/prism/translation/parser/compiler.rb#981 def visit_index_target_node(node); end - # ^^^^^^^^^^^ # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#902 + # source://prism//lib/prism/translation/parser/compiler.rb#1018 def visit_instance_variable_and_write_node(node); end # ^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#902 + # source://prism//lib/prism/translation/parser/compiler.rb#1008 def visit_instance_variable_operator_write_node(node); end - # ^^^^^^^^^^^ # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#902 + # source://prism//lib/prism/translation/parser/compiler.rb#1028 def visit_instance_variable_or_write_node(node); end # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#886 + # source://prism//lib/prism/translation/parser/compiler.rb#992 def visit_instance_variable_read_node(node); end # @foo, = bar # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#920 + # source://prism//lib/prism/translation/parser/compiler.rb#1038 def visit_instance_variable_target_node(node); end # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#892 + # source://prism//lib/prism/translation/parser/compiler.rb#998 def visit_instance_variable_write_node(node); end # 1 # ^ # - # source://prism//lib/prism/translation/parser/compiler.rb#926 + # source://prism//lib/prism/translation/parser/compiler.rb#1044 def visit_integer_node(node); end # /foo #{bar}/ @@ -30290,37 +32467,43 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # if /foo #{bar}/ then end # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#932 + # source://prism//lib/prism/translation/parser/compiler.rb#1050 def visit_interpolated_match_last_line_node(node); end # /foo #{bar}/ # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#932 + # source://prism//lib/prism/translation/parser/compiler.rb#1050 def visit_interpolated_regular_expression_node(node); end # "foo #{bar}" # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#947 + # source://prism//lib/prism/translation/parser/compiler.rb#1065 def visit_interpolated_string_node(node); end # :"foo #{bar}" # ^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1010 + # source://prism//lib/prism/translation/parser/compiler.rb#1128 def visit_interpolated_symbol_node(node); end # `foo #{bar}` # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1020 + # source://prism//lib/prism/translation/parser/compiler.rb#1138 def visit_interpolated_x_string_node(node); end + # -> { it } + # ^^^^^^^^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1153 + def visit_it_parameters_node(node); end + # foo(bar: baz) # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1035 + # source://prism//lib/prism/translation/parser/compiler.rb#1159 def visit_keyword_hash_node(node); end # def foo(**bar); end @@ -30329,53 +32512,49 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # def foo(**); end # ^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1044 + # source://prism//lib/prism/translation/parser/compiler.rb#1168 def visit_keyword_rest_parameter_node(node); end # -> {} # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1053 + # source://prism//lib/prism/translation/parser/compiler.rb#1177 def visit_lambda_node(node); end - # foo += bar - # ^^^^^^^^^^ # foo &&= bar # ^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1094 + # source://prism//lib/prism/translation/parser/compiler.rb#1236 def visit_local_variable_and_write_node(node); end # foo += bar # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1094 + # source://prism//lib/prism/translation/parser/compiler.rb#1226 def visit_local_variable_operator_write_node(node); end - # foo += bar - # ^^^^^^^^^^ # foo ||= bar # ^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1094 + # source://prism//lib/prism/translation/parser/compiler.rb#1246 def visit_local_variable_or_write_node(node); end # foo # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1078 + # source://prism//lib/prism/translation/parser/compiler.rb#1203 def visit_local_variable_read_node(node); end # foo, = bar # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1112 + # source://prism//lib/prism/translation/parser/compiler.rb#1256 def visit_local_variable_target_node(node); end # foo = 1 # ^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1084 + # source://prism//lib/prism/translation/parser/compiler.rb#1216 def visit_local_variable_write_node(node); end # /foo/ @@ -30383,50 +32562,50 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # if /foo/ then end # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1384 + # source://prism//lib/prism/translation/parser/compiler.rb#1528 def visit_match_last_line_node(node); end # foo in bar # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1122 + # source://prism//lib/prism/translation/parser/compiler.rb#1266 def visit_match_predicate_node(node); end # foo => bar # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1132 + # source://prism//lib/prism/translation/parser/compiler.rb#1276 def visit_match_required_node(node); end # /(?foo)/ =~ bar # ^^^^^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1142 + # source://prism//lib/prism/translation/parser/compiler.rb#1286 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#1153 + # source://prism//lib/prism/translation/parser/compiler.rb#1297 def visit_missing_node(node); end # module Foo; end # ^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1159 + # source://prism//lib/prism/translation/parser/compiler.rb#1303 def visit_module_node(node); end # foo, bar = baz # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1170 + # source://prism//lib/prism/translation/parser/compiler.rb#1314 def visit_multi_target_node(node); end # foo, bar = baz # ^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1184 + # source://prism//lib/prism/translation/parser/compiler.rb#1328 def visit_multi_write_node(node); end # next @@ -30435,55 +32614,55 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # next foo # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1205 + # source://prism//lib/prism/translation/parser/compiler.rb#1349 def visit_next_node(node); end # nil # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1217 + # source://prism//lib/prism/translation/parser/compiler.rb#1361 def visit_nil_node(node); end # def foo(**nil); end # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1223 + # source://prism//lib/prism/translation/parser/compiler.rb#1367 def visit_no_keywords_parameter_node(node); end # -> { _1 + _2 } # ^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1233 + # source://prism//lib/prism/translation/parser/compiler.rb#1377 def visit_numbered_parameters_node(node); end # $1 # ^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1239 + # source://prism//lib/prism/translation/parser/compiler.rb#1383 def visit_numbered_reference_read_node(node); end # def foo(bar: baz); end # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1245 + # source://prism//lib/prism/translation/parser/compiler.rb#1389 def visit_optional_keyword_parameter_node(node); end # def foo(bar = 1); end # ^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1251 + # source://prism//lib/prism/translation/parser/compiler.rb#1395 def visit_optional_parameter_node(node); end # a or b # ^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1257 + # source://prism//lib/prism/translation/parser/compiler.rb#1401 def visit_or_node(node); end # def foo(bar, *baz); end # ^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1263 + # source://prism//lib/prism/translation/parser/compiler.rb#1407 def visit_parameters_node(node); end # () @@ -30492,76 +32671,76 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # (1) # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1302 + # source://prism//lib/prism/translation/parser/compiler.rb#1446 def visit_parentheses_node(node); end # foo => ^(bar) # ^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1312 + # source://prism//lib/prism/translation/parser/compiler.rb#1456 def visit_pinned_expression_node(node); end # foo = 1 and bar => ^foo # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1319 + # source://prism//lib/prism/translation/parser/compiler.rb#1463 def visit_pinned_variable_node(node); end # END {} # - # source://prism//lib/prism/translation/parser/compiler.rb#1324 + # source://prism//lib/prism/translation/parser/compiler.rb#1468 def visit_post_execution_node(node); end # BEGIN {} # - # source://prism//lib/prism/translation/parser/compiler.rb#1334 + # source://prism//lib/prism/translation/parser/compiler.rb#1478 def visit_pre_execution_node(node); end # The top-level program node. # - # source://prism//lib/prism/translation/parser/compiler.rb#1344 + # source://prism//lib/prism/translation/parser/compiler.rb#1488 def visit_program_node(node); end # 0..5 # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1350 + # source://prism//lib/prism/translation/parser/compiler.rb#1494 def visit_range_node(node); end # 1r # ^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1372 + # source://prism//lib/prism/translation/parser/compiler.rb#1516 def visit_rational_node(node); end # redo # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1378 + # source://prism//lib/prism/translation/parser/compiler.rb#1522 def visit_redo_node(node); end # /foo/ # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1384 + # source://prism//lib/prism/translation/parser/compiler.rb#1528 def visit_regular_expression_node(node); end # def foo(bar:); end # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1399 + # source://prism//lib/prism/translation/parser/compiler.rb#1543 def visit_required_keyword_parameter_node(node); end # def foo(bar); end # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1405 + # source://prism//lib/prism/translation/parser/compiler.rb#1549 def visit_required_parameter_node(node); end # foo rescue bar # ^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1411 + # source://prism//lib/prism/translation/parser/compiler.rb#1555 def visit_rescue_modifier_node(node); end # begin; rescue; end @@ -30569,7 +32748,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # # @raise [CompilationError] # - # source://prism//lib/prism/translation/parser/compiler.rb#1429 + # source://prism//lib/prism/translation/parser/compiler.rb#1573 def visit_rescue_node(node); end # def foo(*bar); end @@ -30578,13 +32757,13 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # def foo(*); end # ^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1438 + # source://prism//lib/prism/translation/parser/compiler.rb#1582 def visit_rest_parameter_node(node); end # retry # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1444 + # source://prism//lib/prism/translation/parser/compiler.rb#1588 def visit_retry_node(node); end # return @@ -30593,42 +32772,42 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # return 1 # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1453 + # source://prism//lib/prism/translation/parser/compiler.rb#1597 def visit_return_node(node); end # self # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1465 + # source://prism//lib/prism/translation/parser/compiler.rb#1609 def visit_self_node(node); end # A shareable constant. # - # source://prism//lib/prism/translation/parser/compiler.rb#1470 + # source://prism//lib/prism/translation/parser/compiler.rb#1614 def visit_shareable_constant_node(node); end # class << self; end # ^^^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1476 + # source://prism//lib/prism/translation/parser/compiler.rb#1620 def visit_singleton_class_node(node); end # __ENCODING__ # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1488 + # source://prism//lib/prism/translation/parser/compiler.rb#1632 def visit_source_encoding_node(node); end # __FILE__ # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1494 + # source://prism//lib/prism/translation/parser/compiler.rb#1638 def visit_source_file_node(node); end # __LINE__ # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1500 + # source://prism//lib/prism/translation/parser/compiler.rb#1644 def visit_source_line_node(node); end # foo(*bar) @@ -30640,42 +32819,42 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # def foo(*); bar(*); end # ^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1512 + # source://prism//lib/prism/translation/parser/compiler.rb#1656 def visit_splat_node(node); end # A list of statements. # - # source://prism//lib/prism/translation/parser/compiler.rb#1525 + # source://prism//lib/prism/translation/parser/compiler.rb#1669 def visit_statements_node(node); end # "foo" # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1531 + # source://prism//lib/prism/translation/parser/compiler.rb#1675 def visit_string_node(node); end # super(foo) # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1572 + # source://prism//lib/prism/translation/parser/compiler.rb#1716 def visit_super_node(node); end # :foo # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1595 + # source://prism//lib/prism/translation/parser/compiler.rb#1739 def visit_symbol_node(node); end # true # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1627 + # source://prism//lib/prism/translation/parser/compiler.rb#1771 def visit_true_node(node); end # undef foo # ^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1633 + # source://prism//lib/prism/translation/parser/compiler.rb#1777 def visit_undef_node(node); end # unless foo; bar end @@ -30684,22 +32863,22 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # bar unless foo # ^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1642 + # source://prism//lib/prism/translation/parser/compiler.rb#1786 def visit_unless_node(node); end # until foo; bar end - # ^^^^^^^^^^^^^^^^^ + # ^^^^^^^^^^^^^^^^^^ # # bar until foo # ^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1672 + # source://prism//lib/prism/translation/parser/compiler.rb#1816 def visit_until_node(node); end # case foo; when bar; end # ^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1694 + # source://prism//lib/prism/translation/parser/compiler.rb#1838 def visit_when_node(node); end # while foo; bar end @@ -30708,13 +32887,13 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # bar while foo # ^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1712 + # source://prism//lib/prism/translation/parser/compiler.rb#1856 def visit_while_node(node); end # `foo` # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1734 + # source://prism//lib/prism/translation/parser/compiler.rb#1878 def visit_x_string_node(node); end # yield @@ -30723,7 +32902,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # yield 1 # ^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1766 + # source://prism//lib/prism/translation/parser/compiler.rb#1910 def visit_yield_node(node); end private @@ -30731,20 +32910,20 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # 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#1780 + # source://prism//lib/prism/translation/parser/compiler.rb#1924 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#1787 + # source://prism//lib/prism/translation/parser/compiler.rb#1931 def find_forwarding(node); end # Because we have mutated the AST to allow for newlines in the middle of # a rational, we need to manually handle the value here. # - # source://prism//lib/prism/translation/parser/compiler.rb#1801 + # source://prism//lib/prism/translation/parser/compiler.rb#1945 def imaginary_value(node); end # Negate the value of a numeric node. This is a special case where you @@ -30753,7 +32932,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # however, marks this as a numeric literal. We have to massage the tree # here to get it into the correct form. # - # source://prism//lib/prism/translation/parser/compiler.rb#1810 + # source://prism//lib/prism/translation/parser/compiler.rb#1954 def numeric_negate(message_loc, receiver); end # Blocks can have a special set of parameters that automatically expand @@ -30762,55 +32941,58 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # # @return [Boolean] # - # source://prism//lib/prism/translation/parser/compiler.rb#1822 + # source://prism//lib/prism/translation/parser/compiler.rb#1966 def procarg0?(parameters); end # Because we have mutated the AST to allow for newlines in the middle of # a rational, we need to manually handle the value here. # - # source://prism//lib/prism/translation/parser/compiler.rb#1835 + # source://prism//lib/prism/translation/parser/compiler.rb#1979 def rational_value(node); end # Constructs a new source range from the given start and end offsets. # - # source://prism//lib/prism/translation/parser/compiler.rb#1849 + # source://prism//lib/prism/translation/parser/compiler.rb#1993 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. + # returns nil. Importantly it does not search past newlines or comments. + # + # Note that end_offset is allowed to be nil, in which case this will + # search until the end of the string. # - # source://prism//lib/prism/translation/parser/compiler.rb#1861 + # source://prism//lib/prism/translation/parser/compiler.rb#2008 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#1854 + # source://prism//lib/prism/translation/parser/compiler.rb#1998 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#1870 + # source://prism//lib/prism/translation/parser/compiler.rb#2018 def token(location); end # Visit a block node on a call. # - # source://prism//lib/prism/translation/parser/compiler.rb#1875 + # source://prism//lib/prism/translation/parser/compiler.rb#2023 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#1908 + # source://prism//lib/prism/translation/parser/compiler.rb#2057 def visit_heredoc(node); end # Visit a numeric node and account for the optional sign. # - # source://prism//lib/prism/translation/parser/compiler.rb#1954 + # source://prism//lib/prism/translation/parser/compiler.rb#2103 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#1966 + # source://prism//lib/prism/translation/parser/compiler.rb#2115 def within_pattern; end end @@ -30823,7 +33005,7 @@ class Prism::Translation::Parser::Compiler::CompilationError < ::StandardError; # store a reference to its constant to make it slightly faster to look # up. # -# source://prism//lib/prism/translation/parser/compiler.rb#1846 +# source://prism//lib/prism/translation/parser/compiler.rb#1990 Prism::Translation::Parser::Compiler::Range = Parser::Source::Range # source://prism//lib/prism/translation/parser.rb#12 @@ -30945,26 +33127,26 @@ Prism::Translation::Parser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass) # The main known difference is that we may omit dispatching some events in # some cases. This impacts the following events: # -# * on_assign_error -# * on_comma -# * on_ignored_nl -# * on_ignored_sp -# * on_kw -# * on_label_end -# * on_lbrace -# * on_lbracket -# * on_lparen -# * on_nl -# * on_op -# * on_operator_ambiguous -# * on_rbrace -# * on_rbracket -# * on_rparen -# * on_semicolon -# * on_sp -# * on_symbeg -# * on_tstring_beg -# * on_tstring_end +# - on_assign_error +# - on_comma +# - on_ignored_nl +# - on_ignored_sp +# - on_kw +# - on_label_end +# - on_lbrace +# - on_lbracket +# - on_lparen +# - on_nl +# - on_op +# - on_operator_ambiguous +# - on_rbrace +# - on_rbracket +# - on_rparen +# - on_semicolon +# - on_sp +# - on_symbeg +# - on_tstring_beg +# - on_tstring_end # # source://prism//lib/prism/translation/ripper.rb#43 class Prism::Translation::Ripper < ::Prism::Compiler @@ -31001,7 +33183,7 @@ class Prism::Translation::Ripper < ::Prism::Compiler # Parse the source and return the result. # # source://prism//lib/prism/translation/ripper.rb#462 - sig { returns(T.nilable(Result)) } + sig { returns(T.untyped) } def parse; end # The source that is being parsed. @@ -31973,25 +34155,25 @@ class Prism::Translation::Ripper < ::Prism::Compiler # :stopdoc: # - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def _dispatch_0; end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def _dispatch_1(_); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def _dispatch_2(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3386 + # source://prism//lib/prism/translation/ripper.rb#3390 def _dispatch_3(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3391 def _dispatch_4(_, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3392 def _dispatch_5(_, _, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3393 def _dispatch_7(_, _, _, _, _, _, _); end # This method is responsible for updating lineno and column information @@ -32000,7 +34182,7 @@ class Prism::Translation::Ripper < ::Prism::Compiler # This method could be drastically improved with some caching on the start # of every line, but for now it's good enough. # - # source://prism//lib/prism/translation/ripper.rb#3373 + # source://prism//lib/prism/translation/ripper.rb#3377 def bounds(location); end # Returns true if the given node is a command node. @@ -32012,7 +34194,7 @@ class Prism::Translation::Ripper < ::Prism::Compiler # This method is called when the parser found syntax error. # - # source://prism//lib/prism/translation/ripper.rb#3411 + # source://prism//lib/prism/translation/ripper.rb#3415 def compile_error(msg); end # This method is provided by the Ripper C extension. It is called when a @@ -32020,577 +34202,577 @@ class Prism::Translation::Ripper < ::Prism::Compiler # that it will modify the string in place and return the number of bytes # that were removed. # - # source://prism//lib/prism/translation/ripper.rb#3426 + # source://prism//lib/prism/translation/ripper.rb#3430 def dedent_string(string, width); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_BEGIN(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_CHAR(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_END(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on___end__(_); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_alias(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_alias_error(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_aref(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_aref_field(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_arg_ambiguous(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_arg_paren(_); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_args_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_args_add_block(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_args_add_star(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_args_forward; end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_args_new; end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_array(_); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_aryptn(_, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_assign(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_assign_error(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_assoc_new(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_assoc_splat(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_assoclist_from_args(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_backref(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_backtick(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_bare_assoc_hash(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_begin(_); end - # source://prism//lib/prism/translation/ripper.rb#3386 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_binary(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_block_var(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_blockarg(_); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_bodystmt(_, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_brace_block(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_break(_); end - # source://prism//lib/prism/translation/ripper.rb#3386 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_call(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_case(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3386 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_class(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_class_name_error(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_comma(_); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_command(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_command_call(_, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_comment(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_const(_); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_const_path_field(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_const_path_ref(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_const_ref(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_cvar(_); end - # source://prism//lib/prism/translation/ripper.rb#3386 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_def(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_defined(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3392 def on_defs(_, _, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_do_block(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_dot2(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_dot3(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_dyna_symbol(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_else(_); end - # source://prism//lib/prism/translation/ripper.rb#3386 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_elsif(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_embdoc(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_embdoc_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_embdoc_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_embexpr_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_embexpr_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_embvar(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_ensure(_); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_excessed_comma; end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_fcall(_); end - # source://prism//lib/prism/translation/ripper.rb#3386 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_field(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_float(_); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_fndptn(_, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3386 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_for(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_gvar(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_hash(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_heredoc_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_heredoc_dedent(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_heredoc_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3386 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_hshptn(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_ident(_); end - # source://prism//lib/prism/translation/ripper.rb#3386 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_if(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_if_mod(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3386 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_ifop(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_ignored_nl(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_ignored_sp(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_imaginary(_); end - # source://prism//lib/prism/translation/ripper.rb#3386 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_in(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_int(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_ivar(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_kw(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_kwrest_param(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_label(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_label_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_lambda(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_lbrace(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_lbracket(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_lparen(_); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_magic_comment(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_massign(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_method_add_arg(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_method_add_block(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_mlhs_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_mlhs_add_post(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_mlhs_add_star(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_mlhs_new; end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_mlhs_paren(_); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_module(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_mrhs_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_mrhs_add_star(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_mrhs_new; end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_mrhs_new_from_args(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_next(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_nl(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_nokw_param(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_op(_); end - # source://prism//lib/prism/translation/ripper.rb#3386 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_opassign(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_operator_ambiguous(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_param_error(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3393 def on_params(_, _, _, _, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_paren(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_parse_error(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_period(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_program(_); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_qsymbols_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_qsymbols_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_qsymbols_new; end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_qwords_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_qwords_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_qwords_new; end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_rational(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_rbrace(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_rbracket(_); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_redo; end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_regexp_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_regexp_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_regexp_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_regexp_literal(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_regexp_new; end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_rescue(_, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_rescue_mod(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_rest_param(_); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_retry; end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_return(_); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_return0; end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_rparen(_); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_sclass(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_semicolon(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_sp(_); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_stmts_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_stmts_new; end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_string_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_string_concat(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_string_content; end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_string_dvar(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_string_embexpr(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_string_literal(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_super(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_symbeg(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_symbol(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_symbol_literal(_); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_symbols_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_symbols_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_symbols_new; end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_tlambda(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_tlambeg(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_top_const_field(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_top_const_ref(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_tstring_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_tstring_content(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_tstring_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_unary(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_undef(_); end - # source://prism//lib/prism/translation/ripper.rb#3386 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_unless(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_unless_mod(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_until(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_until_mod(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_var_alias(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_var_field(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_var_ref(_); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_vcall(_); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_void_stmt; end - # source://prism//lib/prism/translation/ripper.rb#3386 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_when(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_while(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_while_mod(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_word_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_word_new; end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_words_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_words_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_words_new; end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_words_sep(_); end - # source://prism//lib/prism/translation/ripper.rb#3385 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_xstring_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_xstring_literal(_); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_xstring_new; end - # source://prism//lib/prism/translation/ripper.rb#3384 + # source://prism//lib/prism/translation/ripper.rb#3388 def on_yield(_); end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_yield0; end - # source://prism//lib/prism/translation/ripper.rb#3383 + # source://prism//lib/prism/translation/ripper.rb#3387 def on_zsuper; end # Lazily initialize the parse result. @@ -32602,7 +34784,7 @@ class Prism::Translation::Ripper < ::Prism::Compiler # # @return [Boolean] # - # source://prism//lib/prism/translation/ripper.rb#3278 + # source://prism//lib/prism/translation/ripper.rb#3282 def trailing_comma?(left, right); end # Visit one side of an alias global variable node. @@ -32674,7 +34856,7 @@ class Prism::Translation::Ripper < ::Prism::Compiler # Visit a node that represents a number. We need to explicitly handle the # unary - operator. # - # source://prism//lib/prism/translation/ripper.rb#3317 + # source://prism//lib/prism/translation/ripper.rb#3321 def visit_number_node(node); end # Visit a pattern within a pattern match. This is used to bypass the @@ -32699,7 +34881,7 @@ class Prism::Translation::Ripper < ::Prism::Compiler # Visit the string content of a particular node. This method is used to # split into the various token types. # - # source://prism//lib/prism/translation/ripper.rb#3290 + # source://prism//lib/prism/translation/ripper.rb#3294 def visit_token(token, allow_keywords = T.unsafe(nil)); end # Dispatch a words_sep event that contains the space between the elements @@ -32711,26 +34893,26 @@ class Prism::Translation::Ripper < ::Prism::Compiler # Visit a node that represents a write value. This is used to handle the # special case of an implicit array that is generated without brackets. # - # source://prism//lib/prism/translation/ripper.rb#3335 + # source://prism//lib/prism/translation/ripper.rb#3339 def visit_write_value(node); end # Returns true if there is a semicolon between the two locations. # # @return [Boolean] # - # source://prism//lib/prism/translation/ripper.rb#3283 + # source://prism//lib/prism/translation/ripper.rb#3287 def void_stmt?(left, right, allow_newline); end # This method is called when weak warning is produced by the parser. # +fmt+ and +args+ is printf style. # - # source://prism//lib/prism/translation/ripper.rb#3402 + # source://prism//lib/prism/translation/ripper.rb#3406 def warn(fmt, *args); end # This method is called when strong warning is produced by the parser. # +fmt+ and +args+ is printf style. # - # source://prism//lib/prism/translation/ripper.rb#3407 + # source://prism//lib/prism/translation/ripper.rb#3411 def warning(fmt, *args); end class << self @@ -32741,20 +34923,20 @@ class Prism::Translation::Ripper < ::Prism::Compiler # By default, this method does not handle syntax errors in +src+, # use the +raise_errors+ keyword to raise a SyntaxError for an error in +src+. # - # require 'ripper' - # require 'pp' - # - # pp Ripper.lex("def m(a) nil end") - # #=> [[[1, 0], :on_kw, "def", FNAME ], - # [[1, 3], :on_sp, " ", FNAME ], - # [[1, 4], :on_ident, "m", ENDFN ], - # [[1, 5], :on_lparen, "(", BEG|LABEL], - # [[1, 6], :on_ident, "a", ARG ], - # [[1, 7], :on_rparen, ")", ENDFN ], - # [[1, 8], :on_sp, " ", BEG ], - # [[1, 9], :on_kw, "nil", END ], - # [[1, 12], :on_sp, " ", END ], - # [[1, 13], :on_kw, "end", END ]] + # require "ripper" + # require "pp" + # + # pp Ripper.lex("def m(a) nil end") + # #=> [[[1, 0], :on_kw, "def", FNAME ], + # [[1, 3], :on_sp, " ", FNAME ], + # [[1, 4], :on_ident, "m", ENDFN ], + # [[1, 5], :on_lparen, "(", BEG|LABEL], + # [[1, 6], :on_ident, "a", ARG ], + # [[1, 7], :on_rparen, ")", ENDFN ], + # [[1, 8], :on_sp, " ", BEG ], + # [[1, 9], :on_kw, "nil", END ], + # [[1, 12], :on_sp, " ", END ], + # [[1, 13], :on_kw, "end", END ]] # # source://prism//lib/prism/translation/ripper.rb#72 def lex(src, filename = T.unsafe(nil), lineno = T.unsafe(nil), raise_errors: T.unsafe(nil)); end @@ -32773,15 +34955,15 @@ class Prism::Translation::Ripper < ::Prism::Compiler # returning +nil+ in such cases. Use the +raise_errors+ keyword # to raise a SyntaxError for an error in +src+. # - # require "ripper" - # require "pp" + # require "ripper" + # require "pp" # - # pp Ripper.sexp("def m(a) nil end") - # #=> [:program, - # [[:def, - # [:@ident, "m", [1, 4]], - # [:paren, [:params, [[:@ident, "a", [1, 6]]], nil, nil, nil, nil, nil, nil]], - # [:bodystmt, [[:var_ref, [:@kw, "nil", [1, 9]]]], nil, nil, nil]]]] + # pp Ripper.sexp("def m(a) nil end") + # #=> [:program, + # [[:def, + # [:@ident, "m", [1, 4]], + # [:paren, [:params, [[:@ident, "a", [1, 6]]], nil, nil, nil, nil, nil, nil]], + # [:bodystmt, [[:var_ref, [:@kw, "nil", [1, 9]]]], nil, nil, nil]]]] # # source://prism//lib/prism/translation/ripper.rb#381 def sexp(src, filename = T.unsafe(nil), lineno = T.unsafe(nil), raise_errors: T.unsafe(nil)); end @@ -32793,27 +34975,25 @@ class Prism::Translation::Ripper < ::Prism::Compiler # returning +nil+ in such cases. Use the +raise_errors+ keyword # to raise a SyntaxError for an error in +src+. # - # require 'ripper' - # require 'pp' - # - # pp Ripper.sexp_raw("def m(a) nil end") - # #=> [:program, - # [:stmts_add, - # [:stmts_new], - # [:def, - # [:@ident, "m", [1, 4]], - # [:paren, [:params, [[:@ident, "a", [1, 6]]], nil, nil, nil]], - # [:bodystmt, - # [:stmts_add, [:stmts_new], [:var_ref, [:@kw, "nil", [1, 9]]]], - # nil, - # nil, - # nil]]]] + # require "ripper" + # require "pp" + # + # pp Ripper.sexp_raw("def m(a) nil end") + # #=> [:program, + # [:stmts_add, + # [:stmts_new], + # [:def, + # [:@ident, "m", [1, 4]], + # [:paren, [:params, [[:@ident, "a", [1, 6]]], nil, nil, nil]], + # [:bodystmt, + # [:stmts_add, [:stmts_new], [:var_ref, [:@kw, "nil", [1, 9]]]], + # nil, + # nil, + # nil]]]] # # source://prism//lib/prism/translation/ripper.rb#416 def sexp_raw(src, filename = T.unsafe(nil), lineno = T.unsafe(nil), raise_errors: T.unsafe(nil)); end end - - Result = type_member end # A list of all of the Ruby binary operators. @@ -32858,8 +35038,6 @@ Prism::Translation::Ripper::SCANNER_EVENT_TABLE = T.let(T.unsafe(nil), Hash) # # source://prism//lib/prism/translation/ripper/sexp.rb#10 class Prism::Translation::Ripper::SexpBuilder < ::Prism::Translation::Ripper - Result = type_member { { fixed: T::Array[T.untyped] } } - # :stopdoc: # # source://prism//lib/prism/translation/ripper/sexp.rb#13 @@ -33453,8 +35631,6 @@ end # # source://prism//lib/prism/translation/ripper/sexp.rb#74 class Prism::Translation::Ripper::SexpBuilderPP < ::Prism::Translation::Ripper::SexpBuilder - Result = type_member { { fixed: T::Array[T.untyped] } } - private # source://prism//lib/prism/translation/ripper/sexp.rb#92 @@ -33545,80 +35721,78 @@ class Prism::Translation::Ripper::SexpBuilderPP < ::Prism::Translation::Ripper:: def on_xstring_new; end end -class Prism::Translation::RipperCompiler < Prism::Compiler - Result = type_member -end - -class Prism::Translation::RubyParser::Compiler < Prism::Compiler - Result = type_member { { fixed: Sexp } } -end - # Represents the use of the literal `true` keyword. # # true # ^^^^ # -# source://prism//lib/prism/node.rb#17747 +# source://prism//lib/prism/node.rb#18098 class Prism::TrueNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [TrueNode] a new instance of TrueNode # - # source://prism//lib/prism/node.rb#17749 + # source://prism//lib/prism/node.rb#18100 sig { params(source: Prism::Source, location: Prism::Location).void } def initialize(source, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#18174 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17756 + # source://prism//lib/prism/node.rb#18107 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17761 + # source://prism//lib/prism/node.rb#18112 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#17771 + # source://prism//lib/prism/node.rb#18122 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#17766 + # source://prism//lib/prism/node.rb#18117 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> TrueNode # - # source://prism//lib/prism/node.rb#17776 + # source://prism//lib/prism/node.rb#18127 sig { params(location: Prism::Location).returns(Prism::TrueNode) } def copy(location: T.unsafe(nil)); end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17761 + # source://prism//lib/prism/node.rb#18112 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { location: Location } # - # source://prism//lib/prism/node.rb#17784 + # source://prism//lib/prism/node.rb#18135 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#17790 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#18140 + sig { override.returns(String) } + def inspect; 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 @@ -33635,7 +35809,7 @@ class Prism::TrueNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17809 + # source://prism//lib/prism/node.rb#18158 sig { override.returns(Symbol) } def type; end @@ -33647,7 +35821,7 @@ class Prism::TrueNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17819 + # source://prism//lib/prism/node.rb#18168 def type; end end end @@ -33657,13 +35831,13 @@ end # undef :foo, :bar, :baz # ^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#17828 +# source://prism//lib/prism/node.rb#18183 class Prism::UndefNode < ::Prism::Node # def initialize: (Array[SymbolNode | InterpolatedSymbolNode] names, Location keyword_loc, Location location) -> void # # @return [UndefNode] a new instance of UndefNode # - # source://prism//lib/prism/node.rb#17830 + # source://prism//lib/prism/node.rb#18185 sig do params( source: Prism::Source, @@ -33674,33 +35848,39 @@ class Prism::UndefNode < ::Prism::Node end def initialize(source, names, keyword_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#18276 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17839 + # source://prism//lib/prism/node.rb#18194 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17844 + # source://prism//lib/prism/node.rb#18199 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#17854 + # source://prism//lib/prism/node.rb#18209 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#17849 + # source://prism//lib/prism/node.rb#18204 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?names: Array[SymbolNode | InterpolatedSymbolNode], ?keyword_loc: Location, ?location: Location) -> UndefNode # - # source://prism//lib/prism/node.rb#17859 + # source://prism//lib/prism/node.rb#18214 sig do params( names: T::Array[T.any(Prism::SymbolNode, Prism::InterpolatedSymbolNode)], @@ -33713,40 +35893,40 @@ class Prism::UndefNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17844 + # source://prism//lib/prism/node.rb#18199 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { names: Array[SymbolNode | InterpolatedSymbolNode], keyword_loc: Location, location: Location } # - # source://prism//lib/prism/node.rb#17867 + # source://prism//lib/prism/node.rb#18222 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#17888 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#18242 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#17883 + # source://prism//lib/prism/node.rb#18237 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#17875 + # source://prism//lib/prism/node.rb#18230 sig { returns(Prism::Location) } def keyword_loc; end # attr_reader names: Array[SymbolNode | InterpolatedSymbolNode] # - # source://prism//lib/prism/node.rb#17872 + # source://prism//lib/prism/node.rb#18227 sig { returns(T::Array[T.any(Prism::SymbolNode, Prism::InterpolatedSymbolNode)]) } def names; end @@ -33765,7 +35945,7 @@ class Prism::UndefNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17909 + # source://prism//lib/prism/node.rb#18260 sig { override.returns(Symbol) } def type; end @@ -33777,7 +35957,7 @@ class Prism::UndefNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17919 + # source://prism//lib/prism/node.rb#18270 def type; end end end @@ -33790,13 +35970,13 @@ end # unless foo then bar end # ^^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#17931 +# source://prism//lib/prism/node.rb#18291 class Prism::UnlessNode < ::Prism::Node # def initialize: (Location keyword_loc, Prism::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#17933 + # source://prism//lib/prism/node.rb#18293 sig do params( source: Prism::Source, @@ -33811,39 +35991,48 @@ class Prism::UnlessNode < ::Prism::Node end def initialize(source, keyword_loc, predicate, then_keyword_loc, statements, consequent, end_keyword_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#18461 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17946 + # source://prism//lib/prism/node.rb#18306 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17955 + # source://prism//lib/prism/node.rb#18315 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#17969 + # source://prism//lib/prism/node.rb#18329 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#17960 + # source://prism//lib/prism/node.rb#18320 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end - # attr_reader consequent: ElseNode? + # The else clause of the unless expression, if present. # - # source://prism//lib/prism/node.rb#18013 + # unless cond then bar else baz end + # ^^^^^^^^ + # + # source://prism//lib/prism/node.rb#18393 sig { returns(T.nilable(Prism::ElseNode)) } def consequent; end # def copy: (?keyword_loc: Location, ?predicate: Prism::node, ?then_keyword_loc: Location?, ?statements: StatementsNode?, ?consequent: ElseNode?, ?end_keyword_loc: Location?, ?location: Location) -> UnlessNode # - # source://prism//lib/prism/node.rb#17974 + # source://prism//lib/prism/node.rb#18334 sig do params( keyword_loc: Prism::Location, @@ -33860,73 +36049,93 @@ class Prism::UnlessNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17955 + # source://prism//lib/prism/node.rb#18315 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { keyword_loc: Location, predicate: Prism::node, then_keyword_loc: Location?, statements: StatementsNode?, consequent: ElseNode?, end_keyword_loc: Location?, location: Location } # - # source://prism//lib/prism/node.rb#17982 + # source://prism//lib/prism/node.rb#18342 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # def end_keyword: () -> String? # - # source://prism//lib/prism/node.rb#18040 + # source://prism//lib/prism/node.rb#18422 sig { returns(T.nilable(String)) } def end_keyword; end - # attr_reader end_keyword_loc: Location? + # The location of the `end` keyword, if present. + # + # unless cond then bar end + # ^^^ # - # source://prism//lib/prism/node.rb#18016 + # source://prism//lib/prism/node.rb#18399 sig { returns(T.nilable(Prism::Location)) } def end_keyword_loc; end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#18045 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#18427 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#18030 + # source://prism//lib/prism/node.rb#18412 sig { returns(String) } def keyword; end - # attr_reader keyword_loc: Location + # The location of the `unless` keyword. + # + # unless cond then bar end + # ^^^^^^ # - # source://prism//lib/prism/node.rb#17987 + # bar unless cond + # ^^^^^^ + # + # source://prism//lib/prism/node.rb#18353 sig { returns(Prism::Location) } def keyword_loc; end - # attr_reader predicate: Prism::node + # The condition to be evaluated for the unless expression. It 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#17994 + # unless cond then bar end + # ^^^^ + # + # bar unless cond + # ^^^^ + # + # source://prism//lib/prism/node.rb#18366 sig { returns(Prism::Node) } def predicate; end - # source://prism//lib/prism/node.rb#17950 + # source://prism//lib/prism/node.rb#18310 def set_newline_flag(newline_marked); end - # attr_reader statements: StatementsNode? + # The body of statements that will executed if the unless condition is + # falsey. Will be `nil` if no body is provided. # - # source://prism//lib/prism/node.rb#18010 + # unless cond then bar end + # ^^^ + # + # source://prism//lib/prism/node.rb#18387 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end # def then_keyword: () -> String? # - # source://prism//lib/prism/node.rb#18035 + # source://prism//lib/prism/node.rb#18417 sig { returns(T.nilable(String)) } def then_keyword; end - # attr_reader then_keyword_loc: Location? + # The location of the `then` keyword, if present. + # unless cond then bar end ^^^^ # - # source://prism//lib/prism/node.rb#17997 + # source://prism//lib/prism/node.rb#18370 sig { returns(T.nilable(Prism::Location)) } def then_keyword_loc; end @@ -33945,7 +36154,7 @@ class Prism::UnlessNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#18081 + # source://prism//lib/prism/node.rb#18445 sig { override.returns(Symbol) } def type; end @@ -33957,7 +36166,7 @@ class Prism::UnlessNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#18091 + # source://prism//lib/prism/node.rb#18455 def type; end end end @@ -33970,13 +36179,13 @@ end # until foo do bar end # ^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#18103 +# source://prism//lib/prism/node.rb#18479 class Prism::UntilNode < ::Prism::Node # def initialize: (Integer flags, Location keyword_loc, Location? closing_loc, Prism::node predicate, StatementsNode? statements, Location location) -> void # # @return [UntilNode] a new instance of UntilNode # - # source://prism//lib/prism/node.rb#18105 + # source://prism//lib/prism/node.rb#18481 sig do params( source: Prism::Source, @@ -33990,9 +36199,15 @@ class Prism::UntilNode < ::Prism::Node end def initialize(source, flags, keyword_loc, closing_loc, predicate, statements, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#18612 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#18117 + # source://prism//lib/prism/node.rb#18493 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -34000,43 +36215,43 @@ class Prism::UntilNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#18188 + # source://prism//lib/prism/node.rb#18563 sig { returns(T::Boolean) } def begin_modifier?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18126 + # source://prism//lib/prism/node.rb#18502 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#18198 + # source://prism//lib/prism/node.rb#18573 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#18168 + # source://prism//lib/prism/node.rb#18544 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#18139 + # source://prism//lib/prism/node.rb#18515 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#18131 + # source://prism//lib/prism/node.rb#18507 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?keyword_loc: Location, ?closing_loc: Location?, ?predicate: Prism::node, ?statements: StatementsNode?, ?location: Location) -> UntilNode # - # source://prism//lib/prism/node.rb#18144 + # source://prism//lib/prism/node.rb#18520 sig do params( flags: Integer, @@ -34052,49 +36267,49 @@ class Prism::UntilNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18126 + # source://prism//lib/prism/node.rb#18502 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, keyword_loc: Location, closing_loc: Location?, predicate: Prism::node, statements: StatementsNode?, location: Location } # - # source://prism//lib/prism/node.rb#18152 + # source://prism//lib/prism/node.rb#18528 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#18203 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#18578 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#18193 + # source://prism//lib/prism/node.rb#18568 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#18161 + # source://prism//lib/prism/node.rb#18537 sig { returns(Prism::Location) } def keyword_loc; end # attr_reader predicate: Prism::node # - # source://prism//lib/prism/node.rb#18181 + # source://prism//lib/prism/node.rb#18557 sig { returns(Prism::Node) } def predicate; end - # source://prism//lib/prism/node.rb#18121 + # source://prism//lib/prism/node.rb#18497 def set_newline_flag(newline_marked); end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#18184 + # source://prism//lib/prism/node.rb#18560 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -34113,15 +36328,15 @@ class Prism::UntilNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#18234 + # source://prism//lib/prism/node.rb#18596 sig { override.returns(Symbol) } def type; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#18157 + # source://prism//lib/prism/node.rb#18533 sig { returns(Integer) } def flags; end @@ -34133,7 +36348,7 @@ class Prism::UntilNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#18244 + # source://prism//lib/prism/node.rb#18606 def type; end end end @@ -35070,13 +37285,13 @@ end # ^^^^^^^^^ # end # -# source://prism//lib/prism/node.rb#18255 +# source://prism//lib/prism/node.rb#18628 class Prism::WhenNode < ::Prism::Node # def initialize: (Location keyword_loc, Array[Prism::node] conditions, Location? then_keyword_loc, StatementsNode? statements, Location location) -> void # # @return [WhenNode] a new instance of WhenNode # - # source://prism//lib/prism/node.rb#18257 + # source://prism//lib/prism/node.rb#18630 sig do params( source: Prism::Source, @@ -35089,39 +37304,45 @@ class Prism::WhenNode < ::Prism::Node end def initialize(source, keyword_loc, conditions, then_keyword_loc, statements, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#18747 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#18268 + # source://prism//lib/prism/node.rb#18641 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18273 + # source://prism//lib/prism/node.rb#18646 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#18286 + # source://prism//lib/prism/node.rb#18659 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#18278 + # source://prism//lib/prism/node.rb#18651 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader conditions: Array[Prism::node] # - # source://prism//lib/prism/node.rb#18311 + # source://prism//lib/prism/node.rb#18684 sig { returns(T::Array[Prism::Node]) } def conditions; end # def copy: (?keyword_loc: Location, ?conditions: Array[Prism::node], ?then_keyword_loc: Location?, ?statements: StatementsNode?, ?location: Location) -> WhenNode # - # source://prism//lib/prism/node.rb#18291 + # source://prism//lib/prism/node.rb#18664 sig do params( keyword_loc: Prism::Location, @@ -35136,52 +37357,52 @@ class Prism::WhenNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18273 + # source://prism//lib/prism/node.rb#18646 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { keyword_loc: Location, conditions: Array[Prism::node], then_keyword_loc: Location?, statements: StatementsNode?, location: Location } # - # source://prism//lib/prism/node.rb#18299 + # source://prism//lib/prism/node.rb#18672 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#18341 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#18713 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#18331 + # source://prism//lib/prism/node.rb#18703 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#18304 + # source://prism//lib/prism/node.rb#18677 sig { returns(Prism::Location) } def keyword_loc; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#18327 + # source://prism//lib/prism/node.rb#18700 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end # def then_keyword: () -> String? # - # source://prism//lib/prism/node.rb#18336 + # source://prism//lib/prism/node.rb#18708 sig { returns(T.nilable(String)) } def then_keyword; end # attr_reader then_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#18314 + # source://prism//lib/prism/node.rb#18687 sig { returns(T.nilable(Prism::Location)) } def then_keyword_loc; end @@ -35200,7 +37421,7 @@ class Prism::WhenNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#18369 + # source://prism//lib/prism/node.rb#18731 sig { override.returns(Symbol) } def type; end @@ -35212,7 +37433,7 @@ class Prism::WhenNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#18379 + # source://prism//lib/prism/node.rb#18741 def type; end end end @@ -35225,13 +37446,13 @@ end # while foo do bar end # ^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#18391 +# source://prism//lib/prism/node.rb#18764 class Prism::WhileNode < ::Prism::Node # def initialize: (Integer flags, Location keyword_loc, Location? closing_loc, Prism::node predicate, StatementsNode? statements, Location location) -> void # # @return [WhileNode] a new instance of WhileNode # - # source://prism//lib/prism/node.rb#18393 + # source://prism//lib/prism/node.rb#18766 sig do params( source: Prism::Source, @@ -35245,9 +37466,15 @@ class Prism::WhileNode < ::Prism::Node end def initialize(source, flags, keyword_loc, closing_loc, predicate, statements, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#18897 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#18405 + # source://prism//lib/prism/node.rb#18778 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -35255,43 +37482,43 @@ class Prism::WhileNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#18476 + # source://prism//lib/prism/node.rb#18848 sig { returns(T::Boolean) } def begin_modifier?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18414 + # source://prism//lib/prism/node.rb#18787 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#18486 + # source://prism//lib/prism/node.rb#18858 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#18456 + # source://prism//lib/prism/node.rb#18829 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#18427 + # source://prism//lib/prism/node.rb#18800 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#18419 + # source://prism//lib/prism/node.rb#18792 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?keyword_loc: Location, ?closing_loc: Location?, ?predicate: Prism::node, ?statements: StatementsNode?, ?location: Location) -> WhileNode # - # source://prism//lib/prism/node.rb#18432 + # source://prism//lib/prism/node.rb#18805 sig do params( flags: Integer, @@ -35307,49 +37534,49 @@ class Prism::WhileNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18414 + # source://prism//lib/prism/node.rb#18787 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, keyword_loc: Location, closing_loc: Location?, predicate: Prism::node, statements: StatementsNode?, location: Location } # - # source://prism//lib/prism/node.rb#18440 + # source://prism//lib/prism/node.rb#18813 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#18491 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#18863 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#18481 + # source://prism//lib/prism/node.rb#18853 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#18449 + # source://prism//lib/prism/node.rb#18822 sig { returns(Prism::Location) } def keyword_loc; end # attr_reader predicate: Prism::node # - # source://prism//lib/prism/node.rb#18469 + # source://prism//lib/prism/node.rb#18842 sig { returns(Prism::Node) } def predicate; end - # source://prism//lib/prism/node.rb#18409 + # source://prism//lib/prism/node.rb#18782 def set_newline_flag(newline_marked); end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#18472 + # source://prism//lib/prism/node.rb#18845 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -35368,15 +37595,15 @@ class Prism::WhileNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#18522 + # source://prism//lib/prism/node.rb#18881 sig { override.returns(Symbol) } def type; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#18445 + # source://prism//lib/prism/node.rb#18818 sig { returns(Integer) } def flags; end @@ -35388,7 +37615,7 @@ class Prism::WhileNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#18532 + # source://prism//lib/prism/node.rb#18891 def type; end end end @@ -35398,7 +37625,7 @@ end # `foo` # ^^^^^ # -# source://prism//lib/prism/node.rb#18541 +# source://prism//lib/prism/node.rb#18911 class Prism::XStringNode < ::Prism::Node include ::Prism::HeredocQuery @@ -35406,7 +37633,7 @@ class Prism::XStringNode < ::Prism::Node # # @return [XStringNode] a new instance of XStringNode # - # source://prism//lib/prism/node.rb#18543 + # source://prism//lib/prism/node.rb#18913 sig do params( source: Prism::Source, @@ -35420,57 +37647,63 @@ class Prism::XStringNode < ::Prism::Node end def initialize(source, flags, opening_loc, content_loc, closing_loc, unescaped, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#19045 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#18555 + # source://prism//lib/prism/node.rb#18925 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18560 + # source://prism//lib/prism/node.rb#18930 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#18637 + # source://prism//lib/prism/node.rb#19006 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#18606 + # source://prism//lib/prism/node.rb#18976 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#18570 + # source://prism//lib/prism/node.rb#18940 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#18565 + # source://prism//lib/prism/node.rb#18935 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def content: () -> String # - # source://prism//lib/prism/node.rb#18632 + # source://prism//lib/prism/node.rb#19001 sig { returns(String) } def content; end # attr_reader content_loc: Location # - # source://prism//lib/prism/node.rb#18599 + # source://prism//lib/prism/node.rb#18969 sig { returns(Prism::Location) } def content_loc; end # def copy: (?flags: Integer, ?opening_loc: Location, ?content_loc: Location, ?closing_loc: Location, ?unescaped: String, ?location: Location) -> XStringNode # - # source://prism//lib/prism/node.rb#18575 + # source://prism//lib/prism/node.rb#18945 sig do params( flags: Integer, @@ -35486,13 +37719,13 @@ class Prism::XStringNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18560 + # source://prism//lib/prism/node.rb#18930 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # 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#18583 + # source://prism//lib/prism/node.rb#18953 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -35503,7 +37736,7 @@ class Prism::XStringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#18622 + # source://prism//lib/prism/node.rb#18991 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -35511,35 +37744,35 @@ class Prism::XStringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#18617 + # source://prism//lib/prism/node.rb#18986 sig { returns(T::Boolean) } def forced_utf8_encoding?; end sig { returns(T::Boolean) } def heredoc?; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#18642 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#19011 + sig { override.returns(String) } + def inspect; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#18627 + # source://prism//lib/prism/node.rb#18996 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#18592 + # source://prism//lib/prism/node.rb#18962 sig { returns(Prism::Location) } def opening_loc; end # Occasionally it's helpful to treat a string as if it were interpolated so # that there's a consistent interface for working with strings. # - # source://prism//lib/prism/node_ext.rb#72 + # source://prism//lib/prism/node_ext.rb#83 sig { returns(Prism::InterpolatedXStringNode) } def to_interpolated; end @@ -35558,21 +37791,21 @@ class Prism::XStringNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#18667 + # source://prism//lib/prism/node.rb#19029 sig { override.returns(Symbol) } def type; end # attr_reader unescaped: String # - # source://prism//lib/prism/node.rb#18613 + # source://prism//lib/prism/node.rb#18983 sig { returns(String) } def unescaped; end - private + protected - # private attr_reader flags: Integer + # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#18588 + # source://prism//lib/prism/node.rb#18958 sig { returns(Integer) } def flags; end @@ -35584,7 +37817,7 @@ class Prism::XStringNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#18677 + # source://prism//lib/prism/node.rb#19039 def type; end end end @@ -35594,13 +37827,13 @@ end # yield 1 # ^^^^^^^ # -# source://prism//lib/prism/node.rb#18686 +# source://prism//lib/prism/node.rb#19059 class Prism::YieldNode < ::Prism::Node # 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#18688 + # source://prism//lib/prism/node.rb#19061 sig do params( source: Prism::Source, @@ -35613,39 +37846,45 @@ class Prism::YieldNode < ::Prism::Node end def initialize(source, keyword_loc, lparen_loc, arguments, rparen_loc, location); end + # Implements case-equality for the node. This is effectively == but without + # comparing the value of locations. Locations are checked only for presence. + # + # source://prism//lib/prism/node.rb#19192 + def ===(other); end + # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#18699 + # source://prism//lib/prism/node.rb#19072 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#18754 + # source://prism//lib/prism/node.rb#19127 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18704 + # source://prism//lib/prism/node.rb#19077 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#18716 + # source://prism//lib/prism/node.rb#19089 sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end # def compact_child_nodes: () -> Array[Node] # - # source://prism//lib/prism/node.rb#18709 + # source://prism//lib/prism/node.rb#19082 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?keyword_loc: Location, ?lparen_loc: Location?, ?arguments: ArgumentsNode?, ?rparen_loc: Location?, ?location: Location) -> YieldNode # - # source://prism//lib/prism/node.rb#18721 + # source://prism//lib/prism/node.rb#19094 sig do params( keyword_loc: Prism::Location, @@ -35660,58 +37899,58 @@ class Prism::YieldNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18704 + # source://prism//lib/prism/node.rb#19077 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # 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#18729 + # source://prism//lib/prism/node.rb#19102 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end - # def inspect(NodeInspector inspector) -> String + # def inspect -> String # - # source://prism//lib/prism/node.rb#18786 - sig { params(inspector: T.untyped).returns(String) } - def inspect(inspector = T.unsafe(nil)); end + # source://prism//lib/prism/node.rb#19158 + sig { override.returns(String) } + def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#18771 + # source://prism//lib/prism/node.rb#19143 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#18734 + # source://prism//lib/prism/node.rb#19107 sig { returns(Prism::Location) } def keyword_loc; end # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#18776 + # source://prism//lib/prism/node.rb#19148 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#18741 + # source://prism//lib/prism/node.rb#19114 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#18781 + # source://prism//lib/prism/node.rb#19153 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#18757 + # source://prism//lib/prism/node.rb#19130 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -35730,7 +37969,7 @@ class Prism::YieldNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#18814 + # source://prism//lib/prism/node.rb#19176 sig { override.returns(Symbol) } def type; end @@ -35742,13 +37981,7 @@ class Prism::YieldNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#18824 + # source://prism//lib/prism/node.rb#19186 def type; end end end - -# We keep this shim in here because our client libraries might not have -# ruby_parser in their bundle. -class Sexp < ::Array - Elem = type_member { { fixed: T.untyped }} -end diff --git a/sorbet/rbi/gems/pry@0.14.2.rbi b/sorbet/rbi/gems/pry@0.14.2.rbi index 9e2bf024..132a7a0c 100644 --- a/sorbet/rbi/gems/pry@0.14.2.rbi +++ b/sorbet/rbi/gems/pry@0.14.2.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `pry` gem. # Please instead update this file by running `bin/tapioca gem pry`. + # source://pry//lib/pry/core_extensions.rb#115 class BasicObject # Return a binding object for the receiver. diff --git a/sorbet/rbi/gems/psych@5.1.2.rbi b/sorbet/rbi/gems/psych@5.1.2.rbi index 1e4e6e78..db4b64ec 100644 --- a/sorbet/rbi/gems/psych@5.1.2.rbi +++ b/sorbet/rbi/gems/psych@5.1.2.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `psych` gem. # Please instead update this file by running `bin/tapioca gem psych`. + class Object < ::BasicObject include ::Kernel include ::PP::ObjectMixin diff --git a/sorbet/rbi/gems/public_suffix@5.0.5.rbi b/sorbet/rbi/gems/public_suffix@5.0.5.rbi index 49c81c10..0c24f9dc 100644 --- a/sorbet/rbi/gems/public_suffix@5.0.5.rbi +++ b/sorbet/rbi/gems/public_suffix@5.0.5.rbi @@ -4,6 +4,7 @@ # 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 diff --git a/sorbet/rbi/gems/puma@6.4.2.rbi b/sorbet/rbi/gems/puma@6.4.2.rbi index b638f1e8..25878744 100644 --- a/sorbet/rbi/gems/puma@6.4.2.rbi +++ b/sorbet/rbi/gems/puma@6.4.2.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `puma` gem. # Please instead update this file by running `bin/tapioca gem puma`. + # This module is used as an 'include' file in code at bottom of file # # source://puma//lib/puma/detect.rb#7 diff --git a/sorbet/rbi/gems/racc@1.7.3.rbi b/sorbet/rbi/gems/racc@1.8.0.rbi similarity index 66% rename from sorbet/rbi/gems/racc@1.7.3.rbi rename to sorbet/rbi/gems/racc@1.8.0.rbi index ef9b9bf5..5d4f1618 100644 --- a/sorbet/rbi/gems/racc@1.7.3.rbi +++ b/sorbet/rbi/gems/racc@1.8.0.rbi @@ -4,35 +4,36 @@ # This is an autogenerated file for types exported from the `racc` gem. # Please instead update this file by running `bin/tapioca gem racc`. -# source://racc//lib/racc/parser.rb#23 + +# source://racc//lib/racc/parser.rb#19 ParseError = Racc::ParseError # source://racc//lib/racc/info.rb#17 Racc::Copyright = T.let(T.unsafe(nil), String) -# source://racc//lib/racc/parser.rb#188 +# source://racc//lib/racc/parser.rb#184 class Racc::Parser - # source://racc//lib/racc/parser.rb#283 + # source://racc//lib/racc/parser.rb#279 def _racc_do_parse_rb(arg, in_debug); end - # source://racc//lib/racc/parser.rb#483 + # source://racc//lib/racc/parser.rb#479 def _racc_do_reduce(arg, act); end # common # - # source://racc//lib/racc/parser.rb#386 + # source://racc//lib/racc/parser.rb#382 def _racc_evalact(act, arg); end - # source://racc//lib/racc/parser.rb#236 + # source://racc//lib/racc/parser.rb#232 def _racc_init_sysvars; end - # source://racc//lib/racc/parser.rb#224 + # source://racc//lib/racc/parser.rb#220 def _racc_setup; end - # source://racc//lib/racc/parser.rb#333 + # source://racc//lib/racc/parser.rb#329 def _racc_yyparse_rb(recv, mid, arg, c_debug); end - # source://racc//lib/racc/parser.rb#266 + # source://racc//lib/racc/parser.rb#262 def do_parse; end # The method to fetch next token. @@ -46,7 +47,7 @@ class Racc::Parser # # @raise [NotImplementedError] # - # source://racc//lib/racc/parser.rb#279 + # source://racc//lib/racc/parser.rb#275 def next_token; end # This method is called when a parse error is found. @@ -66,88 +67,92 @@ class Racc::Parser # # @raise [ParseError] # - # source://racc//lib/racc/parser.rb#539 + # source://racc//lib/racc/parser.rb#535 def on_error(t, val, vstack); end - # source://racc//lib/racc/parser.rb#588 + # source://racc//lib/racc/parser.rb#584 def racc_accept; end - # source://racc//lib/racc/parser.rb#593 + # source://racc//lib/racc/parser.rb#589 def racc_e_pop(state, tstack, vstack); end - # source://racc//lib/racc/parser.rb#600 + # source://racc//lib/racc/parser.rb#596 def racc_next_state(curstate, state); end - # source://racc//lib/racc/parser.rb#606 + # source://racc//lib/racc/parser.rb#602 def racc_print_stacks(t, v); end - # source://racc//lib/racc/parser.rb#615 + # source://racc//lib/racc/parser.rb#611 def racc_print_states(s); end # For debugging output # - # source://racc//lib/racc/parser.rb#562 + # source://racc//lib/racc/parser.rb#558 def racc_read_token(t, tok, val); end - # source://racc//lib/racc/parser.rb#575 + # source://racc//lib/racc/parser.rb#571 def racc_reduce(toks, sim, tstack, vstack); end - # source://racc//lib/racc/parser.rb#569 + # source://racc//lib/racc/parser.rb#565 def racc_shift(tok, tstack, vstack); end - # source://racc//lib/racc/parser.rb#622 + # source://racc//lib/racc/parser.rb#618 def racc_token2str(tok); end # Convert internal ID of token symbol to the string. # - # source://racc//lib/racc/parser.rb#628 + # source://racc//lib/racc/parser.rb#624 def token_to_str(t); end # Exit parser. # Return value is +Symbol_Value_Stack[0]+. # - # source://racc//lib/racc/parser.rb#552 + # source://racc//lib/racc/parser.rb#548 def yyaccept; end # Leave error recovering mode. # - # source://racc//lib/racc/parser.rb#557 + # source://racc//lib/racc/parser.rb#553 def yyerrok; end # Enter error recovering mode. # This method does not call #on_error. # - # source://racc//lib/racc/parser.rb#546 + # source://racc//lib/racc/parser.rb#542 def yyerror; end - # source://racc//lib/racc/parser.rb#328 + # source://racc//lib/racc/parser.rb#324 def yyparse(recv, mid); end class << self - # source://racc//lib/racc/parser.rb#220 + # source://racc//lib/racc/parser.rb#216 def racc_runtime_type; end end end -# source://racc//lib/racc/parser.rb#209 +# source://racc//lib/racc/parser.rb#205 Racc::Parser::Racc_Main_Parsing_Routine = T.let(T.unsafe(nil), Symbol) -# source://racc//lib/racc/parser.rb#211 +Racc::Parser::Racc_Runtime_Core_Id_C = T.let(T.unsafe(nil), String) + +# source://racc//lib/racc/parser.rb#207 Racc::Parser::Racc_Runtime_Core_Version = T.let(T.unsafe(nil), String) -# source://racc//lib/racc/parser.rb#191 +Racc::Parser::Racc_Runtime_Core_Version_C = T.let(T.unsafe(nil), String) + +# source://racc//lib/racc/parser.rb#187 Racc::Parser::Racc_Runtime_Core_Version_R = T.let(T.unsafe(nil), String) -# source://racc//lib/racc/parser.rb#212 +# source://racc//lib/racc/parser.rb#208 Racc::Parser::Racc_Runtime_Type = T.let(T.unsafe(nil), String) -# source://racc//lib/racc/parser.rb#190 +# source://racc//lib/racc/parser.rb#186 Racc::Parser::Racc_Runtime_Version = T.let(T.unsafe(nil), String) -# source://racc//lib/racc/parser.rb#210 +# source://racc//lib/racc/parser.rb#206 Racc::Parser::Racc_YY_Parse_Method = T.let(T.unsafe(nil), Symbol) -# source://racc//lib/racc/parser.rb#185 +# source://racc//lib/racc/parser.rb#181 Racc::Racc_No_Extensions = T.let(T.unsafe(nil), FalseClass) # source://racc//lib/racc/info.rb#15 diff --git a/sorbet/rbi/gems/rack-proxy@0.7.7.rbi b/sorbet/rbi/gems/rack-proxy@0.7.7.rbi index e055f777..d3ed956f 100644 --- a/sorbet/rbi/gems/rack-proxy@0.7.7.rbi +++ b/sorbet/rbi/gems/rack-proxy@0.7.7.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `rack-proxy` gem. # Please instead update this file by running `bin/tapioca gem rack-proxy`. + # source://rack-proxy//lib/net_http_hacked.rb#19 class Net::HTTP < ::Net::Protocol # Original #request with block semantics. @@ -66,10 +67,10 @@ end # source://rack-proxy//lib/rack/http_streaming_response.rb#4 module Rack class << self - # source://rack/3.0.10/lib/rack/version.rb#31 + # source://rack/3.0.11/lib/rack/version.rb#31 def release; end - # source://rack/3.0.10/lib/rack/version.rb#23 + # source://rack/3.0.11/lib/rack/version.rb#23 def version; end end end diff --git a/sorbet/rbi/gems/rack-session@2.0.0.rbi b/sorbet/rbi/gems/rack-session@2.0.0.rbi index ca5daa29..166e3f82 100644 --- a/sorbet/rbi/gems/rack-session@2.0.0.rbi +++ b/sorbet/rbi/gems/rack-session@2.0.0.rbi @@ -4,13 +4,14 @@ # This is an autogenerated file for types exported from the `rack-session` gem. # Please instead update this file by running `bin/tapioca gem rack-session`. + # source://rack-session//lib/rack/session/constants.rb#7 module Rack class << self - # source://rack/3.0.10/lib/rack/version.rb#31 + # source://rack/3.0.11/lib/rack/version.rb#31 def release; end - # source://rack/3.0.10/lib/rack/version.rb#23 + # source://rack/3.0.11/lib/rack/version.rb#23 def version; end end end diff --git a/sorbet/rbi/gems/rack-test@2.1.0.rbi b/sorbet/rbi/gems/rack-test@2.1.0.rbi index ca2f1f26..7aa9a64b 100644 --- a/sorbet/rbi/gems/rack-test@2.1.0.rbi +++ b/sorbet/rbi/gems/rack-test@2.1.0.rbi @@ -4,13 +4,14 @@ # This is an autogenerated file for types exported from the `rack-test` gem. # Please instead update this file by running `bin/tapioca gem rack-test`. + # source://rack-test//lib/rack/test/cookie_jar.rb#6 module Rack class << self - # source://rack/3.0.10/lib/rack/version.rb#31 + # source://rack/3.0.11/lib/rack/version.rb#31 def release; end - # source://rack/3.0.10/lib/rack/version.rb#23 + # source://rack/3.0.11/lib/rack/version.rb#23 def version; end end end diff --git a/sorbet/rbi/gems/rack@3.0.10.rbi b/sorbet/rbi/gems/rack@3.0.11.rbi similarity index 99% rename from sorbet/rbi/gems/rack@3.0.10.rbi rename to sorbet/rbi/gems/rack@3.0.11.rbi index dcced326..ec33812a 100644 --- a/sorbet/rbi/gems/rack@3.0.10.rbi +++ b/sorbet/rbi/gems/rack@3.0.11.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `rack` gem. # Please instead update this file by running `bin/tapioca gem rack`. + # The Rack main module, serving as a namespace for all core Rack # modules and classes. # @@ -388,7 +389,7 @@ class Rack::BodyProxy # If not already closed, close the wrapped body and # then call the block the proxy was initialized with. # - # source://rack//lib/rack/body_proxy.rb#23 + # source://rack//lib/rack/body_proxy.rb#28 def close; end # Whether the proxy is closed. The proxy starts as not closed, @@ -396,12 +397,12 @@ class Rack::BodyProxy # # @return [Boolean] # - # source://rack//lib/rack/body_proxy.rb#35 + # source://rack//lib/rack/body_proxy.rb#40 def closed?; end # Delegate missing methods to the wrapped body. # - # source://rack//lib/rack/body_proxy.rb#40 + # source://rack//lib/rack/body_proxy.rb#45 def method_missing(method_name, *args, **_arg2, &block); end private diff --git a/sorbet/rbi/gems/rackup@2.1.0.rbi b/sorbet/rbi/gems/rackup@2.1.0.rbi index d4985889..b294042e 100644 --- a/sorbet/rbi/gems/rackup@2.1.0.rbi +++ b/sorbet/rbi/gems/rackup@2.1.0.rbi @@ -4,13 +4,14 @@ # This is an autogenerated file for types exported from the `rackup` gem. # Please instead update this file by running `bin/tapioca gem rackup`. + # source://rackup//lib/rack/handler.rb#8 module Rack class << self - # source://rack/3.0.10/lib/rack/version.rb#31 + # source://rack/3.0.11/lib/rack/version.rb#31 def release; end - # source://rack/3.0.10/lib/rack/version.rb#23 + # source://rack/3.0.11/lib/rack/version.rb#23 def version; end end end diff --git a/sorbet/rbi/gems/rails-controller-testing@1.0.5.rbi b/sorbet/rbi/gems/rails-controller-testing@1.0.5.rbi index 21d07261..a2007d72 100644 --- a/sorbet/rbi/gems/rails-controller-testing@1.0.5.rbi +++ b/sorbet/rbi/gems/rails-controller-testing@1.0.5.rbi @@ -4,73 +4,74 @@ # This is an autogenerated file for types exported from the `rails-controller-testing` gem. # Please instead update this file by running `bin/tapioca gem rails-controller-testing`. + # source://rails-controller-testing//lib/rails/controller/testing/test_process.rb#3 module Rails class << self - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def app_class; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def app_class=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#43 + # source://railties/7.1.3.3/lib/rails.rb#43 def application; end - # source://railties/7.1.3.2/lib/rails.rb#41 + # source://railties/7.1.3.3/lib/rails.rb#41 def application=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#123 + # source://railties/7.1.3.3/lib/rails.rb#123 def autoloaders; end - # source://railties/7.1.3.2/lib/rails.rb#54 + # source://railties/7.1.3.3/lib/rails.rb#54 def backtrace_cleaner; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def cache; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def cache=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#50 + # source://railties/7.1.3.3/lib/rails.rb#50 def configuration; end - # source://railties/7.1.3.2/lib/rails/deprecator.rb#4 + # source://railties/7.1.3.3/lib/rails/deprecator.rb#4 def deprecator; end - # source://railties/7.1.3.2/lib/rails.rb#72 + # source://railties/7.1.3.3/lib/rails.rb#72 def env; end - # source://railties/7.1.3.2/lib/rails.rb#79 + # source://railties/7.1.3.3/lib/rails.rb#79 def env=(environment); end - # source://railties/7.1.3.2/lib/rails.rb#90 + # source://railties/7.1.3.3/lib/rails.rb#90 def error; end - # source://railties/7.1.3.2/lib/rails/gem_version.rb#5 + # source://railties/7.1.3.3/lib/rails/gem_version.rb#5 def gem_version; end - # source://railties/7.1.3.2/lib/rails.rb#103 + # source://railties/7.1.3.3/lib/rails.rb#103 def groups(*groups); end - # source://railties/7.1.3.2/lib/rails.rb#47 + # source://railties/7.1.3.3/lib/rails.rb#47 def initialize!(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2/lib/rails.rb#47 + # source://railties/7.1.3.3/lib/rails.rb#47 def initialized?(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def logger; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def logger=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#119 + # source://railties/7.1.3.3/lib/rails.rb#119 def public_path; end - # source://railties/7.1.3.2/lib/rails.rb#63 + # source://railties/7.1.3.3/lib/rails.rb#63 def root; end - # source://railties/7.1.3.2/lib/rails/version.rb#7 + # source://railties/7.1.3.3/lib/rails/version.rb#7 def version; end end end diff --git a/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi b/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi index bfc73a70..257d101f 100644 --- a/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +++ b/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi @@ -4,73 +4,74 @@ # This is an autogenerated file for types exported from the `rails-dom-testing` gem. # Please instead update this file by running `bin/tapioca gem rails-dom-testing`. + # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#3 module Rails class << self - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def app_class; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def app_class=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#43 + # source://railties/7.1.3.3/lib/rails.rb#43 def application; end - # source://railties/7.1.3.2/lib/rails.rb#41 + # source://railties/7.1.3.3/lib/rails.rb#41 def application=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#123 + # source://railties/7.1.3.3/lib/rails.rb#123 def autoloaders; end - # source://railties/7.1.3.2/lib/rails.rb#54 + # source://railties/7.1.3.3/lib/rails.rb#54 def backtrace_cleaner; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def cache; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def cache=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#50 + # source://railties/7.1.3.3/lib/rails.rb#50 def configuration; end - # source://railties/7.1.3.2/lib/rails/deprecator.rb#4 + # source://railties/7.1.3.3/lib/rails/deprecator.rb#4 def deprecator; end - # source://railties/7.1.3.2/lib/rails.rb#72 + # source://railties/7.1.3.3/lib/rails.rb#72 def env; end - # source://railties/7.1.3.2/lib/rails.rb#79 + # source://railties/7.1.3.3/lib/rails.rb#79 def env=(environment); end - # source://railties/7.1.3.2/lib/rails.rb#90 + # source://railties/7.1.3.3/lib/rails.rb#90 def error; end - # source://railties/7.1.3.2/lib/rails/gem_version.rb#5 + # source://railties/7.1.3.3/lib/rails/gem_version.rb#5 def gem_version; end - # source://railties/7.1.3.2/lib/rails.rb#103 + # source://railties/7.1.3.3/lib/rails.rb#103 def groups(*groups); end - # source://railties/7.1.3.2/lib/rails.rb#47 + # source://railties/7.1.3.3/lib/rails.rb#47 def initialize!(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2/lib/rails.rb#47 + # source://railties/7.1.3.3/lib/rails.rb#47 def initialized?(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def logger; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def logger=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#119 + # source://railties/7.1.3.3/lib/rails.rb#119 def public_path; end - # source://railties/7.1.3.2/lib/rails.rb#63 + # source://railties/7.1.3.3/lib/rails.rb#63 def root; end - # source://railties/7.1.3.2/lib/rails/version.rb#7 + # source://railties/7.1.3.3/lib/rails/version.rb#7 def version; end end end diff --git a/sorbet/rbi/gems/rails-html-sanitizer@1.6.0.rbi b/sorbet/rbi/gems/rails-html-sanitizer@1.6.0.rbi index 6b2ff03d..1f669ed0 100644 --- a/sorbet/rbi/gems/rails-html-sanitizer@1.6.0.rbi +++ b/sorbet/rbi/gems/rails-html-sanitizer@1.6.0.rbi @@ -4,19 +4,20 @@ # This is an autogenerated file for types exported from the `rails-html-sanitizer` gem. # Please instead update this file by running `bin/tapioca gem rails-html-sanitizer`. + # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#14 module ActionView class << self - # source://actionview/7.1.3.2/lib/action_view/deprecator.rb#4 + # source://actionview/7.1.3.3/lib/action_view/deprecator.rb#4 def deprecator; end - # source://actionview/7.1.3.2/lib/action_view.rb#93 + # source://actionview/7.1.3.3/lib/action_view.rb#93 def eager_load!; end - # source://actionview/7.1.3.2/lib/action_view/gem_version.rb#5 + # source://actionview/7.1.3.3/lib/action_view/gem_version.rb#5 def gem_version; end - # source://actionview/7.1.3.2/lib/action_view/version.rb#7 + # source://actionview/7.1.3.3/lib/action_view/version.rb#7 def version; end end end @@ -36,7 +37,7 @@ module ActionView::Helpers mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods class << self - # source://actionview/7.1.3.2/lib/action_view/helpers.rb#35 + # source://actionview/7.1.3.3/lib/action_view/helpers.rb#35 def eager_load!; end end end @@ -45,54 +46,54 @@ end module ActionView::Helpers::SanitizeHelper mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods - # source://actionview/7.1.3.2/lib/action_view/helpers/sanitize_helper.rb#111 + # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#111 def sanitize(html, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2/lib/action_view/helpers/sanitize_helper.rb#116 + # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#116 def sanitize_css(style); end - # source://actionview/7.1.3.2/lib/action_view/helpers/sanitize_helper.rb#12 + # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#12 def sanitizer_vendor; end - # source://actionview/7.1.3.2/lib/action_view/helpers/sanitize_helper.rb#12 + # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#12 def sanitizer_vendor=(val); end - # source://actionview/7.1.3.2/lib/action_view/helpers/sanitize_helper.rb#150 + # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#150 def strip_links(html); end - # source://actionview/7.1.3.2/lib/action_view/helpers/sanitize_helper.rb#133 + # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#133 def strip_tags(html); end class << self - # source://actionview/7.1.3.2/lib/action_view/helpers/sanitize_helper.rb#12 + # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#12 def sanitizer_vendor; end - # source://actionview/7.1.3.2/lib/action_view/helpers/sanitize_helper.rb#12 + # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#12 def sanitizer_vendor=(val); end end end # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#17 module ActionView::Helpers::SanitizeHelper::ClassMethods - # source://actionview/7.1.3.2/lib/action_view/helpers/sanitize_helper.rb#175 + # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#175 def full_sanitizer; end - # source://actionview/7.1.3.2/lib/action_view/helpers/sanitize_helper.rb#155 + # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#155 def full_sanitizer=(_arg0); end - # source://actionview/7.1.3.2/lib/action_view/helpers/sanitize_helper.rb#185 + # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#185 def link_sanitizer; end - # source://actionview/7.1.3.2/lib/action_view/helpers/sanitize_helper.rb#155 + # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#155 def link_sanitizer=(_arg0); end - # source://actionview/7.1.3.2/lib/action_view/helpers/sanitize_helper.rb#195 + # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#195 def safe_list_sanitizer; end - # source://actionview/7.1.3.2/lib/action_view/helpers/sanitize_helper.rb#155 + # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#155 def safe_list_sanitizer=(_arg0); end - # source://actionview/7.1.3.2/lib/action_view/helpers/sanitize_helper.rb#165 + # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#165 def sanitized_allowed_attributes; end # Replaces the allowed HTML attributes for the +sanitize+ helper. @@ -122,7 +123,7 @@ module ActionView::Helpers::SanitizeHelper::ClassMethods # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#48 def sanitized_allowed_protocols=(_); end - # source://actionview/7.1.3.2/lib/action_view/helpers/sanitize_helper.rb#161 + # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#161 def sanitized_allowed_tags; end # Replaces the allowed tags for the +sanitize+ helper. @@ -158,7 +159,7 @@ module ActionView::Helpers::SanitizeHelper::ClassMethods # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#48 def sanitized_uri_attributes=(_); end - # source://actionview/7.1.3.2/lib/action_view/helpers/sanitize_helper.rb#157 + # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#157 def sanitizer_vendor; end private @@ -170,70 +171,70 @@ end # source://rails-html-sanitizer//lib/rails/html/sanitizer/version.rb#3 module Rails class << self - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def app_class; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def app_class=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#43 + # source://railties/7.1.3.3/lib/rails.rb#43 def application; end - # source://railties/7.1.3.2/lib/rails.rb#41 + # source://railties/7.1.3.3/lib/rails.rb#41 def application=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#123 + # source://railties/7.1.3.3/lib/rails.rb#123 def autoloaders; end - # source://railties/7.1.3.2/lib/rails.rb#54 + # source://railties/7.1.3.3/lib/rails.rb#54 def backtrace_cleaner; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def cache; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def cache=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#50 + # source://railties/7.1.3.3/lib/rails.rb#50 def configuration; end - # source://railties/7.1.3.2/lib/rails/deprecator.rb#4 + # source://railties/7.1.3.3/lib/rails/deprecator.rb#4 def deprecator; end - # source://railties/7.1.3.2/lib/rails.rb#72 + # source://railties/7.1.3.3/lib/rails.rb#72 def env; end - # source://railties/7.1.3.2/lib/rails.rb#79 + # source://railties/7.1.3.3/lib/rails.rb#79 def env=(environment); end - # source://railties/7.1.3.2/lib/rails.rb#90 + # source://railties/7.1.3.3/lib/rails.rb#90 def error; end - # source://railties/7.1.3.2/lib/rails/gem_version.rb#5 + # source://railties/7.1.3.3/lib/rails/gem_version.rb#5 def gem_version; end - # source://railties/7.1.3.2/lib/rails.rb#103 + # source://railties/7.1.3.3/lib/rails.rb#103 def groups(*groups); end - # source://railties/7.1.3.2/lib/rails.rb#47 + # source://railties/7.1.3.3/lib/rails.rb#47 def initialize!(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2/lib/rails.rb#47 + # source://railties/7.1.3.3/lib/rails.rb#47 def initialized?(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def logger; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def logger=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#119 + # source://railties/7.1.3.3/lib/rails.rb#119 def public_path; end - # source://railties/7.1.3.2/lib/rails.rb#63 + # source://railties/7.1.3.3/lib/rails.rb#63 def root; end - # source://railties/7.1.3.2/lib/rails/version.rb#7 + # source://railties/7.1.3.3/lib/rails/version.rb#7 def version; end end end diff --git a/sorbet/rbi/gems/rails@7.1.3.2.rbi b/sorbet/rbi/gems/rails@7.1.3.3.rbi similarity index 99% rename from sorbet/rbi/gems/rails@7.1.3.2.rbi rename to sorbet/rbi/gems/rails@7.1.3.3.rbi index a789f591..e414d259 100644 --- a/sorbet/rbi/gems/rails@7.1.3.2.rbi +++ b/sorbet/rbi/gems/rails@7.1.3.3.rbi @@ -4,5 +4,6 @@ # This is an autogenerated file for types exported from the `rails` gem. # Please instead update this file by running `bin/tapioca gem rails`. + # THIS IS AN EMPTY RBI FILE. # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/railties@7.1.3.2.rbi b/sorbet/rbi/gems/railties@7.1.3.3.rbi similarity index 97% rename from sorbet/rbi/gems/railties@7.1.3.2.rbi rename to sorbet/rbi/gems/railties@7.1.3.3.rbi index ef6df401..f388be3d 100644 --- a/sorbet/rbi/gems/railties@7.1.3.2.rbi +++ b/sorbet/rbi/gems/railties@7.1.3.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `railties` gem. # Please instead update this file by running `bin/tapioca gem railties`. + # :include: railties/README.rdoc # # source://railties//lib/rails/gem_version.rb#3 @@ -371,12 +372,6 @@ class Rails::Application < ::Rails::Engine # source://railties//lib/rails/application.rb#548 def helpers_paths; end - # source://importmap-rails/2.0.1/lib/importmap/engine.rb#4 - def importmap; end - - # source://importmap-rails/2.0.1/lib/importmap/engine.rb#4 - def importmap=(_arg0); end - # Initialize the application passing the given group. By default, the # group is :default # @@ -1458,10 +1453,10 @@ class Rails::Application::RoutesReloader # source://railties//lib/rails/application/routes_reloader.rb#15 def initialize; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end # Returns the value of attribute eager_load. @@ -1527,13 +1522,13 @@ class Rails::Application::RoutesReloader def updater; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end end end @@ -1542,11 +1537,9 @@ end class Rails::ApplicationController < ::ActionController::Base private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end - # source://railties//lib/rails/application_controller.rb#25 def disable_content_security_policy_nonce!; end @@ -1559,16 +1552,16 @@ class Rails::ApplicationController < ::ActionController::Base def require_local!; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#211 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#211 def _layout; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#212 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#212 def _layout_conditions; end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2182,16 +2175,16 @@ class Rails::Engine < ::Rails::Railtie # source://railties//lib/rails/engine.rb#439 def initialize; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _load_seed_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_load_seed_callbacks(&block); end # Returns the underlying Rack application for this engine. @@ -2339,19 +2332,19 @@ class Rails::Engine < ::Rails::Railtie def load_config_initializer(initializer); end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _load_seed_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _load_seed_callbacks=(value); end # Returns the value of attribute called_from. @@ -2607,11 +2600,9 @@ class Rails::HealthController < ::ActionController::Base private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - def _layout_from_proc; end - # source://railties//lib/rails/health_controller.rb#51 def html_status(color:); end @@ -2622,10 +2613,10 @@ class Rails::HealthController < ::ActionController::Base def render_up; end class << self - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end - # source://activesupport/7.1.3.2/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -2676,7 +2667,7 @@ class Rails::InfoController < ::Rails::ApplicationController private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end # source://railties//lib/rails/info_controller.rb#8 @@ -2686,16 +2677,16 @@ class Rails::InfoController < ::Rails::ApplicationController def matching_routes(query:, exact_match:); end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#211 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#211 def _layout; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#212 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#212 def _layout_conditions; end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2803,7 +2794,7 @@ class Rails::MailersController < ::Rails::ApplicationController private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end # source://railties//lib/rails/mailers_controller.rb#90 @@ -2830,13 +2821,13 @@ class Rails::MailersController < ::Rails::ApplicationController def show_previews?; end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 def _helper_methods; end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2845,15 +2836,6 @@ end module Rails::MailersController::HelperMethods include ::ActionText::ContentHelper include ::ActionText::TagHelper - include ::Importmap::ImportmapTagsHelper - include ::Turbo::DriveHelper - include ::Turbo::FramesHelper - include ::Turbo::IncludesHelper - include ::Turbo::StreamsHelper - include ::ActionView::Helpers::CaptureHelper - include ::ActionView::Helpers::OutputSafetyHelper - include ::ActionView::Helpers::TagHelper - include ::Turbo::Streams::ActionHelper include ::InertiaRails::Helper include ::Hotwire::Livereload::LivereloadTagsHelper include ::ViteRails::TagHelpers @@ -3933,20 +3915,20 @@ class Rails::WelcomeController < ::Rails::ApplicationController private - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#211 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#211 def _layout; end - # source://actionview/7.1.3.2/lib/action_view/layouts.rb#212 + # source://actionview/7.1.3.3/lib/action_view/layouts.rb#212 def _layout_conditions; end - # source://actionpack/7.1.3.2/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 def middleware_stack; end end end diff --git a/sorbet/rbi/gems/rainbow@3.1.1.rbi b/sorbet/rbi/gems/rainbow@3.1.1.rbi index 87f4c33e..d02bc048 100644 --- a/sorbet/rbi/gems/rainbow@3.1.1.rbi +++ b/sorbet/rbi/gems/rainbow@3.1.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `rainbow` gem. # Please instead update this file by running `bin/tapioca gem rainbow`. + class Object < ::BasicObject include ::Kernel include ::PP::ObjectMixin diff --git a/sorbet/rbi/gems/rake@13.2.1.rbi b/sorbet/rbi/gems/rake@13.2.1.rbi index f29e47fe..cfed2dc7 100644 --- a/sorbet/rbi/gems/rake@13.2.1.rbi +++ b/sorbet/rbi/gems/rake@13.2.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `rake` gem. # Please instead update this file by running `bin/tapioca gem rake`. + # :stopdoc: # # Some top level Constants. diff --git a/sorbet/rbi/gems/rb-fsevent@0.11.2.rbi b/sorbet/rbi/gems/rb-fsevent@0.11.2.rbi index adc6c50a..529b1b2f 100644 --- a/sorbet/rbi/gems/rb-fsevent@0.11.2.rbi +++ b/sorbet/rbi/gems/rb-fsevent@0.11.2.rbi @@ -4,5 +4,6 @@ # This is an autogenerated file for types exported from the `rb-fsevent` gem. # Please instead update this file by running `bin/tapioca gem rb-fsevent`. + # THIS IS AN EMPTY RBI FILE. # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/rb-inotify@0.10.1.rbi b/sorbet/rbi/gems/rb-inotify@0.11.1.rbi similarity index 99% rename from sorbet/rbi/gems/rb-inotify@0.10.1.rbi rename to sorbet/rbi/gems/rb-inotify@0.11.1.rbi index 1b1214d1..18f3c2f6 100644 --- a/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +++ b/sorbet/rbi/gems/rb-inotify@0.11.1.rbi @@ -4,5 +4,6 @@ # This is an autogenerated file for types exported from the `rb-inotify` gem. # Please instead update this file by running `bin/tapioca gem rb-inotify`. + # THIS IS AN EMPTY RBI FILE. # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/rbi@0.1.11.rbi b/sorbet/rbi/gems/rbi@0.1.13.rbi similarity index 98% rename from sorbet/rbi/gems/rbi@0.1.11.rbi rename to sorbet/rbi/gems/rbi@0.1.13.rbi index f97e31fb..78d161be 100644 --- a/sorbet/rbi/gems/rbi@0.1.11.rbi +++ b/sorbet/rbi/gems/rbi@0.1.13.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `rbi` gem. # Please instead update this file by running `bin/tapioca gem rbi`. + # source://rbi//lib/rbi/loc.rb#4 module RBI; end @@ -1944,7 +1945,7 @@ class RBI::Rewriters::Merge::Conflict < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -2161,7 +2162,7 @@ class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -2798,7 +2799,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.13.3/lib/tapioca/rbi_ext/model.rb#38 + # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#38 sig do params( name: ::String, @@ -2808,19 +2809,19 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_class(name, superclass_name: T.unsafe(nil), &block); end - # source://tapioca/0.13.3/lib/tapioca/rbi_ext/model.rb#45 + # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#45 sig { params(name: ::String, value: ::String).void } def create_constant(name, value:); end - # source://tapioca/0.13.3/lib/tapioca/rbi_ext/model.rb#55 + # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#55 sig { params(name: ::String).void } def create_extend(name); end - # source://tapioca/0.13.3/lib/tapioca/rbi_ext/model.rb#50 + # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#50 sig { params(name: ::String).void } def create_include(name); end - # source://tapioca/0.13.3/lib/tapioca/rbi_ext/model.rb#89 + # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#89 sig do params( name: ::String, @@ -2833,7 +2834,7 @@ 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.13.3/lib/tapioca/rbi_ext/model.rb#113 + # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#113 sig do params( name: ::String, @@ -2846,23 +2847,29 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_method_with_sigs(name, sigs:, parameters: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://tapioca/0.13.3/lib/tapioca/rbi_ext/model.rb#60 + # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#60 sig { params(name: ::String).void } def create_mixes_in_class_methods(name); end - # source://tapioca/0.13.3/lib/tapioca/rbi_ext/model.rb#25 + # source://tapioca/0.14.2/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.13.3/lib/tapioca/rbi_ext/model.rb#9 + # source://tapioca/0.14.2/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.13.3/lib/tapioca/rbi_ext/model.rb#134 - sig { params(parameters: T::Hash[T.any(::String, ::Symbol), ::String], return_type: ::String).returns(::RBI::Sig) } - def create_sig(parameters:, return_type: T.unsafe(nil)); end + # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#135 + sig do + params( + parameters: T::Hash[T.any(::String, ::Symbol), ::String], + type_parameters: T::Array[::String], + return_type: ::String + ).returns(::RBI::Sig) + end + def create_sig(parameters:, type_parameters: T.unsafe(nil), return_type: T.unsafe(nil)); end - # source://tapioca/0.13.3/lib/tapioca/rbi_ext/model.rb#74 + # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#74 sig do params( name: ::String, @@ -2928,11 +2935,11 @@ class RBI::Tree < ::RBI::NodeWithComments private - # source://tapioca/0.13.3/lib/tapioca/rbi_ext/model.rb#149 + # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#150 sig { params(node: ::RBI::Node).returns(::RBI::Node) } def create_node(node); end - # source://tapioca/0.13.3/lib/tapioca/rbi_ext/model.rb#144 + # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#145 sig { returns(T::Hash[::String, ::RBI::Node]) } def nodes_cache; end end diff --git a/sorbet/rbi/gems/rdoc@6.6.3.1.rbi b/sorbet/rbi/gems/rdoc@6.6.3.1.rbi index 130ee1a6..a9abe898 100644 --- a/sorbet/rbi/gems/rdoc@6.6.3.1.rbi +++ b/sorbet/rbi/gems/rdoc@6.6.3.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `rdoc` gem. # Please instead update this file by running `bin/tapioca gem rdoc`. + module ERB::Escape private @@ -64,8 +65,6 @@ end # * The Ruby parser in rdoc/parse.rb is based heavily on the outstanding # work of Keiju ISHITSUKA of Nippon Rational Inc, who produced the Ruby # parser for irb and the rtags package. -# -# source://rdoc//lib/rdoc.rb#58 module RDoc class << self # Seaches and returns the directory for settings. @@ -78,12 +77,12 @@ module RDoc # Other than the home directory, the containing directory will be # created automatically. # - # source://rdoc//lib/rdoc.rb#134 + # source://rdoc//rdoc.rb#134 def home; end # Loads the best available YAML library. # - # source://rdoc//lib/rdoc.rb#107 + # source://rdoc//rdoc.rb#107 def load_yaml; end end end @@ -93,97 +92,93 @@ end # -- # TODO implement Alias as a proxy to a method/attribute, inheriting from # MethodAttr -# -# source://rdoc//lib/rdoc/alias.rb#9 class RDoc::Alias < ::RDoc::CodeObject # Creates a new Alias with a token stream of +text+ that aliases +old_name+ # to +new_name+, has +comment+ and is a +singleton+ context. # # @return [Alias] a new instance of Alias # - # source://rdoc//lib/rdoc/alias.rb#37 + # source://rdoc//rdoc/alias.rb#37 def initialize(text, old_name, new_name, comment, singleton = T.unsafe(nil)); end # Order by #singleton then #new_name # - # source://rdoc//lib/rdoc/alias.rb#50 + # source://rdoc//rdoc/alias.rb#50 def <=>(other); end # HTML fragment reference for this alias # - # source://rdoc//lib/rdoc/alias.rb#57 + # source://rdoc//rdoc/alias.rb#57 def aref; end # Full old name including namespace # - # source://rdoc//lib/rdoc/alias.rb#65 + # source://rdoc//rdoc/alias.rb#65 def full_old_name; end # HTML id-friendly version of +#new_name+. # - # source://rdoc//lib/rdoc/alias.rb#72 + # source://rdoc//rdoc/alias.rb#72 def html_name; end - # source://rdoc//lib/rdoc/alias.rb#76 + # source://rdoc//rdoc/alias.rb#76 def inspect; end # Aliased method's name # - # source://rdoc//lib/rdoc/alias.rb#14 + # source://rdoc//rdoc/alias.rb#14 def name; end # '::' for the alias of a singleton method/attribute, '#' for instance-level. # - # source://rdoc//lib/rdoc/alias.rb#87 + # source://rdoc//rdoc/alias.rb#87 def name_prefix; end # Aliased method's name # - # source://rdoc//lib/rdoc/alias.rb#14 + # source://rdoc//rdoc/alias.rb#14 def new_name; end # Aliasee method's name # - # source://rdoc//lib/rdoc/alias.rb#21 + # source://rdoc//rdoc/alias.rb#21 def old_name; end # New name with prefix '::' or '#'. # - # source://rdoc//lib/rdoc/alias.rb#101 + # source://rdoc//rdoc/alias.rb#101 def pretty_name; end # New name with prefix '::' or '#'. # - # source://rdoc//lib/rdoc/alias.rb#101 + # source://rdoc//rdoc/alias.rb#101 def pretty_new_name; end # Old name with prefix '::' or '#'. # - # source://rdoc//lib/rdoc/alias.rb#94 + # source://rdoc//rdoc/alias.rb#94 def pretty_old_name; end # Is this an alias declared in a singleton context? # - # source://rdoc//lib/rdoc/alias.rb#26 + # source://rdoc//rdoc/alias.rb#26 def singleton; end # Is this an alias declared in a singleton context? # - # source://rdoc//lib/rdoc/alias.rb#26 + # source://rdoc//rdoc/alias.rb#26 def singleton=(_arg0); end # Source file token stream # - # source://rdoc//lib/rdoc/alias.rb#31 + # source://rdoc//rdoc/alias.rb#31 def text; end - # source://rdoc//lib/rdoc/alias.rb#107 + # source://rdoc//rdoc/alias.rb#107 def to_s; end end # AnyMethod is the base class for objects representing methods -# -# source://rdoc//lib/rdoc/any_method.rb#5 class RDoc::AnyMethod < ::RDoc::MethodAttr include ::RDoc::TokenStream @@ -191,39 +186,39 @@ class RDoc::AnyMethod < ::RDoc::MethodAttr # # @return [AnyMethod] a new instance of AnyMethod # - # source://rdoc//lib/rdoc/any_method.rb#46 + # source://rdoc//rdoc/any_method.rb#46 def initialize(text, name); end # Adds +an_alias+ as an alias for this method in +context+. # - # source://rdoc//lib/rdoc/any_method.rb#59 + # source://rdoc//rdoc/any_method.rb#59 def add_alias(an_alias, context = T.unsafe(nil)); end # Prefix for +aref+ is 'method'. # - # source://rdoc//lib/rdoc/any_method.rb#76 + # source://rdoc//rdoc/any_method.rb#76 def aref_prefix; end # The call_seq or the param_seq with method name, if there is no call_seq. # # Use this for displaying a method's argument lists. # - # source://rdoc//lib/rdoc/any_method.rb#85 + # source://rdoc//rdoc/any_method.rb#85 def arglists; end # The C function that implements this method (if it was defined in a C file) # - # source://rdoc//lib/rdoc/any_method.rb#27 + # source://rdoc//rdoc/any_method.rb#27 def c_function; end # The C function that implements this method (if it was defined in a C file) # - # source://rdoc//lib/rdoc/any_method.rb#27 + # source://rdoc//rdoc/any_method.rb#27 def c_function=(_arg0); end # Different ways to call this method # - # source://rdoc//lib/rdoc/any_method.rb#96 + # source://rdoc//rdoc/any_method.rb#96 def call_seq; end # Sets the different ways you can call this method. If an empty +call_seq+ @@ -231,45 +226,45 @@ class RDoc::AnyMethod < ::RDoc::MethodAttr # # See also #param_seq # - # source://rdoc//lib/rdoc/any_method.rb#112 + # source://rdoc//rdoc/any_method.rb#112 def call_seq=(call_seq); end # If true this method uses +super+ to call a superclass version # - # source://rdoc//lib/rdoc/any_method.rb#39 + # source://rdoc//rdoc/any_method.rb#39 def calls_super; end # If true this method uses +super+ to call a superclass version # - # source://rdoc//lib/rdoc/any_method.rb#39 + # source://rdoc//rdoc/any_method.rb#39 def calls_super=(_arg0); end # Don't rename \#initialize to \::new # - # source://rdoc//lib/rdoc/any_method.rb#22 + # source://rdoc//rdoc/any_method.rb#22 def dont_rename_initialize; end # Don't rename \#initialize to \::new # - # source://rdoc//lib/rdoc/any_method.rb#22 + # source://rdoc//rdoc/any_method.rb#22 def dont_rename_initialize=(_arg0); end # Whether the method has a call-seq. # # @return [Boolean] # - # source://rdoc//lib/rdoc/any_method.rb#121 + # source://rdoc//rdoc/any_method.rb#121 def has_call_seq?; end # Loads is_alias_for from the internal name. Returns nil if the alias # cannot be found. # - # source://rdoc//lib/rdoc/any_method.rb#129 + # source://rdoc//rdoc/any_method.rb#129 def is_alias_for; end # Dumps this AnyMethod for use by ri. See also #marshal_load # - # source://rdoc//lib/rdoc/any_method.rb#147 + # source://rdoc//rdoc/any_method.rb#147 def marshal_dump; end # Loads this AnyMethod from +array+. For a loaded AnyMethod the following @@ -278,46 +273,46 @@ class RDoc::AnyMethod < ::RDoc::MethodAttr # * #full_name # * #parent_name # - # source://rdoc//lib/rdoc/any_method.rb#184 + # source://rdoc//rdoc/any_method.rb#184 def marshal_load(array); end # Method name # # If the method has no assigned name, it extracts it from #call_seq. # - # source://rdoc//lib/rdoc/any_method.rb#233 + # source://rdoc//rdoc/any_method.rb#233 def name; end # A list of this method's method and yield parameters. +call-seq+ params # are preferred over parsed method and block params. # - # source://rdoc//lib/rdoc/any_method.rb#246 + # source://rdoc//rdoc/any_method.rb#246 def param_list; end # Pretty parameter list for this method. If the method's parameters were # given by +call-seq+ it is preferred over the parsed values. # - # source://rdoc//lib/rdoc/any_method.rb#278 + # source://rdoc//rdoc/any_method.rb#278 def param_seq; end # Parameters for this method # - # source://rdoc//lib/rdoc/any_method.rb#34 + # source://rdoc//rdoc/any_method.rb#34 def params; end # Parameters for this method # - # source://rdoc//lib/rdoc/any_method.rb#34 + # source://rdoc//rdoc/any_method.rb#34 def params=(_arg0); end # The section title of the method (if defined in a C file via +:category:+) # - # source://rdoc//lib/rdoc/any_method.rb#30 + # source://rdoc//rdoc/any_method.rb#30 def section_title; end # The section title of the method (if defined in a C file via +:category:+) # - # source://rdoc//lib/rdoc/any_method.rb#30 + # source://rdoc//rdoc/any_method.rb#30 def section_title=(_arg0); end # Whether to skip the method description, true for methods that have @@ -325,24 +320,24 @@ class RDoc::AnyMethod < ::RDoc::MethodAttr # # @return [Boolean] # - # source://rdoc//lib/rdoc/any_method.rb#310 + # source://rdoc//rdoc/any_method.rb#310 def skip_description?; end # Sets the store for this method and its referenced code objects. # - # source://rdoc//lib/rdoc/any_method.rb#317 + # source://rdoc//rdoc/any_method.rb#317 def store=(store); end # For methods that +super+, find the superclass method that would be called. # - # source://rdoc//lib/rdoc/any_method.rb#326 + # source://rdoc//rdoc/any_method.rb#326 def superclass_method; end protected # call_seq without deduplication and alias lookup. # - # source://rdoc//lib/rdoc/any_method.rb#345 + # source://rdoc//rdoc/any_method.rb#345 def _call_seq; end private @@ -350,36 +345,34 @@ class RDoc::AnyMethod < ::RDoc::MethodAttr # call_seq with alias examples information removed, if this # method is an alias method. # - # source://rdoc//lib/rdoc/any_method.rb#355 + # source://rdoc//rdoc/any_method.rb#355 def deduplicate_call_seq(call_seq); end end # An attribute created by \#attr, \#attr_reader, \#attr_writer or # \#attr_accessor -# -# source://rdoc//lib/rdoc/attr.rb#6 class RDoc::Attr < ::RDoc::MethodAttr # Creates a new Attr with body +text+, +name+, read/write status +rw+ and # +comment+. +singleton+ marks this as a class attribute. # # @return [Attr] a new instance of Attr # - # source://rdoc//lib/rdoc/attr.rb#25 + # source://rdoc//rdoc/attr.rb#25 def initialize(text, name, rw, comment, singleton = T.unsafe(nil)); end # Attributes are equal when their names, singleton and rw are identical # - # source://rdoc//lib/rdoc/attr.rb#36 + # source://rdoc//rdoc/attr.rb#36 def ==(other); end # Add +an_alias+ as an attribute in +context+. # - # source://rdoc//lib/rdoc/attr.rb#46 + # source://rdoc//rdoc/attr.rb#46 def add_alias(an_alias, context); end # The #aref prefix for attributes # - # source://rdoc//lib/rdoc/attr.rb#61 + # source://rdoc//rdoc/attr.rb#61 def aref_prefix; end # Attributes never call super. See RDoc::AnyMethod#calls_super @@ -387,20 +380,20 @@ class RDoc::Attr < ::RDoc::MethodAttr # An RDoc::Attr can show up in the method list in some situations (see # Gem::ConfigFile) # - # source://rdoc//lib/rdoc/attr.rb#71 + # source://rdoc//rdoc/attr.rb#71 def calls_super; end # Returns attr_reader, attr_writer or attr_accessor as appropriate. # - # source://rdoc//lib/rdoc/attr.rb#78 + # source://rdoc//rdoc/attr.rb#78 def definition; end - # source://rdoc//lib/rdoc/attr.rb#86 + # source://rdoc//rdoc/attr.rb#86 def inspect; end # Dumps this Attr for use by ri. See also #marshal_load # - # source://rdoc//lib/rdoc/attr.rb#102 + # source://rdoc//rdoc/attr.rb#102 def marshal_dump; end # Loads this Attr from +array+. For a loaded Attr the following @@ -409,23 +402,23 @@ class RDoc::Attr < ::RDoc::MethodAttr # * #full_name # * #parent_name # - # source://rdoc//lib/rdoc/attr.rb#124 + # source://rdoc//rdoc/attr.rb#124 def marshal_load(array); end - # source://rdoc//lib/rdoc/attr.rb#151 + # source://rdoc//rdoc/attr.rb#151 def pretty_print(q); end # Is the attribute readable ('R'), writable ('W') or both ('RW')? # - # source://rdoc//lib/rdoc/attr.rb#19 + # source://rdoc//rdoc/attr.rb#19 def rw; end # Is the attribute readable ('R'), writable ('W') or both ('RW')? # - # source://rdoc//lib/rdoc/attr.rb#19 + # source://rdoc//rdoc/attr.rb#19 def rw=(_arg0); end - # source://rdoc//lib/rdoc/attr.rb#162 + # source://rdoc//rdoc/attr.rb#162 def to_s; end # Attributes do not have token streams. @@ -433,14 +426,12 @@ class RDoc::Attr < ::RDoc::MethodAttr # An RDoc::Attr can show up in the method list in some situations (see # Gem::ConfigFile) # - # source://rdoc//lib/rdoc/attr.rb#172 + # source://rdoc//rdoc/attr.rb#172 def token_stream; end end # ClassModule is the base class for objects representing either a class or a # module. -# -# source://rdoc//lib/rdoc/class_module.rb#6 class RDoc::ClassModule < ::RDoc::Context # Creates a new ClassModule with +name+ with optional +superclass+ # @@ -448,17 +439,17 @@ class RDoc::ClassModule < ::RDoc::Context # # @return [ClassModule] a new instance of ClassModule # - # source://rdoc//lib/rdoc/class_module.rb#111 + # source://rdoc//rdoc/class_module.rb#111 def initialize(name, superclass = T.unsafe(nil)); end # Adds +comment+ to this ClassModule's list of comments at +location+. This # method is preferred over #comment= since it allows ri data to be updated # across multiple runs. # - # source://rdoc//lib/rdoc/class_module.rb#127 + # source://rdoc//rdoc/class_module.rb#127 def add_comment(comment, location); end - # source://rdoc//lib/rdoc/class_module.rb#148 + # source://rdoc//rdoc/class_module.rb#148 def add_things(my_things, other_things); end # Ancestors list for this ClassModule: the list of included modules @@ -472,23 +463,23 @@ class RDoc::ClassModule < ::RDoc::Context # which is the order suitable for searching methods/attributes # in the ancestors. The superclass, if any, comes last. # - # source://rdoc//lib/rdoc/class_module.rb#171 + # source://rdoc//rdoc/class_module.rb#171 def ancestors; end # HTML fragment reference for this module or class. See # RDoc::NormalClass#aref and RDoc::NormalModule#aref # - # source://rdoc//lib/rdoc/class_module.rb#183 + # source://rdoc//rdoc/class_module.rb#183 def aref; end # @raise [NotImplementedError] # - # source://rdoc//lib/rdoc/class_module.rb#175 + # source://rdoc//rdoc/class_module.rb#175 def aref_prefix; end # Clears the comment. Used by the Ruby parser. # - # source://rdoc//lib/rdoc/class_module.rb#195 + # source://rdoc//rdoc/class_module.rb#195 def clear_comment; end # This method is deprecated, use #add_comment instead. @@ -496,45 +487,45 @@ class RDoc::ClassModule < ::RDoc::Context # Appends +comment+ to the current comment, but separated by a rule. Works # more like +=. # - # source://rdoc//lib/rdoc/class_module.rb#205 + # source://rdoc//rdoc/class_module.rb#205 def comment=(comment); end # Comment and the location it came from. Use #add_comment to add comments # - # source://rdoc//lib/rdoc/class_module.rb#35 + # source://rdoc//rdoc/class_module.rb#35 def comment_location; end # Comment and the location it came from. Use #add_comment to add comments # - # source://rdoc//lib/rdoc/class_module.rb#35 + # source://rdoc//rdoc/class_module.rb#35 def comment_location=(_arg0); end # Prepares this ClassModule for use by a generator. # # See RDoc::Store#complete # - # source://rdoc//lib/rdoc/class_module.rb#223 + # source://rdoc//rdoc/class_module.rb#223 def complete(min_visibility); end # Constants that are aliases for this class or module # - # source://rdoc//lib/rdoc/class_module.rb#30 + # source://rdoc//rdoc/class_module.rb#30 def constant_aliases; end # Constants that are aliases for this class or module # - # source://rdoc//lib/rdoc/class_module.rb#30 + # source://rdoc//rdoc/class_module.rb#30 def constant_aliases=(_arg0); end # Handy wrapper for marking up this class or module's comment # - # source://rdoc//lib/rdoc/generator/markup.rb#131 + # source://rdoc//rdoc/generator/markup.rb#131 def description; end - # source://rdoc//lib/rdoc/class_module.rb#37 + # source://rdoc//rdoc/class_module.rb#37 def diagram; end - # source://rdoc//lib/rdoc/class_module.rb#37 + # source://rdoc//rdoc/class_module.rb#37 def diagram=(_arg0); end # Ancestors list for this ClassModule: the list of included modules @@ -550,12 +541,12 @@ class RDoc::ClassModule < ::RDoc::Context # # Ancestors of this class or module only # - # source://rdoc//lib/rdoc/class_module.rb#171 + # source://rdoc//rdoc/class_module.rb#171 def direct_ancestors; end # Does this ClassModule or any of its methods have document_self set? # - # source://rdoc//lib/rdoc/class_module.rb#233 + # source://rdoc//rdoc/class_module.rb#233 def document_self_or_methods; end # Does this class or module have a comment with content or is @@ -563,53 +554,53 @@ class RDoc::ClassModule < ::RDoc::Context # # @return [Boolean] # - # source://rdoc//lib/rdoc/class_module.rb#241 + # source://rdoc//rdoc/class_module.rb#241 def documented?; end # Iterates the ancestors of this class or module for which an # RDoc::ClassModule exists. # - # source://rdoc//lib/rdoc/class_module.rb#251 + # source://rdoc//rdoc/class_module.rb#251 def each_ancestor; end # Looks for a symbol in the #ancestors. See Context#find_local_symbol. # - # source://rdoc//lib/rdoc/class_module.rb#264 + # source://rdoc//rdoc/class_module.rb#264 def find_ancestor_local_symbol(symbol); end # Finds a class or module with +name+ in this namespace or its descendants # - # source://rdoc//lib/rdoc/class_module.rb#276 + # source://rdoc//rdoc/class_module.rb#276 def find_class_named(name); end # Return the fully qualified name of this class or module # - # source://rdoc//lib/rdoc/class_module.rb#289 + # source://rdoc//rdoc/class_module.rb#289 def full_name; end # Class or module this constant is an alias for # - # source://rdoc//lib/rdoc/class_module.rb#42 + # source://rdoc//rdoc/class_module.rb#42 def is_alias_for; end # Class or module this constant is an alias for # - # source://rdoc//lib/rdoc/class_module.rb#42 + # source://rdoc//rdoc/class_module.rb#42 def is_alias_for=(_arg0); end # TODO: filter included items by #display? # - # source://rdoc//lib/rdoc/class_module.rb#300 + # source://rdoc//rdoc/class_module.rb#300 def marshal_dump; end - # source://rdoc//lib/rdoc/class_module.rb#346 + # source://rdoc//rdoc/class_module.rb#346 def marshal_load(array); end # Merges +class_module+ into this ClassModule. # # The data in +class_module+ is preferred over the receiver. # - # source://rdoc//lib/rdoc/class_module.rb#435 + # source://rdoc//rdoc/class_module.rb#435 def merge(class_module); end # Merges collection +mine+ with +other+ preferring other. +other_files+ is @@ -626,52 +617,52 @@ class RDoc::ClassModule < ::RDoc::Context # end # end # - # source://rdoc//lib/rdoc/class_module.rb#519 + # source://rdoc//rdoc/class_module.rb#519 def merge_collections(mine, other, other_files, &block); end # Merges the comments in this ClassModule with the comments in the other # ClassModule +cm+. # - # source://rdoc//lib/rdoc/class_module.rb#531 + # source://rdoc//rdoc/class_module.rb#531 def merge_sections(cm); end # Does this object represent a module? # # @return [Boolean] # - # source://rdoc//lib/rdoc/class_module.rb#570 + # source://rdoc//rdoc/class_module.rb#570 def module?; end # Allows overriding the initial name. # # Used for modules and classes that are constant aliases. # - # source://rdoc//lib/rdoc/class_module.rb#579 + # source://rdoc//rdoc/class_module.rb#579 def name=(new_name); end # Name to use to generate the url: # modules and classes that are aliases for another # module or class return the name of the latter. # - # source://rdoc//lib/rdoc/class_module.rb#622 + # source://rdoc//rdoc/class_module.rb#622 def name_for_path; end # Returns the classes and modules that are not constants # aliasing another class or module. For use by formatters # only (caches its result). # - # source://rdoc//lib/rdoc/class_module.rb#631 + # source://rdoc//rdoc/class_module.rb#631 def non_aliases; end # Parses +comment_location+ into an RDoc::Markup::Document composed of # multiple RDoc::Markup::Documents with their file set. # - # source://rdoc//lib/rdoc/class_module.rb#587 + # source://rdoc//rdoc/class_module.rb#587 def parse(comment_location); end # Path to this class or module for use with HTML generator output. # - # source://rdoc//lib/rdoc/class_module.rb#613 + # source://rdoc//rdoc/class_module.rb#613 def path; end # Updates the child modules or classes of class/module +parent+ by @@ -681,41 +672,41 @@ class RDoc::ClassModule < ::RDoc::Context # parent.classes_hash and +all_hash+ is ::all_modules_hash or # ::all_classes_hash. # - # source://rdoc//lib/rdoc/class_module.rb#643 + # source://rdoc//rdoc/class_module.rb#643 def remove_nodoc_children; end - # source://rdoc//lib/rdoc/class_module.rb#657 + # source://rdoc//rdoc/class_module.rb#657 def remove_things(my_things, other_files); end # Search record used by RDoc::Generator::JsonIndex # - # source://rdoc//lib/rdoc/class_module.rb#672 + # source://rdoc//rdoc/class_module.rb#672 def search_record; end # Sets the store for this class or module and its contained code objects. # - # source://rdoc//lib/rdoc/class_module.rb#687 + # source://rdoc//rdoc/class_module.rb#687 def store=(store); end # Get the superclass of this class. Attempts to retrieve the superclass # object, returns the name if it is not known. # - # source://rdoc//lib/rdoc/class_module.rb#701 + # source://rdoc//rdoc/class_module.rb#701 def superclass; end # Set the superclass of this class to +superclass+ # # @raise [NoMethodError] # - # source://rdoc//lib/rdoc/class_module.rb#708 + # source://rdoc//rdoc/class_module.rb#708 def superclass=(superclass); end - # source://rdoc//lib/rdoc/class_module.rb#713 + # source://rdoc//rdoc/class_module.rb#713 def to_s; end # 'module' or 'class' # - # source://rdoc//lib/rdoc/class_module.rb#724 + # source://rdoc//rdoc/class_module.rb#724 def type; end # Updates the child modules & classes by replacing the ones that are @@ -732,7 +723,7 @@ class RDoc::ClassModule < ::RDoc::Context # the aliased modules are included in the constants of the class/module, # that are listed separately. # - # source://rdoc//lib/rdoc/class_module.rb#743 + # source://rdoc//rdoc/class_module.rb#743 def update_aliases; end # Deletes from #extends those whose module has been removed from the @@ -740,7 +731,7 @@ class RDoc::ClassModule < ::RDoc::Context # -- # FIXME: like update_includes, extends are not reliably removed # - # source://rdoc//lib/rdoc/class_module.rb#791 + # source://rdoc//rdoc/class_module.rb#791 def update_extends; end # Deletes from #includes those whose module has been removed from the @@ -748,7 +739,7 @@ class RDoc::ClassModule < ::RDoc::Context # -- # FIXME: includes are not reliably removed, see _possible_bug test case # - # source://rdoc//lib/rdoc/class_module.rb#776 + # source://rdoc//rdoc/class_module.rb#776 def update_includes; end class << self @@ -757,7 +748,7 @@ class RDoc::ClassModule < ::RDoc::Context # -- # TODO move to RDoc::NormalClass (I think) # - # source://rdoc//lib/rdoc/class_module.rb#50 + # source://rdoc//rdoc/class_module.rb#50 def from_module(class_type, mod); end end end @@ -786,8 +777,6 @@ end # * RDoc::Mixin # * RDoc::Require # * RDoc::Include -# -# source://rdoc//lib/rdoc/code_object.rb#28 class RDoc::CodeObject include ::RDoc::Text include ::RDoc::Generator::Markup @@ -796,17 +785,17 @@ class RDoc::CodeObject # # @return [CodeObject] a new instance of CodeObject # - # source://rdoc//lib/rdoc/code_object.rb#102 + # source://rdoc//rdoc/code_object.rb#102 def initialize; end # Our comment # - # source://rdoc//lib/rdoc/code_object.rb#35 + # source://rdoc//rdoc/code_object.rb#35 def comment; end # Replaces our comment with +comment+, unless it is empty. # - # source://rdoc//lib/rdoc/code_object.rb#135 + # source://rdoc//rdoc/code_object.rb#135 def comment=(comment); end # Should this CodeObject be displayed in output? @@ -819,41 +808,41 @@ class RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//lib/rdoc/code_object.rb#163 + # source://rdoc//rdoc/code_object.rb#163 def display?; end # Do we document our children? # - # source://rdoc//lib/rdoc/code_object.rb#40 + # source://rdoc//rdoc/code_object.rb#40 def document_children; end # Enables or disables documentation of this CodeObject's children unless it # has been turned off by :enddoc: # - # source://rdoc//lib/rdoc/code_object.rb#172 + # source://rdoc//rdoc/code_object.rb#172 def document_children=(document_children); end # Do we document ourselves? # - # source://rdoc//lib/rdoc/code_object.rb#45 + # source://rdoc//rdoc/code_object.rb#45 def document_self; end # Enables or disables documentation of this CodeObject unless it has been # turned off by :enddoc:. If the argument is +nil+ it means the # - # source://rdoc//lib/rdoc/code_object.rb#183 + # source://rdoc//rdoc/code_object.rb#183 def document_self=(document_self); end # Does this object have a comment with content or is #received_nodoc true? # # @return [Boolean] # - # source://rdoc//lib/rdoc/code_object.rb#194 + # source://rdoc//rdoc/code_object.rb#194 def documented?; end # Are we done documenting (ie, did we come across a :enddoc:)? # - # source://rdoc//lib/rdoc/code_object.rb#50 + # source://rdoc//rdoc/code_object.rb#50 def done_documenting; end # Turns documentation on/off, and turns on/off #document_self @@ -863,30 +852,30 @@ class RDoc::CodeObject # the object will refuse to turn #document_self or # will have no effect in the current file. # - # source://rdoc//lib/rdoc/code_object.rb#207 + # source://rdoc//rdoc/code_object.rb#207 def done_documenting=(value); end # Yields each parent of this CodeObject. See also # RDoc::ClassModule#each_ancestor # - # source://rdoc//lib/rdoc/code_object.rb#218 + # source://rdoc//rdoc/code_object.rb#218 def each_parent; end # Which file this code object was defined in # - # source://rdoc//lib/rdoc/code_object.rb#55 + # source://rdoc//rdoc/code_object.rb#55 def file; end # File name where this CodeObject was found. # # See also RDoc::Context#in_files # - # source://rdoc//lib/rdoc/code_object.rb#233 + # source://rdoc//rdoc/code_object.rb#233 def file_name; end # Force documentation of this CodeObject # - # source://rdoc//lib/rdoc/code_object.rb#60 + # source://rdoc//rdoc/code_object.rb#60 def force_documentation; end # Force the documentation of this object unless documentation @@ -894,14 +883,14 @@ class RDoc::CodeObject # -- # HACK untested, was assigning to an ivar # - # source://rdoc//lib/rdoc/code_object.rb#245 + # source://rdoc//rdoc/code_object.rb#245 def force_documentation=(value); end # Sets the full_name overriding any computed full name. # # Set to +nil+ to clear RDoc's cached value # - # source://rdoc//lib/rdoc/code_object.rb#254 + # source://rdoc//rdoc/code_object.rb#254 def full_name=(full_name); end # Use this to ignore a CodeObject and all its children until found again @@ -919,7 +908,7 @@ class RDoc::CodeObject # reopened it should not be displayed. The ignore flag allows this to # occur. # - # source://rdoc//lib/rdoc/code_object.rb#274 + # source://rdoc//rdoc/code_object.rb#274 def ignore; end # Has this class been ignored? @@ -928,27 +917,27 @@ class RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//lib/rdoc/code_object.rb#287 + # source://rdoc//rdoc/code_object.rb#287 def ignored?; end # Initializes state for visibility of this CodeObject and its children. # - # source://rdoc//lib/rdoc/code_object.rb#121 + # source://rdoc//rdoc/code_object.rb#121 def initialize_visibility; end # Line in #file where this CodeObject was defined # - # source://rdoc//lib/rdoc/code_object.rb#65 + # source://rdoc//rdoc/code_object.rb#65 def line; end # Line in #file where this CodeObject was defined # - # source://rdoc//lib/rdoc/code_object.rb#65 + # source://rdoc//rdoc/code_object.rb#65 def line=(_arg0); end # Hash of arbitrary metadata for this CodeObject # - # source://rdoc//lib/rdoc/code_object.rb#70 + # source://rdoc//rdoc/code_object.rb#70 def metadata; end # The options instance from the store this CodeObject is attached to, or a @@ -956,68 +945,68 @@ class RDoc::CodeObject # # This is used by Text#snippet # - # source://rdoc//lib/rdoc/code_object.rb#297 + # source://rdoc//rdoc/code_object.rb#297 def options; end # Our parent CodeObject. The parent may be missing for classes loaded from # legacy RI data stores. # - # source://rdoc//lib/rdoc/code_object.rb#309 + # source://rdoc//rdoc/code_object.rb#309 def parent; end # Sets the parent CodeObject # - # source://rdoc//lib/rdoc/code_object.rb#75 + # source://rdoc//rdoc/code_object.rb#75 def parent=(_arg0); end # File name of our parent # - # source://rdoc//lib/rdoc/code_object.rb#331 + # source://rdoc//rdoc/code_object.rb#331 def parent_file_name; end # Name of our parent # - # source://rdoc//lib/rdoc/code_object.rb#338 + # source://rdoc//rdoc/code_object.rb#338 def parent_name; end - # source://rdoc//lib/rdoc/code_object.rb#80 + # source://rdoc//rdoc/code_object.rb#80 def received_nodoc; end # Records the RDoc::TopLevel (file) where this code object was defined # - # source://rdoc//lib/rdoc/code_object.rb#345 + # source://rdoc//rdoc/code_object.rb#345 def record_location(top_level); end # The section this CodeObject is in. Sections allow grouping of constants, # attributes and methods inside a class or module. # - # source://rdoc//lib/rdoc/code_object.rb#355 + # source://rdoc//rdoc/code_object.rb#355 def section; end # Set the section this CodeObject is in # - # source://rdoc//lib/rdoc/code_object.rb#85 + # source://rdoc//rdoc/code_object.rb#85 def section=(_arg0); end # Enable capture of documentation unless documentation has been # turned off by :enddoc: # - # source://rdoc//lib/rdoc/code_object.rb#365 + # source://rdoc//rdoc/code_object.rb#365 def start_doc; end # Disable capture of documentation # - # source://rdoc//lib/rdoc/code_object.rb#377 + # source://rdoc//rdoc/code_object.rb#377 def stop_doc; end # The RDoc::Store for this object. # - # source://rdoc//lib/rdoc/code_object.rb#90 + # source://rdoc//rdoc/code_object.rb#90 def store; end # Sets the +store+ that contains this CodeObject # - # source://rdoc//lib/rdoc/code_object.rb#387 + # source://rdoc//rdoc/code_object.rb#387 def store=(store); end # Use this to suppress a CodeObject and all its children until the next file @@ -1025,7 +1014,7 @@ class RDoc::CodeObject # documentation will be displayed while an ignored item with documentation # may not be displayed. # - # source://rdoc//lib/rdoc/code_object.rb#404 + # source://rdoc//rdoc/code_object.rb#404 def suppress; end # Has this class been suppressed? @@ -1034,25 +1023,24 @@ class RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//lib/rdoc/code_object.rb#417 + # source://rdoc//rdoc/code_object.rb#417 def suppressed?; end # We are the model of the code, but we know that at some point we will be # worked on by viewers. By implementing the Viewable protocol, viewers can # associated themselves with these objects. # - # source://rdoc//lib/rdoc/code_object.rb#97 + # source://rdoc//rdoc/code_object.rb#97 def viewer; end # We are the model of the code, but we know that at some point we will be # worked on by viewers. By implementing the Viewable protocol, viewers can # associated themselves with these objects. # - # source://rdoc//lib/rdoc/code_object.rb#97 + # source://rdoc//rdoc/code_object.rb#97 def viewer=(_arg0); end end -# source://rdoc//lib/rdoc/comment.rb#12 class RDoc::Comment include ::RDoc::Text @@ -1061,28 +1049,28 @@ class RDoc::Comment # # @return [Comment] a new instance of Comment # - # source://rdoc//lib/rdoc/comment.rb#56 + # source://rdoc//rdoc/comment.rb#56 def initialize(text = T.unsafe(nil), location = T.unsafe(nil), language = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/comment.rb#74 + # source://rdoc//rdoc/comment.rb#74 def ==(other); end # Overrides the content returned by #parse. Use when there is no #text # source for this comment # - # source://rdoc//lib/rdoc/comment.rb#50 + # source://rdoc//rdoc/comment.rb#50 def document=(_arg0); end # A comment is empty if its text String is empty. # # @return [Boolean] # - # source://rdoc//lib/rdoc/comment.rb#128 + # source://rdoc//rdoc/comment.rb#128 def empty?; end # HACK dubious # - # source://rdoc//lib/rdoc/comment.rb#135 + # source://rdoc//rdoc/comment.rb#135 def encode!(encoding); end # Look for a 'call-seq' in the comment to override the normal parameter @@ -1100,65 +1088,65 @@ class RDoc::Comment # # ARGF.to_a(limit) -> array # # ARGF.to_a(sep, limit) -> array # - # source://rdoc//lib/rdoc/comment.rb#95 + # source://rdoc//rdoc/comment.rb#95 def extract_call_seq(method); end # The RDoc::TopLevel this comment was found in # # For duck-typing when merging classes at load time # - # source://rdoc//lib/rdoc/comment.rb#24 + # source://rdoc//rdoc/comment.rb#24 def file; end # The format of this comment. Defaults to RDoc::Markup # - # source://rdoc//lib/rdoc/comment.rb#19 + # source://rdoc//rdoc/comment.rb#19 def format; end # Sets the format of this comment and resets any parsed document # - # source://rdoc//lib/rdoc/comment.rb#143 + # source://rdoc//rdoc/comment.rb#143 def format=(format); end - # source://rdoc//lib/rdoc/comment.rb#148 + # source://rdoc//rdoc/comment.rb#148 def inspect; end # Line where this Comment was written # - # source://rdoc//lib/rdoc/comment.rb#29 + # source://rdoc//rdoc/comment.rb#29 def line; end # Line where this Comment was written # - # source://rdoc//lib/rdoc/comment.rb#29 + # source://rdoc//rdoc/comment.rb#29 def line=(_arg0); end # The RDoc::TopLevel this comment was found in # - # source://rdoc//lib/rdoc/comment.rb#24 + # source://rdoc//rdoc/comment.rb#24 def location; end # The RDoc::TopLevel this comment was found in # - # source://rdoc//lib/rdoc/comment.rb#24 + # source://rdoc//rdoc/comment.rb#24 def location=(_arg0); end # Normalizes the text. See RDoc::Text#normalize_comment for details # - # source://rdoc//lib/rdoc/comment.rb#157 + # source://rdoc//rdoc/comment.rb#157 def normalize; end # Was this text normalized? # # @return [Boolean] # - # source://rdoc//lib/rdoc/comment.rb#171 + # source://rdoc//rdoc/comment.rb#171 def normalized?; end # Parses the comment into an RDoc::Markup::Document. The parsed document is # cached until the text is changed. # - # source://rdoc//lib/rdoc/comment.rb#179 + # source://rdoc//rdoc/comment.rb#179 def parse; end # Removes private sections from this comment. Private sections are flush to @@ -1173,12 +1161,12 @@ class RDoc::Comment # * public # */ # - # source://rdoc//lib/rdoc/comment.rb#200 + # source://rdoc//rdoc/comment.rb#200 def remove_private; end # The text for this comment # - # source://rdoc//lib/rdoc/comment.rb#39 + # source://rdoc//rdoc/comment.rb#39 def text; end # Replaces this comment's text with +text+ and resets the parsed document. @@ -1187,21 +1175,21 @@ class RDoc::Comment # # @raise [RDoc::Error] # - # source://rdoc//lib/rdoc/comment.rb#214 + # source://rdoc//rdoc/comment.rb#214 def text=(text); end # The text for this comment # # Alias for text # - # source://rdoc//lib/rdoc/comment.rb#39 + # source://rdoc//rdoc/comment.rb#39 def to_s; end # Returns true if this comment is in TomDoc format. # # @return [Boolean] # - # source://rdoc//lib/rdoc/comment.rb#225 + # source://rdoc//rdoc/comment.rb#225 def tomdoc?; end private @@ -1209,29 +1197,27 @@ class RDoc::Comment # -- # TODO deep copy @document # - # source://rdoc//lib/rdoc/comment.rb#70 + # source://rdoc//rdoc/comment.rb#70 def initialize_copy(copy); end end # A constant -# -# source://rdoc//lib/rdoc/constant.rb#5 class RDoc::Constant < ::RDoc::CodeObject # Creates a new constant with +name+, +value+ and +comment+ # # @return [Constant] a new instance of Constant # - # source://rdoc//lib/rdoc/constant.rb#32 + # source://rdoc//rdoc/constant.rb#32 def initialize(name, value, comment); end # Constants are ordered by name # - # source://rdoc//lib/rdoc/constant.rb#47 + # source://rdoc//rdoc/constant.rb#47 def <=>(other); end # Constants are equal when their #parent and #name is the same # - # source://rdoc//lib/rdoc/constant.rb#56 + # source://rdoc//rdoc/constant.rb#56 def ==(other); end # A constant is documented if it has a comment, or is an alias @@ -1239,30 +1225,30 @@ class RDoc::Constant < ::RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//lib/rdoc/constant.rb#66 + # source://rdoc//rdoc/constant.rb#66 def documented?; end # Full constant name including namespace # - # source://rdoc//lib/rdoc/constant.rb#81 + # source://rdoc//rdoc/constant.rb#81 def full_name; end - # source://rdoc//lib/rdoc/constant.rb#99 + # source://rdoc//rdoc/constant.rb#99 def inspect; end # The module or class this constant is an alias for # - # source://rdoc//lib/rdoc/constant.rb#88 + # source://rdoc//rdoc/constant.rb#88 def is_alias_for; end # Sets the module or class this is constant is an alias for. # - # source://rdoc//lib/rdoc/constant.rb#12 + # source://rdoc//rdoc/constant.rb#12 def is_alias_for=(_arg0); end # Dumps this Constant for use by ri. See also #marshal_load # - # source://rdoc//lib/rdoc/constant.rb#109 + # source://rdoc//rdoc/constant.rb#109 def marshal_dump; end # Loads this Constant from +array+. For a loaded Constant the following @@ -1271,61 +1257,59 @@ class RDoc::Constant < ::RDoc::CodeObject # * #full_name # * #parent_name # - # source://rdoc//lib/rdoc/constant.rb#135 + # source://rdoc//rdoc/constant.rb#135 def marshal_load(array); end # The constant's name # - # source://rdoc//lib/rdoc/constant.rb#17 + # source://rdoc//rdoc/constant.rb#17 def name; end # The constant's name # - # source://rdoc//lib/rdoc/constant.rb#17 + # source://rdoc//rdoc/constant.rb#17 def name=(_arg0); end # Path to this constant for use with HTML generator output. # - # source://rdoc//lib/rdoc/constant.rb#153 + # source://rdoc//rdoc/constant.rb#153 def path; end - # source://rdoc//lib/rdoc/constant.rb#157 + # source://rdoc//rdoc/constant.rb#157 def pretty_print(q); end # Sets the store for this class or module and its contained code objects. # - # source://rdoc//lib/rdoc/constant.rb#171 + # source://rdoc//rdoc/constant.rb#171 def store=(store); end - # source://rdoc//lib/rdoc/constant.rb#177 + # source://rdoc//rdoc/constant.rb#177 def to_s; end # The constant's value # - # source://rdoc//lib/rdoc/constant.rb#22 + # source://rdoc//rdoc/constant.rb#22 def value; end # The constant's value # - # source://rdoc//lib/rdoc/constant.rb#22 + # source://rdoc//rdoc/constant.rb#22 def value=(_arg0); end # The constant's visibility # - # source://rdoc//lib/rdoc/constant.rb#27 + # source://rdoc//rdoc/constant.rb#27 def visibility; end # The constant's visibility # - # source://rdoc//lib/rdoc/constant.rb#27 + # source://rdoc//rdoc/constant.rb#27 def visibility=(_arg0); end end # A Context is something that can hold modules, classes, methods, attributes, # aliases, requires, and includes. Classes, modules, and files are all # Contexts. -# -# source://rdoc//lib/rdoc/context.rb#7 class RDoc::Context < ::RDoc::CodeObject include ::Comparable @@ -1333,12 +1317,12 @@ class RDoc::Context < ::RDoc::CodeObject # # @return [Context] a new instance of Context # - # source://rdoc//lib/rdoc/context.rb#123 + # source://rdoc//rdoc/context.rb#123 def initialize; end # Contexts are sorted by full_name # - # source://rdoc//lib/rdoc/context.rb#171 + # source://rdoc//rdoc/context.rb#171 def <=>(other); end # Adds an item of type +klass+ with the given +name+ and +comment+ to the @@ -1346,12 +1330,12 @@ class RDoc::Context < ::RDoc::CodeObject # # Currently only RDoc::Extend and RDoc::Include are supported. # - # source://rdoc//lib/rdoc/context.rb#183 + # source://rdoc//rdoc/context.rb#183 def add(klass, name, comment); end # Adds +an_alias+ that is automatically resolved # - # source://rdoc//lib/rdoc/context.rb#198 + # source://rdoc//rdoc/context.rb#198 def add_alias(an_alias); end # Adds +attribute+ if not already there. If it is (as method(s) or attribute), @@ -1362,7 +1346,7 @@ class RDoc::Context < ::RDoc::CodeObject # if method +foo+ exists, but attr_accessor :foo will be registered # if method +foo+ exists, but foo= does not. # - # source://rdoc//lib/rdoc/context.rb#225 + # source://rdoc//rdoc/context.rb#225 def add_attribute(attribute); end # Adds a class named +given_name+ with +superclass+. @@ -1379,7 +1363,7 @@ class RDoc::Context < ::RDoc::CodeObject # unless it later sees class Container. +add_class+ automatically # upgrades +given_name+ to a class in this case. # - # source://rdoc//lib/rdoc/context.rb#288 + # source://rdoc//rdoc/context.rb#288 def add_class(class_type, given_name, superclass = T.unsafe(nil)); end # Adds the class or module +mod+ to the modules or @@ -1388,51 +1372,51 @@ class RDoc::Context < ::RDoc::CodeObject # unless #done_documenting is +true+. Sets the #parent of +mod+ # to +self+, and its #section to #current_section. Returns +mod+. # - # source://rdoc//lib/rdoc/context.rb#404 + # source://rdoc//rdoc/context.rb#404 def add_class_or_module(mod, self_hash, all_hash); end # Adds +constant+ if not already there. If it is, updates the comment, # value and/or is_alias_for of the known constant if they were empty/nil. # - # source://rdoc//lib/rdoc/context.rb#429 + # source://rdoc//rdoc/context.rb#429 def add_constant(constant); end # Adds extension module +ext+ which should be an RDoc::Extend # - # source://rdoc//lib/rdoc/context.rb#463 + # source://rdoc//rdoc/context.rb#463 def add_extend(ext); end # Adds included module +include+ which should be an RDoc::Include # - # source://rdoc//lib/rdoc/context.rb#454 + # source://rdoc//rdoc/context.rb#454 def add_include(include); end # Adds +method+ if not already there. If it is (as method or attribute), # updates the comment if it was empty. # - # source://rdoc//lib/rdoc/context.rb#473 + # source://rdoc//rdoc/context.rb#473 def add_method(method); end # Adds a module named +name+. If RDoc already knows +name+ is a class then # that class is returned instead. See also #add_class. # - # source://rdoc//lib/rdoc/context.rb#506 + # source://rdoc//rdoc/context.rb#506 def add_module(class_type, name); end # Adds an alias from +from+ (a class or module) to +name+ which was defined # in +file+. # - # source://rdoc//lib/rdoc/context.rb#527 + # source://rdoc//rdoc/context.rb#527 def add_module_alias(from, from_name, to, file); end # Adds a module by +RDoc::NormalModule+ instance. See also #add_module. # - # source://rdoc//lib/rdoc/context.rb#519 + # source://rdoc//rdoc/context.rb#519 def add_module_by_normal_module(mod); end # Adds +require+ to this context's top level # - # source://rdoc//lib/rdoc/context.rb#568 + # source://rdoc//rdoc/context.rb#568 def add_require(require); end # Returns a section with +title+, creating it if it doesn't already exist. @@ -1442,17 +1426,17 @@ class RDoc::Context < ::RDoc::CodeObject # # See also RDoc::Context::Section # - # source://rdoc//lib/rdoc/context.rb#586 + # source://rdoc//rdoc/context.rb#586 def add_section(title, comment = T.unsafe(nil)); end # Adds +thing+ to the collection +array+ # - # source://rdoc//lib/rdoc/context.rb#600 + # source://rdoc//rdoc/context.rb#600 def add_to(array, thing); end # Class/module aliases # - # source://rdoc//lib/rdoc/context.rb#25 + # source://rdoc//rdoc/context.rb#25 def aliases; end # Is there any content? @@ -1462,88 +1446,88 @@ class RDoc::Context < ::RDoc::CodeObject # # Includes and extends are also checked unless includes == false. # - # source://rdoc//lib/rdoc/context.rb#616 + # source://rdoc//rdoc/context.rb#616 def any_content(includes = T.unsafe(nil)); end # All attr* methods # - # source://rdoc//lib/rdoc/context.rb#30 + # source://rdoc//rdoc/context.rb#30 def attributes; end # Block params to be used in the next MethodAttr parsed under this context # - # source://rdoc//lib/rdoc/context.rb#35 + # source://rdoc//rdoc/context.rb#35 def block_params; end # Block params to be used in the next MethodAttr parsed under this context # - # source://rdoc//lib/rdoc/context.rb#35 + # source://rdoc//rdoc/context.rb#35 def block_params=(_arg0); end # Creates the full name for a child with +name+ # - # source://rdoc//lib/rdoc/context.rb#632 + # source://rdoc//rdoc/context.rb#632 def child_name(name); end # Class attributes # - # source://rdoc//lib/rdoc/context.rb#645 + # source://rdoc//rdoc/context.rb#645 def class_attributes; end # Class methods # - # source://rdoc//lib/rdoc/context.rb#652 + # source://rdoc//rdoc/context.rb#652 def class_method_list; end # Array of classes in this context # - # source://rdoc//lib/rdoc/context.rb#659 + # source://rdoc//rdoc/context.rb#659 def classes; end # All classes and modules in this namespace # - # source://rdoc//lib/rdoc/context.rb#666 + # source://rdoc//rdoc/context.rb#666 def classes_and_modules; end # Hash of classes keyed by class name # - # source://rdoc//lib/rdoc/context.rb#673 + # source://rdoc//rdoc/context.rb#673 def classes_hash; end # Constants defined # - # source://rdoc//lib/rdoc/context.rb#40 + # source://rdoc//rdoc/context.rb#40 def constants; end # Hash of registered constants. # - # source://rdoc//lib/rdoc/context.rb#118 + # source://rdoc//rdoc/context.rb#118 def constants_hash; end # Current visibility of this line # - # source://rdoc//lib/rdoc/context.rb#102 + # source://rdoc//rdoc/context.rb#102 def current_line_visibility=(_arg0); end # The current documentation section that new items will be added to. If # temporary_section is available it will be used. # - # source://rdoc//lib/rdoc/context.rb#681 + # source://rdoc//rdoc/context.rb#681 def current_section; end # Sets the current documentation section of documentation # - # source://rdoc//lib/rdoc/context.rb#45 + # source://rdoc//rdoc/context.rb#45 def current_section=(_arg0); end # Is part of this thing was defined in +file+? # # @return [Boolean] # - # source://rdoc//lib/rdoc/context.rb#694 + # source://rdoc//rdoc/context.rb#694 def defined_in?(file); end - # source://rdoc//lib/rdoc/context.rb#698 + # source://rdoc//rdoc/context.rb#698 def display(method_attr); end # Iterator for ancestors for duck-typing. Does nothing. See @@ -1552,37 +1536,37 @@ class RDoc::Context < ::RDoc::CodeObject # This method exists to make it easy to work with Context subclasses that # aren't part of RDoc. # - # source://rdoc//lib/rdoc/context.rb#713 + # source://rdoc//rdoc/context.rb#713 def each_ancestor; end # Iterator for attributes # - # source://rdoc//lib/rdoc/context.rb#719 + # source://rdoc//rdoc/context.rb#719 def each_attribute; end # Iterator for classes and modules # - # source://rdoc//lib/rdoc/context.rb#726 + # source://rdoc//rdoc/context.rb#726 def each_classmodule(&block); end # Iterator for constants # - # source://rdoc//lib/rdoc/context.rb#733 + # source://rdoc//rdoc/context.rb#733 def each_constant; end # Iterator for extension modules # - # source://rdoc//lib/rdoc/context.rb#747 + # source://rdoc//rdoc/context.rb#747 def each_extend; end # Iterator for included modules # - # source://rdoc//lib/rdoc/context.rb#740 + # source://rdoc//rdoc/context.rb#740 def each_include; end # Iterator for methods # - # source://rdoc//lib/rdoc/context.rb#754 + # source://rdoc//rdoc/context.rb#754 def each_method; end # Iterator for each section's contents sorted by title. The +section+, the @@ -1594,98 +1578,98 @@ class RDoc::Context < ::RDoc::CodeObject # # NOTE: Do not edit collections yielded by this method # - # source://rdoc//lib/rdoc/context.rb#770 + # source://rdoc//rdoc/context.rb#770 def each_section; end # Modules this context is extended with # - # source://rdoc//lib/rdoc/context.rb#60 + # source://rdoc//rdoc/context.rb#60 def extends; end # Aliases that could not be resolved. # - # source://rdoc//lib/rdoc/context.rb#92 + # source://rdoc//rdoc/context.rb#92 def external_aliases; end # Finds an attribute +name+ with singleton value +singleton+. # - # source://rdoc//lib/rdoc/context.rb#787 + # source://rdoc//rdoc/context.rb#787 def find_attribute(name, singleton); end # Finds an attribute with +name+ in this context # - # source://rdoc//lib/rdoc/context.rb#795 + # source://rdoc//rdoc/context.rb#795 def find_attribute_named(name); end # Finds a class method with +name+ in this context # - # source://rdoc//lib/rdoc/context.rb#809 + # source://rdoc//rdoc/context.rb#809 def find_class_method_named(name); end # Finds a constant with +name+ in this context # - # source://rdoc//lib/rdoc/context.rb#816 + # source://rdoc//rdoc/context.rb#816 def find_constant_named(name); end # Find a module at a higher scope # - # source://rdoc//lib/rdoc/context.rb#825 + # source://rdoc//rdoc/context.rb#825 def find_enclosing_module_named(name); end # Finds an external alias +name+ with singleton value +singleton+. # - # source://rdoc//lib/rdoc/context.rb#832 + # source://rdoc//rdoc/context.rb#832 def find_external_alias(name, singleton); end # Finds an external alias with +name+ in this context # - # source://rdoc//lib/rdoc/context.rb#839 + # source://rdoc//rdoc/context.rb#839 def find_external_alias_named(name); end # Finds a file with +name+ in this context # - # source://rdoc//lib/rdoc/context.rb#853 + # source://rdoc//rdoc/context.rb#853 def find_file_named(name); end # Finds an instance method with +name+ in this context # - # source://rdoc//lib/rdoc/context.rb#860 + # source://rdoc//rdoc/context.rb#860 def find_instance_method_named(name); end # Finds a method, constant, attribute, external alias, module or file # named +symbol+ in this context. # - # source://rdoc//lib/rdoc/context.rb#868 + # source://rdoc//rdoc/context.rb#868 def find_local_symbol(symbol); end # Finds a method named +name+ with singleton value +singleton+. # - # source://rdoc//lib/rdoc/context.rb#880 + # source://rdoc//rdoc/context.rb#880 def find_method(name, singleton); end # Finds a instance or module method with +name+ in this context # - # source://rdoc//lib/rdoc/context.rb#893 + # source://rdoc//rdoc/context.rb#893 def find_method_named(name); end # Find a module with +name+ using ruby's scoping rules # - # source://rdoc//lib/rdoc/context.rb#907 + # source://rdoc//rdoc/context.rb#907 def find_module_named(name); end # Look up +symbol+, first as a module, then as a local symbol. # - # source://rdoc//lib/rdoc/context.rb#917 + # source://rdoc//rdoc/context.rb#917 def find_symbol(symbol); end # Look up a module named +symbol+. # - # source://rdoc//lib/rdoc/context.rb#924 + # source://rdoc//rdoc/context.rb#924 def find_symbol_module(symbol); end # The full name for this context. This method is overridden by subclasses. # - # source://rdoc//lib/rdoc/context.rb#957 + # source://rdoc//rdoc/context.rb#957 def full_name; end # Does this context and its methods and constants all have documentation? @@ -1694,49 +1678,49 @@ class RDoc::Context < ::RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//lib/rdoc/context.rb#966 + # source://rdoc//rdoc/context.rb#966 def fully_documented?; end # URL for this with a +prefix+ # - # source://rdoc//lib/rdoc/context.rb#976 + # source://rdoc//rdoc/context.rb#976 def http_url(prefix); end # Files this context is found in # - # source://rdoc//lib/rdoc/context.rb#50 + # source://rdoc//rdoc/context.rb#50 def in_files; end # Modules this context includes # - # source://rdoc//lib/rdoc/context.rb#55 + # source://rdoc//rdoc/context.rb#55 def includes; end # Sets the defaults for methods and so-forth # - # source://rdoc//lib/rdoc/context.rb#145 + # source://rdoc//rdoc/context.rb#145 def initialize_methods_etc; end # Instance attributes # - # source://rdoc//lib/rdoc/context.rb#987 + # source://rdoc//rdoc/context.rb#987 def instance_attributes; end # Instance methods # -- # TODO remove this later # - # source://rdoc//lib/rdoc/context.rb#1003 + # source://rdoc//rdoc/context.rb#1003 def instance_method_list; end # Instance methods # - # source://rdoc//lib/rdoc/context.rb#994 + # source://rdoc//rdoc/context.rb#994 def instance_methods; end # Methods defined in this context # - # source://rdoc//lib/rdoc/context.rb#65 + # source://rdoc//rdoc/context.rb#65 def method_list; end # Breaks method_list into a nested hash by type ('class' or @@ -1745,59 +1729,59 @@ class RDoc::Context < ::RDoc::CodeObject # If +section+ is provided only methods in that RDoc::Context::Section will # be returned. # - # source://rdoc//lib/rdoc/context.rb#1015 + # source://rdoc//rdoc/context.rb#1015 def methods_by_type(section = T.unsafe(nil)); end # Hash of registered methods. Attributes are also registered here, # twice if they are RW. # - # source://rdoc//lib/rdoc/context.rb#108 + # source://rdoc//rdoc/context.rb#108 def methods_hash; end # Yields AnyMethod and Attr entries matching the list of names in +methods+. # - # source://rdoc//lib/rdoc/context.rb#1038 + # source://rdoc//rdoc/context.rb#1038 def methods_matching(methods, singleton = T.unsafe(nil), &block); end # Array of modules in this context # - # source://rdoc//lib/rdoc/context.rb#1051 + # source://rdoc//rdoc/context.rb#1051 def modules; end # Hash of modules keyed by module name # - # source://rdoc//lib/rdoc/context.rb#1058 + # source://rdoc//rdoc/context.rb#1058 def modules_hash; end # Name of this class excluding namespace. See also full_name # - # source://rdoc//lib/rdoc/context.rb#70 + # source://rdoc//rdoc/context.rb#70 def name; end # Name to use to generate the url. # #full_name by default. # - # source://rdoc//lib/rdoc/context.rb#1066 + # source://rdoc//rdoc/context.rb#1066 def name_for_path; end # Changes the visibility for new methods to +visibility+ # - # source://rdoc//lib/rdoc/context.rb#1073 + # source://rdoc//rdoc/context.rb#1073 def ongoing_visibility=(visibility); end # Params to be used in the next MethodAttr parsed under this context # - # source://rdoc//lib/rdoc/context.rb#113 + # source://rdoc//rdoc/context.rb#113 def params; end # Params to be used in the next MethodAttr parsed under this context # - # source://rdoc//lib/rdoc/context.rb#113 + # source://rdoc//rdoc/context.rb#113 def params=(_arg0); end # Record +top_level+ as a file +self+ is in. # - # source://rdoc//lib/rdoc/context.rb#1080 + # source://rdoc//rdoc/context.rb#1080 def record_location(top_level); end # Should we remove this context from the documentation? @@ -1811,80 +1795,80 @@ class RDoc::Context < ::RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//lib/rdoc/context.rb#1094 + # source://rdoc//rdoc/context.rb#1094 def remove_from_documentation?; end # Removes methods and attributes with a visibility less than +min_visibility+. # -- # TODO mark the visibility of attributes in the template (if not public?) # - # source://rdoc//lib/rdoc/context.rb#1107 + # source://rdoc//rdoc/context.rb#1107 def remove_invisible(min_visibility); end # Only called when min_visibility == :public or :private # - # source://rdoc//lib/rdoc/context.rb#1117 + # source://rdoc//rdoc/context.rb#1117 def remove_invisible_in(array, min_visibility); end # Files this context requires # - # source://rdoc//lib/rdoc/context.rb#75 + # source://rdoc//rdoc/context.rb#75 def requires; end # Tries to resolve unmatched aliases when a method or attribute has just # been added. # - # source://rdoc//lib/rdoc/context.rb#1133 + # source://rdoc//rdoc/context.rb#1133 def resolve_aliases(added); end # Returns RDoc::Context::Section objects referenced in this context for use # in a table of contents. # - # source://rdoc//lib/rdoc/context.rb#1149 + # source://rdoc//rdoc/context.rb#1149 def section_contents; end # Sections in this context # - # source://rdoc//lib/rdoc/context.rb#1173 + # source://rdoc//rdoc/context.rb#1173 def sections; end - # source://rdoc//lib/rdoc/context.rb#1177 + # source://rdoc//rdoc/context.rb#1177 def sections_hash; end # Given an array +names+ of constants, set the visibility of each constant to # +visibility+ # - # source://rdoc//lib/rdoc/context.rb#1202 + # source://rdoc//rdoc/context.rb#1202 def set_constant_visibility_for(names, visibility); end # Sets the current section to a section with +title+. See also #add_section # - # source://rdoc//lib/rdoc/context.rb#1184 + # source://rdoc//rdoc/context.rb#1184 def set_current_section(title, comment); end # Given an array +methods+ of method names, set the visibility of each to # +visibility+ # - # source://rdoc//lib/rdoc/context.rb#1192 + # source://rdoc//rdoc/context.rb#1192 def set_visibility_for(methods, visibility, singleton = T.unsafe(nil)); end # Sorts sections alphabetically (default) or in TomDoc fashion (none, # Public, Internal, Deprecated) # - # source://rdoc//lib/rdoc/context.rb#1213 + # source://rdoc//rdoc/context.rb#1213 def sort_sections; end # Use this section for the next method, attribute or constant added. # - # source://rdoc//lib/rdoc/context.rb#80 + # source://rdoc//rdoc/context.rb#80 def temporary_section; end # Use this section for the next method, attribute or constant added. # - # source://rdoc//lib/rdoc/context.rb#80 + # source://rdoc//rdoc/context.rb#80 def temporary_section=(_arg0); end - # source://rdoc//lib/rdoc/context.rb#1229 + # source://rdoc//rdoc/context.rb#1229 def to_s; end # Return the TopLevel that owns us @@ -1892,36 +1876,36 @@ class RDoc::Context < ::RDoc::CodeObject # FIXME we can be 'owned' by several TopLevel (see #record_location & # #in_files) # - # source://rdoc//lib/rdoc/context.rb#1239 + # source://rdoc//rdoc/context.rb#1239 def top_level; end # Hash old_name => [aliases], for aliases # that haven't (yet) been resolved to a method/attribute. # (Not to be confused with the aliases of the context.) # - # source://rdoc//lib/rdoc/context.rb#87 + # source://rdoc//rdoc/context.rb#87 def unmatched_alias_lists; end # Hash old_name => [aliases], for aliases # that haven't (yet) been resolved to a method/attribute. # (Not to be confused with the aliases of the context.) # - # source://rdoc//lib/rdoc/context.rb#87 + # source://rdoc//rdoc/context.rb#87 def unmatched_alias_lists=(_arg0); end # Upgrades NormalModule +mod+ in +enclosing+ to a +class_type+ # - # source://rdoc//lib/rdoc/context.rb#1249 + # source://rdoc//rdoc/context.rb#1249 def upgrade_to_class(mod, class_type, enclosing); end # Current visibility of this context # - # source://rdoc//lib/rdoc/context.rb#97 + # source://rdoc//rdoc/context.rb#97 def visibility; end # Current visibility of this context # - # source://rdoc//lib/rdoc/context.rb#97 + # source://rdoc//rdoc/context.rb#97 def visibility=(_arg0); end end @@ -1932,8 +1916,6 @@ end # # Sections can be referenced multiple times and will be collapsed into a # single section. -# -# source://rdoc//lib/rdoc/context/section.rb#13 class RDoc::Context::Section include ::RDoc::Text include ::RDoc::Generator::Markup @@ -1942,37 +1924,37 @@ class RDoc::Context::Section # # @return [Section] a new instance of Section # - # source://rdoc//lib/rdoc/context/section.rb#42 + # source://rdoc//rdoc/context/section.rb#42 def initialize(parent, title, comment); end # Sections are equal when they have the same #title # - # source://rdoc//lib/rdoc/context/section.rb#54 + # source://rdoc//rdoc/context/section.rb#54 def ==(other); end # Adds +comment+ to this section # - # source://rdoc//lib/rdoc/context/section.rb#63 + # source://rdoc//rdoc/context/section.rb#63 def add_comment(comment); end # Anchor reference for linking to this section # - # source://rdoc//lib/rdoc/context/section.rb#83 + # source://rdoc//rdoc/context/section.rb#83 def aref; end # Section comment # - # source://rdoc//lib/rdoc/context/section.rb#22 + # source://rdoc//rdoc/context/section.rb#22 def comment; end # Section comments # - # source://rdoc//lib/rdoc/context/section.rb#27 + # source://rdoc//rdoc/context/section.rb#27 def comments; end # Sections are equal when they have the same #title # - # source://rdoc//lib/rdoc/context/section.rb#54 + # source://rdoc//rdoc/context/section.rb#54 def eql?(other); end # Extracts the comment for this section from the original comment block. @@ -1983,71 +1965,69 @@ class RDoc::Context::Section # # :section: The title # # The body # - # source://rdoc//lib/rdoc/context/section.rb#98 + # source://rdoc//rdoc/context/section.rb#98 def extract_comment(comment); end - # source://rdoc//lib/rdoc/context/section.rb#130 + # source://rdoc//rdoc/context/section.rb#130 def hash; end # The files comments in this section come from # - # source://rdoc//lib/rdoc/context/section.rb#137 + # source://rdoc//rdoc/context/section.rb#137 def in_files; end - # source://rdoc//lib/rdoc/context/section.rb#126 + # source://rdoc//rdoc/context/section.rb#126 def inspect; end # Serializes this Section. The title and parsed comment are saved, but not # the section parent which must be restored manually. # - # source://rdoc//lib/rdoc/context/section.rb#158 + # source://rdoc//rdoc/context/section.rb#158 def marshal_dump; end # De-serializes this Section. The section parent must be restored manually. # - # source://rdoc//lib/rdoc/context/section.rb#169 + # source://rdoc//rdoc/context/section.rb#169 def marshal_load(array); end # Context this Section lives in # - # source://rdoc//lib/rdoc/context/section.rb#32 + # source://rdoc//rdoc/context/section.rb#32 def parent; end # Parses +comment_location+ into an RDoc::Markup::Document composed of # multiple RDoc::Markup::Documents with their file set. # - # source://rdoc//lib/rdoc/context/section.rb#180 + # source://rdoc//rdoc/context/section.rb#180 def parse; end # The section's title, or 'Top Section' if the title is nil. # # This is used by the table of contents template so the name is silly. # - # source://rdoc//lib/rdoc/context/section.rb#208 + # source://rdoc//rdoc/context/section.rb#208 def plain_html; end # Removes a comment from this section if it is from the same file as # +comment+ # - # source://rdoc//lib/rdoc/context/section.rb#216 + # source://rdoc//rdoc/context/section.rb#216 def remove_comment(comment); end # Section title # - # source://rdoc//lib/rdoc/context/section.rb#37 + # source://rdoc//rdoc/context/section.rb#37 def title; end end # RDoc::CrossReference is a reusable way to create cross references for names. -# -# source://rdoc//lib/rdoc/cross_reference.rb#8 class RDoc::CrossReference # Allows cross-references to be created based on the given +context+ # (RDoc::Context). # # @return [CrossReference] a new instance of CrossReference # - # source://rdoc//lib/rdoc/cross_reference.rb#127 + # source://rdoc//rdoc/cross_reference.rb#127 def initialize(context); end # Returns a reference to +name+. @@ -2056,33 +2036,33 @@ class RDoc::CrossReference # returned. If +name+ is escaped +name+ is returned. If +name+ is not # found +text+ is returned. # - # source://rdoc//lib/rdoc/cross_reference.rb#190 + # source://rdoc//rdoc/cross_reference.rb#190 def resolve(name, text); end # Returns a method reference to +name+. # - # source://rdoc//lib/rdoc/cross_reference.rb#137 + # source://rdoc//rdoc/cross_reference.rb#137 def resolve_method(name); end # Hash of references that have been looked-up to their replacements # - # source://rdoc//lib/rdoc/cross_reference.rb#121 + # source://rdoc//rdoc/cross_reference.rb#121 def seen; end # Hash of references that have been looked-up to their replacements # - # source://rdoc//lib/rdoc/cross_reference.rb#121 + # source://rdoc//rdoc/cross_reference.rb#121 def seen=(_arg0); end end # Regular expression to match method arguments. # -# source://rdoc//lib/rdoc/cross_reference.rb#28 +# source://rdoc//rdoc/cross_reference.rb#28 RDoc::CrossReference::METHOD_ARGS_REGEXP_STR = T.let(T.unsafe(nil), String) # Regular expression to match a single method argument. # -# source://rdoc//lib/rdoc/cross_reference.rb#23 +# source://rdoc//rdoc/cross_reference.rb#23 RDoc::CrossReference::METHOD_ARG_REGEXP_STR = T.let(T.unsafe(nil), String) # A subclass of ERB that writes directly to an IO. Credit to Aaron Patterson @@ -2097,49 +2077,43 @@ RDoc::CrossReference::METHOD_ARG_REGEXP_STR = T.let(T.unsafe(nil), String) # end # # Note that binding must enclose the io you wish to output on. -# -# source://rdoc//lib/rdoc/erbio.rb#18 class RDoc::ERBIO < ::ERB # Defaults +eoutvar+ to 'io', otherwise is identical to ERB's initialize # # @return [ERBIO] a new instance of ERBIO # - # source://rdoc//lib/rdoc/erbio.rb#23 + # source://rdoc//rdoc/erbio.rb#23 def initialize(str, trim_mode: T.unsafe(nil), eoutvar: T.unsafe(nil)); end # Instructs +compiler+ how to write to +io_variable+ # - # source://rdoc//lib/rdoc/erbio.rb#30 + # source://rdoc//rdoc/erbio.rb#30 def set_eoutvar(compiler, io_variable); end end # Allows an ERB template to be rendered in the context (binding) of an # existing ERB template evaluation. -# -# source://rdoc//lib/rdoc/erb_partial.rb#6 class RDoc::ERBPartial < ::ERB # Overrides +compiler+ startup to set the +eoutvar+ to an empty string only # if it isn't already set. # - # source://rdoc//lib/rdoc/erb_partial.rb#12 + # source://rdoc//rdoc/erb_partial.rb#12 def set_eoutvar(compiler, eoutvar = T.unsafe(nil)); end end # This class is a wrapper around File IO and Encoding that helps RDoc load # files and convert them to the correct encoding. -# -# source://rdoc//lib/rdoc/encoding.rb#8 module RDoc::Encoding class << self # Changes encoding based on +encoding+ without converting and returns new # string # - # source://rdoc//lib/rdoc/encoding.rb#112 + # source://rdoc//rdoc/encoding.rb#112 def change_encoding(text, encoding); end # Detects the encoding of +string+ based on the magic comment # - # source://rdoc//lib/rdoc/encoding.rb#92 + # source://rdoc//rdoc/encoding.rb#92 def detect_encoding(string); end # Reads the contents of +filename+ and handles any encoding directives in @@ -2151,20 +2125,19 @@ module RDoc::Encoding # If +force_transcode+ is true the document will be transcoded and any # unknown character in the target encoding will be replaced with '?' # - # source://rdoc//lib/rdoc/encoding.rb#32 + # source://rdoc//rdoc/encoding.rb#32 def read_file(filename, encoding, force_transcode = T.unsafe(nil)); end # Removes magic comments and shebang # - # source://rdoc//lib/rdoc/encoding.rb#102 + # source://rdoc//rdoc/encoding.rb#102 def remove_magic_comment(string); end end end -# source://rdoc//lib/rdoc/encoding.rb#10 +# source://rdoc//rdoc/encoding.rb#10 RDoc::Encoding::HEADER_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rdoc//lib/rdoc/generator/darkfish.rb#55 class RDoc::Generator::Darkfish include ::ERB::Escape include ::ERB::Util @@ -2175,7 +2148,7 @@ class RDoc::Generator::Darkfish # # @return [Darkfish] a new instance of Darkfish # - # source://rdoc//lib/rdoc/generator/darkfish.rb#159 + # source://rdoc//rdoc/generator/darkfish.rb#159 def initialize(store, options); end # Creates a template from its components and the +body_file+. @@ -2183,174 +2156,174 @@ class RDoc::Generator::Darkfish # For backwards compatibility, if +body_file+ contains "--op from the # options for a full path. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#102 + # source://rdoc//rdoc/generator/darkfish.rb#102 def base_dir; end # Directory where generated class HTML files live relative to the output # dir. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#191 + # source://rdoc//rdoc/generator/darkfish.rb#191 def class_dir; end # Classes and modules to be used by this generator, not necessarily # displayed. See also #modsort # - # source://rdoc//lib/rdoc/generator/darkfish.rb#108 + # source://rdoc//rdoc/generator/darkfish.rb#108 def classes; end # Copies static files from the static_path into the output directory # - # source://rdoc//lib/rdoc/generator/darkfish.rb#265 + # source://rdoc//rdoc/generator/darkfish.rb#265 def copy_static; end # Output progress information if debugging is enabled # - # source://rdoc//lib/rdoc/generator/darkfish.rb#182 + # source://rdoc//rdoc/generator/darkfish.rb#182 def debug_msg(*msg); end # No files will be written when dry_run is true. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#113 + # source://rdoc//rdoc/generator/darkfish.rb#113 def dry_run; end # No files will be written when dry_run is true. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#113 + # source://rdoc//rdoc/generator/darkfish.rb#113 def dry_run=(_arg0); end # Directory where generated class HTML files live relative to the output # dir. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#199 + # source://rdoc//rdoc/generator/darkfish.rb#199 def file_dir; end # When false the generate methods return a String instead of writing to a # file. The default is true. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#119 + # source://rdoc//rdoc/generator/darkfish.rb#119 def file_output; end # When false the generate methods return a String instead of writing to a # file. The default is true. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#119 + # source://rdoc//rdoc/generator/darkfish.rb#119 def file_output=(_arg0); end # Files to be displayed by this generator # - # source://rdoc//lib/rdoc/generator/darkfish.rb#124 + # source://rdoc//rdoc/generator/darkfish.rb#124 def files; end # Create the directories the generated docs will live in if they don't # already exist. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#207 + # source://rdoc//rdoc/generator/darkfish.rb#207 def gen_sub_directories; end # Build the initial indices and output objects based on an array of TopLevel # objects containing the extracted information. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#241 + # source://rdoc//rdoc/generator/darkfish.rb#241 def generate; end # Generates a class file for +klass+ # - # source://rdoc//lib/rdoc/generator/darkfish.rb#337 + # source://rdoc//rdoc/generator/darkfish.rb#337 def generate_class(klass, template_file = T.unsafe(nil)); end # Generate a documentation file for each class and module # - # source://rdoc//lib/rdoc/generator/darkfish.rb#368 + # source://rdoc//rdoc/generator/darkfish.rb#368 def generate_class_files; end # Generate a documentation file for each file # - # source://rdoc//lib/rdoc/generator/darkfish.rb#395 + # source://rdoc//rdoc/generator/darkfish.rb#395 def generate_file_files; end # Generate an index page which lists all the classes which are documented. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#303 + # source://rdoc//rdoc/generator/darkfish.rb#303 def generate_index; end # Generate a page file for +file+ # - # source://rdoc//lib/rdoc/generator/darkfish.rb#464 + # source://rdoc//rdoc/generator/darkfish.rb#464 def generate_page(file); end # Generates the 404 page for the RDoc servlet # - # source://rdoc//lib/rdoc/generator/darkfish.rb#493 + # source://rdoc//rdoc/generator/darkfish.rb#493 def generate_servlet_not_found(message); end # Generates the servlet root page for the RDoc servlet # - # source://rdoc//lib/rdoc/generator/darkfish.rb#526 + # source://rdoc//rdoc/generator/darkfish.rb#526 def generate_servlet_root(installed); end # Generate an index page which lists all the classes which are documented. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#553 + # source://rdoc//rdoc/generator/darkfish.rb#553 def generate_table_of_contents; end # Return a list of the documented modules sorted by salience first, then # by name. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#294 + # source://rdoc//rdoc/generator/darkfish.rb#294 def get_sorted_module_list(classes); end # Try to extract Subversion information out of the first constant whose # value looks like a subversion Id tag. If no matching constant is found, # and empty hash is returned. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#652 + # source://rdoc//rdoc/generator/darkfish.rb#652 def get_svninfo(klass); end - # source://rdoc//lib/rdoc/generator/darkfish.rb#584 + # source://rdoc//rdoc/generator/darkfish.rb#584 def install_rdoc_static_file(source, destination, options); end # The JSON index generator for this Darkfish generator # - # source://rdoc//lib/rdoc/generator/darkfish.rb#129 + # source://rdoc//rdoc/generator/darkfish.rb#129 def json_index; end # Methods to be displayed by this generator # - # source://rdoc//lib/rdoc/generator/darkfish.rb#134 + # source://rdoc//rdoc/generator/darkfish.rb#134 def methods; end # Sorted list of classes and modules to be displayed by this generator # - # source://rdoc//lib/rdoc/generator/darkfish.rb#139 + # source://rdoc//rdoc/generator/darkfish.rb#139 def modsort; end # The output directory # - # source://rdoc//lib/rdoc/generator/darkfish.rb#154 + # source://rdoc//rdoc/generator/darkfish.rb#154 def outputdir; end # Renders the ERb contained in +file_name+ relative to the template # directory and returns the result based on the current context. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#699 + # source://rdoc//rdoc/generator/darkfish.rb#699 def render(file_name); end # Load and render the erb template in the given +template_file+ and write @@ -2360,49 +2333,48 @@ class RDoc::Generator::Darkfish # # An io will be yielded which must be captured by binding in the caller. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#717 + # source://rdoc//rdoc/generator/darkfish.rb#717 def render_template(template_file, out_file = T.unsafe(nil)); end # Prepares for generation of output from the current directory # - # source://rdoc//lib/rdoc/generator/darkfish.rb#604 + # source://rdoc//rdoc/generator/darkfish.rb#604 def setup; end # The RDoc::Store that is the source of the generated content # - # source://rdoc//lib/rdoc/generator/darkfish.rb#144 + # source://rdoc//rdoc/generator/darkfish.rb#144 def store; end # The directory where the template files live # - # source://rdoc//lib/rdoc/generator/darkfish.rb#149 + # source://rdoc//rdoc/generator/darkfish.rb#149 def template_dir; end # Retrieves a cache template for +file+, if present, or fills the cache. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#764 + # source://rdoc//rdoc/generator/darkfish.rb#764 def template_for(file, page = T.unsafe(nil), klass = T.unsafe(nil)); end # Creates the result for +template+ with +context+. If an error is raised a # Pathname +template_file+ will indicate the file where the error occurred. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#751 + # source://rdoc//rdoc/generator/darkfish.rb#751 def template_result(template, context, template_file); end # Return a string describing the amount of time in the given number of # seconds in terms a human can understand easily. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#621 + # source://rdoc//rdoc/generator/darkfish.rb#621 def time_delta_string(seconds); end # Copy over the stylesheet into the appropriate place in the output # directory. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#215 + # source://rdoc//rdoc/generator/darkfish.rb#215 def write_style_sheet; end end -# source://rdoc//lib/rdoc/generator/json_index.rb#77 class RDoc::Generator::JsonIndex include ::RDoc::Text @@ -2413,63 +2385,63 @@ class RDoc::Generator::JsonIndex # # @return [JsonIndex] a new instance of JsonIndex # - # source://rdoc//lib/rdoc/generator/json_index.rb#94 + # source://rdoc//rdoc/generator/json_index.rb#94 def initialize(parent_generator, options); end # Builds the JSON index as a Hash. # - # source://rdoc//lib/rdoc/generator/json_index.rb#110 + # source://rdoc//rdoc/generator/json_index.rb#110 def build_index; end # The directory classes are written to # - # source://rdoc//lib/rdoc/generator/json_index.rb#271 + # source://rdoc//rdoc/generator/json_index.rb#271 def class_dir; end # Output progress information if debugging is enabled # - # source://rdoc//lib/rdoc/generator/json_index.rb#123 + # source://rdoc//rdoc/generator/json_index.rb#123 def debug_msg(*msg); end # The directory files are written to # - # source://rdoc//lib/rdoc/generator/json_index.rb#278 + # source://rdoc//rdoc/generator/json_index.rb#278 def file_dir; end # Writes the JSON index to disk # - # source://rdoc//lib/rdoc/generator/json_index.rb#131 + # source://rdoc//rdoc/generator/json_index.rb#131 def generate; end # Compress the search_index.js file using gzip # - # source://rdoc//lib/rdoc/generator/json_index.rb#166 + # source://rdoc//rdoc/generator/json_index.rb#166 def generate_gzipped; end - # source://rdoc//lib/rdoc/generator/json_index.rb#86 + # source://rdoc//rdoc/generator/json_index.rb#86 def index; end # Adds classes and modules to the index # - # source://rdoc//lib/rdoc/generator/json_index.rb#211 + # source://rdoc//rdoc/generator/json_index.rb#211 def index_classes; end # Adds methods to the index # - # source://rdoc//lib/rdoc/generator/json_index.rb#230 + # source://rdoc//rdoc/generator/json_index.rb#230 def index_methods; end # Adds pages to the index # - # source://rdoc//lib/rdoc/generator/json_index.rb#251 + # source://rdoc//rdoc/generator/json_index.rb#251 def index_pages; end - # source://rdoc//lib/rdoc/generator/json_index.rb#282 + # source://rdoc//rdoc/generator/json_index.rb#282 def reset(files, classes); end # Removes whitespace and downcases +string+ # - # source://rdoc//lib/rdoc/generator/json_index.rb#296 + # source://rdoc//rdoc/generator/json_index.rb#296 def search_string(string); end end @@ -2525,188 +2497,178 @@ end # % rmsgmerge --update locale/ja/rdoc.po doc/rdoc.pot # # You edit locale/ja/rdoc.po to translate new messages. -# -# source://rdoc//lib/rdoc/generator/pot.rb#56 class RDoc::Generator::POT # Set up a new .pot generator # # @return [POT] a new instance of POT # - # source://rdoc//lib/rdoc/generator/pot.rb#68 + # source://rdoc//rdoc/generator/pot.rb#68 def initialize(store, options); end - # source://rdoc//lib/rdoc/generator/pot.rb#85 + # source://rdoc//rdoc/generator/pot.rb#85 def class_dir; end # Writes .pot to disk. # - # source://rdoc//lib/rdoc/generator/pot.rb#76 + # source://rdoc//rdoc/generator/pot.rb#76 def generate; end private - # source://rdoc//lib/rdoc/generator/pot.rb#90 + # source://rdoc//rdoc/generator/pot.rb#90 def extract_messages; end end # Extracts message from RDoc::Store -# -# source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#5 class RDoc::Generator::POT::MessageExtractor # Creates a message extractor for +store+. # # @return [MessageExtractor] a new instance of MessageExtractor # - # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#10 + # source://rdoc//rdoc/generator/pot/message_extractor.rb#10 def initialize(store); end # Extracts messages from +store+, stores them into # RDoc::Generator::POT::PO and returns it. # - # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#19 + # source://rdoc//rdoc/generator/pot/message_extractor.rb#19 def extract; end private - # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#64 + # source://rdoc//rdoc/generator/pot/message_extractor.rb#64 def entry(msgid, options); end - # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#28 + # source://rdoc//rdoc/generator/pot/message_extractor.rb#28 def extract_from_klass(klass); end - # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#51 + # source://rdoc//rdoc/generator/pot/message_extractor.rb#51 def extract_text(text, comment, location = T.unsafe(nil)); end end # Generates a PO format text -# -# source://rdoc//lib/rdoc/generator/pot/po.rb#5 class RDoc::Generator::POT::PO # Creates an object that represents PO format. # # @return [PO] a new instance of PO # - # source://rdoc//lib/rdoc/generator/pot/po.rb#10 + # source://rdoc//rdoc/generator/pot/po.rb#10 def initialize; end # Adds a PO entry to the PO. # - # source://rdoc//lib/rdoc/generator/pot/po.rb#18 + # source://rdoc//rdoc/generator/pot/po.rb#18 def add(entry); end # Returns PO format text for the PO. # - # source://rdoc//lib/rdoc/generator/pot/po.rb#29 + # source://rdoc//rdoc/generator/pot/po.rb#29 def to_s; end private - # source://rdoc//lib/rdoc/generator/pot/po.rb#40 + # source://rdoc//rdoc/generator/pot/po.rb#40 def add_header; end - # source://rdoc//lib/rdoc/generator/pot/po.rb#44 + # source://rdoc//rdoc/generator/pot/po.rb#44 def header_entry; end - # source://rdoc//lib/rdoc/generator/pot/po.rb#73 + # source://rdoc//rdoc/generator/pot/po.rb#73 def sort_entries; end end # A PO entry in PO -# -# source://rdoc//lib/rdoc/generator/pot/po_entry.rb#5 class RDoc::Generator::POT::POEntry # Creates a PO entry for +msgid+. Other valus can be specified by # +options+. # # @return [POEntry] a new instance of POEntry # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#29 + # source://rdoc//rdoc/generator/pot/po_entry.rb#29 def initialize(msgid, options = T.unsafe(nil)); end # The comment content extracted from source file # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#17 + # source://rdoc//rdoc/generator/pot/po_entry.rb#17 def extracted_comment; end # The flags of the PO entry # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#23 + # source://rdoc//rdoc/generator/pot/po_entry.rb#23 def flags; end # Merges the PO entry with +other_entry+. # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#56 + # source://rdoc//rdoc/generator/pot/po_entry.rb#56 def merge(other_entry); end # The msgid content # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#8 + # source://rdoc//rdoc/generator/pot/po_entry.rb#8 def msgid; end # The msgstr content # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#11 + # source://rdoc//rdoc/generator/pot/po_entry.rb#11 def msgstr; end # The locations where the PO entry is extracted # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#20 + # source://rdoc//rdoc/generator/pot/po_entry.rb#20 def references; end # Returns the PO entry in PO format. # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#41 + # source://rdoc//rdoc/generator/pot/po_entry.rb#41 def to_s; end # The comment content created by translator (PO editor) # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#14 + # source://rdoc//rdoc/generator/pot/po_entry.rb#14 def translator_comment; end private - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#120 + # source://rdoc//rdoc/generator/pot/po_entry.rb#120 def escape(string); end - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#72 + # source://rdoc//rdoc/generator/pot/po_entry.rb#72 def format_comment(mark, comment); end - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#88 + # source://rdoc//rdoc/generator/pot/po_entry.rb#88 def format_extracted_comment; end - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#102 + # source://rdoc//rdoc/generator/pot/po_entry.rb#102 def format_flags; end - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#109 + # source://rdoc//rdoc/generator/pot/po_entry.rb#109 def format_message(message); end - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#92 + # source://rdoc//rdoc/generator/pot/po_entry.rb#92 def format_references; end - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#84 + # source://rdoc//rdoc/generator/pot/po_entry.rb#84 def format_translator_comment; end - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#137 + # source://rdoc//rdoc/generator/pot/po_entry.rb#137 def merge_array(array1, array2); end - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#133 + # source://rdoc//rdoc/generator/pot/po_entry.rb#133 def merge_string(string1, string2); end end # Generates ri data files -# -# source://rdoc//lib/rdoc/generator/ri.rb#5 class RDoc::Generator::RI # Set up a new ri generator # # @return [RI] a new instance of RI # - # source://rdoc//lib/rdoc/generator/ri.rb#17 + # source://rdoc//rdoc/generator/ri.rb#17 def initialize(store, options); end # Writes the parsed data store to disk for use by ri. # - # source://rdoc//lib/rdoc/generator/ri.rb#26 + # source://rdoc//rdoc/generator/ri.rb#26 def generate; end end @@ -2716,15 +2678,13 @@ end # # * Loads translated messages from .po file. # * Translates a message into the locale. -# -# source://rdoc//lib/rdoc/i18n/locale.rb#10 class RDoc::I18n::Locale # Creates a new locale object for +name+ locale. +name+ must # follow IETF language tag format. # # @return [Locale] a new instance of Locale # - # source://rdoc//lib/rdoc/i18n/locale.rb#48 + # source://rdoc//rdoc/i18n/locale.rb#48 def initialize(name); end # Loads translation messages from +locale_directory+/+@name+/rdoc.po @@ -2736,7 +2696,7 @@ class RDoc::I18n::Locale # # Returns +true+ if succeeded, +false+ otherwise. # - # source://rdoc//lib/rdoc/i18n/locale.rb#63 + # source://rdoc//rdoc/i18n/locale.rb#63 def load(locale_directory); end # The name of the locale. It uses IETF language tag format @@ -2745,19 +2705,19 @@ class RDoc::I18n::Locale # See also {BCP 47 - Tags for Identifying # Languages}[http://tools.ietf.org/rfc/bcp/bcp47.txt]. # - # source://rdoc//lib/rdoc/i18n/locale.rb#42 + # source://rdoc//rdoc/i18n/locale.rb#42 def name; end # Translates the +message+ into locale. If there is no translation # messages for +message+ in locale, +message+ itself is returned. # - # source://rdoc//lib/rdoc/i18n/locale.rb#98 + # source://rdoc//rdoc/i18n/locale.rb#98 def translate(message); end class << self # Returns the locale object for +locale_name+. # - # source://rdoc//lib/rdoc/i18n/locale.rb#19 + # source://rdoc//rdoc/i18n/locale.rb#19 def [](locale_name); end # Sets the locale object for +locale_name+. @@ -2765,7 +2725,7 @@ class RDoc::I18n::Locale # Normally, this method is not used. This method is useful for # testing. # - # source://rdoc//lib/rdoc/i18n/locale.rb#29 + # source://rdoc//rdoc/i18n/locale.rb#29 def []=(locale_name, locale); end end end @@ -2778,14 +2738,12 @@ end # * Translates wrapped raw text in specified locale. # # Wrapped raw text is one of String, RDoc::Comment or Array of them. -# -# source://rdoc//lib/rdoc/i18n/text.rb#12 class RDoc::I18n::Text # Creates a new i18n supported text for +raw+ text. # # @return [Text] a new instance of Text # - # source://rdoc//lib/rdoc/i18n/text.rb#17 + # source://rdoc//rdoc/i18n/text.rb#17 def initialize(raw); end # Extracts translation target messages and yields each message. @@ -2798,1321 +2756,1320 @@ class RDoc::I18n::Text # # The above content may be added in the future. # - # source://rdoc//lib/rdoc/i18n/text.rb#32 + # source://rdoc//rdoc/i18n/text.rb#32 def extract_messages; end # Translates raw text into +locale+. # - # source://rdoc//lib/rdoc/i18n/text.rb#44 + # source://rdoc//rdoc/i18n/text.rb#44 def translate(locale); end private - # source://rdoc//lib/rdoc/i18n/text.rb#88 + # source://rdoc//rdoc/i18n/text.rb#88 def each_line(raw, &block); end # @yield [part] # - # source://rdoc//lib/rdoc/i18n/text.rb#101 + # source://rdoc//rdoc/i18n/text.rb#101 def emit_empty_line_event(line, line_no); end - # source://rdoc//lib/rdoc/i18n/text.rb#110 + # source://rdoc//rdoc/i18n/text.rb#110 def emit_paragraph_event(paragraph, paragraph_start_line, line_no, &block); end - # source://rdoc//lib/rdoc/i18n/text.rb#60 + # source://rdoc//rdoc/i18n/text.rb#60 def parse(&block); end end -# source://rdoc//lib/rdoc/markdown.rb#182 class RDoc::Markdown # Creates a new markdown parser that enables the given +extensions+. # # @return [Markdown] a new instance of Markdown # - # source://rdoc//lib/rdoc/markdown.rb#668 + # source://rdoc//rdoc/markdown.rb#668 def initialize(extensions = T.unsafe(nil), debug = T.unsafe(nil)); end # Alphanumeric = %literals.Alphanumeric # - # source://rdoc//lib/rdoc/markdown.rb#14705 + # source://rdoc//rdoc/markdown.rb#14705 def _Alphanumeric; end # AlphanumericAscii = %literals.AlphanumericAscii # - # source://rdoc//lib/rdoc/markdown.rb#14712 + # source://rdoc//rdoc/markdown.rb#14712 def _AlphanumericAscii; end # AtxHeading = AtxStart:s @Sp AtxInline+:a (@Sp /#*/ @Sp)? @Newline { RDoc::Markup::Heading.new(s, a.join) } # - # source://rdoc//lib/rdoc/markdown.rb#1162 + # source://rdoc//rdoc/markdown.rb#1162 def _AtxHeading; end # AtxInline = !@Newline !(@Sp /#*/ @Sp @Newline) Inline # - # source://rdoc//lib/rdoc/markdown.rb#1080 + # source://rdoc//rdoc/markdown.rb#1080 def _AtxInline; end # AtxStart = < /\#{1,6}/ > { text.length } # - # source://rdoc//lib/rdoc/markdown.rb#1136 + # source://rdoc//rdoc/markdown.rb#1136 def _AtxStart; end # AutoLink = (AutoLinkUrl | AutoLinkEmail) # - # source://rdoc//lib/rdoc/markdown.rb#11574 + # source://rdoc//rdoc/markdown.rb#11574 def _AutoLink; end # AutoLinkEmail = "<" "mailto:"? < /[\w+.\/!%~$-]+/i "@" (!@Newline !">" .)+ > ">" { "mailto:#{text}" } # - # source://rdoc//lib/rdoc/markdown.rb#11707 + # source://rdoc//rdoc/markdown.rb#11707 def _AutoLinkEmail; end # AutoLinkUrl = "<" < /[A-Za-z]+/ "://" (!@Newline !">" .)+ > ">" { text } # - # source://rdoc//lib/rdoc/markdown.rb#11592 + # source://rdoc//rdoc/markdown.rb#11592 def _AutoLinkUrl; end # BOM = %literals.BOM # - # source://rdoc//lib/rdoc/markdown.rb#14719 + # source://rdoc//rdoc/markdown.rb#14719 def _BOM; end # BlankLine = @Sp @Newline { "\n" } # - # source://rdoc//lib/rdoc/markdown.rb#14148 + # source://rdoc//rdoc/markdown.rb#14148 def _BlankLine; end # Block = @BlankLine* (BlockQuote | Verbatim | CodeFence | Table | Note | Reference | HorizontalRule | Heading | OrderedList | BulletList | DefinitionList | HtmlBlock | StyleBlock | Para | Plain) # - # source://rdoc//lib/rdoc/markdown.rb#939 + # source://rdoc//rdoc/markdown.rb#939 def _Block; end # BlockQuote = BlockQuoteRaw:a { RDoc::Markup::BlockQuote.new(*a) } # - # source://rdoc//lib/rdoc/markdown.rb#1566 + # source://rdoc//rdoc/markdown.rb#1566 def _BlockQuote; end # BlockQuoteRaw = @StartList:a (">" " "? Line:l { a << l } (!">" !@BlankLine Line:c { a << c })* (@BlankLine:n { a << n })*)+ { inner_parse a.join } # - # source://rdoc//lib/rdoc/markdown.rb#1589 + # source://rdoc//rdoc/markdown.rb#1589 def _BlockQuoteRaw; end # Bullet = !HorizontalRule @NonindentSpace /[+*-]/ @Spacechar+ # - # source://rdoc//lib/rdoc/markdown.rb#2154 + # source://rdoc//rdoc/markdown.rb#2154 def _Bullet; end # BulletList = &Bullet (ListTight | ListLoose):a { RDoc::Markup::List.new(:BULLET, *a) } # - # source://rdoc//lib/rdoc/markdown.rb#2198 + # source://rdoc//rdoc/markdown.rb#2198 def _BulletList; end # CharEntity = "&" < /[A-Za-z0-9]+/ > ";" { if entity = HTML_ENTITIES[text] then entity.pack 'U*' else "&#{text};" end } # - # source://rdoc//lib/rdoc/markdown.rb#14812 + # source://rdoc//rdoc/markdown.rb#14812 def _CharEntity; end # Code = (Ticks1 @Sp < ((!"`" Nonspacechar)+ | !Ticks1 /`+/ | !(@Sp Ticks1) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks1 | Ticks2 @Sp < ((!"`" Nonspacechar)+ | !Ticks2 /`+/ | !(@Sp Ticks2) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks2 | Ticks3 @Sp < ((!"`" Nonspacechar)+ | !Ticks3 /`+/ | !(@Sp Ticks3) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks3 | Ticks4 @Sp < ((!"`" Nonspacechar)+ | !Ticks4 /`+/ | !(@Sp Ticks4) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks4 | Ticks5 @Sp < ((!"`" Nonspacechar)+ | !Ticks5 /`+/ | !(@Sp Ticks5) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks5) { "#{text}" } # - # source://rdoc//lib/rdoc/markdown.rb#12511 + # source://rdoc//rdoc/markdown.rb#12511 def _Code; end # CodeFence = &{ github? } Ticks3 (@Sp StrChunk:format)? Spnl < ((!"`" Nonspacechar)+ | !Ticks3 /`+/ | Spacechar | @Newline)+ > Ticks3 @Sp @Newline* { verbatim = RDoc::Markup::Verbatim.new text verbatim.format = format.intern if format.instance_of?(String) verbatim } # - # source://rdoc//lib/rdoc/markdown.rb#15681 + # source://rdoc//rdoc/markdown.rb#15681 def _CodeFence; end # DecEntity = "&#" < /[0-9]+/ > ";" { [text.to_i].pack 'U' } # - # source://rdoc//lib/rdoc/markdown.rb#14776 + # source://rdoc//rdoc/markdown.rb#14776 def _DecEntity; end # DefinitionList = &{ definition_lists? } DefinitionListItem+:list { RDoc::Markup::List.new :NOTE, *list.flatten } # - # source://rdoc//lib/rdoc/markdown.rb#16339 + # source://rdoc//rdoc/markdown.rb#16339 def _DefinitionList; end # DefinitionListDefinition = @NonindentSpace ":" @Space Inlines:a @BlankLine+ { paragraph a } # - # source://rdoc//lib/rdoc/markdown.rb#16482 + # source://rdoc//rdoc/markdown.rb#16482 def _DefinitionListDefinition; end # DefinitionListItem = DefinitionListLabel+:label DefinitionListDefinition+:defns { list_items = [] list_items << RDoc::Markup::ListItem.new(label, defns.shift) list_items.concat defns.map { |defn| RDoc::Markup::ListItem.new nil, defn } unless list_items.empty? list_items } # - # source://rdoc//lib/rdoc/markdown.rb#16383 + # source://rdoc//rdoc/markdown.rb#16383 def _DefinitionListItem; end # DefinitionListLabel = StrChunk:label @Sp @Newline { label } # - # source://rdoc//lib/rdoc/markdown.rb#16449 + # source://rdoc//rdoc/markdown.rb#16449 def _DefinitionListLabel; end # Digit = [0-9] # - # source://rdoc//lib/rdoc/markdown.rb#14691 + # source://rdoc//rdoc/markdown.rb#14691 def _Digit; end # Doc = BOM? Block*:a { RDoc::Markup::Document.new(*a.compact) } # - # source://rdoc//lib/rdoc/markdown.rb#899 + # source://rdoc//rdoc/markdown.rb#899 def _Doc; end # Emph = (EmphStar | EmphUl) # - # source://rdoc//lib/rdoc/markdown.rb#10283 + # source://rdoc//rdoc/markdown.rb#10283 def _Emph; end # EmphStar = "*" !@Whitespace @StartList:a (!"*" Inline:b { a << b } | StrongStar:b { a << b })+ "*" { emphasis a.join } # - # source://rdoc//lib/rdoc/markdown.rb#10319 + # source://rdoc//rdoc/markdown.rb#10319 def _EmphStar; end # EmphUl = "_" !@Whitespace @StartList:a (!"_" Inline:b { a << b } | StrongUl:b { a << b })+ "_" { emphasis a.join } # - # source://rdoc//lib/rdoc/markdown.rb#10477 + # source://rdoc//rdoc/markdown.rb#10477 def _EmphUl; end # EmptyTitle = "" # - # source://rdoc//lib/rdoc/markdown.rb#12086 + # source://rdoc//rdoc/markdown.rb#12086 def _EmptyTitle; end # Endline = (@LineBreak | @TerminalEndline | @NormalEndline) # - # source://rdoc//lib/rdoc/markdown.rb#9917 + # source://rdoc//rdoc/markdown.rb#9917 def _Endline; end # Entity = (HexEntity | DecEntity | CharEntity):a { a } # - # source://rdoc//lib/rdoc/markdown.rb#9880 + # source://rdoc//rdoc/markdown.rb#9880 def _Entity; end # Enumerator = @NonindentSpace [0-9]+ "." @Spacechar+ # - # source://rdoc//lib/rdoc/markdown.rb#2687 + # source://rdoc//rdoc/markdown.rb#2687 def _Enumerator; end # Eof = !. # - # source://rdoc//lib/rdoc/markdown.rb#14542 + # source://rdoc//rdoc/markdown.rb#14542 def _Eof; end # EscapedChar = "\\" !@Newline < /[:\\`|*_{}\[\]()#+.!><-]/ > { text } # - # source://rdoc//lib/rdoc/markdown.rb#9841 + # source://rdoc//rdoc/markdown.rb#9841 def _EscapedChar; end # ExplicitLink = Label:l "(" @Sp Source:s Spnl Title @Sp ")" { "{#{l}}[#{s}]" } # - # source://rdoc//lib/rdoc/markdown.rb#11147 + # source://rdoc//rdoc/markdown.rb#11147 def _ExplicitLink; end # ExtendedSpecialChar = &{ notes? } "^" # - # source://rdoc//lib/rdoc/markdown.rb#15184 + # source://rdoc//rdoc/markdown.rb#15184 def _ExtendedSpecialChar; end # Heading = (SetextHeading | AtxHeading) # - # source://rdoc//lib/rdoc/markdown.rb#1548 + # source://rdoc//rdoc/markdown.rb#1548 def _Heading; end # HexEntity = /&#x/i < /[0-9a-fA-F]+/ > ";" { [text.to_i(16)].pack 'U' } # - # source://rdoc//lib/rdoc/markdown.rb#14740 + # source://rdoc//rdoc/markdown.rb#14740 def _HexEntity; end # HorizontalRule = @NonindentSpace ("*" @Sp "*" @Sp "*" (@Sp "*")* | "-" @Sp "-" @Sp "-" (@Sp "-")* | "_" @Sp "_" @Sp "_" (@Sp "_")*) @Sp @Newline @BlankLine+ { RDoc::Markup::Rule.new 1 } # - # source://rdoc//lib/rdoc/markdown.rb#1932 + # source://rdoc//rdoc/markdown.rb#1932 def _HorizontalRule; end # HtmlAnchor = HtmlOpenAnchor (HtmlAnchor | !HtmlCloseAnchor .)* HtmlCloseAnchor # - # source://rdoc//lib/rdoc/markdown.rb#2971 + # source://rdoc//rdoc/markdown.rb#2971 def _HtmlAnchor; end # HtmlAttribute = (AlphanumericAscii | "-")+ Spnl ("=" Spnl (Quoted | (!">" Nonspacechar)+))? Spnl # - # source://rdoc//lib/rdoc/markdown.rb#14273 + # source://rdoc//rdoc/markdown.rb#14273 def _HtmlAttribute; end # HtmlBlock = < (HtmlBlockInTags | HtmlComment | HtmlBlockSelfClosing | HtmlUnclosed) > @BlankLine+ { if html? then RDoc::Markup::Raw.new text end } # - # source://rdoc//lib/rdoc/markdown.rb#8768 + # source://rdoc//rdoc/markdown.rb#8768 def _HtmlBlock; end # HtmlBlockAddress = HtmlBlockOpenAddress (HtmlBlockAddress | !HtmlBlockCloseAddress .)* HtmlBlockCloseAddress # - # source://rdoc//lib/rdoc/markdown.rb#3137 + # source://rdoc//rdoc/markdown.rb#3137 def _HtmlBlockAddress; end # HtmlBlockBlockquote = HtmlBlockOpenBlockquote (HtmlBlockBlockquote | !HtmlBlockCloseBlockquote .)* HtmlBlockCloseBlockquote # - # source://rdoc//lib/rdoc/markdown.rb#3303 + # source://rdoc//rdoc/markdown.rb#3303 def _HtmlBlockBlockquote; end # HtmlBlockCenter = HtmlBlockOpenCenter (HtmlBlockCenter | !HtmlBlockCloseCenter .)* HtmlBlockCloseCenter # - # source://rdoc//lib/rdoc/markdown.rb#3469 + # source://rdoc//rdoc/markdown.rb#3469 def _HtmlBlockCenter; end # HtmlBlockCloseAddress = "<" Spnl "/" ("address" | "ADDRESS") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3085 + # source://rdoc//rdoc/markdown.rb#3085 def _HtmlBlockCloseAddress; end # HtmlBlockCloseBlockquote = "<" Spnl "/" ("blockquote" | "BLOCKQUOTE") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3251 + # source://rdoc//rdoc/markdown.rb#3251 def _HtmlBlockCloseBlockquote; end # HtmlBlockCloseCenter = "<" Spnl "/" ("center" | "CENTER") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3417 + # source://rdoc//rdoc/markdown.rb#3417 def _HtmlBlockCloseCenter; end # HtmlBlockCloseDd = "<" Spnl "/" ("dd" | "DD") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6737 + # source://rdoc//rdoc/markdown.rb#6737 def _HtmlBlockCloseDd; end # HtmlBlockCloseDir = "<" Spnl "/" ("dir" | "DIR") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3583 + # source://rdoc//rdoc/markdown.rb#3583 def _HtmlBlockCloseDir; end # HtmlBlockCloseDiv = "<" Spnl "/" ("div" | "DIV") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3749 + # source://rdoc//rdoc/markdown.rb#3749 def _HtmlBlockCloseDiv; end # HtmlBlockCloseDl = "<" Spnl "/" ("dl" | "DL") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3915 + # source://rdoc//rdoc/markdown.rb#3915 def _HtmlBlockCloseDl; end # HtmlBlockCloseDt = "<" Spnl "/" ("dt" | "DT") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6903 + # source://rdoc//rdoc/markdown.rb#6903 def _HtmlBlockCloseDt; end # HtmlBlockCloseFieldset = "<" Spnl "/" ("fieldset" | "FIELDSET") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4081 + # source://rdoc//rdoc/markdown.rb#4081 def _HtmlBlockCloseFieldset; end # HtmlBlockCloseForm = "<" Spnl "/" ("form" | "FORM") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4247 + # source://rdoc//rdoc/markdown.rb#4247 def _HtmlBlockCloseForm; end # HtmlBlockCloseFrameset = "<" Spnl "/" ("frameset" | "FRAMESET") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7069 + # source://rdoc//rdoc/markdown.rb#7069 def _HtmlBlockCloseFrameset; end # HtmlBlockCloseH1 = "<" Spnl "/" ("h1" | "H1") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4413 + # source://rdoc//rdoc/markdown.rb#4413 def _HtmlBlockCloseH1; end # HtmlBlockCloseH2 = "<" Spnl "/" ("h2" | "H2") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4579 + # source://rdoc//rdoc/markdown.rb#4579 def _HtmlBlockCloseH2; end # HtmlBlockCloseH3 = "<" Spnl "/" ("h3" | "H3") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4745 + # source://rdoc//rdoc/markdown.rb#4745 def _HtmlBlockCloseH3; end # HtmlBlockCloseH4 = "<" Spnl "/" ("h4" | "H4") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4911 + # source://rdoc//rdoc/markdown.rb#4911 def _HtmlBlockCloseH4; end # HtmlBlockCloseH5 = "<" Spnl "/" ("h5" | "H5") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5077 + # source://rdoc//rdoc/markdown.rb#5077 def _HtmlBlockCloseH5; end # HtmlBlockCloseH6 = "<" Spnl "/" ("h6" | "H6") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5243 + # source://rdoc//rdoc/markdown.rb#5243 def _HtmlBlockCloseH6; end # HtmlBlockCloseHead = "<" Spnl "/" ("head" | "HEAD") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8552 + # source://rdoc//rdoc/markdown.rb#8552 def _HtmlBlockCloseHead; end # HtmlBlockCloseLi = "<" Spnl "/" ("li" | "LI") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7235 + # source://rdoc//rdoc/markdown.rb#7235 def _HtmlBlockCloseLi; end # HtmlBlockCloseMenu = "<" Spnl "/" ("menu" | "MENU") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5409 + # source://rdoc//rdoc/markdown.rb#5409 def _HtmlBlockCloseMenu; end # HtmlBlockCloseNoframes = "<" Spnl "/" ("noframes" | "NOFRAMES") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5575 + # source://rdoc//rdoc/markdown.rb#5575 def _HtmlBlockCloseNoframes; end # HtmlBlockCloseNoscript = "<" Spnl "/" ("noscript" | "NOSCRIPT") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5741 + # source://rdoc//rdoc/markdown.rb#5741 def _HtmlBlockCloseNoscript; end # HtmlBlockCloseOl = "<" Spnl "/" ("ol" | "OL") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5907 + # source://rdoc//rdoc/markdown.rb#5907 def _HtmlBlockCloseOl; end # HtmlBlockCloseP = "<" Spnl "/" ("p" | "P") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6073 + # source://rdoc//rdoc/markdown.rb#6073 def _HtmlBlockCloseP; end # HtmlBlockClosePre = "<" Spnl "/" ("pre" | "PRE") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6239 + # source://rdoc//rdoc/markdown.rb#6239 def _HtmlBlockClosePre; end # HtmlBlockCloseScript = "<" Spnl "/" ("script" | "SCRIPT") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8397 + # source://rdoc//rdoc/markdown.rb#8397 def _HtmlBlockCloseScript; end # HtmlBlockCloseTable = "<" Spnl "/" ("table" | "TABLE") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6405 + # source://rdoc//rdoc/markdown.rb#6405 def _HtmlBlockCloseTable; end # HtmlBlockCloseTbody = "<" Spnl "/" ("tbody" | "TBODY") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7401 + # source://rdoc//rdoc/markdown.rb#7401 def _HtmlBlockCloseTbody; end # HtmlBlockCloseTd = "<" Spnl "/" ("td" | "TD") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7567 + # source://rdoc//rdoc/markdown.rb#7567 def _HtmlBlockCloseTd; end # HtmlBlockCloseTfoot = "<" Spnl "/" ("tfoot" | "TFOOT") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7733 + # source://rdoc//rdoc/markdown.rb#7733 def _HtmlBlockCloseTfoot; end # HtmlBlockCloseTh = "<" Spnl "/" ("th" | "TH") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7899 + # source://rdoc//rdoc/markdown.rb#7899 def _HtmlBlockCloseTh; end # HtmlBlockCloseThead = "<" Spnl "/" ("thead" | "THEAD") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8065 + # source://rdoc//rdoc/markdown.rb#8065 def _HtmlBlockCloseThead; end # HtmlBlockCloseTr = "<" Spnl "/" ("tr" | "TR") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8231 + # source://rdoc//rdoc/markdown.rb#8231 def _HtmlBlockCloseTr; end # HtmlBlockCloseUl = "<" Spnl "/" ("ul" | "UL") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6571 + # source://rdoc//rdoc/markdown.rb#6571 def _HtmlBlockCloseUl; end # HtmlBlockDd = HtmlBlockOpenDd (HtmlBlockDd | !HtmlBlockCloseDd .)* HtmlBlockCloseDd # - # source://rdoc//lib/rdoc/markdown.rb#6789 + # source://rdoc//rdoc/markdown.rb#6789 def _HtmlBlockDd; end # HtmlBlockDir = HtmlBlockOpenDir (HtmlBlockDir | !HtmlBlockCloseDir .)* HtmlBlockCloseDir # - # source://rdoc//lib/rdoc/markdown.rb#3635 + # source://rdoc//rdoc/markdown.rb#3635 def _HtmlBlockDir; end # HtmlBlockDiv = HtmlBlockOpenDiv (HtmlBlockDiv | !HtmlBlockCloseDiv .)* HtmlBlockCloseDiv # - # source://rdoc//lib/rdoc/markdown.rb#3801 + # source://rdoc//rdoc/markdown.rb#3801 def _HtmlBlockDiv; end # HtmlBlockDl = HtmlBlockOpenDl (HtmlBlockDl | !HtmlBlockCloseDl .)* HtmlBlockCloseDl # - # source://rdoc//lib/rdoc/markdown.rb#3967 + # source://rdoc//rdoc/markdown.rb#3967 def _HtmlBlockDl; end # HtmlBlockDt = HtmlBlockOpenDt (HtmlBlockDt | !HtmlBlockCloseDt .)* HtmlBlockCloseDt # - # source://rdoc//lib/rdoc/markdown.rb#6955 + # source://rdoc//rdoc/markdown.rb#6955 def _HtmlBlockDt; end # HtmlBlockFieldset = HtmlBlockOpenFieldset (HtmlBlockFieldset | !HtmlBlockCloseFieldset .)* HtmlBlockCloseFieldset # - # source://rdoc//lib/rdoc/markdown.rb#4133 + # source://rdoc//rdoc/markdown.rb#4133 def _HtmlBlockFieldset; end # HtmlBlockForm = HtmlBlockOpenForm (HtmlBlockForm | !HtmlBlockCloseForm .)* HtmlBlockCloseForm # - # source://rdoc//lib/rdoc/markdown.rb#4299 + # source://rdoc//rdoc/markdown.rb#4299 def _HtmlBlockForm; end # HtmlBlockFrameset = HtmlBlockOpenFrameset (HtmlBlockFrameset | !HtmlBlockCloseFrameset .)* HtmlBlockCloseFrameset # - # source://rdoc//lib/rdoc/markdown.rb#7121 + # source://rdoc//rdoc/markdown.rb#7121 def _HtmlBlockFrameset; end # HtmlBlockH1 = HtmlBlockOpenH1 (HtmlBlockH1 | !HtmlBlockCloseH1 .)* HtmlBlockCloseH1 # - # source://rdoc//lib/rdoc/markdown.rb#4465 + # source://rdoc//rdoc/markdown.rb#4465 def _HtmlBlockH1; end # HtmlBlockH2 = HtmlBlockOpenH2 (HtmlBlockH2 | !HtmlBlockCloseH2 .)* HtmlBlockCloseH2 # - # source://rdoc//lib/rdoc/markdown.rb#4631 + # source://rdoc//rdoc/markdown.rb#4631 def _HtmlBlockH2; end # HtmlBlockH3 = HtmlBlockOpenH3 (HtmlBlockH3 | !HtmlBlockCloseH3 .)* HtmlBlockCloseH3 # - # source://rdoc//lib/rdoc/markdown.rb#4797 + # source://rdoc//rdoc/markdown.rb#4797 def _HtmlBlockH3; end # HtmlBlockH4 = HtmlBlockOpenH4 (HtmlBlockH4 | !HtmlBlockCloseH4 .)* HtmlBlockCloseH4 # - # source://rdoc//lib/rdoc/markdown.rb#4963 + # source://rdoc//rdoc/markdown.rb#4963 def _HtmlBlockH4; end # HtmlBlockH5 = HtmlBlockOpenH5 (HtmlBlockH5 | !HtmlBlockCloseH5 .)* HtmlBlockCloseH5 # - # source://rdoc//lib/rdoc/markdown.rb#5129 + # source://rdoc//rdoc/markdown.rb#5129 def _HtmlBlockH5; end # HtmlBlockH6 = HtmlBlockOpenH6 (HtmlBlockH6 | !HtmlBlockCloseH6 .)* HtmlBlockCloseH6 # - # source://rdoc//lib/rdoc/markdown.rb#5295 + # source://rdoc//rdoc/markdown.rb#5295 def _HtmlBlockH6; end # HtmlBlockHead = HtmlBlockOpenHead (!HtmlBlockCloseHead .)* HtmlBlockCloseHead # - # source://rdoc//lib/rdoc/markdown.rb#8604 + # source://rdoc//rdoc/markdown.rb#8604 def _HtmlBlockHead; end # HtmlBlockInTags = (HtmlAnchor | HtmlBlockAddress | HtmlBlockBlockquote | HtmlBlockCenter | HtmlBlockDir | HtmlBlockDiv | HtmlBlockDl | HtmlBlockFieldset | HtmlBlockForm | HtmlBlockH1 | HtmlBlockH2 | HtmlBlockH3 | HtmlBlockH4 | HtmlBlockH5 | HtmlBlockH6 | HtmlBlockMenu | HtmlBlockNoframes | HtmlBlockNoscript | HtmlBlockOl | HtmlBlockP | HtmlBlockPre | HtmlBlockTable | HtmlBlockUl | HtmlBlockDd | HtmlBlockDt | HtmlBlockFrameset | HtmlBlockLi | HtmlBlockTbody | HtmlBlockTd | HtmlBlockTfoot | HtmlBlockTh | HtmlBlockThead | HtmlBlockTr | HtmlBlockScript | HtmlBlockHead) # - # source://rdoc//lib/rdoc/markdown.rb#8651 + # source://rdoc//rdoc/markdown.rb#8651 def _HtmlBlockInTags; end # HtmlBlockLi = HtmlBlockOpenLi (HtmlBlockLi | !HtmlBlockCloseLi .)* HtmlBlockCloseLi # - # source://rdoc//lib/rdoc/markdown.rb#7287 + # source://rdoc//rdoc/markdown.rb#7287 def _HtmlBlockLi; end # HtmlBlockMenu = HtmlBlockOpenMenu (HtmlBlockMenu | !HtmlBlockCloseMenu .)* HtmlBlockCloseMenu # - # source://rdoc//lib/rdoc/markdown.rb#5461 + # source://rdoc//rdoc/markdown.rb#5461 def _HtmlBlockMenu; end # HtmlBlockNoframes = HtmlBlockOpenNoframes (HtmlBlockNoframes | !HtmlBlockCloseNoframes .)* HtmlBlockCloseNoframes # - # source://rdoc//lib/rdoc/markdown.rb#5627 + # source://rdoc//rdoc/markdown.rb#5627 def _HtmlBlockNoframes; end # HtmlBlockNoscript = HtmlBlockOpenNoscript (HtmlBlockNoscript | !HtmlBlockCloseNoscript .)* HtmlBlockCloseNoscript # - # source://rdoc//lib/rdoc/markdown.rb#5793 + # source://rdoc//rdoc/markdown.rb#5793 def _HtmlBlockNoscript; end # HtmlBlockOl = HtmlBlockOpenOl (HtmlBlockOl | !HtmlBlockCloseOl .)* HtmlBlockCloseOl # - # source://rdoc//lib/rdoc/markdown.rb#5959 + # source://rdoc//rdoc/markdown.rb#5959 def _HtmlBlockOl; end # HtmlBlockOpenAddress = "<" Spnl ("address" | "ADDRESS") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3029 + # source://rdoc//rdoc/markdown.rb#3029 def _HtmlBlockOpenAddress; end # HtmlBlockOpenBlockquote = "<" Spnl ("blockquote" | "BLOCKQUOTE") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3195 + # source://rdoc//rdoc/markdown.rb#3195 def _HtmlBlockOpenBlockquote; end # HtmlBlockOpenCenter = "<" Spnl ("center" | "CENTER") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3361 + # source://rdoc//rdoc/markdown.rb#3361 def _HtmlBlockOpenCenter; end # HtmlBlockOpenDd = "<" Spnl ("dd" | "DD") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6681 + # source://rdoc//rdoc/markdown.rb#6681 def _HtmlBlockOpenDd; end # HtmlBlockOpenDir = "<" Spnl ("dir" | "DIR") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3527 + # source://rdoc//rdoc/markdown.rb#3527 def _HtmlBlockOpenDir; end # HtmlBlockOpenDiv = "<" Spnl ("div" | "DIV") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3693 + # source://rdoc//rdoc/markdown.rb#3693 def _HtmlBlockOpenDiv; end # HtmlBlockOpenDl = "<" Spnl ("dl" | "DL") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3859 + # source://rdoc//rdoc/markdown.rb#3859 def _HtmlBlockOpenDl; end # HtmlBlockOpenDt = "<" Spnl ("dt" | "DT") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6847 + # source://rdoc//rdoc/markdown.rb#6847 def _HtmlBlockOpenDt; end # HtmlBlockOpenFieldset = "<" Spnl ("fieldset" | "FIELDSET") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4025 + # source://rdoc//rdoc/markdown.rb#4025 def _HtmlBlockOpenFieldset; end # HtmlBlockOpenForm = "<" Spnl ("form" | "FORM") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4191 + # source://rdoc//rdoc/markdown.rb#4191 def _HtmlBlockOpenForm; end # HtmlBlockOpenFrameset = "<" Spnl ("frameset" | "FRAMESET") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7013 + # source://rdoc//rdoc/markdown.rb#7013 def _HtmlBlockOpenFrameset; end # HtmlBlockOpenH1 = "<" Spnl ("h1" | "H1") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4357 + # source://rdoc//rdoc/markdown.rb#4357 def _HtmlBlockOpenH1; end # HtmlBlockOpenH2 = "<" Spnl ("h2" | "H2") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4523 + # source://rdoc//rdoc/markdown.rb#4523 def _HtmlBlockOpenH2; end # HtmlBlockOpenH3 = "<" Spnl ("h3" | "H3") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4689 + # source://rdoc//rdoc/markdown.rb#4689 def _HtmlBlockOpenH3; end # HtmlBlockOpenH4 = "<" Spnl ("h4" | "H4") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4855 + # source://rdoc//rdoc/markdown.rb#4855 def _HtmlBlockOpenH4; end # HtmlBlockOpenH5 = "<" Spnl ("h5" | "H5") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5021 + # source://rdoc//rdoc/markdown.rb#5021 def _HtmlBlockOpenH5; end # HtmlBlockOpenH6 = "<" Spnl ("h6" | "H6") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5187 + # source://rdoc//rdoc/markdown.rb#5187 def _HtmlBlockOpenH6; end # HtmlBlockOpenHead = "<" Spnl ("head" | "HEAD") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#8496 + # source://rdoc//rdoc/markdown.rb#8496 def _HtmlBlockOpenHead; end # HtmlBlockOpenLi = "<" Spnl ("li" | "LI") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7179 + # source://rdoc//rdoc/markdown.rb#7179 def _HtmlBlockOpenLi; end # HtmlBlockOpenMenu = "<" Spnl ("menu" | "MENU") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5353 + # source://rdoc//rdoc/markdown.rb#5353 def _HtmlBlockOpenMenu; end # HtmlBlockOpenNoframes = "<" Spnl ("noframes" | "NOFRAMES") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5519 + # source://rdoc//rdoc/markdown.rb#5519 def _HtmlBlockOpenNoframes; end # HtmlBlockOpenNoscript = "<" Spnl ("noscript" | "NOSCRIPT") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5685 + # source://rdoc//rdoc/markdown.rb#5685 def _HtmlBlockOpenNoscript; end # HtmlBlockOpenOl = "<" Spnl ("ol" | "OL") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5851 + # source://rdoc//rdoc/markdown.rb#5851 def _HtmlBlockOpenOl; end # HtmlBlockOpenP = "<" Spnl ("p" | "P") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6017 + # source://rdoc//rdoc/markdown.rb#6017 def _HtmlBlockOpenP; end # HtmlBlockOpenPre = "<" Spnl ("pre" | "PRE") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6183 + # source://rdoc//rdoc/markdown.rb#6183 def _HtmlBlockOpenPre; end # HtmlBlockOpenScript = "<" Spnl ("script" | "SCRIPT") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#8341 + # source://rdoc//rdoc/markdown.rb#8341 def _HtmlBlockOpenScript; end # HtmlBlockOpenTable = "<" Spnl ("table" | "TABLE") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6349 + # source://rdoc//rdoc/markdown.rb#6349 def _HtmlBlockOpenTable; end # HtmlBlockOpenTbody = "<" Spnl ("tbody" | "TBODY") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7345 + # source://rdoc//rdoc/markdown.rb#7345 def _HtmlBlockOpenTbody; end # HtmlBlockOpenTd = "<" Spnl ("td" | "TD") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7511 + # source://rdoc//rdoc/markdown.rb#7511 def _HtmlBlockOpenTd; end # HtmlBlockOpenTfoot = "<" Spnl ("tfoot" | "TFOOT") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7677 + # source://rdoc//rdoc/markdown.rb#7677 def _HtmlBlockOpenTfoot; end # HtmlBlockOpenTh = "<" Spnl ("th" | "TH") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7843 + # source://rdoc//rdoc/markdown.rb#7843 def _HtmlBlockOpenTh; end # HtmlBlockOpenThead = "<" Spnl ("thead" | "THEAD") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#8009 + # source://rdoc//rdoc/markdown.rb#8009 def _HtmlBlockOpenThead; end # HtmlBlockOpenTr = "<" Spnl ("tr" | "TR") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#8175 + # source://rdoc//rdoc/markdown.rb#8175 def _HtmlBlockOpenTr; end # HtmlBlockOpenUl = "<" Spnl ("ul" | "UL") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6515 + # source://rdoc//rdoc/markdown.rb#6515 def _HtmlBlockOpenUl; end # HtmlBlockP = HtmlBlockOpenP (HtmlBlockP | !HtmlBlockCloseP .)* HtmlBlockCloseP # - # source://rdoc//lib/rdoc/markdown.rb#6125 + # source://rdoc//rdoc/markdown.rb#6125 def _HtmlBlockP; end # HtmlBlockPre = HtmlBlockOpenPre (HtmlBlockPre | !HtmlBlockClosePre .)* HtmlBlockClosePre # - # source://rdoc//lib/rdoc/markdown.rb#6291 + # source://rdoc//rdoc/markdown.rb#6291 def _HtmlBlockPre; end # HtmlBlockScript = HtmlBlockOpenScript (!HtmlBlockCloseScript .)* HtmlBlockCloseScript # - # source://rdoc//lib/rdoc/markdown.rb#8449 + # source://rdoc//rdoc/markdown.rb#8449 def _HtmlBlockScript; end # HtmlBlockSelfClosing = "<" Spnl HtmlBlockType Spnl HtmlAttribute* "/" Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8896 + # source://rdoc//rdoc/markdown.rb#8896 def _HtmlBlockSelfClosing; end # HtmlBlockTable = HtmlBlockOpenTable (HtmlBlockTable | !HtmlBlockCloseTable .)* HtmlBlockCloseTable # - # source://rdoc//lib/rdoc/markdown.rb#6457 + # source://rdoc//rdoc/markdown.rb#6457 def _HtmlBlockTable; end # HtmlBlockTbody = HtmlBlockOpenTbody (HtmlBlockTbody | !HtmlBlockCloseTbody .)* HtmlBlockCloseTbody # - # source://rdoc//lib/rdoc/markdown.rb#7453 + # source://rdoc//rdoc/markdown.rb#7453 def _HtmlBlockTbody; end # HtmlBlockTd = HtmlBlockOpenTd (HtmlBlockTd | !HtmlBlockCloseTd .)* HtmlBlockCloseTd # - # source://rdoc//lib/rdoc/markdown.rb#7619 + # source://rdoc//rdoc/markdown.rb#7619 def _HtmlBlockTd; end # HtmlBlockTfoot = HtmlBlockOpenTfoot (HtmlBlockTfoot | !HtmlBlockCloseTfoot .)* HtmlBlockCloseTfoot # - # source://rdoc//lib/rdoc/markdown.rb#7785 + # source://rdoc//rdoc/markdown.rb#7785 def _HtmlBlockTfoot; end # HtmlBlockTh = HtmlBlockOpenTh (HtmlBlockTh | !HtmlBlockCloseTh .)* HtmlBlockCloseTh # - # source://rdoc//lib/rdoc/markdown.rb#7951 + # source://rdoc//rdoc/markdown.rb#7951 def _HtmlBlockTh; end # HtmlBlockThead = HtmlBlockOpenThead (HtmlBlockThead | !HtmlBlockCloseThead .)* HtmlBlockCloseThead # - # source://rdoc//lib/rdoc/markdown.rb#8117 + # source://rdoc//rdoc/markdown.rb#8117 def _HtmlBlockThead; end # HtmlBlockTr = HtmlBlockOpenTr (HtmlBlockTr | !HtmlBlockCloseTr .)* HtmlBlockCloseTr # - # source://rdoc//lib/rdoc/markdown.rb#8283 + # source://rdoc//rdoc/markdown.rb#8283 def _HtmlBlockTr; end # HtmlBlockType = ("ADDRESS" | "BLOCKQUOTE" | "CENTER" | "DD" | "DIR" | "DIV" | "DL" | "DT" | "FIELDSET" | "FORM" | "FRAMESET" | "H1" | "H2" | "H3" | "H4" | "H5" | "H6" | "HR" | "ISINDEX" | "LI" | "MENU" | "NOFRAMES" | "NOSCRIPT" | "OL" | "P" | "PRE" | "SCRIPT" | "TABLE" | "TBODY" | "TD" | "TFOOT" | "TH" | "THEAD" | "TR" | "UL" | "address" | "blockquote" | "center" | "dd" | "dir" | "div" | "dl" | "dt" | "fieldset" | "form" | "frameset" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "hr" | "isindex" | "li" | "menu" | "noframes" | "noscript" | "ol" | "p" | "pre" | "script" | "table" | "tbody" | "td" | "tfoot" | "th" | "thead" | "tr" | "ul") # - # source://rdoc//lib/rdoc/markdown.rb#8951 + # source://rdoc//rdoc/markdown.rb#8951 def _HtmlBlockType; end # HtmlBlockUl = HtmlBlockOpenUl (HtmlBlockUl | !HtmlBlockCloseUl .)* HtmlBlockCloseUl # - # source://rdoc//lib/rdoc/markdown.rb#6623 + # source://rdoc//rdoc/markdown.rb#6623 def _HtmlBlockUl; end # HtmlCloseAnchor = "<" Spnl "/" ("a" | "A") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#2919 + # source://rdoc//rdoc/markdown.rb#2919 def _HtmlCloseAnchor; end # HtmlComment = "" .)* "-->" # - # source://rdoc//lib/rdoc/markdown.rb#14415 + # source://rdoc//rdoc/markdown.rb#14415 def _HtmlComment; end # HtmlOpenAnchor = "<" Spnl ("a" | "A") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#2863 + # source://rdoc//rdoc/markdown.rb#2863 def _HtmlOpenAnchor; end # HtmlTag = "<" Spnl "/"? AlphanumericAscii+ Spnl HtmlAttribute* "/"? Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#14462 + # source://rdoc//rdoc/markdown.rb#14462 def _HtmlTag; end # HtmlUnclosed = "<" Spnl HtmlUnclosedType Spnl HtmlAttribute* Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8828 + # source://rdoc//rdoc/markdown.rb#8828 def _HtmlUnclosed; end # HtmlUnclosedType = ("HR" | "hr") # - # source://rdoc//lib/rdoc/markdown.rb#8878 + # source://rdoc//rdoc/markdown.rb#8878 def _HtmlUnclosedType; end # Image = "!" (ExplicitLink | ReferenceLink):a { "rdoc-image:#{a[/\[(.*)\]/, 1]}" } # - # source://rdoc//lib/rdoc/markdown.rb#10972 + # source://rdoc//rdoc/markdown.rb#10972 def _Image; end # InStyleTags = StyleOpen (!StyleClose .)* StyleClose # - # source://rdoc//lib/rdoc/markdown.rb#9281 + # source://rdoc//rdoc/markdown.rb#9281 def _InStyleTags; end # Indent = /\t| / # - # source://rdoc//lib/rdoc/markdown.rb#14860 + # source://rdoc//rdoc/markdown.rb#14860 def _Indent; end # IndentedLine = Indent Line # - # source://rdoc//lib/rdoc/markdown.rb#14867 + # source://rdoc//rdoc/markdown.rb#14867 def _IndentedLine; end # Inline = (Str | @Endline | UlOrStarLine | @Space | Strong | Emph | Strike | Image | Link | NoteReference | InlineNote | Code | RawHtml | Entity | EscapedChar | Symbol) # - # source://rdoc//lib/rdoc/markdown.rb#9586 + # source://rdoc//rdoc/markdown.rb#9586 def _Inline; end # InlineNote = &{ notes? } "^[" @StartList:a (!"]" Inline:l { a << l })+ "]" { ref = [:inline, @note_order.length] @footnotes[ref] = paragraph a note_for ref } # - # source://rdoc//lib/rdoc/markdown.rb#15431 + # source://rdoc//rdoc/markdown.rb#15431 def _InlineNote; end # Inlines = (!@Endline Inline:i { i } | @Endline:c !(&{ github? } Ticks3 /[^`\n]*$/) &Inline { c })+:chunks @Endline? { chunks } # - # source://rdoc//lib/rdoc/markdown.rb#9365 + # source://rdoc//rdoc/markdown.rb#9365 def _Inlines; end # Label = "[" (!"^" &{ notes? } | &. &{ !notes? }) @StartList:a (!"]" Inline:l { a << l })* "]" { a.join.gsub(/\s+/, ' ') } # - # source://rdoc//lib/rdoc/markdown.rb#11907 + # source://rdoc//rdoc/markdown.rb#11907 def _Label; end # Line = @RawLine:a { a } # - # source://rdoc//lib/rdoc/markdown.rb#14938 + # source://rdoc//rdoc/markdown.rb#14938 def _Line; end # LineBreak = " " @NormalEndline { RDoc::Markup::HardBreak.new } # - # source://rdoc//lib/rdoc/markdown.rb#10042 + # source://rdoc//rdoc/markdown.rb#10042 def _LineBreak; end # Link = (ExplicitLink | ReferenceLink | AutoLink) # - # source://rdoc//lib/rdoc/markdown.rb#11011 + # source://rdoc//rdoc/markdown.rb#11011 def _Link; end # ListBlock = !@BlankLine Line:a ListBlockLine*:c { [a, *c] } # - # source://rdoc//lib/rdoc/markdown.rb#2548 + # source://rdoc//rdoc/markdown.rb#2548 def _ListBlock; end # ListBlockLine = !@BlankLine !(Indent? (Bullet | Enumerator)) !HorizontalRule OptionallyIndentedLine # - # source://rdoc//lib/rdoc/markdown.rb#2793 + # source://rdoc//rdoc/markdown.rb#2793 def _ListBlockLine; end # ListContinuationBlock = @StartList:a @BlankLine* { a << "\n" } (Indent ListBlock:b { a.concat b })+ { a } # - # source://rdoc//lib/rdoc/markdown.rb#2592 + # source://rdoc//rdoc/markdown.rb#2592 def _ListContinuationBlock; end # ListItem = (Bullet | Enumerator) @StartList:a ListBlock:b { a << b } (ListContinuationBlock:c { a.push(*c) })* { list_item_from a } # - # source://rdoc//lib/rdoc/markdown.rb#2392 + # source://rdoc//rdoc/markdown.rb#2392 def _ListItem; end # ListItemTight = (Bullet | Enumerator) ListBlock:a (!@BlankLine ListContinuationBlock:b { a.push(*b) })* !ListContinuationBlock { list_item_from a } # - # source://rdoc//lib/rdoc/markdown.rb#2468 + # source://rdoc//rdoc/markdown.rb#2468 def _ListItemTight; end # ListLoose = @StartList:a (ListItem:b @BlankLine* { a << b })+ { a } # - # source://rdoc//lib/rdoc/markdown.rb#2304 + # source://rdoc//rdoc/markdown.rb#2304 def _ListLoose; end # ListTight = ListItemTight+:a @BlankLine* !(Bullet | Enumerator) { a } # - # source://rdoc//lib/rdoc/markdown.rb#2239 + # source://rdoc//rdoc/markdown.rb#2239 def _ListTight; end # Newline = %literals.Newline # - # source://rdoc//lib/rdoc/markdown.rb#14726 + # source://rdoc//rdoc/markdown.rb#14726 def _Newline; end # NonblankIndentedLine = !@BlankLine IndentedLine # - # source://rdoc//lib/rdoc/markdown.rb#1821 + # source://rdoc//rdoc/markdown.rb#1821 def _NonblankIndentedLine; end # NonindentSpace = / {0,3}/ # - # source://rdoc//lib/rdoc/markdown.rb#14853 + # source://rdoc//rdoc/markdown.rb#14853 def _NonindentSpace; end # Nonspacechar = !@Spacechar !@Newline . # - # source://rdoc//lib/rdoc/markdown.rb#14552 + # source://rdoc//rdoc/markdown.rb#14552 def _Nonspacechar; end # NormalChar = !(@SpecialChar | @Spacechar | @Newline) . # - # source://rdoc//lib/rdoc/markdown.rb#14653 + # source://rdoc//rdoc/markdown.rb#14653 def _NormalChar; end # NormalEndline = @Sp @Newline !@BlankLine !">" !AtxStart !(Line /={1,}|-{1,}/ @Newline) { "\n" } # - # source://rdoc//lib/rdoc/markdown.rb#9938 + # source://rdoc//rdoc/markdown.rb#9938 def _NormalEndline; end # Note = &{ notes? } @NonindentSpace RawNoteReference:ref ":" @Sp @StartList:a RawNoteBlock:i { a.concat i } (&Indent RawNoteBlock:i { a.concat i })* { @footnotes[ref] = paragraph a nil } # - # source://rdoc//lib/rdoc/markdown.rb#15333 + # source://rdoc//rdoc/markdown.rb#15333 def _Note; end # NoteReference = &{ notes? } RawNoteReference:ref { note_for ref } # - # source://rdoc//lib/rdoc/markdown.rb#15207 + # source://rdoc//rdoc/markdown.rb#15207 def _NoteReference; end # Notes = (Note | SkipBlock)* # - # source://rdoc//lib/rdoc/markdown.rb#15538 + # source://rdoc//rdoc/markdown.rb#15538 def _Notes; end # OptionallyIndentedLine = Indent? Line # - # source://rdoc//lib/rdoc/markdown.rb#14888 + # source://rdoc//rdoc/markdown.rb#14888 def _OptionallyIndentedLine; end # OrderedList = &Enumerator (ListTight | ListLoose):a { RDoc::Markup::List.new(:NUMBER, *a) } # - # source://rdoc//lib/rdoc/markdown.rb#2752 + # source://rdoc//rdoc/markdown.rb#2752 def _OrderedList; end # Para = @NonindentSpace Inlines:a @BlankLine+ { paragraph a } # - # source://rdoc//lib/rdoc/markdown.rb#1014 + # source://rdoc//rdoc/markdown.rb#1014 def _Para; end # Plain = Inlines:a { paragraph a } # - # source://rdoc//lib/rdoc/markdown.rb#1057 + # source://rdoc//rdoc/markdown.rb#1057 def _Plain; end # Quoted = ("\"" (!"\"" .)* "\"" | "'" (!"'" .)* "'") # - # source://rdoc//lib/rdoc/markdown.rb#14175 + # source://rdoc//rdoc/markdown.rb#14175 def _Quoted; end # RawHtml = < (HtmlComment | HtmlBlockScript | HtmlTag) > { if html? then text else '' end } # - # source://rdoc//lib/rdoc/markdown.rb#14108 + # source://rdoc//rdoc/markdown.rb#14108 def _RawHtml; end # RawLine = (< /[^\r\n]*/ @Newline > | < .+ > @Eof) { text } # - # source://rdoc//lib/rdoc/markdown.rb#14961 + # source://rdoc//rdoc/markdown.rb#14961 def _RawLine; end # RawNoteBlock = @StartList:a (!@BlankLine !RawNoteReference OptionallyIndentedLine:l { a << l })+ < @BlankLine* > { a << text } { a } # - # source://rdoc//lib/rdoc/markdown.rb#15560 + # source://rdoc//rdoc/markdown.rb#15560 def _RawNoteBlock; end # RawNoteReference = "[^" < (!@Newline !"]" .)+ > "]" { text } # - # source://rdoc//lib/rdoc/markdown.rb#15237 + # source://rdoc//rdoc/markdown.rb#15237 def _RawNoteReference; end # RefSrc = < Nonspacechar+ > { text } # - # source://rdoc//lib/rdoc/markdown.rb#12026 + # source://rdoc//rdoc/markdown.rb#12026 def _RefSrc; end # RefTitle = (RefTitleSingle | RefTitleDouble | RefTitleParens | EmptyTitle) # - # source://rdoc//lib/rdoc/markdown.rb#12062 + # source://rdoc//rdoc/markdown.rb#12062 def _RefTitle; end # RefTitleDouble = Spnl "\"" < (!("\"" @Sp @Newline | @Newline) .)* > "\"" { text } # - # source://rdoc//lib/rdoc/markdown.rb#12185 + # source://rdoc//rdoc/markdown.rb#12185 def _RefTitleDouble; end # RefTitleParens = Spnl "(" < (!(")" @Sp @Newline | @Newline) .)* > ")" { text } # - # source://rdoc//lib/rdoc/markdown.rb#12277 + # source://rdoc//rdoc/markdown.rb#12277 def _RefTitleParens; end # RefTitleSingle = Spnl "'" < (!("'" @Sp @Newline | @Newline) .)* > "'" { text } # - # source://rdoc//lib/rdoc/markdown.rb#12093 + # source://rdoc//rdoc/markdown.rb#12093 def _RefTitleSingle; end # Reference = @NonindentSpace !"[]" Label:label ":" Spnl RefSrc:link RefTitle @BlankLine+ { # TODO use title reference label, link nil } # - # source://rdoc//lib/rdoc/markdown.rb#11832 + # source://rdoc//rdoc/markdown.rb#11832 def _Reference; end # ReferenceLink = (ReferenceLinkDouble | ReferenceLinkSingle) # - # source://rdoc//lib/rdoc/markdown.rb#11032 + # source://rdoc//rdoc/markdown.rb#11032 def _ReferenceLink; end # ReferenceLinkDouble = Label:content < Spnl > !"[]" Label:label { link_to content, label, text } # - # source://rdoc//lib/rdoc/markdown.rb#11050 + # source://rdoc//rdoc/markdown.rb#11050 def _ReferenceLinkDouble; end # ReferenceLinkSingle = Label:content < (Spnl "[]")? > { link_to content, content, text } # - # source://rdoc//lib/rdoc/markdown.rb#11096 + # source://rdoc//rdoc/markdown.rb#11096 def _ReferenceLinkSingle; end # References = (Reference | SkipBlock)* # - # source://rdoc//lib/rdoc/markdown.rb#12369 + # source://rdoc//rdoc/markdown.rb#12369 def _References; end # SetextBottom1 = /={1,}/ @Newline # - # source://rdoc//lib/rdoc/markdown.rb#1262 + # source://rdoc//rdoc/markdown.rb#1262 def _SetextBottom1; end # SetextBottom2 = /-{1,}/ @Newline # - # source://rdoc//lib/rdoc/markdown.rb#1283 + # source://rdoc//rdoc/markdown.rb#1283 def _SetextBottom2; end # SetextHeading = (SetextHeading1 | SetextHeading2) # - # source://rdoc//lib/rdoc/markdown.rb#1244 + # source://rdoc//rdoc/markdown.rb#1244 def _SetextHeading; end # SetextHeading1 = &(@RawLine SetextBottom1) @StartList:a (!@Endline Inline:b { a << b })+ @Sp @Newline SetextBottom1 { RDoc::Markup::Heading.new(1, a.join) } # - # source://rdoc//lib/rdoc/markdown.rb#1304 + # source://rdoc//rdoc/markdown.rb#1304 def _SetextHeading1; end # SetextHeading2 = &(@RawLine SetextBottom2) @StartList:a (!@Endline Inline:b { a << b })+ @Sp @Newline SetextBottom2 { RDoc::Markup::Heading.new(2, a.join) } # - # source://rdoc//lib/rdoc/markdown.rb#1426 + # source://rdoc//rdoc/markdown.rb#1426 def _SetextHeading2; end # SkipBlock = (HtmlBlock | (!"#" !SetextBottom1 !SetextBottom2 !@BlankLine @RawLine)+ @BlankLine* | @BlankLine+ | @RawLine) # - # source://rdoc//lib/rdoc/markdown.rb#15040 + # source://rdoc//rdoc/markdown.rb#15040 def _SkipBlock; end # Source = ("<" < SourceContents > ">" | < SourceContents >) { text } # - # source://rdoc//lib/rdoc/markdown.rb#11206 + # source://rdoc//rdoc/markdown.rb#11206 def _Source; end # SourceContents = ((!"(" !")" !">" Nonspacechar)+ | "(" SourceContents ")")* # - # source://rdoc//lib/rdoc/markdown.rb#11266 + # source://rdoc//rdoc/markdown.rb#11266 def _SourceContents; end # Sp = @Spacechar* # - # source://rdoc//lib/rdoc/markdown.rb#14584 + # source://rdoc//rdoc/markdown.rb#14584 def _Sp; end # Space = @Spacechar+ { " " } # - # source://rdoc//lib/rdoc/markdown.rb#9646 + # source://rdoc//rdoc/markdown.rb#9646 def _Space; end # Spacechar = %literals.Spacechar # - # source://rdoc//lib/rdoc/markdown.rb#14733 + # source://rdoc//rdoc/markdown.rb#14733 def _Spacechar; end # SpecialChar = (/[~*_`&\[\]() { text } | < @Spacechar /\*+/ &@Spacechar > { text }) # - # source://rdoc//lib/rdoc/markdown.rb#10129 + # source://rdoc//rdoc/markdown.rb#10129 def _StarLine; end # StartList = &. { [] } # - # source://rdoc//lib/rdoc/markdown.rb#14914 + # source://rdoc//rdoc/markdown.rb#14914 def _StartList; end # Str = @StartList:a < @NormalChar+ > { a = text } (StrChunk:c { a << c })* { a } # - # source://rdoc//lib/rdoc/markdown.rb#9678 + # source://rdoc//rdoc/markdown.rb#9678 def _Str; end # StrChunk = < (@NormalChar | /_+/ &Alphanumeric)+ > { text } # - # source://rdoc//lib/rdoc/markdown.rb#9751 + # source://rdoc//rdoc/markdown.rb#9751 def _StrChunk; end # Strike = &{ strike? } "~~" !@Whitespace @StartList:a (!"~~" Inline:b { a << b })+ "~~" { strike a.join } # - # source://rdoc//lib/rdoc/markdown.rb#10861 + # source://rdoc//rdoc/markdown.rb#10861 def _Strike; end # Strong = (StrongStar | StrongUl) # - # source://rdoc//lib/rdoc/markdown.rb#10635 + # source://rdoc//rdoc/markdown.rb#10635 def _Strong; end # StrongStar = "**" !@Whitespace @StartList:a (!"**" Inline:b { a << b })+ "**" { strong a.join } # - # source://rdoc//lib/rdoc/markdown.rb#10653 + # source://rdoc//rdoc/markdown.rb#10653 def _StrongStar; end # StrongUl = "__" !@Whitespace @StartList:a (!"__" Inline:b { a << b })+ "__" { strong a.join } # - # source://rdoc//lib/rdoc/markdown.rb#10757 + # source://rdoc//rdoc/markdown.rb#10757 def _StrongUl; end # StyleBlock = < InStyleTags > @BlankLine* { if css? then RDoc::Markup::Raw.new text end } # - # source://rdoc//lib/rdoc/markdown.rb#9328 + # source://rdoc//rdoc/markdown.rb#9328 def _StyleBlock; end # StyleClose = "<" Spnl "/" ("style" | "STYLE") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#9229 + # source://rdoc//rdoc/markdown.rb#9229 def _StyleClose; end # StyleOpen = "<" Spnl ("style" | "STYLE") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#9173 + # source://rdoc//rdoc/markdown.rb#9173 def _StyleOpen; end # Symbol = < @SpecialChar > { text } # - # source://rdoc//lib/rdoc/markdown.rb#10069 + # source://rdoc//rdoc/markdown.rb#10069 def _Symbol; end # Table = &{ github? } TableHead:header TableLine:line TableRow+:body { table = RDoc::Markup::Table.new(header, line, body) } # - # source://rdoc//lib/rdoc/markdown.rb#15937 + # source://rdoc//rdoc/markdown.rb#15937 def _Table; end # TableAlign = < /:?-+:?/ > @Sp { text.start_with?(":") ? (text.end_with?(":") ? :center : :left) : (text.end_with?(":") ? :right : nil) } # - # source://rdoc//lib/rdoc/markdown.rb#16304 + # source://rdoc//rdoc/markdown.rb#16304 def _TableAlign; end # TableAlign2 = "|" @Sp TableAlign # - # source://rdoc//lib/rdoc/markdown.rb#16278 + # source://rdoc//rdoc/markdown.rb#16278 def _TableAlign2; end # TableHead = TableItem2+:items "|"? @Newline { items } # - # source://rdoc//lib/rdoc/markdown.rb#15993 + # source://rdoc//rdoc/markdown.rb#15993 def _TableHead; end # TableItem = < /(?:\\.|[^|\n])+/ > { text.strip.gsub(/\\(.)/, '\1') } # - # source://rdoc//lib/rdoc/markdown.rb#16159 + # source://rdoc//rdoc/markdown.rb#16159 def _TableItem; end # TableItem2 = "|" TableItem # - # source://rdoc//lib/rdoc/markdown.rb#16138 + # source://rdoc//rdoc/markdown.rb#16138 def _TableItem2; end # TableLine = ((TableAlign:align1 TableAlign2*:aligns {[align1, *aligns] }):line | TableAlign2+:line) "|"? @Newline { line } # - # source://rdoc//lib/rdoc/markdown.rb#16185 + # source://rdoc//rdoc/markdown.rb#16185 def _TableLine; end # TableRow = ((TableItem:item1 TableItem2*:items { [item1, *items] }):row | TableItem2+:row) "|"? @Newline { row } # - # source://rdoc//lib/rdoc/markdown.rb#16045 + # source://rdoc//rdoc/markdown.rb#16045 def _TableRow; end # TerminalEndline = @Sp @Newline @Eof # - # source://rdoc//lib/rdoc/markdown.rb#10016 + # source://rdoc//rdoc/markdown.rb#10016 def _TerminalEndline; end # Ticks1 = "`" !"`" # - # source://rdoc//lib/rdoc/markdown.rb#12391 + # source://rdoc//rdoc/markdown.rb#12391 def _Ticks1; end # Ticks2 = "``" !"`" # - # source://rdoc//lib/rdoc/markdown.rb#12415 + # source://rdoc//rdoc/markdown.rb#12415 def _Ticks2; end # Ticks3 = "```" !"`" # - # source://rdoc//lib/rdoc/markdown.rb#12439 + # source://rdoc//rdoc/markdown.rb#12439 def _Ticks3; end # Ticks4 = "````" !"`" # - # source://rdoc//lib/rdoc/markdown.rb#12463 + # source://rdoc//rdoc/markdown.rb#12463 def _Ticks4; end # Ticks5 = "`````" !"`" # - # source://rdoc//lib/rdoc/markdown.rb#12487 + # source://rdoc//rdoc/markdown.rb#12487 def _Ticks5; end # Title = (TitleSingle | TitleDouble | ""):a { a } # - # source://rdoc//lib/rdoc/markdown.rb#11383 + # source://rdoc//rdoc/markdown.rb#11383 def _Title; end # TitleDouble = "\"" (!("\"" @Sp (")" | @Newline)) .)* "\"" # - # source://rdoc//lib/rdoc/markdown.rb#11497 + # source://rdoc//rdoc/markdown.rb#11497 def _TitleDouble; end # TitleSingle = "'" (!("'" @Sp (")" | @Newline)) .)* "'" # - # source://rdoc//lib/rdoc/markdown.rb#11420 + # source://rdoc//rdoc/markdown.rb#11420 def _TitleSingle; end # UlLine = (< /_{4,}/ > { text } | < @Spacechar /_+/ &@Spacechar > { text }) # - # source://rdoc//lib/rdoc/markdown.rb#10206 + # source://rdoc//rdoc/markdown.rb#10206 def _UlLine; end # UlOrStarLine = (UlLine | StarLine):a { a } # - # source://rdoc//lib/rdoc/markdown.rb#10095 + # source://rdoc//rdoc/markdown.rb#10095 def _UlOrStarLine; end # Verbatim = VerbatimChunk+:a { RDoc::Markup::Verbatim.new(*a.flatten) } # - # source://rdoc//lib/rdoc/markdown.rb#1895 + # source://rdoc//rdoc/markdown.rb#1895 def _Verbatim; end # VerbatimChunk = @BlankLine*:a NonblankIndentedLine+:b { a.concat b } # - # source://rdoc//lib/rdoc/markdown.rb#1845 + # source://rdoc//rdoc/markdown.rb#1845 def _VerbatimChunk; end # Whitespace = (@Spacechar | @Newline) # - # source://rdoc//lib/rdoc/markdown.rb#10301 + # source://rdoc//rdoc/markdown.rb#10301 def _Whitespace; end # root = Doc # - # source://rdoc//lib/rdoc/markdown.rb#892 + # source://rdoc//rdoc/markdown.rb#892 def _root; end - # source://rdoc//lib/rdoc/markdown.rb#502 + # source://rdoc//rdoc/markdown.rb#502 def apply(rule); end - # source://rdoc//lib/rdoc/markdown.rb#468 + # source://rdoc//rdoc/markdown.rb#468 def apply_with_args(rule, *args); end - # source://rdoc//lib/rdoc/markdown.rb#610 + # source://rdoc//rdoc/markdown.rb#610 def break_on_newline=(enable); end - # source://rdoc//lib/rdoc/markdown.rb#606 + # source://rdoc//rdoc/markdown.rb#606 def break_on_newline?; end - # source://rdoc//lib/rdoc/markdown.rb#610 + # source://rdoc//rdoc/markdown.rb#610 def css=(enable); end - # source://rdoc//lib/rdoc/markdown.rb#606 + # source://rdoc//rdoc/markdown.rb#606 def css?; end - # source://rdoc//lib/rdoc/markdown.rb#250 + # source://rdoc//rdoc/markdown.rb#250 def current_character(target = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown.rb#211 + # source://rdoc//rdoc/markdown.rb#211 def current_column(target = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown.rb#234 + # source://rdoc//rdoc/markdown.rb#234 def current_line(target = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown.rb#259 + # source://rdoc//rdoc/markdown.rb#259 def current_pos_info(target = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown.rb#610 + # source://rdoc//rdoc/markdown.rb#610 def definition_lists=(enable); end - # source://rdoc//lib/rdoc/markdown.rb#606 + # source://rdoc//rdoc/markdown.rb#606 def definition_lists?; end # Wraps `text` in emphasis for rdoc inline formatting # - # source://rdoc//lib/rdoc/markdown.rb#683 + # source://rdoc//rdoc/markdown.rb#683 def emphasis(text); end # :category: Extensions # # Enables or disables the extension with `name` # - # source://rdoc//lib/rdoc/markdown.rb#705 + # source://rdoc//rdoc/markdown.rb#705 def extension(name, enable); end # :category: Extensions @@ -4121,65 +4078,65 @@ class RDoc::Markdown # # @return [Boolean] # - # source://rdoc//lib/rdoc/markdown.rb#696 + # source://rdoc//rdoc/markdown.rb#696 def extension?(name); end - # source://rdoc//lib/rdoc/markdown.rb#449 + # source://rdoc//rdoc/markdown.rb#449 def external_invoke(other, rule, *args); end # Returns the value of attribute failed_rule. # - # source://rdoc//lib/rdoc/markdown.rb#371 + # source://rdoc//rdoc/markdown.rb#371 def failed_rule; end # Returns the value of attribute failing_rule_offset. # - # source://rdoc//lib/rdoc/markdown.rb#208 + # source://rdoc//rdoc/markdown.rb#208 def failing_rule_offset; end - # source://rdoc//lib/rdoc/markdown.rb#318 + # source://rdoc//rdoc/markdown.rb#318 def failure_caret; end - # source://rdoc//lib/rdoc/markdown.rb#323 + # source://rdoc//rdoc/markdown.rb#323 def failure_character; end - # source://rdoc//lib/rdoc/markdown.rb#306 + # source://rdoc//rdoc/markdown.rb#306 def failure_info; end - # source://rdoc//lib/rdoc/markdown.rb#327 + # source://rdoc//rdoc/markdown.rb#327 def failure_oneline; end - # source://rdoc//lib/rdoc/markdown.rb#393 + # source://rdoc//rdoc/markdown.rb#393 def get_byte; end - # source://rdoc//lib/rdoc/markdown.rb#271 + # source://rdoc//rdoc/markdown.rb#271 def get_line(no); end - # source://rdoc//lib/rdoc/markdown.rb#285 + # source://rdoc//rdoc/markdown.rb#285 def get_text(start); end - # source://rdoc//lib/rdoc/markdown.rb#610 + # source://rdoc//rdoc/markdown.rb#610 def github=(enable); end - # source://rdoc//lib/rdoc/markdown.rb#606 + # source://rdoc//rdoc/markdown.rb#606 def github?; end - # source://rdoc//lib/rdoc/markdown.rb#535 + # source://rdoc//rdoc/markdown.rb#535 def grow_lr(rule, args, start_pos, m); end - # source://rdoc//lib/rdoc/markdown.rb#610 + # source://rdoc//rdoc/markdown.rb#610 def html=(enable); end - # source://rdoc//lib/rdoc/markdown.rb#606 + # source://rdoc//rdoc/markdown.rb#606 def html?; end # Parses `text` in a clone of this parser. This is used for handling nested # lists the same way as markdown_parser. # - # source://rdoc//lib/rdoc/markdown.rb#717 + # source://rdoc//rdoc/markdown.rb#717 def inner_parse(text); end - # source://rdoc//lib/rdoc/markdown.rb#267 + # source://rdoc//rdoc/markdown.rb#267 def lines; end # Finds a link reference for `label` and creates a new link to it with @@ -4189,136 +4146,136 @@ class RDoc::Markdown # # @raise [ParseError] # - # source://rdoc//lib/rdoc/markdown.rb#737 + # source://rdoc//rdoc/markdown.rb#737 def link_to(content, label = T.unsafe(nil), text = T.unsafe(nil)); end # Creates an RDoc::Markup::ListItem by parsing the `unparsed` content from # the first parsing pass. # - # source://rdoc//lib/rdoc/markdown.rb#754 + # source://rdoc//rdoc/markdown.rb#754 def list_item_from(unparsed); end - # source://rdoc//lib/rdoc/markdown.rb#373 + # source://rdoc//rdoc/markdown.rb#373 def match_string(str); end # Stores `label` as a note and fills in previously unknown note references. # - # source://rdoc//lib/rdoc/markdown.rb#762 + # source://rdoc//rdoc/markdown.rb#762 def note(label); end # Creates a new link for the footnote `reference` and adds the reference to # the note order list for proper display at the end of the document. # - # source://rdoc//lib/rdoc/markdown.rb#776 + # source://rdoc//rdoc/markdown.rb#776 def note_for(ref); end - # source://rdoc//lib/rdoc/markdown.rb#610 + # source://rdoc//rdoc/markdown.rb#610 def notes=(enable); end - # source://rdoc//lib/rdoc/markdown.rb#606 + # source://rdoc//rdoc/markdown.rb#606 def notes?; end # Creates an RDoc::Markup::Paragraph from `parts` and including # extension-specific behavior # - # source://rdoc//lib/rdoc/markdown.rb#793 + # source://rdoc//rdoc/markdown.rb#793 def paragraph(parts); end # Parses `markdown` into an RDoc::Document # - # source://rdoc//lib/rdoc/markdown.rb#808 + # source://rdoc//rdoc/markdown.rb#808 def parse(markdown); end # The internal kpeg parse method # - # source://rdoc//lib/rdoc/markdown.rb#414 + # source://rdoc//rdoc/markdown.rb#414 def peg_parse(rule = T.unsafe(nil)); end # Returns the value of attribute pos. # - # source://rdoc//lib/rdoc/markdown.rb#209 + # source://rdoc//rdoc/markdown.rb#209 def pos; end # Sets the attribute pos # # @param value the value to set the attribute pos to. # - # source://rdoc//lib/rdoc/markdown.rb#209 + # source://rdoc//rdoc/markdown.rb#209 def pos=(_arg0); end - # source://rdoc//lib/rdoc/markdown.rb#221 + # source://rdoc//rdoc/markdown.rb#221 def position_line_offsets; end # @raise [ParseError] # - # source://rdoc//lib/rdoc/markdown.rb#341 + # source://rdoc//rdoc/markdown.rb#341 def raise_error; end # Stores `label` as a reference to `link` and fills in previously unknown # link references. # - # source://rdoc//lib/rdoc/markdown.rb#855 + # source://rdoc//rdoc/markdown.rb#855 def reference(label, link); end # Returns the value of attribute result. # - # source://rdoc//lib/rdoc/markdown.rb#209 + # source://rdoc//rdoc/markdown.rb#209 def result; end # Sets the attribute result # # @param value the value to set the attribute result to. # - # source://rdoc//lib/rdoc/markdown.rb#209 + # source://rdoc//rdoc/markdown.rb#209 def result=(_arg0); end - # source://rdoc//lib/rdoc/markdown.rb#383 + # source://rdoc//rdoc/markdown.rb#383 def scan(reg); end - # source://rdoc//lib/rdoc/markdown.rb#364 + # source://rdoc//rdoc/markdown.rb#364 def set_failed_rule(name); end # Sets the string and current parsing position for the parser. # - # source://rdoc//lib/rdoc/markdown.rb#290 + # source://rdoc//rdoc/markdown.rb#290 def set_string(string, pos); end # :stopdoc: # - # source://rdoc//lib/rdoc/markdown.rb#887 + # source://rdoc//rdoc/markdown.rb#887 def setup_foreign_grammar; end # Prepares for parsing +str+. If you define a custom initialize you must # call this method before #parse # - # source://rdoc//lib/rdoc/markdown.rb#196 + # source://rdoc//rdoc/markdown.rb#196 def setup_parser(str, debug = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown.rb#345 + # source://rdoc//rdoc/markdown.rb#345 def show_error(io = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown.rb#297 + # source://rdoc//rdoc/markdown.rb#297 def show_pos; end # Wraps `text` in strike markup for rdoc inline formatting # - # source://rdoc//lib/rdoc/markdown.rb#877 + # source://rdoc//rdoc/markdown.rb#877 def strike(text); end - # source://rdoc//lib/rdoc/markdown.rb#610 + # source://rdoc//rdoc/markdown.rb#610 def strike=(enable); end - # source://rdoc//lib/rdoc/markdown.rb#606 + # source://rdoc//rdoc/markdown.rb#606 def strike?; end # Returns the value of attribute string. # - # source://rdoc//lib/rdoc/markdown.rb#207 + # source://rdoc//rdoc/markdown.rb#207 def string; end # Wraps `text` in strong markup for rdoc inline formatting # - # source://rdoc//lib/rdoc/markdown.rb#866 + # source://rdoc//rdoc/markdown.rb#866 def strong(text); end private @@ -4330,28 +4287,27 @@ class RDoc::Markdown # # @return [Markdown] a new instance of Markdown # - # source://rdoc//lib/rdoc/markdown.rb#188 + # source://rdoc//rdoc/markdown.rb#188 def orig_initialize(str, debug = T.unsafe(nil)); end class << self # Creates extension methods for the `name` extension to enable and disable # the extension and to query if they are active. # - # source://rdoc//lib/rdoc/markdown.rb#603 + # source://rdoc//rdoc/markdown.rb#603 def extension(name); end # Parses the `markdown` document into an RDoc::Document using the default # extensions. # - # source://rdoc//lib/rdoc/markdown.rb#656 + # source://rdoc//rdoc/markdown.rb#656 def parse(markdown); end - # source://rdoc//lib/rdoc/markdown.rb#566 + # source://rdoc//rdoc/markdown.rb#566 def rule_info(name, rendered); end end end -# source://rdoc//lib/rdoc/markdown.rb#257 class RDoc::Markdown::KpegPosInfo < ::Struct # Returns the value of attribute char # @@ -4422,8 +4378,6 @@ end # # Unlike peg-markdown, this set of literals recognizes Unicode alphanumeric # characters, newlines and spaces. -# -# source://rdoc//lib/rdoc/markdown/literals.rb#11 class RDoc::Markdown::Literals # This is distinct from setup_parser so that a standalone parser # can redefine #initialize and still have access to the proper @@ -4431,176 +4385,175 @@ class RDoc::Markdown::Literals # # @return [Literals] a new instance of Literals # - # source://rdoc//lib/rdoc/markdown/literals.rb#17 + # source://rdoc//rdoc/markdown/literals.rb#17 def initialize(str, debug = T.unsafe(nil)); end # Alphanumeric = /\p{Word}/ # - # source://rdoc//lib/rdoc/markdown/literals.rb#405 + # source://rdoc//rdoc/markdown/literals.rb#405 def _Alphanumeric; end # AlphanumericAscii = /[A-Za-z0-9]/ # - # source://rdoc//lib/rdoc/markdown/literals.rb#412 + # source://rdoc//rdoc/markdown/literals.rb#412 def _AlphanumericAscii; end # BOM = "uFEFF" # - # source://rdoc//lib/rdoc/markdown/literals.rb#419 + # source://rdoc//rdoc/markdown/literals.rb#419 def _BOM; end # Newline = /\n|\r\n?|\p{Zl}|\p{Zp}/ # - # source://rdoc//lib/rdoc/markdown/literals.rb#426 + # source://rdoc//rdoc/markdown/literals.rb#426 def _Newline; end # NonAlphanumeric = /\p{^Word}/ # - # source://rdoc//lib/rdoc/markdown/literals.rb#433 + # source://rdoc//rdoc/markdown/literals.rb#433 def _NonAlphanumeric; end # Spacechar = /\t|\p{Zs}/ # - # source://rdoc//lib/rdoc/markdown/literals.rb#440 + # source://rdoc//rdoc/markdown/literals.rb#440 def _Spacechar; end - # source://rdoc//lib/rdoc/markdown/literals.rb#331 + # source://rdoc//rdoc/markdown/literals.rb#331 def apply(rule); end - # source://rdoc//lib/rdoc/markdown/literals.rb#297 + # source://rdoc//rdoc/markdown/literals.rb#297 def apply_with_args(rule, *args); end - # source://rdoc//lib/rdoc/markdown/literals.rb#79 + # source://rdoc//rdoc/markdown/literals.rb#79 def current_character(target = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown/literals.rb#40 + # source://rdoc//rdoc/markdown/literals.rb#40 def current_column(target = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown/literals.rb#63 + # source://rdoc//rdoc/markdown/literals.rb#63 def current_line(target = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown/literals.rb#88 + # source://rdoc//rdoc/markdown/literals.rb#88 def current_pos_info(target = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown/literals.rb#278 + # source://rdoc//rdoc/markdown/literals.rb#278 def external_invoke(other, rule, *args); end # Returns the value of attribute failed_rule. # - # source://rdoc//lib/rdoc/markdown/literals.rb#200 + # source://rdoc//rdoc/markdown/literals.rb#200 def failed_rule; end # Returns the value of attribute failing_rule_offset. # - # source://rdoc//lib/rdoc/markdown/literals.rb#37 + # source://rdoc//rdoc/markdown/literals.rb#37 def failing_rule_offset; end - # source://rdoc//lib/rdoc/markdown/literals.rb#147 + # source://rdoc//rdoc/markdown/literals.rb#147 def failure_caret; end - # source://rdoc//lib/rdoc/markdown/literals.rb#152 + # source://rdoc//rdoc/markdown/literals.rb#152 def failure_character; end - # source://rdoc//lib/rdoc/markdown/literals.rb#135 + # source://rdoc//rdoc/markdown/literals.rb#135 def failure_info; end - # source://rdoc//lib/rdoc/markdown/literals.rb#156 + # source://rdoc//rdoc/markdown/literals.rb#156 def failure_oneline; end - # source://rdoc//lib/rdoc/markdown/literals.rb#222 + # source://rdoc//rdoc/markdown/literals.rb#222 def get_byte; end - # source://rdoc//lib/rdoc/markdown/literals.rb#100 + # source://rdoc//rdoc/markdown/literals.rb#100 def get_line(no); end - # source://rdoc//lib/rdoc/markdown/literals.rb#114 + # source://rdoc//rdoc/markdown/literals.rb#114 def get_text(start); end - # source://rdoc//lib/rdoc/markdown/literals.rb#364 + # source://rdoc//rdoc/markdown/literals.rb#364 def grow_lr(rule, args, start_pos, m); end - # source://rdoc//lib/rdoc/markdown/literals.rb#96 + # source://rdoc//rdoc/markdown/literals.rb#96 def lines; end - # source://rdoc//lib/rdoc/markdown/literals.rb#202 + # source://rdoc//rdoc/markdown/literals.rb#202 def match_string(str); end - # source://rdoc//lib/rdoc/markdown/literals.rb#243 + # source://rdoc//rdoc/markdown/literals.rb#243 def parse(rule = T.unsafe(nil)); end # Returns the value of attribute pos. # - # source://rdoc//lib/rdoc/markdown/literals.rb#38 + # source://rdoc//rdoc/markdown/literals.rb#38 def pos; end # Sets the attribute pos # # @param value the value to set the attribute pos to. # - # source://rdoc//lib/rdoc/markdown/literals.rb#38 + # source://rdoc//rdoc/markdown/literals.rb#38 def pos=(_arg0); end - # source://rdoc//lib/rdoc/markdown/literals.rb#50 + # source://rdoc//rdoc/markdown/literals.rb#50 def position_line_offsets; end # @raise [ParseError] # - # source://rdoc//lib/rdoc/markdown/literals.rb#170 + # source://rdoc//rdoc/markdown/literals.rb#170 def raise_error; end # Returns the value of attribute result. # - # source://rdoc//lib/rdoc/markdown/literals.rb#38 + # source://rdoc//rdoc/markdown/literals.rb#38 def result; end # Sets the attribute result # # @param value the value to set the attribute result to. # - # source://rdoc//lib/rdoc/markdown/literals.rb#38 + # source://rdoc//rdoc/markdown/literals.rb#38 def result=(_arg0); end - # source://rdoc//lib/rdoc/markdown/literals.rb#212 + # source://rdoc//rdoc/markdown/literals.rb#212 def scan(reg); end - # source://rdoc//lib/rdoc/markdown/literals.rb#193 + # source://rdoc//rdoc/markdown/literals.rb#193 def set_failed_rule(name); end # Sets the string and current parsing position for the parser. # - # source://rdoc//lib/rdoc/markdown/literals.rb#119 + # source://rdoc//rdoc/markdown/literals.rb#119 def set_string(string, pos); end # :startdoc: # :stopdoc: # - # source://rdoc//lib/rdoc/markdown/literals.rb#402 + # source://rdoc//rdoc/markdown/literals.rb#402 def setup_foreign_grammar; end # Prepares for parsing +str+. If you define a custom initialize you must # call this method before #parse # - # source://rdoc//lib/rdoc/markdown/literals.rb#25 + # source://rdoc//rdoc/markdown/literals.rb#25 def setup_parser(str, debug = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown/literals.rb#174 + # source://rdoc//rdoc/markdown/literals.rb#174 def show_error(io = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown/literals.rb#126 + # source://rdoc//rdoc/markdown/literals.rb#126 def show_pos; end # Returns the value of attribute string. # - # source://rdoc//lib/rdoc/markdown/literals.rb#36 + # source://rdoc//rdoc/markdown/literals.rb#36 def string; end class << self - # source://rdoc//lib/rdoc/markdown/literals.rb#395 + # source://rdoc//rdoc/markdown/literals.rb#395 def rule_info(name, rendered); end end end -# source://rdoc//lib/rdoc/markdown/literals.rb#86 class RDoc::Markdown::Literals::KpegPosInfo < ::Struct # Returns the value of attribute char # @@ -4666,129 +4619,124 @@ class RDoc::Markdown::Literals::KpegPosInfo < ::Struct end end -# source://rdoc//lib/rdoc/markdown/literals.rb#257 class RDoc::Markdown::Literals::MemoEntry # @return [MemoEntry] a new instance of MemoEntry # - # source://rdoc//lib/rdoc/markdown/literals.rb#258 + # source://rdoc//rdoc/markdown/literals.rb#258 def initialize(ans, pos); end # Returns the value of attribute ans. # - # source://rdoc//lib/rdoc/markdown/literals.rb#266 + # source://rdoc//rdoc/markdown/literals.rb#266 def ans; end # Returns the value of attribute left_rec. # - # source://rdoc//lib/rdoc/markdown/literals.rb#267 + # source://rdoc//rdoc/markdown/literals.rb#267 def left_rec; end # Sets the attribute left_rec # # @param value the value to set the attribute left_rec to. # - # source://rdoc//lib/rdoc/markdown/literals.rb#267 + # source://rdoc//rdoc/markdown/literals.rb#267 def left_rec=(_arg0); end - # source://rdoc//lib/rdoc/markdown/literals.rb#269 + # source://rdoc//rdoc/markdown/literals.rb#269 def move!(ans, pos, result); end # Returns the value of attribute pos. # - # source://rdoc//lib/rdoc/markdown/literals.rb#266 + # source://rdoc//rdoc/markdown/literals.rb#266 def pos; end # Returns the value of attribute result. # - # source://rdoc//lib/rdoc/markdown/literals.rb#266 + # source://rdoc//rdoc/markdown/literals.rb#266 def result; end # Returns the value of attribute set. # - # source://rdoc//lib/rdoc/markdown/literals.rb#266 + # source://rdoc//rdoc/markdown/literals.rb#266 def set; end end -# source://rdoc//lib/rdoc/markdown/literals.rb#386 class RDoc::Markdown::Literals::RuleInfo # @return [RuleInfo] a new instance of RuleInfo # - # source://rdoc//lib/rdoc/markdown/literals.rb#387 + # source://rdoc//rdoc/markdown/literals.rb#387 def initialize(name, rendered); end # Returns the value of attribute name. # - # source://rdoc//lib/rdoc/markdown/literals.rb#392 + # source://rdoc//rdoc/markdown/literals.rb#392 def name; end # Returns the value of attribute rendered. # - # source://rdoc//lib/rdoc/markdown/literals.rb#392 + # source://rdoc//rdoc/markdown/literals.rb#392 def rendered; end end -# source://rdoc//lib/rdoc/markdown.rb#428 class RDoc::Markdown::MemoEntry # @return [MemoEntry] a new instance of MemoEntry # - # source://rdoc//lib/rdoc/markdown.rb#429 + # source://rdoc//rdoc/markdown.rb#429 def initialize(ans, pos); end # Returns the value of attribute ans. # - # source://rdoc//lib/rdoc/markdown.rb#437 + # source://rdoc//rdoc/markdown.rb#437 def ans; end # Returns the value of attribute left_rec. # - # source://rdoc//lib/rdoc/markdown.rb#438 + # source://rdoc//rdoc/markdown.rb#438 def left_rec; end # Sets the attribute left_rec # # @param value the value to set the attribute left_rec to. # - # source://rdoc//lib/rdoc/markdown.rb#438 + # source://rdoc//rdoc/markdown.rb#438 def left_rec=(_arg0); end - # source://rdoc//lib/rdoc/markdown.rb#440 + # source://rdoc//rdoc/markdown.rb#440 def move!(ans, pos, result); end # Returns the value of attribute pos. # - # source://rdoc//lib/rdoc/markdown.rb#437 + # source://rdoc//rdoc/markdown.rb#437 def pos; end # Returns the value of attribute result. # - # source://rdoc//lib/rdoc/markdown.rb#437 + # source://rdoc//rdoc/markdown.rb#437 def result; end # Returns the value of attribute set. # - # source://rdoc//lib/rdoc/markdown.rb#437 + # source://rdoc//rdoc/markdown.rb#437 def set; end end -# source://rdoc//lib/rdoc/markdown.rb#557 class RDoc::Markdown::RuleInfo # @return [RuleInfo] a new instance of RuleInfo # - # source://rdoc//lib/rdoc/markdown.rb#558 + # source://rdoc//rdoc/markdown.rb#558 def initialize(name, rendered); end # Returns the value of attribute name. # - # source://rdoc//lib/rdoc/markdown.rb#563 + # source://rdoc//rdoc/markdown.rb#563 def name; end # Returns the value of attribute rendered. # - # source://rdoc//lib/rdoc/markdown.rb#563 + # source://rdoc//rdoc/markdown.rb#563 def rendered; end end -# source://rdoc//lib/rdoc/markup.rb#106 class RDoc::Markup # Take a block of text and use various heuristics to determine its # structure (paragraphs, lists, and so on). Invoke an event handler as we @@ -4796,12 +4744,12 @@ class RDoc::Markup # # @return [Markup] a new instance of Markup # - # source://rdoc//lib/rdoc/markup.rb#146 + # source://rdoc//rdoc/markup.rb#146 def initialize(attribute_manager = T.unsafe(nil)); end # Add to the sequences recognized as general markup. # - # source://rdoc//lib/rdoc/markup.rb#163 + # source://rdoc//rdoc/markup.rb#163 def add_html(tag, name); end # Add to other inline sequences. For example, we could add WikiWords using @@ -4811,79 +4759,73 @@ class RDoc::Markup # # Each wiki word will be presented to the output formatter. # - # source://rdoc//lib/rdoc/markup.rb#175 + # source://rdoc//rdoc/markup.rb#175 def add_regexp_handling(pattern, name); end # Add to the sequences used to add formatting to an individual word (such # as *bold*). Matching entries will generate attributes that the output # formatters can recognize by their +name+. # - # source://rdoc//lib/rdoc/markup.rb#156 + # source://rdoc//rdoc/markup.rb#156 def add_word_pair(start, stop, name); end # An AttributeManager which handles inline markup. # - # source://rdoc//lib/rdoc/markup.rb#111 + # source://rdoc//rdoc/markup.rb#111 def attribute_manager; end # We take +input+, parse it if necessary, then invoke the output +formatter+ # using a Visitor to render the result. # - # source://rdoc//lib/rdoc/markup.rb#183 + # source://rdoc//rdoc/markup.rb#183 def convert(input, formatter); end class << self # Parses +str+ into an RDoc::Markup::Document. # - # source://rdoc//lib/rdoc/markup.rb#116 + # source://rdoc//rdoc/markup.rb#116 def parse(str); end end end # An AttrChanger records a change in attributes. It contains a bitmap of the # attributes to turn on, and a bitmap of those to turn off. -# -# source://rdoc//lib/rdoc/markup/attr_changer.rb#4 class RDoc::Markup::AttrChanger < ::Struct - # source://rdoc//lib/rdoc/markup/attr_changer.rb#18 + # source://rdoc//rdoc/markup/attr_changer.rb#18 def inspect; end - # source://rdoc//lib/rdoc/markup/attr_changer.rb#14 + # source://rdoc//rdoc/markup/attr_changer.rb#14 def to_s; end end # An array of attributes which parallels the characters in a string. -# -# source://rdoc//lib/rdoc/markup/attr_span.rb#5 class RDoc::Markup::AttrSpan # Creates a new AttrSpan for +length+ characters # # @return [AttrSpan] a new instance of AttrSpan # - # source://rdoc//lib/rdoc/markup/attr_span.rb#10 + # source://rdoc//rdoc/markup/attr_span.rb#10 def initialize(length, exclusive); end # Accesses flags for character +n+ # - # source://rdoc//lib/rdoc/markup/attr_span.rb#31 + # source://rdoc//rdoc/markup/attr_span.rb#31 def [](n); end # Toggles +bits+ from +start+ to +length+ # - # source://rdoc//lib/rdoc/markup/attr_span.rb#17 + # source://rdoc//rdoc/markup/attr_span.rb#17 def set_attrs(start, length, bits); end end # Manages changes of attributes in a block of text -# -# source://rdoc//lib/rdoc/markup/attribute_manager.rb#6 class RDoc::Markup::AttributeManager # Creates a new attribute manager that understands bold, emphasized and # teletype text. # # @return [AttributeManager] a new instance of AttributeManager # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#80 + # source://rdoc//rdoc/markup/attribute_manager.rb#80 def initialize; end # Adds a markup class with +name+ for words surrounded by HTML tag +tag+. @@ -4891,7 +4833,7 @@ class RDoc::Markup::AttributeManager # # am.add_html 'em', :EM # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#286 + # source://rdoc//rdoc/markup/attribute_manager.rb#286 def add_html(tag, name, exclusive = T.unsafe(nil)); end # Adds a regexp handling for +pattern+ with +name+. A simple URL handler @@ -4899,7 +4841,7 @@ class RDoc::Markup::AttributeManager # # @am.add_regexp_handling(/((https?:)\S+\w)/, :HYPERLINK) # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#298 + # source://rdoc//rdoc/markup/attribute_manager.rb#298 def add_regexp_handling(pattern, name, exclusive = T.unsafe(nil)); end # Adds a markup class with +name+ for words wrapped in the +start+ and @@ -4909,196 +4851,188 @@ class RDoc::Markup::AttributeManager # # @raise [ArgumentError] # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#261 + # source://rdoc//rdoc/markup/attribute_manager.rb#261 def add_word_pair(start, stop, name, exclusive = T.unsafe(nil)); end # Return an attribute object with the given turn_on and turn_off bits set # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#103 + # source://rdoc//rdoc/markup/attribute_manager.rb#103 def attribute(turn_on, turn_off); end # The attributes enabled for this markup object. # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#40 + # source://rdoc//rdoc/markup/attribute_manager.rb#40 def attributes; end # Changes the current attribute from +current+ to +new+ # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#110 + # source://rdoc//rdoc/markup/attribute_manager.rb#110 def change_attribute(current, new); end # Used by the tests to change attributes by name from +current_set+ to # +new_set+ # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#119 + # source://rdoc//rdoc/markup/attribute_manager.rb#119 def changed_attribute_by_name(current_set, new_set); end # Map attributes like textto the sequence # \001\002\001\003, where is a per-attribute specific # character # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#154 + # source://rdoc//rdoc/markup/attribute_manager.rb#154 def convert_attrs(str, attrs, exclusive = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#160 + # source://rdoc//rdoc/markup/attribute_manager.rb#160 def convert_attrs_matching_word_pairs(str, attrs, exclusive); end - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#185 + # source://rdoc//rdoc/markup/attribute_manager.rb#185 def convert_attrs_word_pair_map(str, attrs, exclusive); end # Converts HTML tags to RDoc attributes # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#206 + # source://rdoc//rdoc/markup/attribute_manager.rb#206 def convert_html(str, attrs, exclusive = T.unsafe(nil)); end # Converts regexp handling sequences to RDoc attributes # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#223 + # source://rdoc//rdoc/markup/attribute_manager.rb#223 def convert_regexp_handlings(str, attrs, exclusive = T.unsafe(nil)); end # Copies +start_pos+ to +end_pos+ from the current string # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#135 + # source://rdoc//rdoc/markup/attribute_manager.rb#135 def copy_string(start_pos, end_pos); end # Debug method that prints a string along with its attributes # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#329 + # source://rdoc//rdoc/markup/attribute_manager.rb#329 def display_attributes; end # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#142 + # source://rdoc//rdoc/markup/attribute_manager.rb#142 def exclusive?(attr); end # A bits of exclusive maps # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#74 + # source://rdoc//rdoc/markup/attribute_manager.rb#74 def exclusive_bitmap; end # Processes +str+ converting attributes, HTML and regexp handlings # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#307 + # source://rdoc//rdoc/markup/attribute_manager.rb#307 def flow(str); end # This maps HTML tags to the corresponding attribute char # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#58 + # source://rdoc//rdoc/markup/attribute_manager.rb#58 def html_tags; end # Escapes regexp handling sequences of text to prevent conversion to RDoc # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#239 + # source://rdoc//rdoc/markup/attribute_manager.rb#239 def mask_protected_sequences; end # This maps delimiters that occur around words (such as *bold* or +tt+) # where the start and end delimiters and the same. This lets us optimize # the regexp # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#47 + # source://rdoc//rdoc/markup/attribute_manager.rb#47 def matching_word_pairs; end # A \ in front of a character that would normally be processed turns off # processing. We do this by turning \< into <#{PROTECT} # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#64 + # source://rdoc//rdoc/markup/attribute_manager.rb#64 def protectable; end # And this maps _regexp handling_ sequences to a name. A regexp handling # sequence is something like a WikiWord # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#70 + # source://rdoc//rdoc/markup/attribute_manager.rb#70 def regexp_handlings; end # Splits the string into chunks by attribute change # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#354 + # source://rdoc//rdoc/markup/attribute_manager.rb#354 def split_into_flow; end # Unescapes regexp handling sequences of text # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#251 + # source://rdoc//rdoc/markup/attribute_manager.rb#251 def unmask_protected_sequences; end # And this is used when the delimiters aren't the same. In this case the # hash maps a pattern to the attribute character # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#53 + # source://rdoc//rdoc/markup/attribute_manager.rb#53 def word_pair_map; end end -# source://rdoc//lib/rdoc/markup/attribute_manager.rb#147 +# source://rdoc//rdoc/markup/attribute_manager.rb#147 RDoc::Markup::AttributeManager::NON_PRINTING_END = T.let(T.unsafe(nil), String) -# source://rdoc//lib/rdoc/markup/attribute_manager.rb#146 +# source://rdoc//rdoc/markup/attribute_manager.rb#146 RDoc::Markup::AttributeManager::NON_PRINTING_START = T.let(T.unsafe(nil), String) # We manage a set of attributes. Each attribute has a symbol name and a bit # value. -# -# source://rdoc//lib/rdoc/markup/attributes.rb#6 class RDoc::Markup::Attributes # Creates a new attributes set. # # @return [Attributes] a new instance of Attributes # - # source://rdoc//lib/rdoc/markup/attributes.rb#16 + # source://rdoc//rdoc/markup/attributes.rb#16 def initialize; end # Returns a string representation of +bitmap+ # - # source://rdoc//lib/rdoc/markup/attributes.rb#46 + # source://rdoc//rdoc/markup/attributes.rb#46 def as_string(bitmap); end # Returns a unique bit for +name+ # - # source://rdoc//lib/rdoc/markup/attributes.rb#29 + # source://rdoc//rdoc/markup/attributes.rb#29 def bitmap_for(name); end # yields each attribute name in +bitmap+ # - # source://rdoc//lib/rdoc/markup/attributes.rb#60 + # source://rdoc//rdoc/markup/attributes.rb#60 def each_name_of(bitmap); end # The regexp handling attribute type. See RDoc::Markup#add_regexp_handling # - # source://rdoc//lib/rdoc/markup/attributes.rb#11 + # source://rdoc//rdoc/markup/attributes.rb#11 def regexp_handling; end end # An empty line. This class is a singleton. -# -# source://rdoc//lib/rdoc/markup/blank_line.rb#5 class RDoc::Markup::BlankLine # Calls #accept_blank_line on +visitor+ # - # source://rdoc//lib/rdoc/markup/blank_line.rb#19 + # source://rdoc//rdoc/markup/blank_line.rb#19 def accept(visitor); end - # source://rdoc//lib/rdoc/markup/blank_line.rb#23 + # source://rdoc//rdoc/markup/blank_line.rb#23 def pretty_print(q); end class << self # RDoc::Markup::BlankLine is a singleton # - # source://rdoc//lib/rdoc/markup/blank_line.rb#12 + # source://rdoc//rdoc/markup/blank_line.rb#12 def new; end end end # A quoted section which contains markup items. -# -# source://rdoc//lib/rdoc/markup/block_quote.rb#5 class RDoc::Markup::BlockQuote < ::RDoc::Markup::Raw # Calls #accept_block_quote on +visitor+ # - # source://rdoc//lib/rdoc/markup/block_quote.rb#10 + # source://rdoc//rdoc/markup/block_quote.rb#10 def accept(visitor); end end # A Document containing lists, headings, paragraphs, etc. -# -# source://rdoc//lib/rdoc/markup/document.rb#5 class RDoc::Markup::Document include ::Enumerable @@ -5106,48 +5040,48 @@ class RDoc::Markup::Document # # @return [Document] a new instance of Document # - # source://rdoc//lib/rdoc/markup/document.rb#29 + # source://rdoc//rdoc/markup/document.rb#29 def initialize(*parts); end # Appends +part+ to the document # - # source://rdoc//lib/rdoc/markup/document.rb#40 + # source://rdoc//rdoc/markup/document.rb#40 def <<(part); end - # source://rdoc//lib/rdoc/markup/document.rb#56 + # source://rdoc//rdoc/markup/document.rb#56 def ==(other); end # Runs this document and all its #items through +visitor+ # - # source://rdoc//lib/rdoc/markup/document.rb#65 + # source://rdoc//rdoc/markup/document.rb#65 def accept(visitor); end # Concatenates the given +parts+ onto the document # - # source://rdoc//lib/rdoc/markup/document.rb#76 + # source://rdoc//rdoc/markup/document.rb#76 def concat(parts); end # Enumerator for the parts of this document # - # source://rdoc//lib/rdoc/markup/document.rb#83 + # source://rdoc//rdoc/markup/document.rb#83 def each(&block); end # Does this document have no parts? # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/document.rb#90 + # source://rdoc//rdoc/markup/document.rb#90 def empty?; end # The file this document was created from. See also # RDoc::ClassModule#add_comment # - # source://rdoc//lib/rdoc/markup/document.rb#13 + # source://rdoc//rdoc/markup/document.rb#13 def file; end # The file this Document was created from. # - # source://rdoc//lib/rdoc/markup/document.rb#97 + # source://rdoc//rdoc/markup/document.rb#97 def file=(location); end # When this is a collection of documents (#file is not set and this document @@ -5157,46 +5091,46 @@ class RDoc::Markup::Document # # The information in +other+ is preferred over the receiver # - # source://rdoc//lib/rdoc/markup/document.rb#114 + # source://rdoc//rdoc/markup/document.rb#114 def merge(other); end # Does this Document contain other Documents? # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/document.rb#134 + # source://rdoc//rdoc/markup/document.rb#134 def merged?; end # If a heading is below the given level it will be omitted from the # table_of_contents # - # source://rdoc//lib/rdoc/markup/document.rb#19 + # source://rdoc//rdoc/markup/document.rb#19 def omit_headings_below; end # If a heading is below the given level it will be omitted from the # table_of_contents # - # source://rdoc//lib/rdoc/markup/document.rb#19 + # source://rdoc//rdoc/markup/document.rb#19 def omit_headings_below=(_arg0); end # The parts of the Document # - # source://rdoc//lib/rdoc/markup/document.rb#24 + # source://rdoc//rdoc/markup/document.rb#24 def parts; end - # source://rdoc//lib/rdoc/markup/document.rb#138 + # source://rdoc//rdoc/markup/document.rb#138 def pretty_print(q); end # Appends +parts+ to the document # - # source://rdoc//lib/rdoc/markup/document.rb#151 + # source://rdoc//rdoc/markup/document.rb#151 def push(*parts); end # Returns an Array of headings in the document. # # Require 'rdoc/markup/formatter' before calling this method. # - # source://rdoc//lib/rdoc/markup/document.rb#160 + # source://rdoc//rdoc/markup/document.rb#160 def table_of_contents; end end @@ -5209,61 +5143,59 @@ end # If you'd like to write your own Formatter use # RDoc::Markup::FormatterTestCase. If you're writing a text-output formatter # use RDoc::Markup::TextFormatterTestCase which provides extra test cases. -# -# source://rdoc//lib/rdoc/markup/formatter.rb#13 class RDoc::Markup::Formatter # Creates a new Formatter # # @return [Formatter] a new instance of Formatter # - # source://rdoc//lib/rdoc/markup/formatter.rb#48 + # source://rdoc//rdoc/markup/formatter.rb#48 def initialize(options, markup = T.unsafe(nil)); end # Adds +document+ to the output # - # source://rdoc//lib/rdoc/markup/formatter.rb#69 + # source://rdoc//rdoc/markup/formatter.rb#69 def accept_document(document); end # Adds a regexp handling for links of the form rdoc-...: # - # source://rdoc//lib/rdoc/markup/formatter.rb#83 + # source://rdoc//rdoc/markup/formatter.rb#83 def add_regexp_handling_RDOCLINK; end # Adds a regexp handling for links of the form {}[] and # [] # - # source://rdoc//lib/rdoc/markup/formatter.rb#91 + # source://rdoc//rdoc/markup/formatter.rb#91 def add_regexp_handling_TIDYLINK; end # Add a new set of tags for an attribute. We allow separate start and end # tags for flexibility # - # source://rdoc//lib/rdoc/markup/formatter.rb#105 + # source://rdoc//rdoc/markup/formatter.rb#105 def add_tag(name, start, stop); end # Allows +tag+ to be decorated with additional information. # - # source://rdoc//lib/rdoc/markup/formatter.rb#113 + # source://rdoc//rdoc/markup/formatter.rb#113 def annotate(tag); end # Marks up +content+ # - # source://rdoc//lib/rdoc/markup/formatter.rb#120 + # source://rdoc//rdoc/markup/formatter.rb#120 def convert(content); end # Converts flow items +flow+ # - # source://rdoc//lib/rdoc/markup/formatter.rb#127 + # source://rdoc//rdoc/markup/formatter.rb#127 def convert_flow(flow); end # Converts added regexp handlings. See RDoc::Markup#add_regexp_handling # - # source://rdoc//lib/rdoc/markup/formatter.rb#150 + # source://rdoc//rdoc/markup/formatter.rb#150 def convert_regexp_handling(target); end # Converts a string to be fancier if desired # - # source://rdoc//lib/rdoc/markup/formatter.rb#176 + # source://rdoc//rdoc/markup/formatter.rb#176 def convert_string(string); end # Use ignore in your subclass to ignore the content of a node. @@ -5273,91 +5205,88 @@ class RDoc::Markup::Formatter # # alias accept_raw ignore # - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def ignore(*node); end # Are we currently inside tt tags? # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/formatter.rb#194 + # source://rdoc//rdoc/markup/formatter.rb#194 def in_tt?; end # Turns off tags for +item+ on +res+ # - # source://rdoc//lib/rdoc/markup/formatter.rb#216 + # source://rdoc//rdoc/markup/formatter.rb#216 def off_tags(res, item); end # Turns on tags for +item+ on +res+ # - # source://rdoc//lib/rdoc/markup/formatter.rb#201 + # source://rdoc//rdoc/markup/formatter.rb#201 def on_tags(res, item); end # Extracts and a scheme, url and an anchor id from +url+ and returns them. # - # source://rdoc//lib/rdoc/markup/formatter.rb#231 + # source://rdoc//rdoc/markup/formatter.rb#231 def parse_url(url); end # Is +tag+ a tt tag? # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/formatter.rb#261 + # source://rdoc//rdoc/markup/formatter.rb#261 def tt?(tag); end class << self # Converts a target url to one that is relative to a given path # - # source://rdoc//lib/rdoc/markup/formatter.rb#24 + # source://rdoc//rdoc/markup/formatter.rb#24 def gen_relative_url(path, target); end end end # A hard-break in the middle of a paragraph. -# -# source://rdoc//lib/rdoc/markup/hard_break.rb#5 class RDoc::Markup::HardBreak - # source://rdoc//lib/rdoc/markup/hard_break.rb#23 + # source://rdoc//rdoc/markup/hard_break.rb#23 def ==(other); end # Calls #accept_hard_break on +visitor+ # - # source://rdoc//lib/rdoc/markup/hard_break.rb#19 + # source://rdoc//rdoc/markup/hard_break.rb#19 def accept(visitor); end - # source://rdoc//lib/rdoc/markup/hard_break.rb#27 + # source://rdoc//rdoc/markup/hard_break.rb#27 def pretty_print(q); end class << self # RDoc::Markup::HardBreak is a singleton # - # source://rdoc//lib/rdoc/markup/hard_break.rb#12 + # source://rdoc//rdoc/markup/hard_break.rb#12 def new; end end end -# source://rdoc//lib/rdoc/markup/heading.rb#6 class RDoc::Markup::Heading < ::Struct - # source://rdoc//lib/rdoc/markup/heading.rb#40 + # source://rdoc//rdoc/markup/heading.rb#40 def accept(visitor); end - # source://rdoc//lib/rdoc/markup/heading.rb#47 + # source://rdoc//rdoc/markup/heading.rb#47 def aref; end - # source://rdoc//lib/rdoc/markup/heading.rb#55 + # source://rdoc//rdoc/markup/heading.rb#55 def label(context = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markup/heading.rb#68 + # source://rdoc//rdoc/markup/heading.rb#68 def plain_html; end - # source://rdoc//lib/rdoc/markup/heading.rb#72 + # source://rdoc//rdoc/markup/heading.rb#72 def pretty_print(q); end class << self - # source://rdoc//lib/rdoc/markup/heading.rb#22 + # source://rdoc//rdoc/markup/heading.rb#22 def to_html; end - # source://rdoc//lib/rdoc/markup/heading.rb#14 + # source://rdoc//rdoc/markup/heading.rb#14 def to_label; end end end @@ -5366,62 +5295,58 @@ end # RDoc::RD for an extension-less include. # # This implementation in incomplete. -# -# source://rdoc//lib/rdoc/markup/include.rb#8 class RDoc::Markup::Include # Creates a new include that will import +file+ from +include_path+ # # @return [Include] a new instance of Include # - # source://rdoc//lib/rdoc/markup/include.rb#23 + # source://rdoc//rdoc/markup/include.rb#23 def initialize(file, include_path); end - # source://rdoc//lib/rdoc/markup/include.rb#28 + # source://rdoc//rdoc/markup/include.rb#28 def ==(other); end # The filename to be included, without extension # - # source://rdoc//lib/rdoc/markup/include.rb#13 + # source://rdoc//rdoc/markup/include.rb#13 def file; end # Directories to search for #file # - # source://rdoc//lib/rdoc/markup/include.rb#18 + # source://rdoc//rdoc/markup/include.rb#18 def include_path; end - # source://rdoc//lib/rdoc/markup/include.rb#33 + # source://rdoc//rdoc/markup/include.rb#33 def pretty_print(q); end end # An Indented Paragraph of text -# -# source://rdoc//lib/rdoc/markup/indented_paragraph.rb#5 class RDoc::Markup::IndentedParagraph < ::RDoc::Markup::Raw # Creates a new IndentedParagraph containing +parts+ indented with +indent+ # spaces # # @return [IndentedParagraph] a new instance of IndentedParagraph # - # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#16 + # source://rdoc//rdoc/markup/indented_paragraph.rb#16 def initialize(indent, *parts); end - # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#22 + # source://rdoc//rdoc/markup/indented_paragraph.rb#22 def ==(other); end # Calls #accept_indented_paragraph on +visitor+ # - # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#29 + # source://rdoc//rdoc/markup/indented_paragraph.rb#29 def accept(visitor); end # The indent in number of spaces # - # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#10 + # source://rdoc//rdoc/markup/indented_paragraph.rb#10 def indent; end # Joins the raw paragraph text and converts inline HardBreaks to the # +hard_break+ text followed by the indent. # - # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#37 + # source://rdoc//rdoc/markup/indented_paragraph.rb#37 def text(hard_break = T.unsafe(nil)); end end @@ -5445,63 +5370,61 @@ end # Definition lists behave like HTML definition lists. Each list item can # describe multiple terms. See RDoc::Markup::ListItem for how labels and # definition are stored as list items. -# -# source://rdoc//lib/rdoc/markup/list.rb#24 class RDoc::Markup::List # Creates a new list of +type+ with +items+. Valid list types are: # +:BULLET+, +:LABEL+, +:LALPHA+, +:NOTE+, +:NUMBER+, +:UALPHA+ # # @return [List] a new instance of List # - # source://rdoc//lib/rdoc/markup/list.rb#40 + # source://rdoc//rdoc/markup/list.rb#40 def initialize(type = T.unsafe(nil), *items); end # Appends +item+ to the list # - # source://rdoc//lib/rdoc/markup/list.rb#49 + # source://rdoc//rdoc/markup/list.rb#49 def <<(item); end - # source://rdoc//lib/rdoc/markup/list.rb#53 + # source://rdoc//rdoc/markup/list.rb#53 def ==(other); end # Runs this list and all its #items through +visitor+ # - # source://rdoc//lib/rdoc/markup/list.rb#62 + # source://rdoc//rdoc/markup/list.rb#62 def accept(visitor); end # Is the list empty? # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/list.rb#75 + # source://rdoc//rdoc/markup/list.rb#75 def empty?; end # Items in the list # - # source://rdoc//lib/rdoc/markup/list.rb#34 + # source://rdoc//rdoc/markup/list.rb#34 def items; end # Returns the last item in the list # - # source://rdoc//lib/rdoc/markup/list.rb#82 + # source://rdoc//rdoc/markup/list.rb#82 def last; end - # source://rdoc//lib/rdoc/markup/list.rb#86 + # source://rdoc//rdoc/markup/list.rb#86 def pretty_print(q); end # Appends +items+ to the list # - # source://rdoc//lib/rdoc/markup/list.rb#97 + # source://rdoc//rdoc/markup/list.rb#97 def push(*items); end # The list's type # - # source://rdoc//lib/rdoc/markup/list.rb#29 + # source://rdoc//rdoc/markup/list.rb#29 def type; end # The list's type # - # source://rdoc//lib/rdoc/markup/list.rb#29 + # source://rdoc//rdoc/markup/list.rb#29 def type=(_arg0); end end @@ -5513,78 +5436,74 @@ end # * a single String for a single label # * an Array of Strings for a list item with multiple terms # * nil for an extra description attached to a previously labeled list item -# -# source://rdoc//lib/rdoc/markup/list_item.rb#12 class RDoc::Markup::ListItem # Creates a new ListItem with an optional +label+ containing +parts+ # # @return [ListItem] a new instance of ListItem # - # source://rdoc//lib/rdoc/markup/list_item.rb#27 + # source://rdoc//rdoc/markup/list_item.rb#27 def initialize(label = T.unsafe(nil), *parts); end # Appends +part+ to the ListItem # - # source://rdoc//lib/rdoc/markup/list_item.rb#36 + # source://rdoc//rdoc/markup/list_item.rb#36 def <<(part); end - # source://rdoc//lib/rdoc/markup/list_item.rb#40 + # source://rdoc//rdoc/markup/list_item.rb#40 def ==(other); end # Runs this list item and all its #parts through +visitor+ # - # source://rdoc//lib/rdoc/markup/list_item.rb#49 + # source://rdoc//rdoc/markup/list_item.rb#49 def accept(visitor); end # Is the ListItem empty? # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/list_item.rb#62 + # source://rdoc//rdoc/markup/list_item.rb#62 def empty?; end # The label for the ListItem # - # source://rdoc//lib/rdoc/markup/list_item.rb#17 + # source://rdoc//rdoc/markup/list_item.rb#17 def label; end # The label for the ListItem # - # source://rdoc//lib/rdoc/markup/list_item.rb#17 + # source://rdoc//rdoc/markup/list_item.rb#17 def label=(_arg0); end # Length of parts in the ListItem # - # source://rdoc//lib/rdoc/markup/list_item.rb#69 + # source://rdoc//rdoc/markup/list_item.rb#69 def length; end # Parts of the ListItem # - # source://rdoc//lib/rdoc/markup/list_item.rb#22 + # source://rdoc//rdoc/markup/list_item.rb#22 def parts; end - # source://rdoc//lib/rdoc/markup/list_item.rb#73 + # source://rdoc//rdoc/markup/list_item.rb#73 def pretty_print(q); end # Adds +parts+ to the ListItem # - # source://rdoc//lib/rdoc/markup/list_item.rb#95 + # source://rdoc//rdoc/markup/list_item.rb#95 def push(*parts); end end # A Paragraph of text -# -# source://rdoc//lib/rdoc/markup/paragraph.rb#5 class RDoc::Markup::Paragraph < ::RDoc::Markup::Raw # Calls #accept_paragraph on +visitor+ # - # source://rdoc//lib/rdoc/markup/paragraph.rb#10 + # source://rdoc//rdoc/markup/paragraph.rb#10 def accept(visitor); end # Joins the raw paragraph text and converts inline HardBreaks to the # +hard_break+ text. # - # source://rdoc//lib/rdoc/markup/paragraph.rb#18 + # source://rdoc//rdoc/markup/paragraph.rb#18 def text(hard_break = T.unsafe(nil)); end end @@ -5601,8 +5520,6 @@ end # # To see what markup the Parser implements read RDoc. To see how to use # RDoc markup to format text in your program read RDoc::Markup. -# -# source://rdoc//lib/rdoc/markup/parser.rb#19 class RDoc::Markup::Parser include ::RDoc::Text @@ -5610,22 +5527,22 @@ class RDoc::Markup::Parser # # @return [Parser] a new instance of Parser # - # source://rdoc//lib/rdoc/markup/parser.rb#79 + # source://rdoc//rdoc/markup/parser.rb#79 def initialize; end # Builds a Heading of +level+ # - # source://rdoc//lib/rdoc/markup/parser.rb#90 + # source://rdoc//rdoc/markup/parser.rb#90 def build_heading(level); end # Builds a List flush to +margin+ # - # source://rdoc//lib/rdoc/markup/parser.rb#108 + # source://rdoc//rdoc/markup/parser.rb#108 def build_list(margin); end # Builds a Paragraph that is flush to +margin+ # - # source://rdoc//lib/rdoc/markup/parser.rb#208 + # source://rdoc//rdoc/markup/parser.rb#208 def build_paragraph(margin); end # Builds a Verbatim that is indented from +margin+. @@ -5635,22 +5552,22 @@ class RDoc::Markup::Parser # terminated by a newline. Blank lines always consist of a single newline # character, and there is never a single newline at the end of the verbatim. # - # source://rdoc//lib/rdoc/markup/parser.rb#243 + # source://rdoc//rdoc/markup/parser.rb#243 def build_verbatim(margin); end # Enables display of debugging information # - # source://rdoc//lib/rdoc/markup/parser.rb#48 + # source://rdoc//rdoc/markup/parser.rb#48 def debug; end # Enables display of debugging information # - # source://rdoc//lib/rdoc/markup/parser.rb#48 + # source://rdoc//rdoc/markup/parser.rb#48 def debug=(_arg0); end # Pulls the next token from the stream. # - # source://rdoc//lib/rdoc/markup/parser.rb#327 + # source://rdoc//rdoc/markup/parser.rb#327 def get; end # Parses the tokens into an array of RDoc::Markup::XXX objects, @@ -5661,22 +5578,22 @@ class RDoc::Markup::Parser # # Returns +parent+. # - # source://rdoc//lib/rdoc/markup/parser.rb#342 + # source://rdoc//rdoc/markup/parser.rb#342 def parse(parent, indent = T.unsafe(nil)); end # Small hook that is overridden by RDoc::TomDoc # - # source://rdoc//lib/rdoc/markup/parser.rb#406 + # source://rdoc//rdoc/markup/parser.rb#406 def parse_text(parent, indent); end # Returns the next token on the stream without modifying the stream # - # source://rdoc//lib/rdoc/markup/parser.rb#413 + # source://rdoc//rdoc/markup/parser.rb#413 def peek_token; end # Creates the StringScanner # - # source://rdoc//lib/rdoc/markup/parser.rb#468 + # source://rdoc//rdoc/markup/parser.rb#468 def setup_scanner(input); end # Skips the next token if its type is +token_type+. @@ -5685,24 +5602,24 @@ class RDoc::Markup::Parser # # @raise [ParseError] # - # source://rdoc//lib/rdoc/markup/parser.rb#477 + # source://rdoc//rdoc/markup/parser.rb#477 def skip(token_type, error = T.unsafe(nil)); end # Turns text +input+ into a stream of tokens # - # source://rdoc//lib/rdoc/markup/parser.rb#488 + # source://rdoc//rdoc/markup/parser.rb#488 def tokenize(input); end # Token accessor # - # source://rdoc//lib/rdoc/markup/parser.rb#53 + # source://rdoc//rdoc/markup/parser.rb#53 def tokens; end # Returns the current token to the token stream # # @raise [Error] # - # source://rdoc//lib/rdoc/markup/parser.rb#578 + # source://rdoc//rdoc/markup/parser.rb#578 def unget; end class << self @@ -5710,48 +5627,46 @@ class RDoc::Markup::Parser # # Use RDoc::Markup#parse instead of this method. # - # source://rdoc//lib/rdoc/markup/parser.rb#60 + # source://rdoc//rdoc/markup/parser.rb#60 def parse(str); end # Returns a token stream for +str+, for testing # - # source://rdoc//lib/rdoc/markup/parser.rb#70 + # source://rdoc//rdoc/markup/parser.rb#70 def tokenize(str); end end end # A simple wrapper of StringScanner that is aware of the current column and lineno -# -# source://rdoc//lib/rdoc/markup/parser.rb#422 class RDoc::Markup::Parser::MyStringScanner # :stopdoc: # # @return [MyStringScanner] a new instance of MyStringScanner # - # source://rdoc//lib/rdoc/markup/parser.rb#425 + # source://rdoc//rdoc/markup/parser.rb#425 def initialize(input); end - # source://rdoc//lib/rdoc/markup/parser.rb#458 + # source://rdoc//rdoc/markup/parser.rb#458 def [](i); end # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/parser.rb#450 + # source://rdoc//rdoc/markup/parser.rb#450 def eos?; end - # source://rdoc//lib/rdoc/markup/parser.rb#454 + # source://rdoc//rdoc/markup/parser.rb#454 def matched; end - # source://rdoc//lib/rdoc/markup/parser.rb#445 + # source://rdoc//rdoc/markup/parser.rb#445 def newline!; end - # source://rdoc//lib/rdoc/markup/parser.rb#441 + # source://rdoc//rdoc/markup/parser.rb#441 def pos; end - # source://rdoc//lib/rdoc/markup/parser.rb#430 + # source://rdoc//rdoc/markup/parser.rb#430 def scan(re); end - # source://rdoc//lib/rdoc/markup/parser.rb#436 + # source://rdoc//rdoc/markup/parser.rb#436 def unscan(s); end end @@ -5768,21 +5683,19 @@ end # plugins) will be stored in the metadata hash on the CodeObject the comment # is attached to. See RDoc::Markup@Directives for the list of built-in # directives. -# -# source://rdoc//lib/rdoc/markup/pre_process.rb#17 class RDoc::Markup::PreProcess # Creates a new pre-processor for +input_file_name+ that will look for # included files in +include_path+ # # @return [PreProcess] a new instance of PreProcess # - # source://rdoc//lib/rdoc/markup/pre_process.rb#78 + # source://rdoc//rdoc/markup/pre_process.rb#78 def initialize(input_file_name, include_path); end # Look for the given file in the directory containing the current file, # and then in each of the directories specified in the RDOC_INCLUDE path # - # source://rdoc//lib/rdoc/markup/pre_process.rb#288 + # source://rdoc//rdoc/markup/pre_process.rb#288 def find_include_file(name); end # Look for directives in the given +text+. @@ -5799,7 +5712,7 @@ class RDoc::Markup::PreProcess # directive's parameter is set as metadata on the +code_object+. See # RDoc::CodeObject#metadata for details. # - # source://rdoc//lib/rdoc/markup/pre_process.rb#99 + # source://rdoc//rdoc/markup/pre_process.rb#99 def handle(text, code_object = T.unsafe(nil), &block); end # Performs the actions described by +directive+ and its parameter +param+. @@ -5812,7 +5725,7 @@ class RDoc::Markup::PreProcess # -- # When 1.8.7 support is ditched prefix can be defaulted to '' # - # source://rdoc//lib/rdoc/markup/pre_process.rb#150 + # source://rdoc//rdoc/markup/pre_process.rb#150 def handle_directive(prefix, directive, param, code_object = T.unsafe(nil), encoding = T.unsafe(nil)); end # Handles the :include: _filename_ directive. @@ -5829,19 +5742,19 @@ class RDoc::Markup::PreProcess # TODO shift left the whole file content in that case # TODO comment stop/start #-- and #++ in included file must be processed here # - # source://rdoc//lib/rdoc/markup/pre_process.rb#262 + # source://rdoc//rdoc/markup/pre_process.rb#262 def include_file(name, indent, encoding); end # An RDoc::Options instance that will be filled in with overrides from # directives # - # source://rdoc//lib/rdoc/markup/pre_process.rb#23 + # source://rdoc//rdoc/markup/pre_process.rb#23 def options; end # An RDoc::Options instance that will be filled in with overrides from # directives # - # source://rdoc//lib/rdoc/markup/pre_process.rb#23 + # source://rdoc//rdoc/markup/pre_process.rb#23 def options=(_arg0); end class << self @@ -5849,12 +5762,12 @@ class RDoc::Markup::PreProcess # with the result RDoc::Comment (or text String) and the code object for the # comment (if any). # - # source://rdoc//lib/rdoc/markup/pre_process.rb#30 + # source://rdoc//rdoc/markup/pre_process.rb#30 def post_process(&block); end # Registered post-processors # - # source://rdoc//lib/rdoc/markup/pre_process.rb#37 + # source://rdoc//rdoc/markup/pre_process.rb#37 def post_processors; end # Registers +directive+ as one handled by RDoc. If a block is given the @@ -5868,202 +5781,192 @@ class RDoc::Markup::PreProcess # # replace text, etc. # end # - # source://rdoc//lib/rdoc/markup/pre_process.rb#53 + # source://rdoc//rdoc/markup/pre_process.rb#53 def register(directive, &block); end # Registered directives # - # source://rdoc//lib/rdoc/markup/pre_process.rb#60 + # source://rdoc//rdoc/markup/pre_process.rb#60 def registered; end # Clears all registered directives and post-processors # - # source://rdoc//lib/rdoc/markup/pre_process.rb#67 + # source://rdoc//rdoc/markup/pre_process.rb#67 def reset; end end end # A section of text that is added to the output document as-is -# -# source://rdoc//lib/rdoc/markup/raw.rb#5 class RDoc::Markup::Raw # Creates a new Raw containing +parts+ # # @return [Raw] a new instance of Raw # - # source://rdoc//lib/rdoc/markup/raw.rb#15 + # source://rdoc//rdoc/markup/raw.rb#15 def initialize(*parts); end # Appends +text+ # - # source://rdoc//lib/rdoc/markup/raw.rb#23 + # source://rdoc//rdoc/markup/raw.rb#23 def <<(text); end - # source://rdoc//lib/rdoc/markup/raw.rb#27 + # source://rdoc//rdoc/markup/raw.rb#27 def ==(other); end # Calls #accept_raw+ on +visitor+ # - # source://rdoc//lib/rdoc/markup/raw.rb#34 + # source://rdoc//rdoc/markup/raw.rb#34 def accept(visitor); end # Appends +other+'s parts # - # source://rdoc//lib/rdoc/markup/raw.rb#41 + # source://rdoc//rdoc/markup/raw.rb#41 def merge(other); end # The component parts of the list # - # source://rdoc//lib/rdoc/markup/raw.rb#10 + # source://rdoc//rdoc/markup/raw.rb#10 def parts; end - # source://rdoc//lib/rdoc/markup/raw.rb#45 + # source://rdoc//rdoc/markup/raw.rb#45 def pretty_print(q); end # Appends +texts+ onto this Paragraph # - # source://rdoc//lib/rdoc/markup/raw.rb#58 + # source://rdoc//rdoc/markup/raw.rb#58 def push(*texts); end # The raw text # - # source://rdoc//lib/rdoc/markup/raw.rb#65 + # source://rdoc//rdoc/markup/raw.rb#65 def text; end end # Hold details of a regexp handling sequence -# -# source://rdoc//lib/rdoc/markup/regexp_handling.rb#5 class RDoc::Markup::RegexpHandling # Creates a new regexp handling sequence of +type+ with +text+ # # @return [RegexpHandling] a new instance of RegexpHandling # - # source://rdoc//lib/rdoc/markup/regexp_handling.rb#20 + # source://rdoc//rdoc/markup/regexp_handling.rb#20 def initialize(type, text); end # Regexp handlings are equal when the have the same text and type # - # source://rdoc//lib/rdoc/markup/regexp_handling.rb#27 + # source://rdoc//rdoc/markup/regexp_handling.rb#27 def ==(o); end - # source://rdoc//lib/rdoc/markup/regexp_handling.rb#31 + # source://rdoc//rdoc/markup/regexp_handling.rb#31 def inspect; end # Regexp handling text # - # source://rdoc//lib/rdoc/markup/regexp_handling.rb#15 + # source://rdoc//rdoc/markup/regexp_handling.rb#15 def text; end # Regexp handling text # - # source://rdoc//lib/rdoc/markup/regexp_handling.rb#15 + # source://rdoc//rdoc/markup/regexp_handling.rb#15 def text=(_arg0); end - # source://rdoc//lib/rdoc/markup/regexp_handling.rb#36 + # source://rdoc//rdoc/markup/regexp_handling.rb#36 def to_s; end # Regexp handling type # - # source://rdoc//lib/rdoc/markup/regexp_handling.rb#10 + # source://rdoc//rdoc/markup/regexp_handling.rb#10 def type; end end # A horizontal rule with a weight -# -# source://rdoc//lib/rdoc/markup/rule.rb#5 class RDoc::Markup::Rule < ::Struct # Calls #accept_rule on +visitor+ # - # source://rdoc//lib/rdoc/markup/rule.rb#10 + # source://rdoc//rdoc/markup/rule.rb#10 def accept(visitor); end - # source://rdoc//lib/rdoc/markup/rule.rb#14 + # source://rdoc//rdoc/markup/rule.rb#14 def pretty_print(q); end end # A section of table -# -# source://rdoc//lib/rdoc/markup/table.rb#5 class RDoc::Markup::Table # Creates new instance # # @return [Table] a new instance of Table # - # source://rdoc//lib/rdoc/markup/table.rb#16 + # source://rdoc//rdoc/markup/table.rb#16 def initialize(header, align, body); end # :stopdoc: # - # source://rdoc//lib/rdoc/markup/table.rb#21 + # source://rdoc//rdoc/markup/table.rb#21 def ==(other); end - # source://rdoc//lib/rdoc/markup/table.rb#28 + # source://rdoc//rdoc/markup/table.rb#28 def accept(visitor); end # alignments of each column # - # source://rdoc//lib/rdoc/markup/table.rb#10 + # source://rdoc//rdoc/markup/table.rb#10 def align; end # alignments of each column # - # source://rdoc//lib/rdoc/markup/table.rb#10 + # source://rdoc//rdoc/markup/table.rb#10 def align=(_arg0); end # body texts of each column # - # source://rdoc//lib/rdoc/markup/table.rb#13 + # source://rdoc//rdoc/markup/table.rb#13 def body; end # body texts of each column # - # source://rdoc//lib/rdoc/markup/table.rb#13 + # source://rdoc//rdoc/markup/table.rb#13 def body=(_arg0); end # headers of each column # - # source://rdoc//lib/rdoc/markup/table.rb#7 + # source://rdoc//rdoc/markup/table.rb#7 def header; end # headers of each column # - # source://rdoc//lib/rdoc/markup/table.rb#7 + # source://rdoc//rdoc/markup/table.rb#7 def header=(_arg0); end - # source://rdoc//lib/rdoc/markup/table.rb#32 + # source://rdoc//rdoc/markup/table.rb#32 def pretty_print(q); end end # Outputs RDoc markup with vibrant ANSI color! -# -# source://rdoc//lib/rdoc/markup/to_ansi.rb#5 class RDoc::Markup::ToAnsi < ::RDoc::Markup::ToRdoc # Creates a new ToAnsi visitor that is ready to output vibrant ANSI color! # # @return [ToAnsi] a new instance of ToAnsi # - # source://rdoc//lib/rdoc/markup/to_ansi.rb#10 + # source://rdoc//rdoc/markup/to_ansi.rb#10 def initialize(markup = T.unsafe(nil)); end # Overrides indent width to ensure output lines up correctly. # - # source://rdoc//lib/rdoc/markup/to_ansi.rb#31 + # source://rdoc//rdoc/markup/to_ansi.rb#31 def accept_list_item_end(list_item); end # Adds coloring to note and label list items # - # source://rdoc//lib/rdoc/markup/to_ansi.rb#55 + # source://rdoc//rdoc/markup/to_ansi.rb#55 def accept_list_item_start(list_item); end # Maps attributes to ANSI sequences # - # source://rdoc//lib/rdoc/markup/to_ansi.rb#22 + # source://rdoc//rdoc/markup/to_ansi.rb#22 def init_tags; end # Starts accepting with a reset screen # - # source://rdoc//lib/rdoc/markup/to_ansi.rb#87 + # source://rdoc//rdoc/markup/to_ansi.rb#87 def start_accepting; end end @@ -6071,46 +5974,42 @@ end # pager to use this output format. # # This formatter won't work on 1.8.6 because it lacks String#chars. -# -# source://rdoc//lib/rdoc/markup/to_bs.rb#8 class RDoc::Markup::ToBs < ::RDoc::Markup::ToRdoc # Returns a new ToBs that is ready for hot backspace action! # # @return [ToBs] a new instance of ToBs # - # source://rdoc//lib/rdoc/markup/to_bs.rb#13 + # source://rdoc//rdoc/markup/to_bs.rb#13 def initialize(markup = T.unsafe(nil)); end # Makes heading text bold. # - # source://rdoc//lib/rdoc/markup/to_bs.rb#33 + # source://rdoc//rdoc/markup/to_bs.rb#33 def accept_heading(heading); end # Turns on or off regexp handling for +convert_string+ # - # source://rdoc//lib/rdoc/markup/to_bs.rb#46 + # source://rdoc//rdoc/markup/to_bs.rb#46 def annotate(tag); end # Calls convert_string on the result of convert_regexp_handling # - # source://rdoc//lib/rdoc/markup/to_bs.rb#59 + # source://rdoc//rdoc/markup/to_bs.rb#59 def convert_regexp_handling(target); end # Adds bold or underline mixed with backspaces # - # source://rdoc//lib/rdoc/markup/to_bs.rb#66 + # source://rdoc//rdoc/markup/to_bs.rb#66 def convert_string(string); end # Sets a flag that is picked up by #annotate to do the right thing in # #convert_string # - # source://rdoc//lib/rdoc/markup/to_bs.rb#24 + # source://rdoc//rdoc/markup/to_bs.rb#24 def init_tags; end end # Outputs RDoc markup as HTML. -# -# source://rdoc//lib/rdoc/markup/to_html.rb#7 class RDoc::Markup::ToHtml < ::RDoc::Markup::Formatter include ::RDoc::Text @@ -6118,114 +6017,114 @@ class RDoc::Markup::ToHtml < ::RDoc::Markup::Formatter # # @return [ToHtml] a new instance of ToHtml # - # source://rdoc//lib/rdoc/markup/to_html.rb#45 + # source://rdoc//rdoc/markup/to_html.rb#45 def initialize(options, markup = T.unsafe(nil)); end # Adds +blank_line+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#291 + # source://rdoc//rdoc/markup/to_html.rb#291 def accept_blank_line(blank_line); end # Adds +block_quote+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#190 + # source://rdoc//rdoc/markup/to_html.rb#190 def accept_block_quote(block_quote); end # Adds +heading+ to the output. The headings greater than 6 are trimmed to # level 6. # - # source://rdoc//lib/rdoc/markup/to_html.rb#299 + # source://rdoc//rdoc/markup/to_html.rb#299 def accept_heading(heading); end # Finishes consumption of +list+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#262 + # source://rdoc//rdoc/markup/to_html.rb#262 def accept_list_end(list); end # Finishes consumption of +list_item+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#284 + # source://rdoc//rdoc/markup/to_html.rb#284 def accept_list_item_end(list_item); end # Prepares the visitor for consuming +list_item+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#273 + # source://rdoc//rdoc/markup/to_html.rb#273 def accept_list_item_start(list_item); end # Prepares the visitor for consuming +list+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#253 + # source://rdoc//rdoc/markup/to_html.rb#253 def accept_list_start(list); end # Adds +paragraph+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#203 + # source://rdoc//rdoc/markup/to_html.rb#203 def accept_paragraph(paragraph); end # Adds +raw+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#320 + # source://rdoc//rdoc/markup/to_html.rb#320 def accept_raw(raw); end # Adds +rule+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#246 + # source://rdoc//rdoc/markup/to_html.rb#246 def accept_rule(rule); end # Adds +table+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#327 + # source://rdoc//rdoc/markup/to_html.rb#327 def accept_table(header, body, aligns); end # Adds +verbatim+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#216 + # source://rdoc//rdoc/markup/to_html.rb#216 def accept_verbatim(verbatim); end # The RDoc::CodeObject HTML is being generated for. This is used to # generate namespaced URI fragments # - # source://rdoc//lib/rdoc/markup/to_html.rb#33 + # source://rdoc//rdoc/markup/to_html.rb#33 def code_object; end # The RDoc::CodeObject HTML is being generated for. This is used to # generate namespaced URI fragments # - # source://rdoc//lib/rdoc/markup/to_html.rb#33 + # source://rdoc//rdoc/markup/to_html.rb#33 def code_object=(_arg0); end # CGI-escapes +text+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#352 + # source://rdoc//rdoc/markup/to_html.rb#352 def convert_string(text); end # Returns the generated output # - # source://rdoc//lib/rdoc/markup/to_html.rb#183 + # source://rdoc//rdoc/markup/to_html.rb#183 def end_accepting; end # Path to this document for relative links # - # source://rdoc//lib/rdoc/markup/to_html.rb#38 + # source://rdoc//rdoc/markup/to_html.rb#38 def from_path; end # Path to this document for relative links # - # source://rdoc//lib/rdoc/markup/to_html.rb#38 + # source://rdoc//rdoc/markup/to_html.rb#38 def from_path=(_arg0); end # Generate a link to +url+ with content +text+. Handles the special cases # for img: and link: described under handle_regexp_HYPERLINK # - # source://rdoc//lib/rdoc/markup/to_html.rb#360 + # source://rdoc//rdoc/markup/to_html.rb#360 def gen_url(url, text); end - # source://rdoc//lib/rdoc/markup/to_html.rb#85 + # source://rdoc//rdoc/markup/to_html.rb#85 def handle_RDOCLINK(url); end # +target+ is a
    # - # source://rdoc//lib/rdoc/markup/to_html.rb#110 + # source://rdoc//rdoc/markup/to_html.rb#110 def handle_regexp_HARD_BREAK(target); end # +target+ is a potential link. The following schemes are handled: @@ -6239,7 +6138,7 @@ class RDoc::Markup::ToHtml < ::RDoc::Markup::Formatter # link::: # Reference to a local file relative to the output directory. # - # source://rdoc//lib/rdoc/markup/to_html.rb#126 + # source://rdoc//rdoc/markup/to_html.rb#126 def handle_regexp_HYPERLINK(target); end # +target+ is an rdoc-schemed link that will be converted into a hyperlink. @@ -6250,83 +6149,81 @@ class RDoc::Markup::ToHtml < ::RDoc::Markup::Formatter # For the +rdoc-label+ scheme the footnote and label prefixes are stripped # when creating a link. All other contents will be linked verbatim. # - # source://rdoc//lib/rdoc/markup/to_html.rb#141 + # source://rdoc//rdoc/markup/to_html.rb#141 def handle_regexp_RDOCLINK(target); end # This +target+ is a link where the label is different from the URL # label[url] or {long label}[url] # - # source://rdoc//lib/rdoc/markup/to_html.rb#149 + # source://rdoc//rdoc/markup/to_html.rb#149 def handle_regexp_TIDYLINK(target); end # Determines the HTML list element for +list_type+ and +open_tag+ # # @raise [RDoc::Error] # - # source://rdoc//lib/rdoc/markup/to_html.rb#385 + # source://rdoc//rdoc/markup/to_html.rb#385 def html_list_name(list_type, open_tag); end - # source://rdoc//lib/rdoc/markup/to_html.rb#26 + # source://rdoc//rdoc/markup/to_html.rb#26 def in_list_entry; end # Adds regexp handlings about link notations. # - # source://rdoc//lib/rdoc/markup/to_html.rb#80 + # source://rdoc//rdoc/markup/to_html.rb#80 def init_link_notation_regexp_handlings; end # Adds regexp handlings. # - # source://rdoc//lib/rdoc/markup/to_html.rb#70 + # source://rdoc//rdoc/markup/to_html.rb#70 def init_regexp_handlings; end # Maps attributes to HTML tags # - # source://rdoc//lib/rdoc/markup/to_html.rb#394 + # source://rdoc//rdoc/markup/to_html.rb#394 def init_tags; end - # source://rdoc//lib/rdoc/markup/to_html.rb#27 + # source://rdoc//rdoc/markup/to_html.rb#27 def list; end # Returns the HTML end-tag for +list_type+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#420 + # source://rdoc//rdoc/markup/to_html.rb#420 def list_end_for(list_type); end # Returns the HTML tag for +list_type+, possible using a label from # +list_item+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#404 + # source://rdoc//rdoc/markup/to_html.rb#404 def list_item_start(list_item, list_type); end # Returns true if text is valid ruby syntax # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/to_html.rb#434 + # source://rdoc//rdoc/markup/to_html.rb#434 def parseable?(text); end - # source://rdoc//lib/rdoc/markup/to_html.rb#25 + # source://rdoc//rdoc/markup/to_html.rb#25 def res; end # Prepares the visitor for HTML generation # - # source://rdoc//lib/rdoc/markup/to_html.rb#174 + # source://rdoc//rdoc/markup/to_html.rb#174 def start_accepting; end # Converts +item+ to HTML using RDoc::Text#to_html # - # source://rdoc//lib/rdoc/markup/to_html.rb#448 + # source://rdoc//rdoc/markup/to_html.rb#448 def to_html(item); end end -# source://rdoc//lib/rdoc/markup/to_html.rb#65 +# source://rdoc//rdoc/markup/to_html.rb#65 RDoc::Markup::ToHtml::URL_CHARACTERS_REGEXP_STR = T.let(T.unsafe(nil), String) # Subclass of the RDoc::Markup::ToHtml class that supports looking up method # names, classes, etc to create links. RDoc::CrossReference is used to # generate those links based on the current context. -# -# source://rdoc//lib/rdoc/markup/to_html_crossref.rb#7 class RDoc::Markup::ToHtmlCrossref < ::RDoc::Markup::ToHtml # Creates a new crossref resolver that generates links relative to +context+ # which lives at +from_path+ in the generated files. '#' characters on @@ -6336,29 +6233,29 @@ class RDoc::Markup::ToHtmlCrossref < ::RDoc::Markup::ToHtml # @raise [ArgumentError] # @return [ToHtmlCrossref] a new instance of ToHtmlCrossref # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#32 + # source://rdoc//rdoc/markup/to_html_crossref.rb#32 def initialize(options, from_path, context, markup = T.unsafe(nil)); end # RDoc::CodeObject for generating references # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#19 + # source://rdoc//rdoc/markup/to_html_crossref.rb#19 def context; end # RDoc::CodeObject for generating references # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#19 + # source://rdoc//rdoc/markup/to_html_crossref.rb#19 def context=(_arg0); end # Creates a link to the reference +name+ if the name exists. If +text+ is # given it is used as the link text, otherwise +name+ is used. # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#61 + # source://rdoc//rdoc/markup/to_html_crossref.rb#61 def cross_reference(name, text = T.unsafe(nil), code = T.unsafe(nil)); end # Generates links for rdoc-ref: scheme URLs and allows # RDoc::Markup::ToHtml to handle other schemes. # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#131 + # source://rdoc//rdoc/markup/to_html_crossref.rb#131 def gen_url(url, text); end # We're invoked when any text matches the CROSSREF pattern. If we find the @@ -6367,13 +6264,13 @@ class RDoc::Markup::ToHtmlCrossref < ::RDoc::Markup::ToHtml # example, ToHtml is found, even without the RDoc::Markup:: prefix, # because we look for it in module Markup first. # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#83 + # source://rdoc//rdoc/markup/to_html_crossref.rb#83 def handle_regexp_CROSSREF(target); end # Handles rdoc-ref: scheme links and allows RDoc::Markup::ToHtml to # handle other schemes. # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#102 + # source://rdoc//rdoc/markup/to_html_crossref.rb#102 def handle_regexp_HYPERLINK(target); end # +target+ is an rdoc-schemed link that will be converted into a hyperlink. @@ -6383,31 +6280,29 @@ class RDoc::Markup::ToHtmlCrossref < ::RDoc::Markup::ToHtml # All other contents are handled by # {the superclass}[rdoc-ref:RDoc::Markup::ToHtml#handle_regexp_RDOCLINK] # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#116 + # source://rdoc//rdoc/markup/to_html_crossref.rb#116 def handle_regexp_RDOCLINK(target); end - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#46 + # source://rdoc//rdoc/markup/to_html_crossref.rb#46 def init_link_notation_regexp_handlings; end # Creates an HTML link to +name+ with the given +text+. # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#141 + # source://rdoc//rdoc/markup/to_html_crossref.rb#141 def link(name, text, code = T.unsafe(nil)); end # Should we show '#' characters on method references? # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#24 + # source://rdoc//rdoc/markup/to_html_crossref.rb#24 def show_hash; end # Should we show '#' characters on method references? # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#24 + # source://rdoc//rdoc/markup/to_html_crossref.rb#24 def show_hash=(_arg0); end end # Outputs RDoc markup as paragraphs with inline markup only. -# -# source://rdoc//lib/rdoc/markup/to_html_snippet.rb#5 class RDoc::Markup::ToHtmlSnippet < ::RDoc::Markup::ToHtml # Creates a new ToHtmlSnippet formatter that will cut off the input on the # next word boundary after the given number of +characters+ or +paragraphs+ @@ -6415,135 +6310,135 @@ class RDoc::Markup::ToHtmlSnippet < ::RDoc::Markup::ToHtml # # @return [ToHtmlSnippet] a new instance of ToHtmlSnippet # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#37 + # source://rdoc//rdoc/markup/to_html_snippet.rb#37 def initialize(options, characters = T.unsafe(nil), paragraphs = T.unsafe(nil), markup = T.unsafe(nil)); end # Adds +heading+ to the output as a paragraph # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#53 + # source://rdoc//rdoc/markup/to_html_snippet.rb#53 def accept_heading(heading); end # Finishes consumption of +list_item+ # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#85 + # source://rdoc//rdoc/markup/to_html_snippet.rb#85 def accept_list_item_end(list_item); end # Prepares the visitor for consuming +list_item+ # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#91 + # source://rdoc//rdoc/markup/to_html_snippet.rb#91 def accept_list_item_start(list_item); end # Prepares the visitor for consuming +list+ # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#98 + # source://rdoc//rdoc/markup/to_html_snippet.rb#98 def accept_list_start(list); end # Adds +paragraph+ to the output # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#72 + # source://rdoc//rdoc/markup/to_html_snippet.rb#72 def accept_paragraph(paragraph); end # Raw sections are untrusted and ignored # - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_raw(*node); end # Rules are ignored # - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_rule(*node); end # Adds +verbatim+ to the output # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#107 + # source://rdoc//rdoc/markup/to_html_snippet.rb#107 def accept_verbatim(verbatim); end # Throws +:done+ when paragraph_limit paragraphs have been encountered # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#198 + # source://rdoc//rdoc/markup/to_html_snippet.rb#198 def add_paragraph; end # After this many characters the input will be cut off. # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#10 + # source://rdoc//rdoc/markup/to_html_snippet.rb#10 def character_limit; end # The number of characters seen so far. # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#15 + # source://rdoc//rdoc/markup/to_html_snippet.rb#15 def characters; end # Marks up +content+ # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#207 + # source://rdoc//rdoc/markup/to_html_snippet.rb#207 def convert(content); end # Converts flow items +flow+ # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#218 + # source://rdoc//rdoc/markup/to_html_snippet.rb#218 def convert_flow(flow); end # Returns just the text of +link+, +url+ is only used to determine the link # type. # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#171 + # source://rdoc//rdoc/markup/to_html_snippet.rb#171 def gen_url(url, text); end # Removes escaping from the cross-references in +target+ # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#131 + # source://rdoc//rdoc/markup/to_html_snippet.rb#131 def handle_regexp_CROSSREF(target); end # +target+ is a
    # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#138 + # source://rdoc//rdoc/markup/to_html_snippet.rb#138 def handle_regexp_HARD_BREAK(target); end # In snippets, there are no lists # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#191 + # source://rdoc//rdoc/markup/to_html_snippet.rb#191 def html_list_name(list_type, open_tag); end # Lists are paragraphs, but notes and labels have a separator # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#146 + # source://rdoc//rdoc/markup/to_html_snippet.rb#146 def list_item_start(list_item, list_type); end # The attribute bitmask # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#20 + # source://rdoc//rdoc/markup/to_html_snippet.rb#20 def mask; end # Maintains a bitmask to allow HTML elements to be closed properly. See # RDoc::Markup::Formatter. # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#264 + # source://rdoc//rdoc/markup/to_html_snippet.rb#264 def off_tags(res, item); end # Maintains a bitmask to allow HTML elements to be closed properly. See # RDoc::Markup::Formatter. # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#254 + # source://rdoc//rdoc/markup/to_html_snippet.rb#254 def on_tags(res, item); end # After this many paragraphs the input will be cut off. # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#25 + # source://rdoc//rdoc/markup/to_html_snippet.rb#25 def paragraph_limit; end # Count of paragraphs found # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#30 + # source://rdoc//rdoc/markup/to_html_snippet.rb#30 def paragraphs; end # Prepares the visitor for HTML snippet generation # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#122 + # source://rdoc//rdoc/markup/to_html_snippet.rb#122 def start_accepting; end # Truncates +text+ at the end of the first word after the character_limit. # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#273 + # source://rdoc//rdoc/markup/to_html_snippet.rb#273 def truncate(text); end end @@ -6553,663 +6448,645 @@ end # # This formatter only works on Paragraph instances. Attempting to process # other markup syntax items will not work. -# -# source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#10 class RDoc::Markup::ToJoinedParagraph < ::RDoc::Markup::Formatter # @return [ToJoinedParagraph] a new instance of ToJoinedParagraph # - # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#12 + # source://rdoc//rdoc/markup/to_joined_paragraph.rb#12 def initialize; end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_block_quote(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_heading(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_list_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_list_item_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_list_item_start(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_list_start(*node); end # Converts the parts of +paragraph+ to a single entry. # - # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#25 + # source://rdoc//rdoc/markup/to_joined_paragraph.rb#25 def accept_paragraph(paragraph); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_raw(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_rule(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_table(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_verbatim(*node); end - # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#19 + # source://rdoc//rdoc/markup/to_joined_paragraph.rb#19 def end_accepting; end - # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#16 + # source://rdoc//rdoc/markup/to_joined_paragraph.rb#16 def start_accepting; end end # Creates HTML-safe labels suitable for use in id attributes. Tidylinks are # converted to their link part and cross-reference links have the suppression # marks removed (\\SomeClass is converted to SomeClass). -# -# source://rdoc//lib/rdoc/markup/to_label.rb#9 class RDoc::Markup::ToLabel < ::RDoc::Markup::Formatter # Creates a new formatter that will output HTML-safe labels # # @return [ToLabel] a new instance of ToLabel # - # source://rdoc//lib/rdoc/markup/to_label.rb#16 + # source://rdoc//rdoc/markup/to_label.rb#16 def initialize(markup = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_blank_line(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_block_quote(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_heading(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_list_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_list_item_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_list_item_start(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_list_start(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_paragraph(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_raw(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_rule(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_verbatim(*node); end # Converts +text+ to an HTML-safe label # - # source://rdoc//lib/rdoc/markup/to_label.rb#32 + # source://rdoc//rdoc/markup/to_label.rb#32 def convert(text); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def end_accepting(*node); end # Converts the CROSSREF +target+ to plain text, removing the suppression # marker, if any # - # source://rdoc//lib/rdoc/markup/to_label.rb#42 + # source://rdoc//rdoc/markup/to_label.rb#42 def handle_regexp_CROSSREF(target); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def handle_regexp_HARD_BREAK(*node); end # Converts the TIDYLINK +target+ to just the text part # - # source://rdoc//lib/rdoc/markup/to_label.rb#51 + # source://rdoc//rdoc/markup/to_label.rb#51 def handle_regexp_TIDYLINK(target); end - # source://rdoc//lib/rdoc/markup/to_label.rb#11 + # source://rdoc//rdoc/markup/to_label.rb#11 def res; end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def start_accepting(*node); end end # Outputs parsed markup as Markdown -# -# source://rdoc//lib/rdoc/markup/to_markdown.rb#7 class RDoc::Markup::ToMarkdown < ::RDoc::Markup::ToRdoc # Creates a new formatter that will output Markdown format text # # @return [ToMarkdown] a new instance of ToMarkdown # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#12 + # source://rdoc//rdoc/markup/to_markdown.rb#12 def initialize(markup = T.unsafe(nil)); end # Finishes consumption of `list` # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#47 + # source://rdoc//rdoc/markup/to_markdown.rb#47 def accept_list_end(list); end # Finishes consumption of `list_item` # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#56 + # source://rdoc//rdoc/markup/to_markdown.rb#56 def accept_list_item_end(list_item); end # Prepares the visitor for consuming `list_item` # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#75 + # source://rdoc//rdoc/markup/to_markdown.rb#75 def accept_list_item_start(list_item); end # Prepares the visitor for consuming `list` # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#100 + # source://rdoc//rdoc/markup/to_markdown.rb#100 def accept_list_start(list); end # Adds `rule` to the output # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#117 + # source://rdoc//rdoc/markup/to_markdown.rb#117 def accept_rule(rule); end # Outputs `verbatim` indented 4 columns # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#126 + # source://rdoc//rdoc/markup/to_markdown.rb#126 def accept_verbatim(verbatim); end # Creates a Markdown-style URL from +url+ with +text+. # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#140 + # source://rdoc//rdoc/markup/to_markdown.rb#140 def gen_url(url, text); end # Handles rdoc- type links for footnotes. # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#149 + # source://rdoc//rdoc/markup/to_markdown.rb#149 def handle_rdoc_link(url); end # Adds a newline to the output # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#40 + # source://rdoc//rdoc/markup/to_markdown.rb#40 def handle_regexp_HARD_BREAK(target); end # Converts the rdoc-...: links into a Markdown.style links. # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#187 + # source://rdoc//rdoc/markup/to_markdown.rb#187 def handle_regexp_RDOCLINK(target); end # Converts the RDoc markup tidylink into a Markdown.style link. # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#169 + # source://rdoc//rdoc/markup/to_markdown.rb#169 def handle_regexp_TIDYLINK(target); end # Maps attributes to HTML sequences # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#31 + # source://rdoc//rdoc/markup/to_markdown.rb#31 def init_tags; end end # Outputs RDoc markup as RDoc markup! (mostly) -# -# source://rdoc//lib/rdoc/markup/to_rdoc.rb#5 class RDoc::Markup::ToRdoc < ::RDoc::Markup::Formatter # Creates a new formatter that will output (mostly) \RDoc markup # # @return [ToRdoc] a new instance of ToRdoc # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#45 + # source://rdoc//rdoc/markup/to_rdoc.rb#45 def initialize(markup = T.unsafe(nil)); end # Adds +blank_line+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#77 + # source://rdoc//rdoc/markup/to_rdoc.rb#77 def accept_blank_line(blank_line); end # Adds +paragraph+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#84 + # source://rdoc//rdoc/markup/to_rdoc.rb#84 def accept_block_quote(block_quote); end # Adds +heading+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#99 + # source://rdoc//rdoc/markup/to_rdoc.rb#99 def accept_heading(heading); end # Adds +paragraph+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#203 + # source://rdoc//rdoc/markup/to_rdoc.rb#203 def accept_indented_paragraph(paragraph); end # Finishes consumption of +list+ # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#110 + # source://rdoc//rdoc/markup/to_rdoc.rb#110 def accept_list_end(list); end # Finishes consumption of +list_item+ # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#119 + # source://rdoc//rdoc/markup/to_rdoc.rb#119 def accept_list_item_end(list_item); end # Prepares the visitor for consuming +list_item+ # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#143 + # source://rdoc//rdoc/markup/to_rdoc.rb#143 def accept_list_item_start(list_item); end # Prepares the visitor for consuming +list+ # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#168 + # source://rdoc//rdoc/markup/to_rdoc.rb#168 def accept_list_start(list); end # Adds +paragraph+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#195 + # source://rdoc//rdoc/markup/to_rdoc.rb#195 def accept_paragraph(paragraph); end # Adds +raw+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#213 + # source://rdoc//rdoc/markup/to_rdoc.rb#213 def accept_raw(raw); end # Adds +rule+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#220 + # source://rdoc//rdoc/markup/to_rdoc.rb#220 def accept_rule(rule); end # Adds +table+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#243 + # source://rdoc//rdoc/markup/to_rdoc.rb#243 def accept_table(header, body, aligns); end # Outputs +verbatim+ indented 2 columns # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#229 + # source://rdoc//rdoc/markup/to_rdoc.rb#229 def accept_verbatim(verbatim); end # Applies attribute-specific markup to +text+ using RDoc::AttributeManager # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#271 + # source://rdoc//rdoc/markup/to_rdoc.rb#271 def attributes(text); end # Returns the generated output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#279 + # source://rdoc//rdoc/markup/to_rdoc.rb#279 def end_accepting; end # Adds a newline to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#295 + # source://rdoc//rdoc/markup/to_rdoc.rb#295 def handle_regexp_HARD_BREAK(target); end # Removes preceding \\ from the suppressed crossref +target+ # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#286 + # source://rdoc//rdoc/markup/to_rdoc.rb#286 def handle_regexp_SUPPRESSED_CROSSREF(target); end # Current indent amount for output in characters # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#10 + # source://rdoc//rdoc/markup/to_rdoc.rb#10 def indent; end # Current indent amount for output in characters # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#10 + # source://rdoc//rdoc/markup/to_rdoc.rb#10 def indent=(_arg0); end # Maps attributes to HTML sequences # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#68 + # source://rdoc//rdoc/markup/to_rdoc.rb#68 def init_tags; end # Stack of current list indexes for alphabetic and numeric lists # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#20 + # source://rdoc//rdoc/markup/to_rdoc.rb#20 def list_index; end # Stack of list types # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#25 + # source://rdoc//rdoc/markup/to_rdoc.rb#25 def list_type; end # Stack of list widths for indentation # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#30 + # source://rdoc//rdoc/markup/to_rdoc.rb#30 def list_width; end # Prefix for the next list item. See #use_prefix # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#35 + # source://rdoc//rdoc/markup/to_rdoc.rb#35 def prefix; end # Output accumulator # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#40 + # source://rdoc//rdoc/markup/to_rdoc.rb#40 def res; end # Prepares the visitor for text generation # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#302 + # source://rdoc//rdoc/markup/to_rdoc.rb#302 def start_accepting; end # Adds the stored #prefix to the output and clears it. Lists generate a # prefix for later consumption. # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#316 + # source://rdoc//rdoc/markup/to_rdoc.rb#316 def use_prefix; end # Output width in characters # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#15 + # source://rdoc//rdoc/markup/to_rdoc.rb#15 def width; end # Output width in characters # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#15 + # source://rdoc//rdoc/markup/to_rdoc.rb#15 def width=(_arg0); end # Wraps +text+ to #width # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#326 + # source://rdoc//rdoc/markup/to_rdoc.rb#326 def wrap(text); end end # Extracts just the RDoc::Markup::Heading elements from a # RDoc::Markup::Document to help build a table of contents -# -# source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#6 class RDoc::Markup::ToTableOfContents < ::RDoc::Markup::Formatter # @return [ToTableOfContents] a new instance of ToTableOfContents # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#27 + # source://rdoc//rdoc/markup/to_table_of_contents.rb#27 def initialize; end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_blank_line(*node); end # :stopdoc: # - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_block_quote(*node); end # Adds +document+ to the output, using its heading cutoff if present # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#36 + # source://rdoc//rdoc/markup/to_table_of_contents.rb#36 def accept_document(document); end # Adds +heading+ to the table of contents # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#45 + # source://rdoc//rdoc/markup/to_table_of_contents.rb#45 def accept_heading(heading); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_list_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_list_end_bullet(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_list_item_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_list_item_start(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_list_start(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_paragraph(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_raw(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_rule(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_table(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//rdoc/markup/formatter.rb#188 def accept_verbatim(*node); end # Returns the table of contents # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#52 + # source://rdoc//rdoc/markup/to_table_of_contents.rb#52 def end_accepting; end # Omits headings with a level less than the given level. # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#25 + # source://rdoc//rdoc/markup/to_table_of_contents.rb#25 def omit_headings_below; end # Omits headings with a level less than the given level. # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#25 + # source://rdoc//rdoc/markup/to_table_of_contents.rb#25 def omit_headings_below=(_arg0); end # Output accumulator # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#20 + # source://rdoc//rdoc/markup/to_table_of_contents.rb#20 def res; end # Prepares the visitor for text generation # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#59 + # source://rdoc//rdoc/markup/to_table_of_contents.rb#59 def start_accepting; end # Returns true if +heading+ is below the display threshold # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#67 + # source://rdoc//rdoc/markup/to_table_of_contents.rb#67 def suppressed?(heading); end class << self # Singleton for table-of-contents generation # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#13 + # source://rdoc//rdoc/markup/to_table_of_contents.rb#13 def to_toc; end end end # This Markup outputter is used for testing purposes. -# -# source://rdoc//lib/rdoc/markup/to_test.rb#5 class RDoc::Markup::ToTest < ::RDoc::Markup::Formatter - # source://rdoc//lib/rdoc/markup/to_test.rb#55 + # source://rdoc//rdoc/markup/to_test.rb#55 def accept_blank_line(blank_line); end - # source://rdoc//lib/rdoc/markup/to_test.rb#59 + # source://rdoc//rdoc/markup/to_test.rb#59 def accept_heading(heading); end - # source://rdoc//lib/rdoc/markup/to_test.rb#44 + # source://rdoc//rdoc/markup/to_test.rb#44 def accept_list_end(list); end - # source://rdoc//lib/rdoc/markup/to_test.rb#52 + # source://rdoc//rdoc/markup/to_test.rb#52 def accept_list_item_end(list_item); end - # source://rdoc//lib/rdoc/markup/to_test.rb#48 + # source://rdoc//rdoc/markup/to_test.rb#48 def accept_list_item_start(list_item); end - # source://rdoc//lib/rdoc/markup/to_test.rb#33 + # source://rdoc//rdoc/markup/to_test.rb#33 def accept_list_start(list); end - # source://rdoc//lib/rdoc/markup/to_test.rb#21 + # source://rdoc//rdoc/markup/to_test.rb#21 def accept_paragraph(paragraph); end - # source://rdoc//lib/rdoc/markup/to_test.rb#25 + # source://rdoc//rdoc/markup/to_test.rb#25 def accept_raw(raw); end - # source://rdoc//lib/rdoc/markup/to_test.rb#63 + # source://rdoc//rdoc/markup/to_test.rb#63 def accept_rule(rule); end - # source://rdoc//lib/rdoc/markup/to_test.rb#29 + # source://rdoc//rdoc/markup/to_test.rb#29 def accept_verbatim(verbatim); end - # source://rdoc//lib/rdoc/markup/to_test.rb#17 + # source://rdoc//rdoc/markup/to_test.rb#17 def end_accepting; end # :section: Visitor # - # source://rdoc//lib/rdoc/markup/to_test.rb#12 + # source://rdoc//rdoc/markup/to_test.rb#12 def start_accepting; end end # Extracts sections of text enclosed in plus, tt or code. Used to discover # undocumented parameters. -# -# source://rdoc//lib/rdoc/markup/to_tt_only.rb#6 class RDoc::Markup::ToTtOnly < ::RDoc::Markup::Formatter # Creates a new tt-only formatter. # # @return [ToTtOnly] a new instance of ToTtOnly # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#21 + # source://rdoc//rdoc/markup/to_tt_only.rb#21 def initialize(markup = T.unsafe(nil)); end # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc//rdoc/markup/to_tt_only.rb#71 def accept_blank_line(markup_item); end # Adds tts from +block_quote+ to the output # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#30 + # source://rdoc//rdoc/markup/to_tt_only.rb#30 def accept_block_quote(block_quote); end # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc//rdoc/markup/to_tt_only.rb#71 def accept_heading(markup_item); end # Pops the list type for +list+ from #list_type # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#37 + # source://rdoc//rdoc/markup/to_tt_only.rb#37 def accept_list_end(list); end # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc//rdoc/markup/to_tt_only.rb#71 def accept_list_item_end(markup_item); end # Prepares the visitor for consuming +list_item+ # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#51 + # source://rdoc//rdoc/markup/to_tt_only.rb#51 def accept_list_item_start(list_item); end # Pushes the list type for +list+ onto #list_type # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#44 + # source://rdoc//rdoc/markup/to_tt_only.rb#44 def accept_list_start(list); end # Adds +paragraph+ to the output # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#63 + # source://rdoc//rdoc/markup/to_tt_only.rb#63 def accept_paragraph(paragraph); end # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc//rdoc/markup/to_tt_only.rb#71 def accept_raw(markup_item); end # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc//rdoc/markup/to_tt_only.rb#71 def accept_rule(markup_item); end # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc//rdoc/markup/to_tt_only.rb#71 def accept_verbatim(markup_item); end # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc//rdoc/markup/to_tt_only.rb#71 def do_nothing(markup_item); end # Returns an Array of items that were wrapped in plus, tt or code. # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#107 + # source://rdoc//rdoc/markup/to_tt_only.rb#107 def end_accepting; end # Stack of list types # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#11 + # source://rdoc//rdoc/markup/to_tt_only.rb#11 def list_type; end # Output accumulator # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#16 + # source://rdoc//rdoc/markup/to_tt_only.rb#16 def res; end # Prepares the visitor for gathering tt sections # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#114 + # source://rdoc//rdoc/markup/to_tt_only.rb#114 def start_accepting; end # Extracts tt sections from +text+ # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#84 + # source://rdoc//rdoc/markup/to_tt_only.rb#84 def tt_sections(text); end end # A section of verbatim text -# -# source://rdoc//lib/rdoc/markup/verbatim.rb#5 class RDoc::Markup::Verbatim < ::RDoc::Markup::Raw # @return [Verbatim] a new instance of Verbatim # - # source://rdoc//lib/rdoc/markup/verbatim.rb#12 + # source://rdoc//rdoc/markup/verbatim.rb#12 def initialize(*parts); end - # source://rdoc//lib/rdoc/markup/verbatim.rb#18 + # source://rdoc//rdoc/markup/verbatim.rb#18 def ==(other); end # Calls #accept_verbatim on +visitor+ # - # source://rdoc//lib/rdoc/markup/verbatim.rb#25 + # source://rdoc//rdoc/markup/verbatim.rb#25 def accept(visitor); end # Format of this verbatim section # - # source://rdoc//lib/rdoc/markup/verbatim.rb#10 + # source://rdoc//rdoc/markup/verbatim.rb#10 def format; end # Format of this verbatim section # - # source://rdoc//lib/rdoc/markup/verbatim.rb#10 + # source://rdoc//rdoc/markup/verbatim.rb#10 def format=(_arg0); end # Collapses 3+ newlines into two newlines # - # source://rdoc//lib/rdoc/markup/verbatim.rb#32 + # source://rdoc//rdoc/markup/verbatim.rb#32 def normalize; end - # source://rdoc//lib/rdoc/markup/verbatim.rb#53 + # source://rdoc//rdoc/markup/verbatim.rb#53 def pretty_print(q); end # Is this verbatim section Ruby code? # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/verbatim.rb#71 + # source://rdoc//rdoc/markup/verbatim.rb#71 def ruby?; end # The text of the section # - # source://rdoc//lib/rdoc/markup/verbatim.rb#79 + # source://rdoc//rdoc/markup/verbatim.rb#79 def text; end end # Abstract class representing either a method or an attribute. -# -# source://rdoc//lib/rdoc/method_attr.rb#5 class RDoc::MethodAttr < ::RDoc::CodeObject include ::Comparable @@ -7220,15 +7097,15 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # # @return [MethodAttr] a new instance of MethodAttr # - # source://rdoc//lib/rdoc/method_attr.rb#78 + # source://rdoc//rdoc/method_attr.rb#78 def initialize(text, name); end # Order by #singleton then #name # - # source://rdoc//lib/rdoc/method_attr.rb#113 + # source://rdoc//rdoc/method_attr.rb#113 def <=>(other); end - # source://rdoc//lib/rdoc/method_attr.rb#121 + # source://rdoc//rdoc/method_attr.rb#121 def ==(other); end # Abstract method. Contexts in their building phase call this @@ -7241,7 +7118,7 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # # @raise [NotImplementedError] # - # source://rdoc//lib/rdoc/method_attr.rb#209 + # source://rdoc//rdoc/method_attr.rb#209 def add_alias(an_alias, context); end # Prepend +src+ with line numbers. Relies on the first line of a source @@ -7252,50 +7129,50 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # If it has this comment then line numbers are added to +src+ and the , # line dddd portion of the comment is removed. # - # source://rdoc//lib/rdoc/generator/markup.rb#77 + # source://rdoc//rdoc/generator/markup.rb#77 def add_line_numbers(src); end # Array of other names for this method/attribute # - # source://rdoc//lib/rdoc/method_attr.rb#32 + # source://rdoc//rdoc/method_attr.rb#32 def aliases; end # HTML fragment reference for this method # - # source://rdoc//lib/rdoc/method_attr.rb#216 + # source://rdoc//rdoc/method_attr.rb#216 def aref; end # Prefix for +aref+, defined by subclasses. # # @raise [NotImplementedError] # - # source://rdoc//lib/rdoc/method_attr.rb#225 + # source://rdoc//rdoc/method_attr.rb#225 def aref_prefix; end # The call_seq or the param_seq with method name, if there is no call_seq. # - # source://rdoc//lib/rdoc/method_attr.rb#64 + # source://rdoc//rdoc/method_attr.rb#64 def arglists; end # Parameters yielded by the called block # - # source://rdoc//lib/rdoc/method_attr.rb#49 + # source://rdoc//rdoc/method_attr.rb#49 def block_params; end # Attempts to sanitize the content passed by the Ruby parser: # remove outer parentheses, etc. # - # source://rdoc//lib/rdoc/method_attr.rb#233 + # source://rdoc//rdoc/method_attr.rb#233 def block_params=(value); end # Different ways to call this method # - # source://rdoc//lib/rdoc/method_attr.rb#59 + # source://rdoc//rdoc/method_attr.rb#59 def call_seq; end # Different ways to call this method # - # source://rdoc//lib/rdoc/method_attr.rb#59 + # source://rdoc//rdoc/method_attr.rb#59 def call_seq=(_arg0); end # A method/attribute is documented if any of the following is true: @@ -7305,61 +7182,61 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//lib/rdoc/method_attr.rb#132 + # source://rdoc//rdoc/method_attr.rb#132 def documented?; end - # source://rdoc//lib/rdoc/method_attr.rb#178 + # source://rdoc//rdoc/method_attr.rb#178 def find_method_or_attribute(name); end - # source://rdoc//lib/rdoc/method_attr.rb#166 + # source://rdoc//rdoc/method_attr.rb#166 def find_see; end # Full method/attribute name including namespace # - # source://rdoc//lib/rdoc/method_attr.rb#300 + # source://rdoc//rdoc/method_attr.rb#300 def full_name; end # HTML id-friendly method/attribute name # - # source://rdoc//lib/rdoc/method_attr.rb#291 + # source://rdoc//rdoc/method_attr.rb#291 def html_name; end - # source://rdoc//lib/rdoc/method_attr.rb#105 + # source://rdoc//rdoc/method_attr.rb#105 def initialize_visibility; end - # source://rdoc//lib/rdoc/method_attr.rb#304 + # source://rdoc//rdoc/method_attr.rb#304 def inspect; end # The method/attribute we're aliasing # - # source://rdoc//lib/rdoc/method_attr.rb#37 + # source://rdoc//rdoc/method_attr.rb#37 def is_alias_for; end # The method/attribute we're aliasing # - # source://rdoc//lib/rdoc/method_attr.rb#37 + # source://rdoc//rdoc/method_attr.rb#37 def is_alias_for=(_arg0); end # Turns the method's token stream into HTML. # # Prepends line numbers if +options.line_numbers+ is true. # - # source://rdoc//lib/rdoc/generator/markup.rb#101 + # source://rdoc//rdoc/generator/markup.rb#101 def markup_code; end # Name of this method/attribute. # - # source://rdoc//lib/rdoc/method_attr.rb#12 + # source://rdoc//rdoc/method_attr.rb#12 def name; end # Name of this method/attribute. # - # source://rdoc//lib/rdoc/method_attr.rb#12 + # source://rdoc//rdoc/method_attr.rb#12 def name=(_arg0); end # '::' for a class method/attribute, '#' for an instance method. # - # source://rdoc//lib/rdoc/method_attr.rb#319 + # source://rdoc//rdoc/method_attr.rb#319 def name_prefix; end # Name for output to HTML. For class methods the full name with a "." is @@ -7368,46 +7245,46 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # # This is to help prevent people from using :: to call class methods. # - # source://rdoc//lib/rdoc/method_attr.rb#330 + # source://rdoc//rdoc/method_attr.rb#330 def output_name(context); end # Pretty parameter list for this method # - # source://rdoc//lib/rdoc/method_attr.rb#69 + # source://rdoc//rdoc/method_attr.rb#69 def param_seq; end # Parameters for this method # - # source://rdoc//lib/rdoc/method_attr.rb#54 + # source://rdoc//rdoc/method_attr.rb#54 def params; end # Parameters for this method # - # source://rdoc//lib/rdoc/method_attr.rb#54 + # source://rdoc//rdoc/method_attr.rb#54 def params=(_arg0); end # Name of our parent with special handling for un-marshaled methods # - # source://rdoc//lib/rdoc/method_attr.rb#360 + # source://rdoc//rdoc/method_attr.rb#360 def parent_name; end # Path to this method for use with HTML generator output. # - # source://rdoc//lib/rdoc/method_attr.rb#353 + # source://rdoc//rdoc/method_attr.rb#353 def path; end # Method/attribute name with class/instance indicator # - # source://rdoc//lib/rdoc/method_attr.rb#339 + # source://rdoc//rdoc/method_attr.rb#339 def pretty_name; end - # source://rdoc//lib/rdoc/method_attr.rb#364 + # source://rdoc//rdoc/method_attr.rb#364 def pretty_print(q); end # Used by RDoc::Generator::JsonIndex to create a record for the search # engine. # - # source://rdoc//lib/rdoc/method_attr.rb#398 + # source://rdoc//rdoc/method_attr.rb#398 def search_record; end # A method/attribute to look at, @@ -7423,87 +7300,85 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # Templates may generate a "see also ..." if this method/attribute # has documentation, and "see ..." if it does not. # - # source://rdoc//lib/rdoc/method_attr.rb#152 + # source://rdoc//rdoc/method_attr.rb#152 def see; end # Is this a singleton method/attribute? # - # source://rdoc//lib/rdoc/method_attr.rb#22 + # source://rdoc//rdoc/method_attr.rb#22 def singleton; end # Is this a singleton method/attribute? # - # source://rdoc//lib/rdoc/method_attr.rb#22 + # source://rdoc//rdoc/method_attr.rb#22 def singleton=(_arg0); end # Sets the store for this class or module and its contained code objects. # - # source://rdoc//lib/rdoc/method_attr.rb#160 + # source://rdoc//rdoc/method_attr.rb#160 def store=(store); end # Source file token stream # - # source://rdoc//lib/rdoc/method_attr.rb#27 + # source://rdoc//rdoc/method_attr.rb#27 def text; end - # source://rdoc//lib/rdoc/method_attr.rb#410 + # source://rdoc//rdoc/method_attr.rb#410 def to_s; end # Type of method/attribute (class or instance) # - # source://rdoc//lib/rdoc/method_attr.rb#346 + # source://rdoc//rdoc/method_attr.rb#346 def type; end # public, protected, private # - # source://rdoc//lib/rdoc/method_attr.rb#17 + # source://rdoc//rdoc/method_attr.rb#17 def visibility; end # public, protected, private # - # source://rdoc//lib/rdoc/method_attr.rb#17 + # source://rdoc//rdoc/method_attr.rb#17 def visibility=(_arg0); end private # Resets cached data for the object so it can be rebuilt by accessor methods # - # source://rdoc//lib/rdoc/method_attr.rb#101 + # source://rdoc//rdoc/method_attr.rb#101 def initialize_copy(other); end end # A Mixin adds features from a module into another context. RDoc::Include and # RDoc::Extend are both mixins. -# -# source://rdoc//lib/rdoc/mixin.rb#6 class RDoc::Mixin < ::RDoc::CodeObject # Creates a new Mixin for +name+ with +comment+ # # @return [Mixin] a new instance of Mixin # - # source://rdoc//lib/rdoc/mixin.rb#16 + # source://rdoc//rdoc/mixin.rb#16 def initialize(name, comment); end # Mixins are sorted by name # - # source://rdoc//lib/rdoc/mixin.rb#26 + # source://rdoc//rdoc/mixin.rb#26 def <=>(other); end - # source://rdoc//lib/rdoc/mixin.rb#32 + # source://rdoc//rdoc/mixin.rb#32 def ==(other); end - # source://rdoc//lib/rdoc/mixin.rb#32 + # source://rdoc//rdoc/mixin.rb#32 def eql?(other); end # Full name based on #module # - # source://rdoc//lib/rdoc/mixin.rb#41 + # source://rdoc//rdoc/mixin.rb#41 def full_name; end - # source://rdoc//lib/rdoc/mixin.rb#46 + # source://rdoc//rdoc/mixin.rb#46 def hash; end - # source://rdoc//lib/rdoc/mixin.rb#50 + # source://rdoc//rdoc/mixin.rb#50 def inspect; end # Attempts to locate the included module object. Returns the name if not @@ -7522,90 +7397,86 @@ class RDoc::Mixin < ::RDoc::CodeObject # # As of the beginning of October, 2011, no gem includes nonexistent modules. # - # source://rdoc//lib/rdoc/mixin.rb#75 + # source://rdoc//rdoc/mixin.rb#75 def module; end # Name of included module # - # source://rdoc//lib/rdoc/mixin.rb#11 + # source://rdoc//rdoc/mixin.rb#11 def name; end # Name of included module # - # source://rdoc//lib/rdoc/mixin.rb#11 + # source://rdoc//rdoc/mixin.rb#11 def name=(_arg0); end # Sets the store for this class or module and its contained code objects. # - # source://rdoc//lib/rdoc/mixin.rb#110 + # source://rdoc//rdoc/mixin.rb#110 def store=(store); end - # source://rdoc//lib/rdoc/mixin.rb#116 + # source://rdoc//rdoc/mixin.rb#116 def to_s; end end # A normal class, neither singleton nor anonymous -# -# source://rdoc//lib/rdoc/normal_class.rb#5 class RDoc::NormalClass < ::RDoc::ClassModule # The ancestors of this class including modules. Unlike Module#ancestors, # this class is not included in the result. The result will contain both # RDoc::ClassModules and Strings. # - # source://rdoc//lib/rdoc/normal_class.rb#12 + # source://rdoc//rdoc/normal_class.rb#12 def ancestors; end - # source://rdoc//lib/rdoc/normal_class.rb#24 + # source://rdoc//rdoc/normal_class.rb#24 def aref_prefix; end # The definition of this class, class MyClassName # - # source://rdoc//lib/rdoc/normal_class.rb#31 + # source://rdoc//rdoc/normal_class.rb#31 def definition; end - # source://rdoc//lib/rdoc/normal_class.rb#35 + # source://rdoc//rdoc/normal_class.rb#35 def direct_ancestors; end - # source://rdoc//lib/rdoc/normal_class.rb#39 + # source://rdoc//rdoc/normal_class.rb#39 def inspect; end - # source://rdoc//lib/rdoc/normal_class.rb#56 + # source://rdoc//rdoc/normal_class.rb#56 def pretty_print(q); end - # source://rdoc//lib/rdoc/normal_class.rb#47 + # source://rdoc//rdoc/normal_class.rb#47 def to_s; end end # A normal module, like NormalClass -# -# source://rdoc//lib/rdoc/normal_module.rb#5 class RDoc::NormalModule < ::RDoc::ClassModule - # source://rdoc//lib/rdoc/normal_module.rb#7 + # source://rdoc//rdoc/normal_module.rb#7 def aref_prefix; end # The definition of this module, module MyModuleName # - # source://rdoc//lib/rdoc/normal_module.rb#21 + # source://rdoc//rdoc/normal_module.rb#21 def definition; end - # source://rdoc//lib/rdoc/normal_module.rb#11 + # source://rdoc//rdoc/normal_module.rb#11 def inspect; end # This is a module, returns true # # @return [Boolean] # - # source://rdoc//lib/rdoc/normal_module.rb#28 + # source://rdoc//rdoc/normal_module.rb#28 def module?; end - # source://rdoc//lib/rdoc/normal_module.rb#32 + # source://rdoc//rdoc/normal_module.rb#32 def pretty_print(q); end # Modules don't have one, raises NoMethodError # # @raise [NoMethodError] # - # source://rdoc//lib/rdoc/normal_module.rb#69 + # source://rdoc//rdoc/normal_module.rb#69 def superclass; end end @@ -7677,344 +7548,342 @@ end # addition to the validators that ship with OptionParser (String, Integer, # Float, TrueClass, FalseClass, Array, Regexp, Date, Time, URI, etc.), # RDoc::Options adds Path, PathArray and Template. -# -# source://rdoc//lib/rdoc/options.rb#75 class RDoc::Options # @return [Options] a new instance of Options # - # source://rdoc//lib/rdoc/options.rb#346 + # source://rdoc//rdoc/options.rb#346 def initialize(loaded_options = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/options.rb#459 + # source://rdoc//rdoc/options.rb#459 def ==(other); end # Character-set for HTML output. #encoding is preferred over #charset # - # source://rdoc//lib/rdoc/options.rb#151 + # source://rdoc//rdoc/options.rb#151 def charset; end # Character-set for HTML output. #encoding is preferred over #charset # - # source://rdoc//lib/rdoc/options.rb#151 + # source://rdoc//rdoc/options.rb#151 def charset=(_arg0); end # Check that the files on the command line exist # - # source://rdoc//lib/rdoc/options.rb#483 + # source://rdoc//rdoc/options.rb#483 def check_files; end # Ensure only one generator is loaded # - # source://rdoc//lib/rdoc/options.rb#504 + # source://rdoc//rdoc/options.rb#504 def check_generator; end # If true, only report on undocumented files # - # source://rdoc//lib/rdoc/options.rb#243 + # source://rdoc//rdoc/options.rb#243 def coverage_report; end # If true, only report on undocumented files # - # source://rdoc//lib/rdoc/options.rb#243 + # source://rdoc//rdoc/options.rb#243 def coverage_report=(_arg0); end # Set the title, but only if not already set. Used to set the title # from a source file, so that a title set from the command line # will have the priority. # - # source://rdoc//lib/rdoc/options.rb#516 + # source://rdoc//rdoc/options.rb#516 def default_title=(string); end # If true, RDoc will not write any files. # - # source://rdoc//lib/rdoc/options.rb#156 + # source://rdoc//rdoc/options.rb#156 def dry_run; end # If true, RDoc will not write any files. # - # source://rdoc//lib/rdoc/options.rb#156 + # source://rdoc//rdoc/options.rb#156 def dry_run=(_arg0); end # The output encoding. All input files will be transcoded to this encoding. # # The default encoding is UTF-8. This is set via --encoding. # - # source://rdoc//lib/rdoc/options.rb#163 + # source://rdoc//rdoc/options.rb#163 def encoding; end # The output encoding. All input files will be transcoded to this encoding. # # The default encoding is UTF-8. This is set via --encoding. # - # source://rdoc//lib/rdoc/options.rb#163 + # source://rdoc//rdoc/options.rb#163 def encoding=(_arg0); end # Create a regexp for #exclude # - # source://rdoc//lib/rdoc/options.rb#544 + # source://rdoc//rdoc/options.rb#544 def exclude; end # Files matching this pattern will be excluded # - # source://rdoc//lib/rdoc/options.rb#168 + # source://rdoc//rdoc/options.rb#168 def exclude=(_arg0); end # The list of files to be processed # - # source://rdoc//lib/rdoc/options.rb#173 + # source://rdoc//rdoc/options.rb#173 def files; end # The list of files to be processed # - # source://rdoc//lib/rdoc/options.rb#173 + # source://rdoc//rdoc/options.rb#173 def files=(_arg0); end # Completes any unfinished option setup business such as filtering for # existent files, creating a regexp for #exclude and setting a default # #template. # - # source://rdoc//lib/rdoc/options.rb#560 + # source://rdoc//rdoc/options.rb#560 def finish; end # Fixes the page_dir to be relative to the root_dir and adds the page_dir to # the files list. # - # source://rdoc//lib/rdoc/options.rb#601 + # source://rdoc//rdoc/options.rb#601 def finish_page_dir; end # Create the output even if the output directory does not look # like an rdoc output directory # - # source://rdoc//lib/rdoc/options.rb#179 + # source://rdoc//rdoc/options.rb#179 def force_output; end # Create the output even if the output directory does not look # like an rdoc output directory # - # source://rdoc//lib/rdoc/options.rb#179 + # source://rdoc//rdoc/options.rb#179 def force_output=(_arg0); end # Scan newer sources than the flag file if true. # - # source://rdoc//lib/rdoc/options.rb#184 + # source://rdoc//rdoc/options.rb#184 def force_update; end # Scan newer sources than the flag file if true. # - # source://rdoc//lib/rdoc/options.rb#184 + # source://rdoc//rdoc/options.rb#184 def force_update=(_arg0); end # Formatter to mark up text with # - # source://rdoc//lib/rdoc/options.rb#189 + # source://rdoc//rdoc/options.rb#189 def formatter; end # Formatter to mark up text with # - # source://rdoc//lib/rdoc/options.rb#189 + # source://rdoc//rdoc/options.rb#189 def formatter=(_arg0); end # Description of the output generator (set with the --format option) # - # source://rdoc//lib/rdoc/options.rb#194 + # source://rdoc//rdoc/options.rb#194 def generator; end # Description of the output generator (set with the --format option) # - # source://rdoc//lib/rdoc/options.rb#194 + # source://rdoc//rdoc/options.rb#194 def generator=(_arg0); end # Returns a properly-space list of generators and their descriptions. # - # source://rdoc//lib/rdoc/options.rb#620 + # source://rdoc//rdoc/options.rb#620 def generator_descriptions; end # For #== # - # source://rdoc//lib/rdoc/options.rb#199 + # source://rdoc//rdoc/options.rb#199 def generator_name; end # Loaded generator options. Used to prevent --help from loading the same # options multiple times. # - # source://rdoc//lib/rdoc/options.rb#205 + # source://rdoc//rdoc/options.rb#205 def generator_options; end # Loaded generator options. Used to prevent --help from loading the same # options multiple times. # - # source://rdoc//lib/rdoc/options.rb#205 + # source://rdoc//rdoc/options.rb#205 def generator_options=(_arg0); end # Old rdoc behavior: hyperlink all words that match a method name, # even if not preceded by '#' or '::' # - # source://rdoc//lib/rdoc/options.rb#211 + # source://rdoc//rdoc/options.rb#211 def hyperlink_all; end # Old rdoc behavior: hyperlink all words that match a method name, # even if not preceded by '#' or '::' # - # source://rdoc//lib/rdoc/options.rb#211 + # source://rdoc//rdoc/options.rb#211 def hyperlink_all=(_arg0); end - # source://rdoc//lib/rdoc/options.rb#351 + # source://rdoc//rdoc/options.rb#351 def init_ivars; end - # source://rdoc//lib/rdoc/options.rb#396 + # source://rdoc//rdoc/options.rb#396 def init_with(map); end # Include line numbers in the source code # - # source://rdoc//lib/rdoc/options.rb#216 + # source://rdoc//rdoc/options.rb#216 def line_numbers; end # Include line numbers in the source code # - # source://rdoc//lib/rdoc/options.rb#216 + # source://rdoc//rdoc/options.rb#216 def line_numbers=(_arg0); end # The output locale. # - # source://rdoc//lib/rdoc/options.rb#221 + # source://rdoc//rdoc/options.rb#221 def locale; end # The output locale. # - # source://rdoc//lib/rdoc/options.rb#221 + # source://rdoc//rdoc/options.rb#221 def locale=(_arg0); end # The directory where locale data live. # - # source://rdoc//lib/rdoc/options.rb#226 + # source://rdoc//rdoc/options.rb#226 def locale_dir; end # The directory where locale data live. # - # source://rdoc//lib/rdoc/options.rb#226 + # source://rdoc//rdoc/options.rb#226 def locale_dir=(_arg0); end # Name of the file, class or module to display in the initial index page (if # not specified the first file we encounter is used) # - # source://rdoc//lib/rdoc/options.rb#232 + # source://rdoc//rdoc/options.rb#232 def main_page; end # Name of the file, class or module to display in the initial index page (if # not specified the first file we encounter is used) # - # source://rdoc//lib/rdoc/options.rb#232 + # source://rdoc//rdoc/options.rb#232 def main_page=(_arg0); end # The default markup format. The default is 'rdoc'. 'markdown', 'tomdoc' # and 'rd' are also built-in. # - # source://rdoc//lib/rdoc/options.rb#238 + # source://rdoc//rdoc/options.rb#238 def markup; end # The default markup format. The default is 'rdoc'. 'markdown', 'tomdoc' # and 'rd' are also built-in. # - # source://rdoc//lib/rdoc/options.rb#238 + # source://rdoc//rdoc/options.rb#238 def markup=(_arg0); end # The name of the output directory # - # source://rdoc//lib/rdoc/options.rb#248 + # source://rdoc//rdoc/options.rb#248 def op_dir; end # The name of the output directory # - # source://rdoc//lib/rdoc/options.rb#248 + # source://rdoc//rdoc/options.rb#248 def op_dir=(_arg0); end # The OptionParser for this instance # - # source://rdoc//lib/rdoc/options.rb#253 + # source://rdoc//rdoc/options.rb#253 def option_parser; end # The OptionParser for this instance # - # source://rdoc//lib/rdoc/options.rb#253 + # source://rdoc//rdoc/options.rb#253 def option_parser=(_arg0); end # Output heading decorations? # - # source://rdoc//lib/rdoc/options.rb#257 + # source://rdoc//rdoc/options.rb#257 def output_decoration; end # Output heading decorations? # - # source://rdoc//lib/rdoc/options.rb#257 + # source://rdoc//rdoc/options.rb#257 def output_decoration=(_arg0); end - # source://rdoc//lib/rdoc/options.rb#427 + # source://rdoc//rdoc/options.rb#427 def override(map); end # Directory where guides, FAQ, and other pages not associated with a class # live. You may leave this unset if these are at the root of your project. # - # source://rdoc//lib/rdoc/options.rb#263 + # source://rdoc//rdoc/options.rb#263 def page_dir; end # Directory where guides, FAQ, and other pages not associated with a class # live. You may leave this unset if these are at the root of your project. # - # source://rdoc//lib/rdoc/options.rb#263 + # source://rdoc//rdoc/options.rb#263 def page_dir=(_arg0); end # Parses command line options. # - # source://rdoc//lib/rdoc/options.rb#646 + # source://rdoc//rdoc/options.rb#646 def parse(argv); end # Is RDoc in pipe mode? # - # source://rdoc//lib/rdoc/options.rb#268 + # source://rdoc//rdoc/options.rb#268 def pipe; end # Is RDoc in pipe mode? # - # source://rdoc//lib/rdoc/options.rb#268 + # source://rdoc//rdoc/options.rb#268 def pipe=(_arg0); end # Don't display progress as we process the files # - # source://rdoc//lib/rdoc/options.rb#1191 + # source://rdoc//rdoc/options.rb#1191 def quiet; end # Set quietness to +bool+ # - # source://rdoc//lib/rdoc/options.rb#1198 + # source://rdoc//rdoc/options.rb#1198 def quiet=(bool); end # Array of directories to search for files to satisfy an :include: # - # source://rdoc//lib/rdoc/options.rb#273 + # source://rdoc//rdoc/options.rb#273 def rdoc_include; end # Array of directories to search for files to satisfy an :include: # - # source://rdoc//lib/rdoc/options.rb#273 + # source://rdoc//rdoc/options.rb#273 def rdoc_include=(_arg0); end # Root of the source documentation will be generated for. Set this when # building documentation outside the source directory. Defaults to the # current directory. # - # source://rdoc//lib/rdoc/options.rb#280 + # source://rdoc//rdoc/options.rb#280 def root; end # Root of the source documentation will be generated for. Set this when # building documentation outside the source directory. Defaults to the # current directory. # - # source://rdoc//lib/rdoc/options.rb#280 + # source://rdoc//rdoc/options.rb#280 def root=(_arg0); end # Removes directories from +path+ that are outside the current directory # - # source://rdoc//lib/rdoc/options.rb#1205 + # source://rdoc//rdoc/options.rb#1205 def sanitize_path(path); end # Set up an output generator for the named +generator_name+. @@ -8023,117 +7892,117 @@ class RDoc::Options # the options instance. This allows generators to add custom options or set # default options. # - # source://rdoc//lib/rdoc/options.rb#1232 + # source://rdoc//rdoc/options.rb#1232 def setup_generator(generator_name = T.unsafe(nil)); end # Include the '#' at the front of hyperlinked instance method names # - # source://rdoc//lib/rdoc/options.rb#285 + # source://rdoc//rdoc/options.rb#285 def show_hash; end # Include the '#' at the front of hyperlinked instance method names # - # source://rdoc//lib/rdoc/options.rb#285 + # source://rdoc//rdoc/options.rb#285 def show_hash=(_arg0); end # Indicates if files of test suites should be skipped # - # source://rdoc//lib/rdoc/options.rb#344 + # source://rdoc//rdoc/options.rb#344 def skip_tests; end # Indicates if files of test suites should be skipped # - # source://rdoc//lib/rdoc/options.rb#344 + # source://rdoc//rdoc/options.rb#344 def skip_tests=(_arg0); end # Directory to copy static files from # - # source://rdoc//lib/rdoc/options.rb#290 + # source://rdoc//rdoc/options.rb#290 def static_path; end # Directory to copy static files from # - # source://rdoc//lib/rdoc/options.rb#290 + # source://rdoc//rdoc/options.rb#290 def static_path=(_arg0); end # The number of columns in a tab # - # source://rdoc//lib/rdoc/options.rb#295 + # source://rdoc//rdoc/options.rb#295 def tab_width; end # The number of columns in a tab # - # source://rdoc//lib/rdoc/options.rb#295 + # source://rdoc//rdoc/options.rb#295 def tab_width=(_arg0); end # Template to be used when generating output # - # source://rdoc//lib/rdoc/options.rb#300 + # source://rdoc//rdoc/options.rb#300 def template; end # Template to be used when generating output # - # source://rdoc//lib/rdoc/options.rb#300 + # source://rdoc//rdoc/options.rb#300 def template=(_arg0); end # Directory the template lives in # - # source://rdoc//lib/rdoc/options.rb#305 + # source://rdoc//rdoc/options.rb#305 def template_dir; end # Directory the template lives in # - # source://rdoc//lib/rdoc/options.rb#305 + # source://rdoc//rdoc/options.rb#305 def template_dir=(_arg0); end # Finds the template dir for +template+ # - # source://rdoc//lib/rdoc/options.rb#1254 + # source://rdoc//rdoc/options.rb#1254 def template_dir_for(template); end # Additional template stylesheets # - # source://rdoc//lib/rdoc/options.rb#310 + # source://rdoc//rdoc/options.rb#310 def template_stylesheets; end # Additional template stylesheets # - # source://rdoc//lib/rdoc/options.rb#310 + # source://rdoc//rdoc/options.rb#310 def template_stylesheets=(_arg0); end # Documentation title # - # source://rdoc//lib/rdoc/options.rb#315 + # source://rdoc//rdoc/options.rb#315 def title; end # Documentation title # - # source://rdoc//lib/rdoc/options.rb#315 + # source://rdoc//rdoc/options.rb#315 def title=(_arg0); end # For dumping YAML # - # source://rdoc//lib/rdoc/options.rb#523 + # source://rdoc//rdoc/options.rb#523 def to_yaml(*options); end # Should RDoc update the timestamps in the output dir? # - # source://rdoc//lib/rdoc/options.rb#320 + # source://rdoc//rdoc/options.rb#320 def update_output_dir; end # Should RDoc update the timestamps in the output dir? # - # source://rdoc//lib/rdoc/options.rb#320 + # source://rdoc//rdoc/options.rb#320 def update_output_dir=(_arg0); end # Verbosity, zero means quiet # - # source://rdoc//lib/rdoc/options.rb#325 + # source://rdoc//rdoc/options.rb#325 def verbosity; end # Verbosity, zero means quiet # - # source://rdoc//lib/rdoc/options.rb#325 + # source://rdoc//rdoc/options.rb#325 def verbosity=(_arg0); end # Minimum visibility of a documented method. One of +:public+, +:protected+, @@ -8142,7 +8011,7 @@ class RDoc::Options # The +:nodoc+ visibility ignores all directives related to visibility. The # directive. # - # source://rdoc//lib/rdoc/options.rb#340 + # source://rdoc//rdoc/options.rb#340 def visibility; end # Sets the minimum visibility of a documented method. @@ -8152,31 +8021,31 @@ class RDoc::Options # When +:all+ is passed, visibility is set to +:private+, similarly to # RDOCOPT="--all", see #visibility for more information. # - # source://rdoc//lib/rdoc/options.rb#1271 + # source://rdoc//rdoc/options.rb#1271 def visibility=(visibility); end # Displays a warning using Kernel#warn if we're being verbose # - # source://rdoc//lib/rdoc/options.rb#1283 + # source://rdoc//rdoc/options.rb#1283 def warn(message); end # URL of web cvs frontend # - # source://rdoc//lib/rdoc/options.rb#330 + # source://rdoc//rdoc/options.rb#330 def webcvs; end # URL of web cvs frontend # - # source://rdoc//lib/rdoc/options.rb#330 + # source://rdoc//rdoc/options.rb#330 def webcvs=(_arg0); end # Writes the YAML file .rdoc_options to the current directory containing the # parsed options. # - # source://rdoc//lib/rdoc/options.rb#1291 + # source://rdoc//rdoc/options.rb#1291 def write_options; end - # source://rdoc//lib/rdoc/options.rb#423 + # source://rdoc//rdoc/options.rb#423 def yaml_initialize(tag, map); end class << self @@ -8185,7 +8054,7 @@ class RDoc::Options # # @raise [RDoc::Error] # - # source://rdoc//lib/rdoc/options.rb#1305 + # source://rdoc//rdoc/options.rb#1305 def load_options; end end end @@ -8217,8 +8086,6 @@ end # # parse file and fill in @top_level # end # end -# -# source://rdoc//lib/rdoc/parser.rb#33 class RDoc::Parser # Creates a new Parser storing +top_level+, +file_name+, +content+, # +options+ and +stats+ in instance variables. In +@preprocess+ an @@ -8227,24 +8094,24 @@ class RDoc::Parser # # @return [Parser] a new instance of Parser # - # source://rdoc//lib/rdoc/parser.rb#252 + # source://rdoc//rdoc/parser.rb#252 def initialize(top_level, file_name, content, options, stats); end # The name of the file being parsed # - # source://rdoc//lib/rdoc/parser.rb#52 + # source://rdoc//rdoc/parser.rb#52 def file_name; end # Normalizes tabs in +body+ # - # source://rdoc//lib/rdoc/parser.rb#272 + # source://rdoc//rdoc/parser.rb#272 def handle_tab_width(body); end class << self # Alias an extension to another extension. After this call, files ending # "new_ext" will be parsed using the same parser as "old_ext" # - # source://rdoc//lib/rdoc/parser.rb#58 + # source://rdoc//rdoc/parser.rb#58 def alias_extension(old_ext, new_ext); end # Determines if the file is a "binary" file which basically means it has @@ -8252,36 +8119,36 @@ class RDoc::Parser # # @return [Boolean] # - # source://rdoc//lib/rdoc/parser.rb#74 + # source://rdoc//rdoc/parser.rb#74 def binary?(file); end # Return a parser that can handle a particular extension # - # source://rdoc//lib/rdoc/parser.rb#107 + # source://rdoc//rdoc/parser.rb#107 def can_parse(file_name); end # Returns a parser that can handle the extension for +file_name+. This does # not depend upon the file being readable. # - # source://rdoc//lib/rdoc/parser.rb#120 + # source://rdoc//rdoc/parser.rb#120 def can_parse_by_name(file_name); end # Returns the file type from the modeline in +file_name+ # - # source://rdoc//lib/rdoc/parser.rb#141 + # source://rdoc//rdoc/parser.rb#141 def check_modeline(file_name); end # Finds and instantiates the correct parser for the given +file_name+ and # +content+. # - # source://rdoc//lib/rdoc/parser.rb#167 + # source://rdoc//rdoc/parser.rb#167 def for(top_level, file_name, content, options, stats); end # Record which file types this parser can understand. # # It is ok to call this multiple times. # - # source://rdoc//lib/rdoc/parser.rb#201 + # source://rdoc//rdoc/parser.rb#201 def parse_files_matching(regexp); end # An Array of arrays that maps file extension (or name) regular @@ -8289,12 +8156,12 @@ class RDoc::Parser # # Use parse_files_matching to register a parser's file extensions. # - # source://rdoc//lib/rdoc/parser.rb#45 + # source://rdoc//rdoc/parser.rb#45 def parsers; end # Removes an emacs-style modeline from the first line of the document # - # source://rdoc//lib/rdoc/parser.rb#208 + # source://rdoc//rdoc/parser.rb#208 def remove_modeline(content); end # If there is a markup: parser_name comment at the front of the @@ -8313,7 +8180,7 @@ class RDoc::Parser # # Any comment style may be used to hide the markup comment. # - # source://rdoc//lib/rdoc/parser.rb#229 + # source://rdoc//rdoc/parser.rb#229 def use_markup(content); end # Checks if +file+ is a zip file in disguise. Signatures from @@ -8321,7 +8188,7 @@ class RDoc::Parser # # @return [Boolean] # - # source://rdoc//lib/rdoc/parser.rb#94 + # source://rdoc//rdoc/parser.rb#94 def zip?(file); end end end @@ -8439,8 +8306,6 @@ end # * In the second form, if the key isn't found, invoke the # * block and return its value. # */ -# -# source://rdoc//lib/rdoc/parser/c.rb#119 class RDoc::Parser::C < ::RDoc::Parser include ::RDoc::Text @@ -8449,85 +8314,85 @@ class RDoc::Parser::C < ::RDoc::Parser # # @return [C] a new instance of C # - # source://rdoc//lib/rdoc/parser/c.rb#171 + # source://rdoc//rdoc/parser/c.rb#171 def initialize(top_level, file_name, content, options, stats); end # Add alias, either from a direct alias definition, or from two # method that reference the same function. # - # source://rdoc//lib/rdoc/parser/c.rb#250 + # source://rdoc//rdoc/parser/c.rb#250 def add_alias(var_name, class_obj, old_name, new_name, comment); end # Maps C variable names to names of Ruby classes or modules # - # source://rdoc//lib/rdoc/parser/c.rb#133 + # source://rdoc//rdoc/parser/c.rb#133 def classes; end # C file the parser is parsing # - # source://rdoc//lib/rdoc/parser/c.rb#138 + # source://rdoc//rdoc/parser/c.rb#138 def content; end # C file the parser is parsing # - # source://rdoc//lib/rdoc/parser/c.rb#138 + # source://rdoc//rdoc/parser/c.rb#138 def content=(_arg0); end # Scans #content for rb_define_alias # - # source://rdoc//lib/rdoc/parser/c.rb#222 + # source://rdoc//rdoc/parser/c.rb#222 def do_aliases; end # Scans #content for rb_attr and rb_define_attr # - # source://rdoc//lib/rdoc/parser/c.rb#263 + # source://rdoc//rdoc/parser/c.rb#263 def do_attrs; end # Scans #content for boot_defclass # - # source://rdoc//lib/rdoc/parser/c.rb#286 + # source://rdoc//rdoc/parser/c.rb#286 def do_boot_defclass; end # Scans #content for rb_define_class, boot_defclass, rb_define_class_under # and rb_singleton_class # - # source://rdoc//lib/rdoc/parser/c.rb#298 + # source://rdoc//rdoc/parser/c.rb#298 def do_classes_and_modules; end # Scans #content for rb_define_variable, rb_define_readonly_variable, # rb_define_const and rb_define_global_const # - # source://rdoc//lib/rdoc/parser/c.rb#396 + # source://rdoc//rdoc/parser/c.rb#396 def do_constants; end # Scans #content for rb_include_module # - # source://rdoc//lib/rdoc/parser/c.rb#442 + # source://rdoc//rdoc/parser/c.rb#442 def do_includes; end # Scans #content for rb_define_method, rb_define_singleton_method, # rb_define_module_function, rb_define_private_method, # rb_define_global_function and define_filetest_function # - # source://rdoc//lib/rdoc/parser/c.rb#458 + # source://rdoc//rdoc/parser/c.rb#458 def do_methods; end # Creates classes and module that were missing were defined due to the file # order being different than the declaration order. # - # source://rdoc//lib/rdoc/parser/c.rb#507 + # source://rdoc//rdoc/parser/c.rb#507 def do_missing; end # Dependencies from a missing enclosing class to the classes in # missing_dependencies that depend upon it. # - # source://rdoc//lib/rdoc/parser/c.rb#144 + # source://rdoc//rdoc/parser/c.rb#144 def enclosure_dependencies; end # Finds the comment for an alias on +class_name+ from +new_name+ to # +old_name+ # - # source://rdoc//lib/rdoc/parser/c.rb#523 + # source://rdoc//rdoc/parser/c.rb#523 def find_alias_comment(class_name, new_name, old_name); end # Finds a comment for rb_define_attr, rb_attr or Document-attr. @@ -8538,17 +8403,17 @@ class RDoc::Parser::C < ::RDoc::Parser # +read+ and +write+ are the read/write flags ('1' or '0'). Either both or # neither must be provided. # - # source://rdoc//lib/rdoc/parser/c.rb#541 + # source://rdoc//rdoc/parser/c.rb#541 def find_attr_comment(var_name, attr_name, read = T.unsafe(nil), write = T.unsafe(nil)); end # Find the C code corresponding to a Ruby method # - # source://rdoc//lib/rdoc/parser/c.rb#598 + # source://rdoc//rdoc/parser/c.rb#598 def find_body(class_name, meth_name, meth_obj, file_content, quiet = T.unsafe(nil)); end # Finds a RDoc::NormalClass or RDoc::NormalModule for +raw_name+ # - # source://rdoc//lib/rdoc/parser/c.rb#682 + # source://rdoc//rdoc/parser/c.rb#682 def find_class(raw_name, name, base_name = T.unsafe(nil)); end # Look for class or module documentation above Init_+class_name+(void), @@ -8576,45 +8441,45 @@ class RDoc::Parser::C < ::RDoc::Parser # */ # VALUE cFoo = rb_define_class("Foo", rb_cObject); # - # source://rdoc//lib/rdoc/parser/c.rb#723 + # source://rdoc//rdoc/parser/c.rb#723 def find_class_comment(class_name, class_mod); end # Finds a comment matching +type+ and +const_name+ either above the # comment or in the matching Document- section. # - # source://rdoc//lib/rdoc/parser/c.rb#779 + # source://rdoc//rdoc/parser/c.rb#779 def find_const_comment(type, const_name, class_name = T.unsafe(nil)); end # Handles modifiers in +comment+ and updates +meth_obj+ as appropriate. # - # source://rdoc//lib/rdoc/parser/c.rb#796 + # source://rdoc//rdoc/parser/c.rb#796 def find_modifiers(comment, meth_obj); end # Finds a Document-method override for +meth_obj+ on +class_name+ # - # source://rdoc//lib/rdoc/parser/c.rb#806 + # source://rdoc//rdoc/parser/c.rb#806 def find_override_comment(class_name, meth_obj); end # Generate a Ruby-method table # - # source://rdoc//lib/rdoc/parser/c.rb#574 + # source://rdoc//rdoc/parser/c.rb#574 def gen_body_table(file_content); end # Generate a const table # - # source://rdoc//lib/rdoc/parser/c.rb#756 + # source://rdoc//rdoc/parser/c.rb#756 def gen_const_table(file_content); end # Creates a new RDoc::Attr +attr_name+ on class +var_name+ that is either # +read+, +write+ or both # - # source://rdoc//lib/rdoc/parser/c.rb#828 + # source://rdoc//rdoc/parser/c.rb#828 def handle_attr(var_name, attr_name, read, write); end # Creates a new RDoc::NormalClass or RDoc::NormalModule based on +type+ # named +class_name+ in +parent+ which was assigned to the C +var_name+. # - # source://rdoc//lib/rdoc/parser/c.rb#857 + # source://rdoc//rdoc/parser/c.rb#857 def handle_class_module(var_name, type, class_name, parent, in_module); end # Adds constants. By providing some_value: at the start of the comment you @@ -8626,35 +8491,35 @@ class RDoc::Parser::C < ::RDoc::Parser # Will override INT2FIX(300) with the value +300+ in the output # RDoc. Values may include quotes and escaped colons (\:). # - # source://rdoc//lib/rdoc/parser/c.rb#922 + # source://rdoc//rdoc/parser/c.rb#922 def handle_constants(type, var_name, const_name, definition); end # Removes #ifdefs that would otherwise confuse us # - # source://rdoc//lib/rdoc/parser/c.rb#972 + # source://rdoc//rdoc/parser/c.rb#972 def handle_ifdefs_in(body); end # Adds an RDoc::AnyMethod +meth_name+ defined on a class or module assigned # to +var_name+. +type+ is the type of method definition function used. # +singleton_method+ and +module_function+ create a singleton method. # - # source://rdoc//lib/rdoc/parser/c.rb#981 + # source://rdoc//rdoc/parser/c.rb#981 def handle_method(type, var_name, meth_name, function, param_count, source_file = T.unsafe(nil)); end # Registers a singleton class +sclass_var+ as a singleton of +class_var+ # - # source://rdoc//lib/rdoc/parser/c.rb#1051 + # source://rdoc//rdoc/parser/c.rb#1051 def handle_singleton(sclass_var, class_var); end # Maps C variable names to names of Ruby classes (and singleton classes) # - # source://rdoc//lib/rdoc/parser/c.rb#149 + # source://rdoc//rdoc/parser/c.rb#149 def known_classes; end # Loads the variable map with the given +name+ from the RDoc::Store, if # present. # - # source://rdoc//lib/rdoc/parser/c.rb#1062 + # source://rdoc//rdoc/parser/c.rb#1062 def load_variable_map(map_name); end # Look for directives in a normal comment block: @@ -8665,55 +8530,55 @@ class RDoc::Parser::C < ::RDoc::Parser # # This method modifies the +comment+ # - # source://rdoc//lib/rdoc/parser/c.rb#1091 + # source://rdoc//rdoc/parser/c.rb#1091 def look_for_directives_in(context, comment); end # Classes found while parsing the C file that were not yet registered due to # a missing enclosing class. These are processed by do_missing # - # source://rdoc//lib/rdoc/parser/c.rb#155 + # source://rdoc//rdoc/parser/c.rb#155 def missing_dependencies; end # Creates a RDoc::Comment instance. # - # source://rdoc//lib/rdoc/parser/c.rb#1221 + # source://rdoc//rdoc/parser/c.rb#1221 def new_comment(text = T.unsafe(nil), location = T.unsafe(nil), language = T.unsafe(nil)); end # Extracts parameters from the +method_body+ and returns a method # parameter string. Follows 1.9.3dev's scan-arg-spec, see README.EXT # - # source://rdoc//lib/rdoc/parser/c.rb#1110 + # source://rdoc//rdoc/parser/c.rb#1110 def rb_scan_args(method_body); end # Removes lines that are commented out that might otherwise get picked up # when scanning for classes and methods # - # source://rdoc//lib/rdoc/parser/c.rb#1193 + # source://rdoc//rdoc/parser/c.rb#1193 def remove_commented_out_lines; end # Extracts the classes, modules, methods, attributes, constants and aliases # from a C file and returns an RDoc::TopLevel for this file # - # source://rdoc//lib/rdoc/parser/c.rb#1201 + # source://rdoc//rdoc/parser/c.rb#1201 def scan; end # Maps C variable names to names of Ruby singleton classes # - # source://rdoc//lib/rdoc/parser/c.rb#160 + # source://rdoc//rdoc/parser/c.rb#160 def singleton_classes; end # The TopLevel items in the parsed file belong to # - # source://rdoc//lib/rdoc/parser/c.rb#165 + # source://rdoc//rdoc/parser/c.rb#165 def top_level; end end # :stopdoc: # -# source://rdoc//lib/rdoc/parser/c.rb#126 +# source://rdoc//rdoc/parser/c.rb#126 RDoc::Parser::C::BOOL_ARG_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rdoc//lib/rdoc/parser/c.rb#127 +# source://rdoc//rdoc/parser/c.rb#127 RDoc::Parser::C::TRUE_VALUES = T.let(T.unsafe(nil), Array) # A ChangeLog file parser. @@ -8725,8 +8590,6 @@ RDoc::Parser::C::TRUE_VALUES = T.let(T.unsafe(nil), Array) # This parser is meant to parse the MRI ChangeLog, but can be used to parse any # {GNU style Change # Log}[http://www.gnu.org/prep/standards/html_node/Style-of-Change-Logs.html]. -# -# source://rdoc//lib/rdoc/parser/changelog.rb#14 class RDoc::Parser::ChangeLog < ::RDoc::Parser include ::RDoc::Parser::Text @@ -8735,34 +8598,34 @@ class RDoc::Parser::ChangeLog < ::RDoc::Parser # Continued function listings are joined together as a single entry. # Continued descriptions are joined to make a single paragraph. # - # source://rdoc//lib/rdoc/parser/changelog.rb#26 + # source://rdoc//rdoc/parser/changelog.rb#26 def continue_entry_body(entry_body, continuation); end # Creates an RDoc::Markup::Document given the +groups+ of ChangeLog entries. # - # source://rdoc//lib/rdoc/parser/changelog.rb#44 + # source://rdoc//rdoc/parser/changelog.rb#44 def create_document(groups); end # Returns a list of ChangeLog entries an RDoc::Markup nodes for the given # +entries+. # - # source://rdoc//lib/rdoc/parser/changelog.rb#66 + # source://rdoc//rdoc/parser/changelog.rb#66 def create_entries(entries); end # Returns an RDoc::Markup::List containing the given +items+ in the # ChangeLog # - # source://rdoc//lib/rdoc/parser/changelog.rb#83 + # source://rdoc//rdoc/parser/changelog.rb#83 def create_items(items); end # Groups +entries+ by date. # - # source://rdoc//lib/rdoc/parser/changelog.rb#103 + # source://rdoc//rdoc/parser/changelog.rb#103 def group_entries(entries); end # Parse date in ISO-8601, RFC-2822, or default of Git # - # source://rdoc//lib/rdoc/parser/changelog.rb#119 + # source://rdoc//rdoc/parser/changelog.rb#119 def parse_date(date); end # Parses the entries in the ChangeLog. @@ -8779,52 +8642,49 @@ class RDoc::Parser::ChangeLog < ::RDoc::Parser # [ 'README.EXT: Converted to RDoc format', # 'README.EXT.ja: ditto']] # - # source://rdoc//lib/rdoc/parser/changelog.rb#149 + # source://rdoc//rdoc/parser/changelog.rb#149 def parse_entries; end # Converts the ChangeLog into an RDoc::Markup::Document # - # source://rdoc//lib/rdoc/parser/changelog.rb#206 + # source://rdoc//rdoc/parser/changelog.rb#206 def scan; end end # The extension for Git commit log -# -# source://rdoc//lib/rdoc/parser/changelog.rb#222 module RDoc::Parser::ChangeLog::Git # Returns a list of ChangeLog entries as # RDoc::Parser::ChangeLog::Git::LogEntry list for the given # +entries+. # - # source://rdoc//lib/rdoc/parser/changelog.rb#262 + # source://rdoc//rdoc/parser/changelog.rb#262 def create_entries(entries); end # Parses the entries in the Git commit logs # - # source://rdoc//lib/rdoc/parser/changelog.rb#235 + # source://rdoc//rdoc/parser/changelog.rb#235 def parse_entries; end # Parses auxiliary info. Currentry `base-url` to expand # references is effective. # - # source://rdoc//lib/rdoc/parser/changelog.rb#227 + # source://rdoc//rdoc/parser/changelog.rb#227 def parse_info(info); end end -# source://rdoc//lib/rdoc/parser/changelog.rb#271 +# source://rdoc//rdoc/parser/changelog.rb#271 RDoc::Parser::ChangeLog::Git::HEADING_LEVEL = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/changelog.rb#270 class RDoc::Parser::ChangeLog::Git::LogEntry < ::Struct # @return [LogEntry] a new instance of LogEntry # - # source://rdoc//lib/rdoc/parser/changelog.rb#273 + # source://rdoc//rdoc/parser/changelog.rb#273 def initialize(base, commit, author, email, date, contents); end - # source://rdoc//lib/rdoc/parser/changelog.rb#313 + # source://rdoc//rdoc/parser/changelog.rb#313 def accept(visitor); end - # source://rdoc//lib/rdoc/parser/changelog.rb#294 + # source://rdoc//rdoc/parser/changelog.rb#294 def aref; end # Returns the value of attribute author @@ -8893,16 +8753,16 @@ class RDoc::Parser::ChangeLog::Git::LogEntry < ::Struct # @return [Object] the newly set value def email=(_); end - # source://rdoc//lib/rdoc/parser/changelog.rb#298 + # source://rdoc//rdoc/parser/changelog.rb#298 def label(context = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/parser/changelog.rb#290 + # source://rdoc//rdoc/parser/changelog.rb#290 def level; end - # source://rdoc//lib/rdoc/parser/changelog.rb#330 + # source://rdoc//rdoc/parser/changelog.rb#330 def pretty_print(q); end - # source://rdoc//lib/rdoc/parser/changelog.rb#302 + # source://rdoc//rdoc/parser/changelog.rb#302 def text; end class << self @@ -8916,73 +8776,67 @@ end # Parse a Markdown format file. The parsed RDoc::Markup::Document is attached # as a file comment. -# -# source://rdoc//lib/rdoc/parser/markdown.rb#6 class RDoc::Parser::Markdown < ::RDoc::Parser include ::RDoc::Parser::Text # Creates an Markdown-format TopLevel for the given file. # - # source://rdoc//lib/rdoc/parser/markdown.rb#15 + # source://rdoc//rdoc/parser/markdown.rb#15 def scan; end end # Parse a RD format file. The parsed RDoc::Markup::Document is attached as a # file comment. -# -# source://rdoc//lib/rdoc/parser/rd.rb#6 class RDoc::Parser::RD < ::RDoc::Parser include ::RDoc::Parser::Text # Creates an rd-format TopLevel for the given file. # - # source://rdoc//lib/rdoc/parser/rd.rb#15 + # source://rdoc//rdoc/parser/rd.rb#15 def scan; end end # Wrapper for Ripper lex states -# -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#7 class RDoc::Parser::RipperStateLex # New lexer for +code+. # # @return [RipperStateLex] a new instance of RipperStateLex # - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#576 + # source://rdoc//rdoc/parser/ripper_state_lex.rb#576 def initialize(code); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#322 + # source://rdoc//rdoc/parser/ripper_state_lex.rb#322 def get_squashed_tk; end private - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#465 + # source://rdoc//rdoc/parser/ripper_state_lex.rb#465 def get_embdoc_tk(tk); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#474 + # source://rdoc//rdoc/parser/ripper_state_lex.rb#474 def get_heredoc_tk(heredoc_name, indent); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#549 + # source://rdoc//rdoc/parser/ripper_state_lex.rb#549 def get_op_tk(tk); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#447 + # source://rdoc//rdoc/parser/ripper_state_lex.rb#447 def get_regexp_tk(tk); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#420 + # source://rdoc//rdoc/parser/ripper_state_lex.rb#420 def get_string_tk(tk); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#373 + # source://rdoc//rdoc/parser/ripper_state_lex.rb#373 def get_symbol_tk(tk); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#511 + # source://rdoc//rdoc/parser/ripper_state_lex.rb#511 def get_words_tk(tk); end # @return [Boolean] # - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#499 + # source://rdoc//rdoc/parser/ripper_state_lex.rb#499 def heredoc_end?(name, indent, tk); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#493 + # source://rdoc//rdoc/parser/ripper_state_lex.rb#493 def retrieve_heredoc_info(tk); end class << self @@ -8990,87 +8844,85 @@ class RDoc::Parser::RipperStateLex # # @return [Boolean] # - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#597 + # source://rdoc//rdoc/parser/ripper_state_lex.rb#597 def end?(token); end # Returns tokens parsed from +code+. # - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#584 + # source://rdoc//rdoc/parser/ripper_state_lex.rb#584 def parse(code); end end end -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#20 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#20 RDoc::Parser::RipperStateLex::EXPR_ARG = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#31 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#31 RDoc::Parser::RipperStateLex::EXPR_ARG_ANY = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#16 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#16 RDoc::Parser::RipperStateLex::EXPR_BEG = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#30 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#30 RDoc::Parser::RipperStateLex::EXPR_BEG_ANY = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#25 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#25 RDoc::Parser::RipperStateLex::EXPR_CLASS = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#21 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#21 RDoc::Parser::RipperStateLex::EXPR_CMDARG = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#24 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#24 RDoc::Parser::RipperStateLex::EXPR_DOT = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#17 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#17 RDoc::Parser::RipperStateLex::EXPR_END = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#18 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#18 RDoc::Parser::RipperStateLex::EXPR_ENDARG = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#19 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#19 RDoc::Parser::RipperStateLex::EXPR_ENDFN = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#32 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#32 RDoc::Parser::RipperStateLex::EXPR_END_ANY = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#28 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#28 RDoc::Parser::RipperStateLex::EXPR_FITEM = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#23 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#23 RDoc::Parser::RipperStateLex::EXPR_FNAME = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#26 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#26 RDoc::Parser::RipperStateLex::EXPR_LABEL = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#27 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#27 RDoc::Parser::RipperStateLex::EXPR_LABELED = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#22 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#22 RDoc::Parser::RipperStateLex::EXPR_MID = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#15 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#15 RDoc::Parser::RipperStateLex::EXPR_NONE = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#29 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#29 RDoc::Parser::RipperStateLex::EXPR_VALUE = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#312 class RDoc::Parser::RipperStateLex::InnerStateLex < ::Ripper::Filter # @return [InnerStateLex] a new instance of InnerStateLex # - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#313 + # source://rdoc//rdoc/parser/ripper_state_lex.rb#313 def initialize(code); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#317 + # source://rdoc//rdoc/parser/ripper_state_lex.rb#317 def on_default(event, tok, data); end end # TODO: Remove this constants after Ruby 2.4 EOL # -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#11 +# source://rdoc//rdoc/parser/ripper_state_lex.rb#11 RDoc::Parser::RipperStateLex::RIPPER_HAS_LEX_STATE = T.let(T.unsafe(nil), TrueClass) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#13 class RDoc::Parser::RipperStateLex::Token < ::Struct # Returns the value of attribute char_no # @@ -9264,8 +9116,6 @@ end # # Note that by default, the :method: directive will be ignored if there is a # standard rdocable item following it. -# -# source://rdoc//lib/rdoc/parser/ruby.rb#144 class RDoc::Parser::Ruby < ::RDoc::Parser include ::RDoc::TokenStream include ::RDoc::Parser::RubyTools @@ -9274,56 +9124,56 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # # @return [Ruby] a new instance of Ruby # - # source://rdoc//lib/rdoc/parser/ruby.rb#164 + # source://rdoc//rdoc/parser/ruby.rb#164 def initialize(top_level, file_name, content, options, stats); end # Look for the first comment in a file that isn't a shebang line. # - # source://rdoc//lib/rdoc/parser/ruby.rb#236 + # source://rdoc//rdoc/parser/ruby.rb#236 def collect_first_comment; end # Consumes trailing whitespace from the token stream # - # source://rdoc//lib/rdoc/parser/ruby.rb#279 + # source://rdoc//rdoc/parser/ruby.rb#279 def consume_trailing_spaces; end # Creates a new attribute in +container+ with +name+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#286 + # source://rdoc//rdoc/parser/ruby.rb#286 def create_attr(container, single, name, rw, comment); end # Creates a module alias in +container+ at +rhs_name+ (or at the top-level # for "::") with the name from +constant+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#300 + # source://rdoc//rdoc/parser/ruby.rb#300 def create_module_alias(container, constant, rhs_name); end # Aborts with +msg+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#313 + # source://rdoc//rdoc/parser/ruby.rb#313 def error(msg); end # Looks for a true or false token. # - # source://rdoc//lib/rdoc/parser/ruby.rb#322 + # source://rdoc//rdoc/parser/ruby.rb#322 def get_bool; end # Look for the name of a class of module (optionally with a leading :: or # with :: separated named) and return the ultimate name, the associated # container, and the given name (with the ::). # - # source://rdoc//lib/rdoc/parser/ruby.rb#340 + # source://rdoc//rdoc/parser/ruby.rb#340 def get_class_or_module(container, ignore_constants = T.unsafe(nil)); end # Return a superclass, which can be either a constant of an expression # - # source://rdoc//lib/rdoc/parser/ruby.rb#423 + # source://rdoc//rdoc/parser/ruby.rb#423 def get_class_specification; end # Parse a constant, which might be qualified by one or more class or module # names # - # source://rdoc//lib/rdoc/parser/ruby.rb#456 + # source://rdoc//rdoc/parser/ruby.rb#456 def get_constant; end # Little hack going on here. In the statement: @@ -9333,28 +9183,28 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # We see the RPAREN as the next token, so we need to exit early. This still # won't catch all cases (such as "a = yield + 1" # - # source://rdoc//lib/rdoc/parser/ruby.rb#558 + # source://rdoc//rdoc/parser/ruby.rb#558 def get_end_token(tk); end # Get an included module that may be surrounded by parens # - # source://rdoc//lib/rdoc/parser/ruby.rb#473 + # source://rdoc//rdoc/parser/ruby.rb#473 def get_included_module_with_optional_parens; end # Retrieves the method container for a singleton method. # - # source://rdoc//lib/rdoc/parser/ruby.rb#578 + # source://rdoc//rdoc/parser/ruby.rb#578 def get_method_container(container, name_t); end # Extracts a name or symbol from the token stream. # - # source://rdoc//lib/rdoc/parser/ruby.rb#621 + # source://rdoc//rdoc/parser/ruby.rb#621 def get_symbol_or_name; end # Retrieves the read token stream and replaces +pattern+ with +replacement+ # using gsub. If the result is only a ";" returns an empty string. # - # source://rdoc//lib/rdoc/parser/ruby.rb#194 + # source://rdoc//rdoc/parser/ruby.rb#194 def get_tkread_clean(pattern, replacement); end # Extracts the visibility information for the visibility token +tk+ @@ -9364,7 +9214,7 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # +singleton+ if the methods following should be converted to singleton # methods. # - # source://rdoc//lib/rdoc/parser/ruby.rb#208 + # source://rdoc//rdoc/parser/ruby.rb#208 def get_visibility_information(tk, single); end # Look for directives in a normal comment block: @@ -9374,108 +9224,108 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # # This routine modifies its +comment+ parameter. # - # source://rdoc//lib/rdoc/parser/ruby.rb#661 + # source://rdoc//rdoc/parser/ruby.rb#661 def look_for_directives_in(container, comment); end # Adds useful info about the parser to +message+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#681 + # source://rdoc//rdoc/parser/ruby.rb#681 def make_message(message); end # Creates a comment with the correct format # - # source://rdoc//lib/rdoc/parser/ruby.rb#693 + # source://rdoc//rdoc/parser/ruby.rb#693 def new_comment(comment, line_no = T.unsafe(nil)); end # Parses an +alias+ in +context+ with +comment+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#762 + # source://rdoc//rdoc/parser/ruby.rb#762 def parse_alias(context, single, tk, comment); end # Creates an RDoc::Attr for the name following +tk+, setting the comment to # +comment+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#704 + # source://rdoc//rdoc/parser/ruby.rb#704 def parse_attr(context, single, tk, comment); end # Creates an RDoc::Attr for each attribute listed after +tk+, setting the # comment for each to +comment+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#733 + # source://rdoc//rdoc/parser/ruby.rb#733 def parse_attr_accessor(context, single, tk, comment); end # Extracts call parameters from the token stream. # - # source://rdoc//lib/rdoc/parser/ruby.rb#801 + # source://rdoc//rdoc/parser/ruby.rb#801 def parse_call_parameters(tk); end # Parses a class in +context+ with +comment+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#844 + # source://rdoc//rdoc/parser/ruby.rb#844 def parse_class(container, single, tk, comment); end # Parses and creates a regular class # - # source://rdoc//lib/rdoc/parser/ruby.rb#878 + # source://rdoc//rdoc/parser/ruby.rb#878 def parse_class_regular(container, declaration_context, single, name_t, given_name, comment); end # Parses a singleton class in +container+ with the given +name+ and # +comment+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#918 + # source://rdoc//rdoc/parser/ruby.rb#918 def parse_class_singleton(container, name, comment); end # Generates an RDoc::Method or RDoc::Attr from +comment+ by looking for # :method: or :attr: directives in +comment+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1083 + # source://rdoc//rdoc/parser/ruby.rb#1083 def parse_comment(container, tk, comment); end # Parse a comment that is describing an attribute in +container+ with the # given +name+ and +comment+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1111 + # source://rdoc//rdoc/parser/ruby.rb#1111 def parse_comment_attr(container, type, name, comment); end - # source://rdoc//lib/rdoc/parser/ruby.rb#1123 + # source://rdoc//rdoc/parser/ruby.rb#1123 def parse_comment_ghost(container, text, name, column, line_no, comment); end # Creates an RDoc::Method on +container+ from +comment+ if there is a # Signature section in the comment # - # source://rdoc//lib/rdoc/parser/ruby.rb#1162 + # source://rdoc//rdoc/parser/ruby.rb#1162 def parse_comment_tomdoc(container, tk, comment); end # Parses a constant in +context+ with +comment+. If +ignore_constants+ is # true, no found constants will be added to RDoc. # - # source://rdoc//lib/rdoc/parser/ruby.rb#957 + # source://rdoc//rdoc/parser/ruby.rb#957 def parse_constant(container, tk, comment, ignore_constants = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/parser/ruby.rb#1024 + # source://rdoc//rdoc/parser/ruby.rb#1024 def parse_constant_body(container, constant, is_array_or_hash); end # Parses a Module#private_constant or Module#public_constant call from +tk+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#2094 + # source://rdoc//rdoc/parser/ruby.rb#2094 def parse_constant_visibility(container, single, tk); end # Parses an +include+ or +extend+, indicated by the +klass+ and adds it to # +container+ # with +comment+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#1197 + # source://rdoc//rdoc/parser/ruby.rb#1197 def parse_extend_or_include(klass, container, comment); end # Parses identifiers that can create new methods or change visibility. # # Returns true if the comment was not consumed. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1235 + # source://rdoc//rdoc/parser/ruby.rb#1235 def parse_identifier(container, single, tk, comment); end # Parses an +included+ with a block feature of ActiveSupport::Concern. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1217 + # source://rdoc//rdoc/parser/ruby.rb#1217 def parse_included_with_activesupport_concern(container, comment); end # Parses a meta-programmed attribute and creates an RDoc::Attr. @@ -9506,34 +9356,34 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # # end # - # source://rdoc//lib/rdoc/parser/ruby.rb#1299 + # source://rdoc//rdoc/parser/ruby.rb#1299 def parse_meta_attr(context, single, tk, comment); end # Parses a meta-programmed method # - # source://rdoc//lib/rdoc/parser/ruby.rb#1333 + # source://rdoc//rdoc/parser/ruby.rb#1333 def parse_meta_method(container, single, tk, comment); end # Parses the name of a metaprogrammed method. +comment+ is used to # determine the name while +tk+ is used in an error message if the name # cannot be determined. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1379 + # source://rdoc//rdoc/parser/ruby.rb#1379 def parse_meta_method_name(comment, tk); end # Parses the parameters and block for a meta-programmed method. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1403 + # source://rdoc//rdoc/parser/ruby.rb#1403 def parse_meta_method_params(container, single, meth, tk, comment); end # Parses a normal method defined by +def+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#1435 + # source://rdoc//rdoc/parser/ruby.rb#1435 def parse_method(container, single, tk, comment); end # Parses a method that needs to be ignored. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1514 + # source://rdoc//rdoc/parser/ruby.rb#1514 def parse_method_dummy(container); end # Parses the name of a method in +container+. @@ -9541,25 +9391,25 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # Returns the method name, the container it is in (for def Foo.name) and if # it is a singleton or regular method. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1527 + # source://rdoc//rdoc/parser/ruby.rb#1527 def parse_method_name(container); end # For the given +container+ and initial name token +name_t+ the method name # is parsed from the token stream for a regular method. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1554 + # source://rdoc//rdoc/parser/ruby.rb#1554 def parse_method_name_regular(container, name_t); end # For the given +container+ and initial name token +name_t+ the method name # and the new +container+ (if necessary) are parsed from the token stream # for a singleton method. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1572 + # source://rdoc//rdoc/parser/ruby.rb#1572 def parse_method_name_singleton(container, name_t); end # Extracts +yield+ parameters from +method+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#1616 + # source://rdoc//rdoc/parser/ruby.rb#1616 def parse_method_or_yield_parameters(method = T.unsafe(nil), modifiers = T.unsafe(nil)); end # Capture the method's parameters. Along the way, look for a comment @@ -9569,69 +9419,69 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # # and add this as the block_params for the method # - # source://rdoc//lib/rdoc/parser/ruby.rb#1683 + # source://rdoc//rdoc/parser/ruby.rb#1683 def parse_method_parameters(method); end # Parses the parameters and body of +meth+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#1484 + # source://rdoc//rdoc/parser/ruby.rb#1484 def parse_method_params_and_body(container, single, meth, added_container); end # Parses an RDoc::NormalModule in +container+ with +comment+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#1698 + # source://rdoc//rdoc/parser/ruby.rb#1698 def parse_module(container, single, tk, comment); end # Parses an RDoc::Require in +context+ containing +comment+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#1720 + # source://rdoc//rdoc/parser/ruby.rb#1720 def parse_require(context, comment); end # Parses a rescue # - # source://rdoc//lib/rdoc/parser/ruby.rb#1741 + # source://rdoc//rdoc/parser/ruby.rb#1741 def parse_rescue; end # The core of the Ruby parser. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1772 + # source://rdoc//rdoc/parser/ruby.rb#1772 def parse_statements(container, single = T.unsafe(nil), current_method = T.unsafe(nil), comment = T.unsafe(nil)); end # Parse up to +no+ symbol arguments # - # source://rdoc//lib/rdoc/parser/ruby.rb#1962 + # source://rdoc//rdoc/parser/ruby.rb#1962 def parse_symbol_arg(no = T.unsafe(nil)); end # Parses up to +no+ symbol arguments surrounded by () and places them in # +args+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1977 + # source://rdoc//rdoc/parser/ruby.rb#1977 def parse_symbol_arg_paren(no); end # Parses up to +no+ symbol arguments separated by spaces and places them in # +args+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#2005 + # source://rdoc//rdoc/parser/ruby.rb#2005 def parse_symbol_arg_space(no, tk); end # Returns symbol text from the next token # - # source://rdoc//lib/rdoc/parser/ruby.rb#2036 + # source://rdoc//rdoc/parser/ruby.rb#2036 def parse_symbol_in_arg; end # Parses statements in the top-level +container+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#2053 + # source://rdoc//rdoc/parser/ruby.rb#2053 def parse_top_level_statements(container); end # Determines the visibility in +container+ from +tk+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#2071 + # source://rdoc//rdoc/parser/ruby.rb#2071 def parse_visibility(container, single, tk); end # Determines the block parameter for +context+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#2110 + # source://rdoc//rdoc/parser/ruby.rb#2110 def parse_yield(context, single, tk, method); end # Directives are modifier comments that can appear after class, module, or @@ -9646,7 +9496,7 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # the name is in +allowed+. A directive can be found anywhere up to the end # of the current line. # - # source://rdoc//lib/rdoc/parser/ruby.rb#2131 + # source://rdoc//rdoc/parser/ruby.rb#2131 def read_directive(allowed); end # Handles directives following the definition for +context+ (any @@ -9654,144 +9504,140 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # # See also RDoc::Markup::PreProcess#handle_directive # - # source://rdoc//lib/rdoc/parser/ruby.rb#2163 + # source://rdoc//rdoc/parser/ruby.rb#2163 def read_documentation_modifiers(context, allowed); end # Records the location of this +container+ in the file for this parser and # adds it to the list of classes and modules in the file. # - # source://rdoc//lib/rdoc/parser/ruby.rb#2182 + # source://rdoc//rdoc/parser/ruby.rb#2182 def record_location(container); end # Retrieve comment body without =begin/=end # - # source://rdoc//lib/rdoc/parser/ruby.rb#1761 + # source://rdoc//rdoc/parser/ruby.rb#1761 def retrieve_comment_body(tk); end # Scans this Ruby file for Ruby constructs # - # source://rdoc//lib/rdoc/parser/ruby.rb#2194 + # source://rdoc//rdoc/parser/ruby.rb#2194 def scan; end # skip the var [in] part of a 'for' statement # - # source://rdoc//lib/rdoc/parser/ruby.rb#2282 + # source://rdoc//rdoc/parser/ruby.rb#2282 def skip_for_variable; end # Skips the next method in +container+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#2293 + # source://rdoc//rdoc/parser/ruby.rb#2293 def skip_method(container); end # while, until, and for have an optional do # - # source://rdoc//lib/rdoc/parser/ruby.rb#2241 + # source://rdoc//rdoc/parser/ruby.rb#2241 def skip_optional_do_after_expression; end # Skip opening parentheses and yield the block. # Skip closing parentheses too when exists. # - # source://rdoc//lib/rdoc/parser/ruby.rb#401 + # source://rdoc//rdoc/parser/ruby.rb#401 def skip_parentheses(&block); end # Skip spaces until a comment is found # - # source://rdoc//lib/rdoc/parser/ruby.rb#2302 + # source://rdoc//rdoc/parser/ruby.rb#2302 def skip_tkspace_comment(skip_nl = T.unsafe(nil)); end # Marks containers between +container+ and +ancestor+ as ignored # - # source://rdoc//lib/rdoc/parser/ruby.rb#646 + # source://rdoc//rdoc/parser/ruby.rb#646 def suppress_parents(container, ancestor); end # Return +true+ if +tk+ is a newline. # # @return [Boolean] # - # source://rdoc//lib/rdoc/parser/ruby.rb#186 + # source://rdoc//rdoc/parser/ruby.rb#186 def tk_nl?(tk); end # Updates visibility in +container+ from +vis_type+ and +vis+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#2314 + # source://rdoc//rdoc/parser/ruby.rb#2314 def update_visibility(container, vis_type, vis, singleton); end # Prints +message+ to +$stderr+ unless we're being quiet # - # source://rdoc//lib/rdoc/parser/ruby.rb#2359 + # source://rdoc//rdoc/parser/ruby.rb#2359 def warn(message); end end # Collection of methods for writing parsers -# -# source://rdoc//lib/rdoc/parser/ruby_tools.rb#5 module RDoc::Parser::RubyTools # Adds a token listener +obj+, but you should probably use token_listener # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#10 + # source://rdoc//rdoc/parser/ruby_tools.rb#10 def add_token_listener(obj); end # Fetches the next token from the scanner # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#18 + # source://rdoc//rdoc/parser/ruby_tools.rb#18 def get_tk; end # Reads and returns all tokens up to one of +tokens+. Leaves the matched # token in the token list. # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#52 + # source://rdoc//rdoc/parser/ruby_tools.rb#52 def get_tk_until(*tokens); end # Retrieves a String representation of the read tokens # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#73 + # source://rdoc//rdoc/parser/ruby_tools.rb#73 def get_tkread; end # Peek equivalent for get_tkread # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#82 + # source://rdoc//rdoc/parser/ruby_tools.rb#82 def peek_read; end # Peek at the next token, but don't remove it from the stream # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#89 + # source://rdoc//rdoc/parser/ruby_tools.rb#89 def peek_tk; end # Removes the token listener +obj+ # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#97 + # source://rdoc//rdoc/parser/ruby_tools.rb#97 def remove_token_listener(obj); end # Resets the tools # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#104 + # source://rdoc//rdoc/parser/ruby_tools.rb#104 def reset; end # Skips whitespace tokens including newlines # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#115 + # source://rdoc//rdoc/parser/ruby_tools.rb#115 def skip_tkspace; end # Skips whitespace tokens excluding newlines # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#129 + # source://rdoc//rdoc/parser/ruby_tools.rb#129 def skip_tkspace_without_nl; end # Has +obj+ listen to tokens # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#143 + # source://rdoc//rdoc/parser/ruby_tools.rb#143 def token_listener(obj); end # Returns +tk+ to the scanner # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#153 + # source://rdoc//rdoc/parser/ruby_tools.rb#153 def unget_tk(tk); end end # Parse a non-source file. We basically take the whole thing as one big # comment. -# -# source://rdoc//lib/rdoc/parser/simple.rb#6 class RDoc::Parser::Simple < ::RDoc::Parser include ::RDoc::Parser::Text @@ -9799,15 +9645,15 @@ class RDoc::Parser::Simple < ::RDoc::Parser # # @return [Simple] a new instance of Simple # - # source://rdoc//lib/rdoc/parser/simple.rb#17 + # source://rdoc//rdoc/parser/simple.rb#17 def initialize(top_level, file_name, content, options, stats); end - # source://rdoc//lib/rdoc/parser/simple.rb#12 + # source://rdoc//rdoc/parser/simple.rb#12 def content; end # Removes the encoding magic comment from +text+ # - # source://rdoc//lib/rdoc/parser/simple.rb#41 + # source://rdoc//rdoc/parser/simple.rb#41 def remove_coding_comment(text); end # Removes private comments. @@ -9816,370 +9662,366 @@ class RDoc::Parser::Simple < ::RDoc::Parser # dashes at the beginning of the line. Three or more dashes are considered # to be a rule and ignored. # - # source://rdoc//lib/rdoc/parser/simple.rb#52 + # source://rdoc//rdoc/parser/simple.rb#52 def remove_private_comment(comment); end # Extract the file contents and attach them to the TopLevel as a comment # - # source://rdoc//lib/rdoc/parser/simple.rb#28 + # source://rdoc//rdoc/parser/simple.rb#28 def scan; end end -# source://rdoc//lib/rdoc/rd.rb#72 +# racc/parser.rb end class RDoc::RD class << self # Parses +rd+ source and returns an RDoc::Markup::Document. If the # =begin or =end lines are missing they will be added. # - # source://rdoc//lib/rdoc/rd.rb#78 + # source://rdoc//rdoc/rd.rb#78 def parse(rd); end end end # RD format parser for headings, paragraphs, lists, verbatim sections that # exist as blocks. -# -# source://rdoc//lib/rdoc/rd/block_parser.rb#664 class RDoc::RD::BlockParser < ::Racc::Parser # Creates a new RDoc::RD::BlockParser. Use #parse to parse an rd-format # document. # # @return [BlockParser] a new instance of BlockParser # - # source://rdoc//lib/rdoc/rd/block_parser.rb#699 + # source://rdoc//rdoc/rd/block_parser.rb#699 def initialize; end # reduce 0 omitted # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1334 + # source://rdoc//rdoc/rd/block_parser.rb#1334 def _reduce_1(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1376 + # source://rdoc//rdoc/rd/block_parser.rb#1376 def _reduce_10(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1381 + # source://rdoc//rdoc/rd/block_parser.rb#1381 def _reduce_11(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1386 + # source://rdoc//rdoc/rd/block_parser.rb#1386 def _reduce_12(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1394 + # source://rdoc//rdoc/rd/block_parser.rb#1394 def _reduce_13(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1400 + # source://rdoc//rdoc/rd/block_parser.rb#1400 def _reduce_14(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1407 + # source://rdoc//rdoc/rd/block_parser.rb#1407 def _reduce_15(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1412 + # source://rdoc//rdoc/rd/block_parser.rb#1412 def _reduce_16(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1417 + # source://rdoc//rdoc/rd/block_parser.rb#1417 def _reduce_17(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1428 + # source://rdoc//rdoc/rd/block_parser.rb#1428 def _reduce_18(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1439 + # source://rdoc//rdoc/rd/block_parser.rb#1439 def _reduce_19(val, _values, result); end # @raise [ParseError] # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1339 + # source://rdoc//rdoc/rd/block_parser.rb#1339 def _reduce_2(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1445 + # source://rdoc//rdoc/rd/block_parser.rb#1445 def _reduce_20(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1451 + # source://rdoc//rdoc/rd/block_parser.rb#1451 def _reduce_21(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1457 + # source://rdoc//rdoc/rd/block_parser.rb#1457 def _reduce_22(val, _values, result); end # reduce 26 omitted # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1473 + # source://rdoc//rdoc/rd/block_parser.rb#1473 def _reduce_27(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1479 + # source://rdoc//rdoc/rd/block_parser.rb#1479 def _reduce_28(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1485 + # source://rdoc//rdoc/rd/block_parser.rb#1485 def _reduce_29(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1344 + # source://rdoc//rdoc/rd/block_parser.rb#1344 def _reduce_3(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1491 + # source://rdoc//rdoc/rd/block_parser.rb#1491 def _reduce_30(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1496 + # source://rdoc//rdoc/rd/block_parser.rb#1496 def _reduce_31(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1501 + # source://rdoc//rdoc/rd/block_parser.rb#1501 def _reduce_32(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1507 + # source://rdoc//rdoc/rd/block_parser.rb#1507 def _reduce_33(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1512 + # source://rdoc//rdoc/rd/block_parser.rb#1512 def _reduce_34(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1517 + # source://rdoc//rdoc/rd/block_parser.rb#1517 def _reduce_35(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1523 + # source://rdoc//rdoc/rd/block_parser.rb#1523 def _reduce_36(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1529 + # source://rdoc//rdoc/rd/block_parser.rb#1529 def _reduce_37(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1534 + # source://rdoc//rdoc/rd/block_parser.rb#1534 def _reduce_38(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1539 + # source://rdoc//rdoc/rd/block_parser.rb#1539 def _reduce_39(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1349 + # source://rdoc//rdoc/rd/block_parser.rb#1349 def _reduce_4(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1545 + # source://rdoc//rdoc/rd/block_parser.rb#1545 def _reduce_40(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1551 + # source://rdoc//rdoc/rd/block_parser.rb#1551 def _reduce_41(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1556 + # source://rdoc//rdoc/rd/block_parser.rb#1556 def _reduce_42(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1561 + # source://rdoc//rdoc/rd/block_parser.rb#1561 def _reduce_43(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1569 + # source://rdoc//rdoc/rd/block_parser.rb#1569 def _reduce_44(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1575 + # source://rdoc//rdoc/rd/block_parser.rb#1575 def _reduce_45(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1580 + # source://rdoc//rdoc/rd/block_parser.rb#1580 def _reduce_46(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1585 + # source://rdoc//rdoc/rd/block_parser.rb#1585 def _reduce_47(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1591 + # source://rdoc//rdoc/rd/block_parser.rb#1591 def _reduce_48(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1597 + # source://rdoc//rdoc/rd/block_parser.rb#1597 def _reduce_49(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1354 + # source://rdoc//rdoc/rd/block_parser.rb#1354 def _reduce_5(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1603 + # source://rdoc//rdoc/rd/block_parser.rb#1603 def _reduce_50(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1609 + # source://rdoc//rdoc/rd/block_parser.rb#1609 def _reduce_51(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1615 + # source://rdoc//rdoc/rd/block_parser.rb#1615 def _reduce_52(val, _values, result); end # reduce 53 omitted # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1622 + # source://rdoc//rdoc/rd/block_parser.rb#1622 def _reduce_54(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1627 + # source://rdoc//rdoc/rd/block_parser.rb#1627 def _reduce_55(val, _values, result); end # reduce 56 omitted # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1634 + # source://rdoc//rdoc/rd/block_parser.rb#1634 def _reduce_57(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1359 + # source://rdoc//rdoc/rd/block_parser.rb#1359 def _reduce_6(val, _values, result); end # reduce 61 omitted # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1647 + # source://rdoc//rdoc/rd/block_parser.rb#1647 def _reduce_62(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1653 + # source://rdoc//rdoc/rd/block_parser.rb#1653 def _reduce_63(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1659 + # source://rdoc//rdoc/rd/block_parser.rb#1659 def _reduce_64(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1665 + # source://rdoc//rdoc/rd/block_parser.rb#1665 def _reduce_65(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1671 + # source://rdoc//rdoc/rd/block_parser.rb#1671 def _reduce_66(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1677 + # source://rdoc//rdoc/rd/block_parser.rb#1677 def _reduce_67(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1682 + # source://rdoc//rdoc/rd/block_parser.rb#1682 def _reduce_68(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1687 + # source://rdoc//rdoc/rd/block_parser.rb#1687 def _reduce_69(val, _values, result); end # reduce 70 omitted # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1694 + # source://rdoc//rdoc/rd/block_parser.rb#1694 def _reduce_71(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1699 + # source://rdoc//rdoc/rd/block_parser.rb#1699 def _reduce_72(val, _values, result); end # reduce 7 omitted # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1366 + # source://rdoc//rdoc/rd/block_parser.rb#1366 def _reduce_8(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1371 + # source://rdoc//rdoc/rd/block_parser.rb#1371 def _reduce_9(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1704 + # source://rdoc//rdoc/rd/block_parser.rb#1704 def _reduce_none(val, _values, result); end # Adds footnote +content+ to the document # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1049 + # source://rdoc//rdoc/rd/block_parser.rb#1049 def add_footnote(content); end # Adds label +label+ to the document # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1063 + # source://rdoc//rdoc/rd/block_parser.rb#1063 def add_label(label); end # Retrieves the content of +values+ as a single String # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1032 + # source://rdoc//rdoc/rd/block_parser.rb#1032 def content(values); end # Footnotes for this document # - # source://rdoc//lib/rdoc/rd/block_parser.rb#683 + # source://rdoc//rdoc/rd/block_parser.rb#683 def footnotes; end # Path to find included files in # - # source://rdoc//lib/rdoc/rd/block_parser.rb#693 + # source://rdoc//rdoc/rd/block_parser.rb#693 def include_path; end # Path to find included files in # - # source://rdoc//lib/rdoc/rd/block_parser.rb#693 + # source://rdoc//rdoc/rd/block_parser.rb#693 def include_path=(_arg0); end # Labels for items in this document # - # source://rdoc//lib/rdoc/rd/block_parser.rb#688 + # source://rdoc//rdoc/rd/block_parser.rb#688 def labels; end # Current line number # - # source://rdoc//lib/rdoc/rd/block_parser.rb#987 + # source://rdoc//rdoc/rd/block_parser.rb#987 def line_index; end # Returns the next token from the document # - # source://rdoc//lib/rdoc/rd/block_parser.rb#755 + # source://rdoc//rdoc/rd/block_parser.rb#755 def next_token; end # Raises a ParseError when invalid formatting is found # # @raise [ParseError] # - # source://rdoc//lib/rdoc/rd/block_parser.rb#971 + # source://rdoc//rdoc/rd/block_parser.rb#971 def on_error(et, ev, _values); end # Creates a paragraph for +value+ # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1039 + # source://rdoc//rdoc/rd/block_parser.rb#1039 def paragraph(value); end # Parses +src+ and returns an RDoc::Markup::Document. # - # source://rdoc//lib/rdoc/rd/block_parser.rb#711 + # source://rdoc//rdoc/rd/block_parser.rb#711 def parse(src); end private # Cuts off excess whitespace in +src+ # - # source://rdoc//lib/rdoc/rd/block_parser.rb#935 + # source://rdoc//rdoc/rd/block_parser.rb#935 def cut_off(src); end # Formats line numbers +line_numbers+ prettily # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1023 + # source://rdoc//rdoc/rd/block_parser.rb#1023 def format_line_num(*line_numbers); end # Retrieves the content for +file+ from the include_path # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1004 + # source://rdoc//rdoc/rd/block_parser.rb#1004 def get_included(file); end # Yields to the given block if +indent+ matches the current indent, otherwise # an indentation token is processed. # - # source://rdoc//lib/rdoc/rd/block_parser.rb#917 + # source://rdoc//rdoc/rd/block_parser.rb#917 def if_current_indent_equal(indent); end # Parses subtree +src+ # - # source://rdoc//lib/rdoc/rd/block_parser.rb#994 + # source://rdoc//rdoc/rd/block_parser.rb#994 def parse_subtree(src); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#962 + # source://rdoc//rdoc/rd/block_parser.rb#962 def set_term_to_element(parent, term); end end -# source://rdoc//lib/rdoc/rd/block_parser.rb#1328 +# source://rdoc//rdoc/rd/block_parser.rb#1328 RDoc::RD::BlockParser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass) # Inline keeps track of markup and labels to create proper links. -# -# source://rdoc//lib/rdoc/rd/inline.rb#5 class RDoc::RD::Inline # Initializes the Inline with +rdoc+ and +inline+ # # @return [Inline] a new instance of Inline # - # source://rdoc//lib/rdoc/rd/inline.rb#34 + # source://rdoc//rdoc/rd/inline.rb#34 def initialize(rdoc, reference); end - # source://rdoc//lib/rdoc/rd/inline.rb#42 + # source://rdoc//rdoc/rd/inline.rb#42 def ==(other); end # Appends +more+ to this inline. +more+ may be a String or another Inline. # - # source://rdoc//lib/rdoc/rd/inline.rb#50 + # source://rdoc//rdoc/rd/inline.rb#50 def append(more); end - # source://rdoc//lib/rdoc/rd/inline.rb#65 + # source://rdoc//rdoc/rd/inline.rb#65 def inspect; end # The markup of this reference in RDoc format # - # source://rdoc//lib/rdoc/rd/inline.rb#15 + # source://rdoc//rdoc/rd/inline.rb#15 def rdoc; end # The text of the reference # - # source://rdoc//lib/rdoc/rd/inline.rb#10 + # source://rdoc//rdoc/rd/inline.rb#10 def reference; end # The markup of this reference in RDoc format # - # source://rdoc//lib/rdoc/rd/inline.rb#15 + # source://rdoc//rdoc/rd/inline.rb#15 def to_s; end class << self @@ -10188,241 +10030,239 @@ class RDoc::RD::Inline # +rdoc+ may be another Inline or a String. If +reference+ is not given it # will use the text from +rdoc+. # - # source://rdoc//lib/rdoc/rd/inline.rb#23 + # source://rdoc//rdoc/rd/inline.rb#23 def new(rdoc, reference = T.unsafe(nil)); end end end # RD format parser for inline markup such as emphasis, links, footnotes, etc. -# -# source://rdoc//lib/rdoc/rd/inline_parser.rb#665 class RDoc::RD::InlineParser < ::Racc::Parser # Creates a new parser for inline markup in the rd format. The +block_parser+ # is used to for footnotes and labels in the inline text. # # @return [InlineParser] a new instance of InlineParser # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#738 + # source://rdoc//rdoc/rd/inline_parser.rb#738 def initialize(block_parser); end # reduce 100 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1750 + # source://rdoc//rdoc/rd/inline_parser.rb#1750 def _reduce_101(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1757 + # source://rdoc//rdoc/rd/inline_parser.rb#1757 def _reduce_102(val, _values, result); end # reduce 108 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1775 + # source://rdoc//rdoc/rd/inline_parser.rb#1775 def _reduce_109(val, _values, result); end # reduce 110 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1782 + # source://rdoc//rdoc/rd/inline_parser.rb#1782 def _reduce_111(val, _values, result); end # reduce 112 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1790 + # source://rdoc//rdoc/rd/inline_parser.rb#1790 def _reduce_113(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1795 + # source://rdoc//rdoc/rd/inline_parser.rb#1795 def _reduce_114(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1800 + # source://rdoc//rdoc/rd/inline_parser.rb#1800 def _reduce_115(val, _values, result); end # reduce 12 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1413 + # source://rdoc//rdoc/rd/inline_parser.rb#1413 def _reduce_13(val, _values, result); end # reduce 135 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1845 + # source://rdoc//rdoc/rd/inline_parser.rb#1845 def _reduce_136(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1420 + # source://rdoc//rdoc/rd/inline_parser.rb#1420 def _reduce_14(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1427 + # source://rdoc//rdoc/rd/inline_parser.rb#1427 def _reduce_15(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1434 + # source://rdoc//rdoc/rd/inline_parser.rb#1434 def _reduce_16(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1441 + # source://rdoc//rdoc/rd/inline_parser.rb#1441 def _reduce_17(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1449 + # source://rdoc//rdoc/rd/inline_parser.rb#1449 def _reduce_18(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1455 + # source://rdoc//rdoc/rd/inline_parser.rb#1455 def _reduce_19(val, _values, result); end # reduce 1 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1385 + # source://rdoc//rdoc/rd/inline_parser.rb#1385 def _reduce_2(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1463 + # source://rdoc//rdoc/rd/inline_parser.rb#1463 def _reduce_20(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1469 + # source://rdoc//rdoc/rd/inline_parser.rb#1469 def _reduce_21(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1478 + # source://rdoc//rdoc/rd/inline_parser.rb#1478 def _reduce_22(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1484 + # source://rdoc//rdoc/rd/inline_parser.rb#1484 def _reduce_23(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1490 + # source://rdoc//rdoc/rd/inline_parser.rb#1490 def _reduce_24(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1496 + # source://rdoc//rdoc/rd/inline_parser.rb#1496 def _reduce_25(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1505 + # source://rdoc//rdoc/rd/inline_parser.rb#1505 def _reduce_26(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1511 + # source://rdoc//rdoc/rd/inline_parser.rb#1511 def _reduce_27(val, _values, result); end # reduce 28 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1520 + # source://rdoc//rdoc/rd/inline_parser.rb#1520 def _reduce_29(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1390 + # source://rdoc//rdoc/rd/inline_parser.rb#1390 def _reduce_3(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1525 + # source://rdoc//rdoc/rd/inline_parser.rb#1525 def _reduce_30(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1530 + # source://rdoc//rdoc/rd/inline_parser.rb#1530 def _reduce_31(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1536 + # source://rdoc//rdoc/rd/inline_parser.rb#1536 def _reduce_32(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1542 + # source://rdoc//rdoc/rd/inline_parser.rb#1542 def _reduce_33(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1548 + # source://rdoc//rdoc/rd/inline_parser.rb#1548 def _reduce_34(val, _values, result); end # reduce 35 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1556 + # source://rdoc//rdoc/rd/inline_parser.rb#1556 def _reduce_36(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1561 + # source://rdoc//rdoc/rd/inline_parser.rb#1561 def _reduce_37(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1566 + # source://rdoc//rdoc/rd/inline_parser.rb#1566 def _reduce_38(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1572 + # source://rdoc//rdoc/rd/inline_parser.rb#1572 def _reduce_39(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1578 + # source://rdoc//rdoc/rd/inline_parser.rb#1578 def _reduce_40(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1584 + # source://rdoc//rdoc/rd/inline_parser.rb#1584 def _reduce_41(val, _values, result); end # reduce 42 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1592 + # source://rdoc//rdoc/rd/inline_parser.rb#1592 def _reduce_43(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1598 + # source://rdoc//rdoc/rd/inline_parser.rb#1598 def _reduce_44(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1604 + # source://rdoc//rdoc/rd/inline_parser.rb#1604 def _reduce_45(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1610 + # source://rdoc//rdoc/rd/inline_parser.rb#1610 def _reduce_46(val, _values, result); end # reduce 56 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1636 + # source://rdoc//rdoc/rd/inline_parser.rb#1636 def _reduce_57(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1642 + # source://rdoc//rdoc/rd/inline_parser.rb#1642 def _reduce_58(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1648 + # source://rdoc//rdoc/rd/inline_parser.rb#1648 def _reduce_59(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1654 + # source://rdoc//rdoc/rd/inline_parser.rb#1654 def _reduce_60(val, _values, result); end # reduce 61 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1661 + # source://rdoc//rdoc/rd/inline_parser.rb#1661 def _reduce_62(val, _values, result); end # reduce 63 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1669 + # source://rdoc//rdoc/rd/inline_parser.rb#1669 def _reduce_64(val, _values, result); end # reduce 77 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1701 + # source://rdoc//rdoc/rd/inline_parser.rb#1701 def _reduce_78(val, _values, result); end # reduce 137 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1852 + # source://rdoc//rdoc/rd/inline_parser.rb#1852 def _reduce_none(val, _values, result); end # Creates a new RDoc::RD::Inline for the +rdoc+ markup and the raw +reference+ # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#887 + # source://rdoc//rdoc/rd/inline_parser.rb#887 def inline(rdoc, reference = T.unsafe(nil)); end # Returns the next token from the inline text # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#756 + # source://rdoc//rdoc/rd/inline_parser.rb#756 def next_token; end # Returns words following an error # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#876 + # source://rdoc//rdoc/rd/inline_parser.rb#876 def next_words_on_error; end # Raises a ParseError when invalid formatting is found # # @raise [ParseError] # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#836 + # source://rdoc//rdoc/rd/inline_parser.rb#836 def on_error(et, ev, values); end # Parses the +inline+ text from RD format into RDoc format. # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#745 + # source://rdoc//rdoc/rd/inline_parser.rb#745 def parse(inline); end # Returns words before the error # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#853 + # source://rdoc//rdoc/rd/inline_parser.rb#853 def prev_words_on_error(ev); end private # Returns the last line of +src+ # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#864 + # source://rdoc//rdoc/rd/inline_parser.rb#864 def last_line(src); end end -# source://rdoc//lib/rdoc/rd/inline_parser.rb#1377 +# source://rdoc//rdoc/rd/inline_parser.rb#1377 RDoc::RD::InlineParser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass) # This is the driver for generating RDoc output. It handles file parsing and @@ -10443,15 +10283,13 @@ RDoc::RD::InlineParser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass) # # Where +argv+ is an array of strings, each corresponding to an argument you'd # give rdoc on the command line. See rdoc --help for details. -# -# source://rdoc//lib/rdoc/rdoc.rb#29 class RDoc::RDoc # Creates a new RDoc::RDoc instance. Call #document to parse files and # generate documentation. # # @return [RDoc] a new instance of RDoc # - # source://rdoc//lib/rdoc/rdoc.rb#100 + # source://rdoc//rdoc/rdoc.rb#100 def initialize; end # Generates documentation or a coverage report depending upon the settings @@ -10467,52 +10305,52 @@ class RDoc::RDoc # By default, output will be stored in a directory called "doc" below the # current directory, so make sure you're somewhere writable before invoking. # - # source://rdoc//lib/rdoc/rdoc.rb#450 + # source://rdoc//rdoc/rdoc.rb#450 def document(options); end # Report an error message and exit # # @raise [RDoc::Error] # - # source://rdoc//lib/rdoc/rdoc.rb#113 + # source://rdoc//rdoc/rdoc.rb#113 def error(msg); end # Gathers a set of parseable files from the files and directories listed in # +files+. # - # source://rdoc//lib/rdoc/rdoc.rb#121 + # source://rdoc//rdoc/rdoc.rb#121 def gather_files(files); end # Generates documentation for +file_info+ (from #parse_files) into the # output dir using the generator selected # by the RDoc options # - # source://rdoc//lib/rdoc/rdoc.rb#515 + # source://rdoc//rdoc/rdoc.rb#515 def generate; end # Generator instance used for creating output # - # source://rdoc//lib/rdoc/rdoc.rb#52 + # source://rdoc//rdoc/rdoc.rb#52 def generator; end # Generator instance used for creating output # - # source://rdoc//lib/rdoc/rdoc.rb#52 + # source://rdoc//rdoc/rdoc.rb#52 def generator=(_arg0); end # Turns RDoc from stdin into HTML # - # source://rdoc//lib/rdoc/rdoc.rb#142 + # source://rdoc//rdoc/rdoc.rb#142 def handle_pipe; end # Installs a siginfo handler that prints the current filename. # - # source://rdoc//lib/rdoc/rdoc.rb#157 + # source://rdoc//rdoc/rdoc.rb#157 def install_siginfo_handler; end # Hash of files and their last modified times. # - # source://rdoc//lib/rdoc/rdoc.rb#57 + # source://rdoc//rdoc/rdoc.rb#57 def last_modified; end # Return a list of the files to be processed in a directory. We know that @@ -10520,7 +10358,7 @@ class RDoc::RDoc # files. However we may well contain subdirectories which must be tested # for .document files. # - # source://rdoc//lib/rdoc/rdoc.rb#323 + # source://rdoc//rdoc/rdoc.rb#323 def list_files_in_directory(dir); end # Given a list of files and directories, create a list of all the Ruby @@ -10534,106 +10372,106 @@ class RDoc::RDoc # The effect of this is that if you want a file with a non-standard # extension parsed, you must name it explicitly. # - # source://rdoc//lib/rdoc/rdoc.rb#275 + # source://rdoc//rdoc/rdoc.rb#275 def normalized_file_list(relative_files, force_doc = T.unsafe(nil), exclude_pattern = T.unsafe(nil)); end # RDoc options # - # source://rdoc//lib/rdoc/rdoc.rb#62 + # source://rdoc//rdoc/rdoc.rb#62 def options; end # RDoc options # - # source://rdoc//lib/rdoc/rdoc.rb#62 + # source://rdoc//rdoc/rdoc.rb#62 def options=(_arg0); end # Return the path name of the flag file in an output directory. # - # source://rdoc//lib/rdoc/rdoc.rb#240 + # source://rdoc//rdoc/rdoc.rb#240 def output_flag_file(op_dir); end # The .document file contains a list of file and directory name patterns, # representing candidates for documentation. It may also contain comments # (starting with '#') # - # source://rdoc//lib/rdoc/rdoc.rb#249 + # source://rdoc//rdoc/rdoc.rb#249 def parse_dot_doc_file(in_dir, filename); end # Parses +filename+ and returns an RDoc::TopLevel # - # source://rdoc//lib/rdoc/rdoc.rb#332 + # source://rdoc//rdoc/rdoc.rb#332 def parse_file(filename); end # Parse each file on the command line, recursively entering directories. # - # source://rdoc//lib/rdoc/rdoc.rb#404 + # source://rdoc//rdoc/rdoc.rb#404 def parse_files(files); end # Removes a siginfo handler and replaces the previous # - # source://rdoc//lib/rdoc/rdoc.rb#534 + # source://rdoc//rdoc/rdoc.rb#534 def remove_siginfo_handler; end # Removes file extensions known to be unparseable from +files+ and TAGS # files for emacs and vim. # - # source://rdoc//lib/rdoc/rdoc.rb#428 + # source://rdoc//rdoc/rdoc.rb#428 def remove_unparseable(files); end # Create an output dir if it doesn't exist. If it does exist, but doesn't # contain the flag file created.rid then we refuse to use it, as # we may clobber some manually generated documentation # - # source://rdoc//lib/rdoc/rdoc.rb#170 + # source://rdoc//rdoc/rdoc.rb#170 def setup_output_dir(dir, force); end # Accessor for statistics. Available after each call to parse_files # - # source://rdoc//lib/rdoc/rdoc.rb#67 + # source://rdoc//rdoc/rdoc.rb#67 def stats; end # The current documentation store # - # source://rdoc//lib/rdoc/rdoc.rb#72 + # source://rdoc//rdoc/rdoc.rb#72 def store; end # Sets the current documentation tree to +store+ and sets the store's rdoc # driver to this instance. # - # source://rdoc//lib/rdoc/rdoc.rb#215 + # source://rdoc//rdoc/rdoc.rb#215 def store=(store); end # Update the flag file in an output directory. # - # source://rdoc//lib/rdoc/rdoc.rb#223 + # source://rdoc//rdoc/rdoc.rb#223 def update_output_dir(op_dir, time, last = T.unsafe(nil)); end class << self # Add +klass+ that can generate output after parsing # - # source://rdoc//lib/rdoc/rdoc.rb#77 + # source://rdoc//rdoc/rdoc.rb#77 def add_generator(klass); end # Active RDoc::RDoc instance # - # source://rdoc//lib/rdoc/rdoc.rb#85 + # source://rdoc//rdoc/rdoc.rb#85 def current; end # Sets the active RDoc::RDoc instance # - # source://rdoc//lib/rdoc/rdoc.rb#92 + # source://rdoc//rdoc/rdoc.rb#92 def current=(rdoc); end end end # List of directory names skipped if test suites should be skipped # -# source://rdoc//lib/rdoc/rdoc.rb#46 +# source://rdoc//rdoc/rdoc.rb#46 RDoc::RDoc::TEST_SUITE_DIRECTORY_NAMES = T.let(T.unsafe(nil), Array) # List of directory names always skipped # -# source://rdoc//lib/rdoc/rdoc.rb#41 +# source://rdoc//rdoc/rdoc.rb#41 RDoc::RDoc::UNCONDITIONALLY_SKIPPED_DIRECTORIES = T.let(T.unsafe(nil), Array) # The RI driver implements the command-line ri tool. @@ -10650,136 +10488,134 @@ RDoc::RDoc::UNCONDITIONALLY_SKIPPED_DIRECTORIES = T.let(T.unsafe(nil), Array) # * Abbreviated names (ri Zl shows Zlib documentation) # * Colorized output # * Merging output from multiple RI data sources -# -# source://rdoc//lib/rdoc/ri/driver.rb#25 class RDoc::RI::Driver # Creates a new driver using +initial_options+ from ::process_args # # @return [Driver] a new instance of Driver # - # source://rdoc//lib/rdoc/ri/driver.rb#391 + # source://rdoc//rdoc/ri/driver.rb#391 def initialize(initial_options = T.unsafe(nil)); end # Adds paths for undocumented classes +also_in+ to +out+ # - # source://rdoc//lib/rdoc/ri/driver.rb#429 + # source://rdoc//rdoc/ri/driver.rb#429 def add_also_in(out, also_in); end # Adds a class header to +out+ for class +name+ which is described in # +classes+. # - # source://rdoc//lib/rdoc/ri/driver.rb#446 + # source://rdoc//rdoc/ri/driver.rb#446 def add_class(out, name, classes); end # Adds +extends+ to +out+ # - # source://rdoc//lib/rdoc/ri/driver.rb#473 + # source://rdoc//rdoc/ri/driver.rb#473 def add_extends(out, extends); end # Adds a list of +extensions+ to this module of the given +type+ to +out+. # add_includes and add_extends call this, so you should use those directly. # - # source://rdoc//lib/rdoc/ri/driver.rb#481 + # source://rdoc//rdoc/ri/driver.rb#481 def add_extension_modules(out, type, extensions); end # Renders multiple included +modules+ from +store+ to +out+. # - # source://rdoc//lib/rdoc/ri/driver.rb#499 + # source://rdoc//rdoc/ri/driver.rb#499 def add_extension_modules_multiple(out, store, modules); end # Adds a single extension module +include+ from +store+ to +out+ # - # source://rdoc//lib/rdoc/ri/driver.rb#526 + # source://rdoc//rdoc/ri/driver.rb#526 def add_extension_modules_single(out, store, include); end # Adds "(from ...)" to +out+ for +store+ # - # source://rdoc//lib/rdoc/ri/driver.rb#466 + # source://rdoc//rdoc/ri/driver.rb#466 def add_from(out, store); end # Adds +includes+ to +out+ # - # source://rdoc//lib/rdoc/ri/driver.rb#540 + # source://rdoc//rdoc/ri/driver.rb#540 def add_includes(out, includes); end # Looks up the method +name+ and adds it to +out+ # - # source://rdoc//lib/rdoc/ri/driver.rb#547 + # source://rdoc//rdoc/ri/driver.rb#547 def add_method(out, name); end # Adds documentation for all methods in +klass+ to +out+ # - # source://rdoc//lib/rdoc/ri/driver.rb#558 + # source://rdoc//rdoc/ri/driver.rb#558 def add_method_documentation(out, klass); end # Adds a list of +methods+ to +out+ with a heading of +name+ # - # source://rdoc//lib/rdoc/ri/driver.rb#571 + # source://rdoc//rdoc/ri/driver.rb#571 def add_method_list(out, methods, name); end # Returns ancestor classes of +klass+ # - # source://rdoc//lib/rdoc/ri/driver.rb#591 + # source://rdoc//rdoc/ri/driver.rb#591 def ancestors_of(klass); end - # source://rdoc//lib/rdoc/ri/driver.rb#926 + # source://rdoc//rdoc/ri/driver.rb#926 def check_did_you_mean; end # For RubyGems backwards compatibility # - # source://rdoc//lib/rdoc/ri/driver.rb#622 + # source://rdoc//rdoc/ri/driver.rb#622 def class_cache; end # Builds a RDoc::Markup::Document from +found+, +klasess+ and +includes+ # - # source://rdoc//lib/rdoc/ri/driver.rb#628 + # source://rdoc//rdoc/ri/driver.rb#628 def class_document(name, found, klasses, includes, extends); end # Adds the class +comment+ to +out+. # - # source://rdoc//lib/rdoc/ri/driver.rb#650 + # source://rdoc//rdoc/ri/driver.rb#650 def class_document_comment(out, comment); end # Adds the constants from +klass+ to the Document +out+. # - # source://rdoc//lib/rdoc/ri/driver.rb#670 + # source://rdoc//rdoc/ri/driver.rb#670 def class_document_constants(out, klass); end # Hash mapping a known class or module to the stores it can be loaded from # - # source://rdoc//lib/rdoc/ri/driver.rb#694 + # source://rdoc//rdoc/ri/driver.rb#694 def classes; end # Returns the stores wherein +name+ is found along with the classes, # extends and includes that match it # - # source://rdoc//lib/rdoc/ri/driver.rb#714 + # source://rdoc//rdoc/ri/driver.rb#714 def classes_and_includes_and_extends_for(name); end # Completes +name+ based on the caches. For Readline # - # source://rdoc//lib/rdoc/ri/driver.rb#739 + # source://rdoc//rdoc/ri/driver.rb#739 def complete(name); end - # source://rdoc//lib/rdoc/ri/driver.rb#750 + # source://rdoc//rdoc/ri/driver.rb#750 def complete_klass(name, klass, selector, method, completions); end - # source://rdoc//lib/rdoc/ri/driver.rb#769 + # source://rdoc//rdoc/ri/driver.rb#769 def complete_method(name, klass, selector, completions); end # Converts +document+ to text and writes it to the pager # - # source://rdoc//lib/rdoc/ri/driver.rb#789 + # source://rdoc//rdoc/ri/driver.rb#789 def display(document); end # Outputs formatted RI data for class +name+. Groups undocumented classes # - # source://rdoc//lib/rdoc/ri/driver.rb#802 + # source://rdoc//rdoc/ri/driver.rb#802 def display_class(name); end # Outputs formatted RI data for method +name+ # - # source://rdoc//lib/rdoc/ri/driver.rb#818 + # source://rdoc//rdoc/ri/driver.rb#818 def display_method(name); end # Outputs formatted RI data for the class or method +name+. @@ -10787,39 +10623,39 @@ class RDoc::RI::Driver # Returns true if +name+ was found, false if it was not an alternative could # be guessed, raises an error if +name+ couldn't be guessed. # - # source://rdoc//lib/rdoc/ri/driver.rb#832 + # source://rdoc//rdoc/ri/driver.rb#832 def display_name(name); end # Displays each name in +name+ # - # source://rdoc//lib/rdoc/ri/driver.rb#861 + # source://rdoc//rdoc/ri/driver.rb#861 def display_names(names); end # Outputs formatted RI data for page +name+. # - # source://rdoc//lib/rdoc/ri/driver.rb#872 + # source://rdoc//rdoc/ri/driver.rb#872 def display_page(name); end # Outputs a formatted RI page list for the pages in +store+. # - # source://rdoc//lib/rdoc/ri/driver.rb#903 + # source://rdoc//rdoc/ri/driver.rb#903 def display_page_list(store, pages = T.unsafe(nil), search = T.unsafe(nil)); end # Expands abbreviated klass +klass+ into a fully-qualified class. "Zl::Da" # will be expanded to Zlib::DataError. # - # source://rdoc//lib/rdoc/ri/driver.rb#947 + # source://rdoc//rdoc/ri/driver.rb#947 def expand_class(klass); end # Expands the class portion of +name+ into a fully-qualified class. See # #expand_class. # - # source://rdoc//lib/rdoc/ri/driver.rb#965 + # source://rdoc//rdoc/ri/driver.rb#965 def expand_name(name); end # Filters the methods in +found+ trying to find a match for +name+. # - # source://rdoc//lib/rdoc/ri/driver.rb#981 + # source://rdoc//rdoc/ri/driver.rb#981 def filter_methods(found, name); end # Yields items matching +name+ including the store they were found in, the @@ -10827,7 +10663,7 @@ class RDoc::RI::Driver # types of methods to look up (from #method_type), and the method name being # searched for # - # source://rdoc//lib/rdoc/ri/driver.rb#999 + # source://rdoc//rdoc/ri/driver.rb#999 def find_methods(name); end # Finds a store that matches +name+ which can be the name of a gem, "ruby", @@ -10837,73 +10673,73 @@ class RDoc::RI::Driver # # @raise [RDoc::RI::Driver::NotFoundError] # - # source://rdoc//lib/rdoc/ri/driver.rb#1045 + # source://rdoc//rdoc/ri/driver.rb#1045 def find_store(name); end # Creates a new RDoc::Markup::Formatter. If a formatter is given with -f, # use it. If we're outputting to a pager, use bs, otherwise ansi. # - # source://rdoc//lib/rdoc/ri/driver.rb#1062 + # source://rdoc//rdoc/ri/driver.rb#1062 def formatter(io); end # Runs ri interactively using Readline if it is available. # - # source://rdoc//lib/rdoc/ri/driver.rb#1075 + # source://rdoc//rdoc/ri/driver.rb#1075 def interactive; end # Lists classes known to ri starting with +names+. If +names+ is empty all # known classes are shown. # - # source://rdoc//lib/rdoc/ri/driver.rb#1114 + # source://rdoc//rdoc/ri/driver.rb#1114 def list_known_classes(names = T.unsafe(nil)); end # Returns an Array of methods matching +name+ # - # source://rdoc//lib/rdoc/ri/driver.rb#1146 + # source://rdoc//rdoc/ri/driver.rb#1146 def list_methods_matching(name); end # Loads RI data for method +name+ on +klass+ from +store+. +type+ and # +cache+ indicate if it is a class or instance method. # - # source://rdoc//lib/rdoc/ri/driver.rb#1185 + # source://rdoc//rdoc/ri/driver.rb#1185 def load_method(store, cache, klass, type, name); end # Returns an Array of RI data for methods matching +name+ # - # source://rdoc//lib/rdoc/ri/driver.rb#1208 + # source://rdoc//rdoc/ri/driver.rb#1208 def load_methods_matching(name); end # Returns a filtered list of methods matching +name+ # - # source://rdoc//lib/rdoc/ri/driver.rb#1229 + # source://rdoc//rdoc/ri/driver.rb#1229 def lookup_method(name); end # Builds a RDoc::Markup::Document from +found+, +klasses+ and +includes+ # - # source://rdoc//lib/rdoc/ri/driver.rb#1254 + # source://rdoc//rdoc/ri/driver.rb#1254 def method_document(name, filtered); end # Returns the type of method (:both, :instance, :class) for +selector+ # - # source://rdoc//lib/rdoc/ri/driver.rb#1272 + # source://rdoc//rdoc/ri/driver.rb#1272 def method_type(selector); end # Returns a regular expression for +name+ that will match an # RDoc::AnyMethod's name. # - # source://rdoc//lib/rdoc/ri/driver.rb#1284 + # source://rdoc//rdoc/ri/driver.rb#1284 def name_regexp(name); end # Paginates output through a pager program. # - # source://rdoc//lib/rdoc/ri/driver.rb#1298 + # source://rdoc//rdoc/ri/driver.rb#1298 def page; end # Are we using a pager? # # @return [Boolean] # - # source://rdoc//lib/rdoc/ri/driver.rb#1316 + # source://rdoc//rdoc/ri/driver.rb#1316 def paging?; end # Extracts the class, selector and method name parts from +name+ like @@ -10912,152 +10748,146 @@ class RDoc::RI::Driver # NOTE: Given Foo::Bar, Bar is considered a class even though it may be a # method # - # source://rdoc//lib/rdoc/ri/driver.rb#1327 + # source://rdoc//rdoc/ri/driver.rb#1327 def parse_name(name); end # Renders the +klass+ from +store+ to +out+. If the klass has no # documentable items the class is added to +also_in+ instead. # - # source://rdoc//lib/rdoc/ri/driver.rb#1359 + # source://rdoc//rdoc/ri/driver.rb#1359 def render_class(out, store, klass, also_in); end - # source://rdoc//lib/rdoc/ri/driver.rb#1389 + # source://rdoc//rdoc/ri/driver.rb#1389 def render_method(out, store, method, name); end - # source://rdoc//lib/rdoc/ri/driver.rb#1409 + # source://rdoc//rdoc/ri/driver.rb#1409 def render_method_arguments(out, arglists); end - # source://rdoc//lib/rdoc/ri/driver.rb#1418 + # source://rdoc//rdoc/ri/driver.rb#1418 def render_method_comment(out, method, alias_for = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/ri/driver.rb#1436 + # source://rdoc//rdoc/ri/driver.rb#1436 def render_method_superclass(out, method); end # Looks up and displays ri data according to the options given. # - # source://rdoc//lib/rdoc/ri/driver.rb#1448 + # source://rdoc//rdoc/ri/driver.rb#1448 def run; end # Sets up a pager program to pass output through. Tries the RI_PAGER and # PAGER environment variables followed by pager, less then more. # - # source://rdoc//lib/rdoc/ri/driver.rb#1468 + # source://rdoc//rdoc/ri/driver.rb#1468 def setup_pager; end # Show all method documentation following a class or module # - # source://rdoc//lib/rdoc/ri/driver.rb#62 + # source://rdoc//rdoc/ri/driver.rb#62 def show_all; end # Show all method documentation following a class or module # - # source://rdoc//lib/rdoc/ri/driver.rb#62 + # source://rdoc//rdoc/ri/driver.rb#62 def show_all=(_arg0); end # Starts a WEBrick server for ri. # - # source://rdoc//lib/rdoc/ri/driver.rb#1494 + # source://rdoc//rdoc/ri/driver.rb#1494 def start_server; end # An RDoc::RI::Store for each entry in the RI path # - # source://rdoc//lib/rdoc/ri/driver.rb#67 + # source://rdoc//rdoc/ri/driver.rb#67 def stores; end # An RDoc::RI::Store for each entry in the RI path # - # source://rdoc//lib/rdoc/ri/driver.rb#67 + # source://rdoc//rdoc/ri/driver.rb#67 def stores=(_arg0); end # Controls the user of the pager vs $stdout # - # source://rdoc//lib/rdoc/ri/driver.rb#72 + # source://rdoc//rdoc/ri/driver.rb#72 def use_stdout; end # Controls the user of the pager vs $stdout # - # source://rdoc//lib/rdoc/ri/driver.rb#72 + # source://rdoc//rdoc/ri/driver.rb#72 def use_stdout=(_arg0); end class << self # Default options for ri # - # source://rdoc//lib/rdoc/ri/driver.rb#77 + # source://rdoc//rdoc/ri/driver.rb#77 def default_options; end # Dump +data_path+ using pp # - # source://rdoc//lib/rdoc/ri/driver.rb#98 + # source://rdoc//rdoc/ri/driver.rb#98 def dump(data_path); end # Parses +argv+ and returns a Hash of options # - # source://rdoc//lib/rdoc/ri/driver.rb#109 + # source://rdoc//rdoc/ri/driver.rb#109 def process_args(argv); end # Runs the ri command line executable using +argv+ # - # source://rdoc//lib/rdoc/ri/driver.rb#376 + # source://rdoc//rdoc/ri/driver.rb#376 def run(argv = T.unsafe(nil)); end end end # Raised when a name isn't found in the ri data stores -# -# source://rdoc//lib/rdoc/ri/driver.rb#35 class RDoc::RI::Driver::NotFoundError < ::RDoc::RI::Driver::Error # @return [NotFoundError] a new instance of NotFoundError # - # source://rdoc//lib/rdoc/ri/driver.rb#37 + # source://rdoc//rdoc/ri/driver.rb#37 def initialize(klass, suggestion_proc = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/ri/driver.rb#49 + # source://rdoc//rdoc/ri/driver.rb#49 def message; end # Name that wasn't found # - # source://rdoc//lib/rdoc/ri/driver.rb#45 + # source://rdoc//rdoc/ri/driver.rb#45 def name; end end # For RubyGems backwards compatibility -# -# source://rdoc//lib/rdoc/ri/formatter.rb#5 module RDoc::RI::Formatter; end -# source://rdoc//lib/rdoc/ri/store.rb#4 +# source://rdoc//rdoc/ri/store.rb#4 RDoc::RI::Store = RDoc::Store # A file loaded by \#require -# -# source://rdoc//lib/rdoc/require.rb#5 class RDoc::Require < ::RDoc::CodeObject # Creates a new Require that loads +name+ with +comment+ # # @return [Require] a new instance of Require # - # source://rdoc//lib/rdoc/require.rb#15 + # source://rdoc//rdoc/require.rb#15 def initialize(name, comment); end - # source://rdoc//lib/rdoc/require.rb#22 + # source://rdoc//rdoc/require.rb#22 def inspect; end # Name of the required file # - # source://rdoc//lib/rdoc/require.rb#10 + # source://rdoc//rdoc/require.rb#10 def name; end # Name of the required file # - # source://rdoc//lib/rdoc/require.rb#10 + # source://rdoc//rdoc/require.rb#10 def name=(_arg0); end - # source://rdoc//lib/rdoc/require.rb#31 + # source://rdoc//rdoc/require.rb#31 def to_s; end # The RDoc::TopLevel corresponding to this require, or +nil+ if not found. # - # source://rdoc//lib/rdoc/require.rb#38 + # source://rdoc//rdoc/require.rb#38 def top_level; end end @@ -11080,8 +10910,6 @@ end # base path when mounting: # # server.mount '/rdoc', RDoc::Servlet, '/rdoc' -# -# source://rdoc//lib/rdoc/servlet.rb#34 class RDoc::Servlet < ::WEBrick::HTTPServlet::AbstractServlet # Creates a new WEBrick servlet. # @@ -11094,22 +10922,22 @@ class RDoc::Servlet < ::WEBrick::HTTPServlet::AbstractServlet # # @return [Servlet] a new instance of Servlet # - # source://rdoc//lib/rdoc/servlet.rb#69 + # source://rdoc//rdoc/servlet.rb#69 def initialize(server, stores, cache, mount_path = T.unsafe(nil), extra_doc_dirs = T.unsafe(nil)); end # Serves the asset at the path in +req+ for +generator_name+ via +res+. # - # source://rdoc//lib/rdoc/servlet.rb#100 + # source://rdoc//rdoc/servlet.rb#100 def asset(generator_name, req, res); end # Maps an asset type to its path on the filesystem # - # source://rdoc//lib/rdoc/servlet.rb#42 + # source://rdoc//rdoc/servlet.rb#42 def asset_dirs; end # GET request entry point. Fills in +res+ for the path, etc. in +req+. # - # source://rdoc//lib/rdoc/servlet.rb#119 + # source://rdoc//rdoc/servlet.rb#119 def do_GET(req, res); end # Fills in +res+ with the class, module or page for +req+ from +store+. @@ -11118,36 +10946,36 @@ class RDoc::Servlet < ::WEBrick::HTTPServlet::AbstractServlet # module or page name (/RDoc/Servlet.html becomes RDoc::Servlet). # +generator+ is used to create the page. # - # source://rdoc//lib/rdoc/servlet.rb#152 + # source://rdoc//rdoc/servlet.rb#152 def documentation_page(store, generator, path, req, res); end # Creates the JSON search index on +res+ for the given +store+. +generator+ # must respond to \#json_index to build. +req+ is ignored. # - # source://rdoc//lib/rdoc/servlet.rb#171 + # source://rdoc//rdoc/servlet.rb#171 def documentation_search(store, generator, req, res); end # Returns the RDoc::Store and path relative to +mount_path+ for # documentation at +path+. # - # source://rdoc//lib/rdoc/servlet.rb#185 + # source://rdoc//rdoc/servlet.rb#185 def documentation_source(path); end # Generates an error page for the +exception+ while handling +req+ on +res+. # - # source://rdoc//lib/rdoc/servlet.rb#203 + # source://rdoc//rdoc/servlet.rb#203 def error(exception, req, res); end # Instantiates a Darkfish generator for +store+ # - # source://rdoc//lib/rdoc/servlet.rb#246 + # source://rdoc//rdoc/servlet.rb#246 def generator_for(store); end # Handles the If-Modified-Since HTTP header on +req+ for +path+. If the # file has not been modified a Not Modified response is returned. If the # file has been modified a Last-Modified header is added to +res+. # - # source://rdoc//lib/rdoc/servlet.rb#267 + # source://rdoc//rdoc/servlet.rb#267 def if_modified_since(req, res, path = T.unsafe(nil)); end # Returns an Array of installed documentation. @@ -11157,79 +10985,75 @@ class RDoc::Servlet < ::WEBrick::HTTPServlet::AbstractServlet # documentation exists, the type of documentation (See RDoc::RI::Paths#each) # and the filesystem to the RDoc::Store for the documentation. # - # source://rdoc//lib/rdoc/servlet.rb#290 + # source://rdoc//rdoc/servlet.rb#290 def installed_docs; end # Returns a 404 page built by +generator+ for +req+ on +res+. # - # source://rdoc//lib/rdoc/servlet.rb#318 + # source://rdoc//rdoc/servlet.rb#318 def not_found(generator, req, res, message = T.unsafe(nil)); end # An RDoc::Options instance used for rendering options # - # source://rdoc//lib/rdoc/servlet.rb#47 + # source://rdoc//rdoc/servlet.rb#47 def options; end # Enumerates the ri paths. See RDoc::RI::Paths#each # - # source://rdoc//lib/rdoc/servlet.rb#327 + # source://rdoc//rdoc/servlet.rb#327 def ri_paths(&block); end # Generates the root page on +res+. +req+ is ignored. # - # source://rdoc//lib/rdoc/servlet.rb#334 + # source://rdoc//rdoc/servlet.rb#334 def root(req, res); end # Generates a search index for the root page on +res+. +req+ is ignored. # - # source://rdoc//lib/rdoc/servlet.rb#345 + # source://rdoc//rdoc/servlet.rb#345 def root_search(req, res); end # Displays documentation for +req+ on +res+, whether that be HTML or some # asset. # - # source://rdoc//lib/rdoc/servlet.rb#395 + # source://rdoc//rdoc/servlet.rb#395 def show_documentation(req, res); end # Returns an RDoc::Store for the given +source_name+ ('ruby' or a gem name). # - # source://rdoc//lib/rdoc/servlet.rb#419 + # source://rdoc//rdoc/servlet.rb#419 def store_for(source_name); end class << self # Creates an instance of this servlet that shares cached data between # requests. # - # source://rdoc//lib/rdoc/servlet.rb#53 + # source://rdoc//rdoc/servlet.rb#53 def get_instance(server, *options); end end end # A singleton class -# -# source://rdoc//lib/rdoc/single_class.rb#5 class RDoc::SingleClass < ::RDoc::ClassModule # Adds the superclass to the included modules. # - # source://rdoc//lib/rdoc/single_class.rb#10 + # source://rdoc//rdoc/single_class.rb#10 def ancestors; end - # source://rdoc//lib/rdoc/single_class.rb#14 + # source://rdoc//rdoc/single_class.rb#14 def aref_prefix; end # The definition of this singleton class, class << MyClassName # - # source://rdoc//lib/rdoc/single_class.rb#21 + # source://rdoc//rdoc/single_class.rb#21 def definition; end - # source://rdoc//lib/rdoc/single_class.rb#25 + # source://rdoc//rdoc/single_class.rb#25 def pretty_print(q); end end # RDoc statistics collector which prints a summary and report of a project's # documentation totals. -# -# source://rdoc//lib/rdoc/stats.rb#6 class RDoc::Stats include ::RDoc::Text @@ -11238,58 +11062,58 @@ class RDoc::Stats # # @return [Stats] a new instance of Stats # - # source://rdoc//lib/rdoc/stats.rb#29 + # source://rdoc//rdoc/stats.rb#29 def initialize(store, num_files, verbosity = T.unsafe(nil)); end # Records the parsing of an alias +as+. # - # source://rdoc//lib/rdoc/stats.rb#52 + # source://rdoc//rdoc/stats.rb#52 def add_alias(as); end # Records the parsing of an attribute +attribute+ # - # source://rdoc//lib/rdoc/stats.rb#59 + # source://rdoc//rdoc/stats.rb#59 def add_attribute(attribute); end # Records the parsing of a class +klass+ # - # source://rdoc//lib/rdoc/stats.rb#66 + # source://rdoc//rdoc/stats.rb#66 def add_class(klass); end # Records the parsing of +constant+ # - # source://rdoc//lib/rdoc/stats.rb#73 + # source://rdoc//rdoc/stats.rb#73 def add_constant(constant); end # Records the parsing of +file+ # - # source://rdoc//lib/rdoc/stats.rb#80 + # source://rdoc//rdoc/stats.rb#80 def add_file(file); end # Records the parsing of +method+ # - # source://rdoc//lib/rdoc/stats.rb#88 + # source://rdoc//rdoc/stats.rb#88 def add_method(method); end # Records the parsing of a module +mod+ # - # source://rdoc//lib/rdoc/stats.rb#95 + # source://rdoc//rdoc/stats.rb#95 def add_module(mod); end # Call this to mark the beginning of parsing for display purposes # - # source://rdoc//lib/rdoc/stats.rb#102 + # source://rdoc//rdoc/stats.rb#102 def begin_adding; end # Calculates documentation totals and percentages for classes, modules, # constants, attributes and methods. # - # source://rdoc//lib/rdoc/stats.rb#110 + # source://rdoc//rdoc/stats.rb#110 def calculate; end # Output level for the coverage report # - # source://rdoc//lib/rdoc/stats.rb#13 + # source://rdoc//rdoc/stats.rb#13 def coverage_level; end # Sets coverage report level. Accepted values are: @@ -11298,22 +11122,22 @@ class RDoc::Stats # 0:: Classes, modules, constants, attributes, methods # 1:: Level 0 + method parameters # - # source://rdoc//lib/rdoc/stats.rb#158 + # source://rdoc//rdoc/stats.rb#158 def coverage_level=(level); end # Returns the length and number of undocumented items in +collection+. # - # source://rdoc//lib/rdoc/stats.rb#167 + # source://rdoc//rdoc/stats.rb#167 def doc_stats(collection); end # Call this to mark the end of parsing for display purposes # - # source://rdoc//lib/rdoc/stats.rb#175 + # source://rdoc//rdoc/stats.rb#175 def done_adding; end # Count of files parsed during parsing # - # source://rdoc//lib/rdoc/stats.rb#18 + # source://rdoc//rdoc/stats.rb#18 def files_so_far; end # The documentation status of this project. +true+ when 100%, +false+ when @@ -11323,164 +11147,158 @@ class RDoc::Stats # # @return [Boolean] # - # source://rdoc//lib/rdoc/stats.rb#185 + # source://rdoc//rdoc/stats.rb#185 def fully_documented?; end # A report that says you did a great job! # - # source://rdoc//lib/rdoc/stats.rb#192 + # source://rdoc//rdoc/stats.rb#192 def great_job; end # Total number of files found # - # source://rdoc//lib/rdoc/stats.rb#23 + # source://rdoc//rdoc/stats.rb#23 def num_files; end # Calculates the percentage of items documented. # - # source://rdoc//lib/rdoc/stats.rb#204 + # source://rdoc//rdoc/stats.rb#204 def percent_doc; end # Returns a report on which items are not documented # - # source://rdoc//lib/rdoc/stats.rb#218 + # source://rdoc//rdoc/stats.rb#218 def report; end # Returns a report on undocumented attributes in ClassModule +cm+ # - # source://rdoc//lib/rdoc/stats.rb#259 + # source://rdoc//rdoc/stats.rb#259 def report_attributes(cm); end # Returns a report on undocumented items in ClassModule +cm+ # - # source://rdoc//lib/rdoc/stats.rb#277 + # source://rdoc//rdoc/stats.rb#277 def report_class_module(cm); end # Returns a report on undocumented constants in ClassModule +cm+ # - # source://rdoc//lib/rdoc/stats.rb#329 + # source://rdoc//rdoc/stats.rb#329 def report_constants(cm); end # Returns a report on undocumented methods in ClassModule +cm+ # - # source://rdoc//lib/rdoc/stats.rb#351 + # source://rdoc//rdoc/stats.rb#351 def report_methods(cm); end # Returns a summary of the collected statistics. # - # source://rdoc//lib/rdoc/stats.rb#389 + # source://rdoc//rdoc/stats.rb#389 def summary; end # Determines which parameters in +method+ were not documented. Returns a # total parameter count and an Array of undocumented methods. # - # source://rdoc//lib/rdoc/stats.rb#439 + # source://rdoc//rdoc/stats.rb#439 def undoc_params(method); end end # Stats printer that prints just the files being documented with a progress # bar -# -# source://rdoc//lib/rdoc/stats/normal.rb#13 class RDoc::Stats::Normal < ::RDoc::Stats::Quiet - # source://rdoc//lib/rdoc/stats/normal.rb#15 + # source://rdoc//rdoc/stats/normal.rb#15 def begin_adding; end - # source://rdoc//lib/rdoc/stats/normal.rb#54 + # source://rdoc//rdoc/stats/normal.rb#54 def done_adding; end # Prints a file with a progress bar # - # source://rdoc//lib/rdoc/stats/normal.rb#23 + # source://rdoc//rdoc/stats/normal.rb#23 def print_file(files_so_far, filename); end end # Stats printer that prints nothing -# -# source://rdoc//lib/rdoc/stats/quiet.rb#5 class RDoc::Stats::Quiet # Creates a new Quiet that will print nothing # # @return [Quiet] a new instance of Quiet # - # source://rdoc//lib/rdoc/stats/quiet.rb#10 + # source://rdoc//rdoc/stats/quiet.rb#10 def initialize(num_files); end # Prints a message at the beginning of parsing # - # source://rdoc//lib/rdoc/stats/quiet.rb#17 + # source://rdoc//rdoc/stats/quiet.rb#17 def begin_adding(*_arg0); end # Prints when RDoc is done # - # source://rdoc//lib/rdoc/stats/quiet.rb#57 + # source://rdoc//rdoc/stats/quiet.rb#57 def done_adding(*_arg0); end # Prints when an alias is added # - # source://rdoc//lib/rdoc/stats/quiet.rb#22 + # source://rdoc//rdoc/stats/quiet.rb#22 def print_alias(*_arg0); end # Prints when an attribute is added # - # source://rdoc//lib/rdoc/stats/quiet.rb#27 + # source://rdoc//rdoc/stats/quiet.rb#27 def print_attribute(*_arg0); end # Prints when a class is added # - # source://rdoc//lib/rdoc/stats/quiet.rb#32 + # source://rdoc//rdoc/stats/quiet.rb#32 def print_class(*_arg0); end # Prints when a constant is added # - # source://rdoc//lib/rdoc/stats/quiet.rb#37 + # source://rdoc//rdoc/stats/quiet.rb#37 def print_constant(*_arg0); end # Prints when a file is added # - # source://rdoc//lib/rdoc/stats/quiet.rb#42 + # source://rdoc//rdoc/stats/quiet.rb#42 def print_file(*_arg0); end # Prints when a method is added # - # source://rdoc//lib/rdoc/stats/quiet.rb#47 + # source://rdoc//rdoc/stats/quiet.rb#47 def print_method(*_arg0); end # Prints when a module is added # - # source://rdoc//lib/rdoc/stats/quiet.rb#52 + # source://rdoc//rdoc/stats/quiet.rb#52 def print_module(*_arg0); end end # Stats printer that prints everything documented, including the documented # status -# -# source://rdoc//lib/rdoc/stats/verbose.rb#6 class RDoc::Stats::Verbose < ::RDoc::Stats::Normal # Returns a marker for RDoc::CodeObject +co+ being undocumented # - # source://rdoc//lib/rdoc/stats/verbose.rb#11 + # source://rdoc//rdoc/stats/verbose.rb#11 def nodoc(co); end - # source://rdoc//lib/rdoc/stats/verbose.rb#15 + # source://rdoc//rdoc/stats/verbose.rb#15 def print_alias(as); end - # source://rdoc//lib/rdoc/stats/verbose.rb#19 + # source://rdoc//rdoc/stats/verbose.rb#19 def print_attribute(attribute); end - # source://rdoc//lib/rdoc/stats/verbose.rb#23 + # source://rdoc//rdoc/stats/verbose.rb#23 def print_class(klass); end - # source://rdoc//lib/rdoc/stats/verbose.rb#27 + # source://rdoc//rdoc/stats/verbose.rb#27 def print_constant(constant); end - # source://rdoc//lib/rdoc/stats/verbose.rb#31 + # source://rdoc//rdoc/stats/verbose.rb#31 def print_file(files_so_far, file); end - # source://rdoc//lib/rdoc/stats/verbose.rb#36 + # source://rdoc//rdoc/stats/verbose.rb#36 def print_method(method); end - # source://rdoc//lib/rdoc/stats/verbose.rb#40 + # source://rdoc//rdoc/stats/verbose.rb#40 def print_module(mod); end end @@ -11503,119 +11321,117 @@ end # } # -- # TODO need to prune classes -# -# source://rdoc//lib/rdoc/store.rb#25 class RDoc::Store # Creates a new Store of +type+ that will load or save to +path+ # # @return [Store] a new instance of Store # - # source://rdoc//lib/rdoc/store.rb#127 + # source://rdoc//rdoc/store.rb#127 def initialize(path = T.unsafe(nil), type = T.unsafe(nil)); end # Adds +module+ as an enclosure (namespace) for the given +variable+ for C # files. # - # source://rdoc//lib/rdoc/store.rb#169 + # source://rdoc//rdoc/store.rb#169 def add_c_enclosure(variable, namespace); end # Adds C variables from an RDoc::Parser::C # - # source://rdoc//lib/rdoc/store.rb#176 + # source://rdoc//rdoc/store.rb#176 def add_c_variables(c_parser); end # Adds the file with +name+ as an RDoc::TopLevel to the store. Returns the # created RDoc::TopLevel. # - # source://rdoc//lib/rdoc/store.rb#188 + # source://rdoc//rdoc/store.rb#188 def add_file(absolute_name, relative_name: T.unsafe(nil), parser: T.unsafe(nil)); end # Returns all classes discovered by RDoc # - # source://rdoc//lib/rdoc/store.rb#212 + # source://rdoc//rdoc/store.rb#212 def all_classes; end # Returns all classes and modules discovered by RDoc # - # source://rdoc//lib/rdoc/store.rb#219 + # source://rdoc//rdoc/store.rb#219 def all_classes_and_modules; end # All TopLevels known to RDoc # - # source://rdoc//lib/rdoc/store.rb#226 + # source://rdoc//rdoc/store.rb#226 def all_files; end # Returns all modules discovered by RDoc # - # source://rdoc//lib/rdoc/store.rb#233 + # source://rdoc//rdoc/store.rb#233 def all_modules; end # Ancestors cache accessor. Maps a klass name to an Array of its ancestors # in this store. If Foo in this store inherits from Object, Kernel won't be # listed (it will be included from ruby's ri store). # - # source://rdoc//lib/rdoc/store.rb#242 + # source://rdoc//rdoc/store.rb#242 def ancestors; end # Attributes cache accessor. Maps a class to an Array of its attributes. # - # source://rdoc//lib/rdoc/store.rb#249 + # source://rdoc//rdoc/store.rb#249 def attributes; end # Maps C variables to class or module names for each parsed C file. # - # source://rdoc//lib/rdoc/store.rb#80 + # source://rdoc//rdoc/store.rb#80 def c_class_variables; end # Stores the name of the C variable a class belongs to. This helps wire up # classes defined from C across files. # - # source://rdoc//lib/rdoc/store.rb#73 + # source://rdoc//rdoc/store.rb#73 def c_enclosure_classes; end - # source://rdoc//lib/rdoc/store.rb#75 + # source://rdoc//rdoc/store.rb#75 def c_enclosure_names; end # Maps C variables to singleton class names for each parsed C file. # - # source://rdoc//lib/rdoc/store.rb#85 + # source://rdoc//rdoc/store.rb#85 def c_singleton_class_variables; end # The contents of the Store # - # source://rdoc//lib/rdoc/store.rb#112 + # source://rdoc//rdoc/store.rb#112 def cache; end # Path to the cache file # - # source://rdoc//lib/rdoc/store.rb#256 + # source://rdoc//rdoc/store.rb#256 def cache_path; end # Path to the ri data for +klass_name+ # - # source://rdoc//lib/rdoc/store.rb#263 + # source://rdoc//rdoc/store.rb#263 def class_file(klass_name); end # Class methods cache accessor. Maps a class to an Array of its class # methods (not full name). # - # source://rdoc//lib/rdoc/store.rb#272 + # source://rdoc//rdoc/store.rb#272 def class_methods; end # Path where data for +klass_name+ will be stored (methods or class data) # - # source://rdoc//lib/rdoc/store.rb#279 + # source://rdoc//rdoc/store.rb#279 def class_path(klass_name); end # Hash of all classes known to RDoc # - # source://rdoc//lib/rdoc/store.rb#286 + # source://rdoc//rdoc/store.rb#286 def classes_hash; end # Removes empty items and ensures item in each collection are unique and # sorted # - # source://rdoc//lib/rdoc/store.rb#294 + # source://rdoc//rdoc/store.rb#294 def clean_cache_collection(collection); end # Prepares the RDoc code object tree for use by a generator. @@ -11633,68 +11449,68 @@ class RDoc::Store # # See also RDoc::Context#remove_from_documentation? # - # source://rdoc//lib/rdoc/store.rb#322 + # source://rdoc//rdoc/store.rb#322 def complete(min_visibility); end # If true this Store will not write any files # - # source://rdoc//lib/rdoc/store.rb#90 + # source://rdoc//rdoc/store.rb#90 def dry_run; end # If true this Store will not write any files # - # source://rdoc//lib/rdoc/store.rb#90 + # source://rdoc//rdoc/store.rb#90 def dry_run=(_arg0); end # The encoding of the contents in the Store # - # source://rdoc//lib/rdoc/store.rb#117 + # source://rdoc//rdoc/store.rb#117 def encoding; end # The encoding of the contents in the Store # - # source://rdoc//lib/rdoc/store.rb#117 + # source://rdoc//rdoc/store.rb#117 def encoding=(_arg0); end # Hash of all files known to RDoc # - # source://rdoc//lib/rdoc/store.rb#362 + # source://rdoc//rdoc/store.rb#362 def files_hash; end # Finds the enclosure (namespace) for the given C +variable+. # - # source://rdoc//lib/rdoc/store.rb#369 + # source://rdoc//rdoc/store.rb#369 def find_c_enclosure(variable); end # Finds the class with +name+ in all discovered classes # - # source://rdoc//lib/rdoc/store.rb#394 + # source://rdoc//rdoc/store.rb#394 def find_class_named(name); end # Finds the class with +name+ starting in namespace +from+ # - # source://rdoc//lib/rdoc/store.rb#401 + # source://rdoc//rdoc/store.rb#401 def find_class_named_from(name, from); end # Finds the class or module with +name+ # - # source://rdoc//lib/rdoc/store.rb#419 + # source://rdoc//rdoc/store.rb#419 def find_class_or_module(name); end # Finds the file with +name+ in all discovered files # - # source://rdoc//lib/rdoc/store.rb#427 + # source://rdoc//rdoc/store.rb#427 def find_file_named(name); end # Finds the module with +name+ in all discovered modules # - # source://rdoc//lib/rdoc/store.rb#434 + # source://rdoc//rdoc/store.rb#434 def find_module_named(name); end # Returns the RDoc::TopLevel that is a text file and has the given # +file_name+ # - # source://rdoc//lib/rdoc/store.rb#442 + # source://rdoc//rdoc/store.rb#442 def find_text_page(file_name); end # Finds unique classes/modules defined in +all_hash+, @@ -11703,7 +11519,7 @@ class RDoc::Store # -- # TODO aliases should be registered by Context#add_module_alias # - # source://rdoc//lib/rdoc/store.rb#455 + # source://rdoc//rdoc/store.rb#455 def find_unique(all_hash); end # Fixes the erroneous BasicObject < Object in 1.9. @@ -11714,149 +11530,149 @@ class RDoc::Store # We fix BasicObject right away if we are running in a Ruby # version >= 1.9. # - # source://rdoc//lib/rdoc/store.rb#474 + # source://rdoc//rdoc/store.rb#474 def fix_basic_object_inheritance; end # Friendly rendition of #path # - # source://rdoc//lib/rdoc/store.rb#483 + # source://rdoc//rdoc/store.rb#483 def friendly_path; end - # source://rdoc//lib/rdoc/store.rb#495 + # source://rdoc//rdoc/store.rb#495 def inspect; end # Instance methods cache accessor. Maps a class to an Array of its # instance methods (not full name). # - # source://rdoc//lib/rdoc/store.rb#503 + # source://rdoc//rdoc/store.rb#503 def instance_methods; end # Loads all items from this store into memory. This recreates a # documentation tree for use by a generator # - # source://rdoc//lib/rdoc/store.rb#511 + # source://rdoc//rdoc/store.rb#511 def load_all; end # Loads cache file for this store # - # source://rdoc//lib/rdoc/store.rb#559 + # source://rdoc//rdoc/store.rb#559 def load_cache; end # Loads ri data for +klass_name+ and hooks it up to this store. # - # source://rdoc//lib/rdoc/store.rb#598 + # source://rdoc//rdoc/store.rb#598 def load_class(klass_name); end # Loads ri data for +klass_name+ # - # source://rdoc//lib/rdoc/store.rb#616 + # source://rdoc//rdoc/store.rb#616 def load_class_data(klass_name); end # Loads ri data for +method_name+ in +klass_name+ # - # source://rdoc//lib/rdoc/store.rb#629 + # source://rdoc//rdoc/store.rb#629 def load_method(klass_name, method_name); end # Loads ri data for +page_name+ # - # source://rdoc//lib/rdoc/store.rb#645 + # source://rdoc//rdoc/store.rb#645 def load_page(page_name); end # Gets the main page for this RDoc store. This page is used as the root of # the RDoc server. # - # source://rdoc//lib/rdoc/store.rb#661 + # source://rdoc//rdoc/store.rb#661 def main; end # Sets the main page for this RDoc store. # - # source://rdoc//lib/rdoc/store.rb#668 + # source://rdoc//rdoc/store.rb#668 def main=(page); end # Converts the variable => ClassModule map +variables+ from a C parser into # a variable => class name map. # - # source://rdoc//lib/rdoc/store.rb#676 + # source://rdoc//rdoc/store.rb#676 def make_variable_map(variables); end # Path to the ri data for +method_name+ in +klass_name+ # - # source://rdoc//lib/rdoc/store.rb#689 + # source://rdoc//rdoc/store.rb#689 def method_file(klass_name, method_name); end # Modules cache accessor. An Array of all the module (and class) names in # the store. # - # source://rdoc//lib/rdoc/store.rb#703 + # source://rdoc//rdoc/store.rb#703 def module_names; end # Hash of all modules known to RDoc # - # source://rdoc//lib/rdoc/store.rb#710 + # source://rdoc//rdoc/store.rb#710 def modules_hash; end # Returns the RDoc::TopLevel that is a text file and has the given +name+ # - # source://rdoc//lib/rdoc/store.rb#717 + # source://rdoc//rdoc/store.rb#717 def page(name); end # Path to the ri data for +page_name+ # - # source://rdoc//lib/rdoc/store.rb#726 + # source://rdoc//rdoc/store.rb#726 def page_file(page_name); end # Path this store reads or writes # - # source://rdoc//lib/rdoc/store.rb#95 + # source://rdoc//rdoc/store.rb#95 def path; end # Path this store reads or writes # - # source://rdoc//lib/rdoc/store.rb#95 + # source://rdoc//rdoc/store.rb#95 def path=(_arg0); end # The RDoc::RDoc driver for this parse tree. This allows classes consulting # the documentation tree to access user-set options, for example. # - # source://rdoc//lib/rdoc/store.rb#101 + # source://rdoc//rdoc/store.rb#101 def rdoc; end # The RDoc::RDoc driver for this parse tree. This allows classes consulting # the documentation tree to access user-set options, for example. # - # source://rdoc//lib/rdoc/store.rb#101 + # source://rdoc//rdoc/store.rb#101 def rdoc=(_arg0); end # Removes from +all_hash+ the contexts that are nodoc or have no content. # # See RDoc::Context#remove_from_documentation? # - # source://rdoc//lib/rdoc/store.rb#737 + # source://rdoc//rdoc/store.rb#737 def remove_nodoc(all_hash); end # Saves all entries in the store # - # source://rdoc//lib/rdoc/store.rb#747 + # source://rdoc//rdoc/store.rb#747 def save; end # Writes the cache file for this store # - # source://rdoc//lib/rdoc/store.rb#772 + # source://rdoc//rdoc/store.rb#772 def save_cache; end # Writes the ri data for +klass+ (or module) # - # source://rdoc//lib/rdoc/store.rb#799 + # source://rdoc//rdoc/store.rb#799 def save_class(klass); end # Writes the ri data for +method+ on +klass+ # - # source://rdoc//lib/rdoc/store.rb#873 + # source://rdoc//rdoc/store.rb#873 def save_method(klass, method); end # Writes the ri data for +page+ # - # source://rdoc//lib/rdoc/store.rb#896 + # source://rdoc//rdoc/store.rb#896 def save_page(page); end # Source of the contents of this store. @@ -11867,98 +11683,96 @@ class RDoc::Store # ri directory the store is "site". For other stores the source is the # #path. # - # source://rdoc//lib/rdoc/store.rb#922 + # source://rdoc//rdoc/store.rb#922 def source; end # Gets the title for this RDoc store. This is used as the title in each # page on the RDoc server # - # source://rdoc//lib/rdoc/store.rb#936 + # source://rdoc//rdoc/store.rb#936 def title; end # Sets the title page for this RDoc store. # - # source://rdoc//lib/rdoc/store.rb#943 + # source://rdoc//rdoc/store.rb#943 def title=(title); end # Type of ri datastore this was loaded from. See RDoc::RI::Driver, # RDoc::RI::Paths. # - # source://rdoc//lib/rdoc/store.rb#107 + # source://rdoc//rdoc/store.rb#107 def type; end # Type of ri datastore this was loaded from. See RDoc::RI::Driver, # RDoc::RI::Paths. # - # source://rdoc//lib/rdoc/store.rb#107 + # source://rdoc//rdoc/store.rb#107 def type=(_arg0); end # Returns the unique classes discovered by RDoc. # # ::complete must have been called prior to using this method. # - # source://rdoc//lib/rdoc/store.rb#952 + # source://rdoc//rdoc/store.rb#952 def unique_classes; end # Returns the unique classes and modules discovered by RDoc. # ::complete must have been called prior to using this method. # - # source://rdoc//lib/rdoc/store.rb#960 + # source://rdoc//rdoc/store.rb#960 def unique_classes_and_modules; end # Returns the unique modules discovered by RDoc. # ::complete must have been called prior to using this method. # - # source://rdoc//lib/rdoc/store.rb#968 + # source://rdoc//rdoc/store.rb#968 def unique_modules; end # The lazy constants alias will be discovered in passing # - # source://rdoc//lib/rdoc/store.rb#122 + # source://rdoc//rdoc/store.rb#122 def unmatched_constant_alias; end # Sets the parser of +absolute_name+, unless it from a source code file. # - # source://rdoc//lib/rdoc/store.rb#203 + # source://rdoc//rdoc/store.rb#203 def update_parser_of_file(absolute_name, parser); end private - # source://rdoc//lib/rdoc/store.rb#973 + # source://rdoc//rdoc/store.rb#973 def marshal_load(file); end end -# source://rdoc//lib/rdoc/store.rb#977 +# source://rdoc//rdoc/store.rb#977 RDoc::Store::MarshalFilter = T.let(T.unsafe(nil), Proc) # Raised when a stored file for a class, module, page or method is missing. -# -# source://rdoc//lib/rdoc/store.rb#36 class RDoc::Store::MissingFileError < ::RDoc::Store::Error # Creates a new MissingFileError for the missing +file+ for the given # +name+ that should have been in the +store+. # # @return [MissingFileError] a new instance of MissingFileError # - # source://rdoc//lib/rdoc/store.rb#57 + # source://rdoc//rdoc/store.rb#57 def initialize(store, file, name); end # The file the #name should be saved as # - # source://rdoc//lib/rdoc/store.rb#46 + # source://rdoc//rdoc/store.rb#46 def file; end - # source://rdoc//lib/rdoc/store.rb#63 + # source://rdoc//rdoc/store.rb#63 def message; end # The name of the object the #file would be loaded from # - # source://rdoc//lib/rdoc/store.rb#51 + # source://rdoc//rdoc/store.rb#51 def name; end # The store the file should exist in # - # source://rdoc//lib/rdoc/store.rb#41 + # source://rdoc//rdoc/store.rb#41 def store; end end @@ -12020,8 +11834,6 @@ end # # This will create the tasks :rdoc, :rdoc:clean, # :rdoc:force, and :rdoc:coverage. -# -# source://rdoc//lib/rdoc/task.rb#99 class RDoc::Task < ::Rake::TaskLib # Create an RDoc task with the given name. See the RDoc::Task class overview # for documentation. @@ -12030,266 +11842,264 @@ class RDoc::Task < ::Rake::TaskLib # @yield [_self] # @yieldparam _self [RDoc::Task] the object that the method was called on # - # source://rdoc//lib/rdoc/task.rb#158 + # source://rdoc//rdoc/task.rb#158 def initialize(name = T.unsafe(nil)); end # The block passed to this method will be called just before running the # RDoc generator. It is allowed to modify RDoc::Task attributes inside the # block. # - # source://rdoc//lib/rdoc/task.rb#288 + # source://rdoc//rdoc/task.rb#288 def before_running_rdoc(&block); end # Ensures that +names+ only includes names for the :rdoc, :clobber_rdoc and # :rerdoc. If other names are given an ArgumentError is raised. # - # source://rdoc//lib/rdoc/task.rb#174 + # source://rdoc//rdoc/task.rb#174 def check_names(names); end # Task description for the clobber rdoc task or its renamed equivalent # - # source://rdoc//lib/rdoc/task.rb#188 + # source://rdoc//rdoc/task.rb#188 def clobber_task_description; end # Task description for the coverage task or its renamed description # - # source://rdoc//lib/rdoc/task.rb#309 + # source://rdoc//rdoc/task.rb#309 def coverage_task_description; end # Sets default task values # - # source://rdoc//lib/rdoc/task.rb#195 + # source://rdoc//rdoc/task.rb#195 def defaults; end # Create the tasks defined by this task lib. # - # source://rdoc//lib/rdoc/task.rb#224 + # source://rdoc//rdoc/task.rb#224 def define; end # Whether to run the rdoc process as an external shell (default is false) # - # source://rdoc//lib/rdoc/task.rb#152 + # source://rdoc//rdoc/task.rb#152 def external; end # Whether to run the rdoc process as an external shell (default is false) # - # source://rdoc//lib/rdoc/task.rb#152 + # source://rdoc//rdoc/task.rb#152 def external=(_arg0); end # Name of format generator (--format) used by rdoc. (defaults to # rdoc's default) # - # source://rdoc//lib/rdoc/task.rb#137 + # source://rdoc//rdoc/task.rb#137 def generator; end # Name of format generator (--format) used by rdoc. (defaults to # rdoc's default) # - # source://rdoc//lib/rdoc/task.rb#137 + # source://rdoc//rdoc/task.rb#137 def generator=(_arg0); end # All source is inline now. This method is deprecated # - # source://rdoc//lib/rdoc/task.rb#209 + # source://rdoc//rdoc/task.rb#209 def inline_source; end # All source is inline now. This method is deprecated # - # source://rdoc//lib/rdoc/task.rb#217 + # source://rdoc//rdoc/task.rb#217 def inline_source=(value); end # Name of file to be used as the main, top level file of the RDoc. (default # is none) # - # source://rdoc//lib/rdoc/task.rb#126 + # source://rdoc//rdoc/task.rb#126 def main; end # Name of file to be used as the main, top level file of the RDoc. (default # is none) # - # source://rdoc//lib/rdoc/task.rb#126 + # source://rdoc//rdoc/task.rb#126 def main=(_arg0); end # Comment markup format. rdoc, rd and tomdoc are supported. (default is # 'rdoc') # - # source://rdoc//lib/rdoc/task.rb#110 + # source://rdoc//rdoc/task.rb#110 def markup; end # Comment markup format. rdoc, rd and tomdoc are supported. (default is # 'rdoc') # - # source://rdoc//lib/rdoc/task.rb#110 + # source://rdoc//rdoc/task.rb#110 def markup=(_arg0); end # Name of the main, top level task. (default is :rdoc) # - # source://rdoc//lib/rdoc/task.rb#104 + # source://rdoc//rdoc/task.rb#104 def name; end # Name of the main, top level task. (default is :rdoc) # - # source://rdoc//lib/rdoc/task.rb#104 + # source://rdoc//rdoc/task.rb#104 def name=(_arg0); end # List of options that will be supplied to RDoc # - # source://rdoc//lib/rdoc/task.rb#272 + # source://rdoc//rdoc/task.rb#272 def option_list; end # Additional list of options to be passed rdoc. (default is []) # - # source://rdoc//lib/rdoc/task.rb#147 + # source://rdoc//rdoc/task.rb#147 def options; end # Additional list of options to be passed rdoc. (default is []) # - # source://rdoc//lib/rdoc/task.rb#147 + # source://rdoc//rdoc/task.rb#147 def options=(_arg0); end # Name of directory to receive the html output files. (default is "html") # - # source://rdoc//lib/rdoc/task.rb#115 + # source://rdoc//rdoc/task.rb#115 def rdoc_dir; end # Name of directory to receive the html output files. (default is "html") # - # source://rdoc//lib/rdoc/task.rb#115 + # source://rdoc//rdoc/task.rb#115 def rdoc_dir=(_arg0); end # List of files to be included in the rdoc generation. (default is []) # - # source://rdoc//lib/rdoc/task.rb#142 + # source://rdoc//rdoc/task.rb#142 def rdoc_files; end # List of files to be included in the rdoc generation. (default is []) # - # source://rdoc//lib/rdoc/task.rb#142 + # source://rdoc//rdoc/task.rb#142 def rdoc_files=(_arg0); end # Task description for the rdoc task or its renamed equivalent # - # source://rdoc//lib/rdoc/task.rb#295 + # source://rdoc//rdoc/task.rb#295 def rdoc_task_description; end # Task description for the rerdoc task or its renamed description # - # source://rdoc//lib/rdoc/task.rb#302 + # source://rdoc//rdoc/task.rb#302 def rerdoc_task_description; end # Name of template to be used by rdoc. (defaults to rdoc's default) # - # source://rdoc//lib/rdoc/task.rb#131 + # source://rdoc//rdoc/task.rb#131 def template; end # Name of template to be used by rdoc. (defaults to rdoc's default) # - # source://rdoc//lib/rdoc/task.rb#131 + # source://rdoc//rdoc/task.rb#131 def template=(_arg0); end # Title of RDoc documentation. (defaults to rdoc's default) # - # source://rdoc//lib/rdoc/task.rb#120 + # source://rdoc//rdoc/task.rb#120 def title; end # Title of RDoc documentation. (defaults to rdoc's default) # - # source://rdoc//lib/rdoc/task.rb#120 + # source://rdoc//rdoc/task.rb#120 def title=(_arg0); end private - # source://rdoc//lib/rdoc/task.rb#326 + # source://rdoc//rdoc/task.rb#326 def clobber_task_name; end - # source://rdoc//lib/rdoc/task.rb#340 + # source://rdoc//rdoc/task.rb#340 def coverage_task_name; end - # source://rdoc//lib/rdoc/task.rb#315 + # source://rdoc//rdoc/task.rb#315 def rdoc_target; end - # source://rdoc//lib/rdoc/task.rb#319 + # source://rdoc//rdoc/task.rb#319 def rdoc_task_name; end - # source://rdoc//lib/rdoc/task.rb#333 + # source://rdoc//rdoc/task.rb#333 def rerdoc_task_name; end end # Methods for manipulating comment text -# -# source://rdoc//lib/rdoc/text.rb#11 module RDoc::Text # Expands tab characters in +text+ to eight spaces # - # source://rdoc//lib/rdoc/text.rb#63 + # source://rdoc//rdoc/text.rb#63 def expand_tabs(text); end # Flush +text+ left based on the shortest line # - # source://rdoc//lib/rdoc/text.rb#82 + # source://rdoc//rdoc/text.rb#82 def flush_left(text); end # The language for this text. This affects stripping comments # markers. # - # source://rdoc//lib/rdoc/text.rb#17 + # source://rdoc//rdoc/text.rb#17 def language; end # The language for this text. This affects stripping comments # markers. # - # source://rdoc//lib/rdoc/text.rb#17 + # source://rdoc//rdoc/text.rb#17 def language=(_arg0); end # Convert a string in markup format into HTML. # # Requires the including class to implement #formatter # - # source://rdoc//lib/rdoc/text.rb#101 + # source://rdoc//rdoc/text.rb#101 def markup(text); end # Strips hashes, expands tabs then flushes +text+ to the left # - # source://rdoc//lib/rdoc/text.rb#117 + # source://rdoc//rdoc/text.rb#117 def normalize_comment(text); end # Normalizes +text+ then builds a RDoc::Markup::Document from it # - # source://rdoc//lib/rdoc/text.rb#135 + # source://rdoc//rdoc/text.rb#135 def parse(text, format = T.unsafe(nil)); end # The first +limit+ characters of +text+ as HTML # - # source://rdoc//lib/rdoc/text.rb#149 + # source://rdoc//rdoc/text.rb#149 def snippet(text, limit = T.unsafe(nil)); end # Strips leading # characters from +text+ # - # source://rdoc//lib/rdoc/text.rb#158 + # source://rdoc//rdoc/text.rb#158 def strip_hashes(text); end # Strips leading and trailing \n characters from +text+ # - # source://rdoc//lib/rdoc/text.rb#170 + # source://rdoc//rdoc/text.rb#170 def strip_newlines(text); end # Strips /* */ style comments # - # source://rdoc//lib/rdoc/text.rb#177 + # source://rdoc//rdoc/text.rb#177 def strip_stars(text); end - # source://rdoc//lib/rdoc/text.rb#200 + # source://rdoc//rdoc/text.rb#200 def to_html(text); end # Wraps +txt+ to +line_len+ # - # source://rdoc//lib/rdoc/text.rb#287 + # source://rdoc//rdoc/text.rb#287 def wrap(txt, line_len = T.unsafe(nil)); end class << self # Transcodes +character+ to +encoding+ with a +fallback+ character. # - # source://rdoc//lib/rdoc/text.rb#55 + # source://rdoc//rdoc/text.rb#55 def encode_fallback(character, encoding, fallback); end end end @@ -12297,7 +12107,7 @@ end # Character class to be separated by a space when concatenating # lines. # -# source://rdoc//lib/rdoc/text.rb#320 +# source://rdoc//rdoc/text.rb#320 RDoc::Text::SPACE_SEPARATED_LETTER_CLASS = T.let(T.unsafe(nil), Regexp) # A TokenStream is a list of tokens, gathered during the parse of some entity @@ -12305,42 +12115,40 @@ RDoc::Text::SPACE_SEPARATED_LETTER_CLASS = T.let(T.unsafe(nil), Regexp) # lexer. Any class can collect tokens by including TokenStream. From the # outside, you use such an object by calling the start_collecting_tokens # method, followed by calls to add_token and pop_token. -# -# source://rdoc//lib/rdoc/token_stream.rb#9 module RDoc::TokenStream # Adds one +token+ to the collected tokens # - # source://rdoc//lib/rdoc/token_stream.rb#84 + # source://rdoc//rdoc/token_stream.rb#84 def add_token(token); end # Adds +tokens+ to the collected tokens # - # source://rdoc//lib/rdoc/token_stream.rb#77 + # source://rdoc//rdoc/token_stream.rb#77 def add_tokens(tokens); end # Starts collecting tokens # - # source://rdoc//lib/rdoc/token_stream.rb#91 + # source://rdoc//rdoc/token_stream.rb#91 def collect_tokens; end # Remove the last token from the collected tokens # - # source://rdoc//lib/rdoc/token_stream.rb#100 + # source://rdoc//rdoc/token_stream.rb#100 def pop_token; end # Starts collecting tokens # - # source://rdoc//lib/rdoc/token_stream.rb#91 + # source://rdoc//rdoc/token_stream.rb#91 def start_collecting_tokens; end # Current token stream # - # source://rdoc//lib/rdoc/token_stream.rb#107 + # source://rdoc//rdoc/token_stream.rb#107 def token_stream; end # Returns a string representation of the token stream # - # source://rdoc//lib/rdoc/token_stream.rb#114 + # source://rdoc//rdoc/token_stream.rb#114 def tokens_to_s; end class << self @@ -12348,7 +12156,7 @@ module RDoc::TokenStream # elements. Some tokens types are wrapped in spans # with the given class names. Other token types are not wrapped in spans. # - # source://rdoc//lib/rdoc/token_stream.rb#16 + # source://rdoc//rdoc/token_stream.rb#16 def to_html(token_stream); end end end @@ -12390,14 +12198,12 @@ end # # This class is documented in TomDoc format. Since this is a subclass of the # RDoc markup parser there isn't much to see here, unfortunately. -# -# source://rdoc//lib/rdoc/tom_doc.rb#42 class RDoc::TomDoc < ::RDoc::Markup::Parser # Public: Creates a new TomDoc parser. See also RDoc::Markup::parse # # @return [TomDoc] a new instance of TomDoc # - # source://rdoc//lib/rdoc/tom_doc.rb#130 + # source://rdoc//rdoc/tom_doc.rb#130 def initialize; end # Internal: Builds a heading from the token stream @@ -12406,7 +12212,7 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns an RDoc::Markup::Heading # - # source://rdoc//lib/rdoc/tom_doc.rb#143 + # source://rdoc//rdoc/tom_doc.rb#143 def build_heading(level); end # Internal: Builds a paragraph from the token stream @@ -12415,7 +12221,7 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns an RDoc::Markup::Paragraph. # - # source://rdoc//lib/rdoc/tom_doc.rb#173 + # source://rdoc//rdoc/tom_doc.rb#173 def build_paragraph(margin); end # Internal: Builds a verbatim from the token stream. A verbatim in the @@ -12426,12 +12232,12 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns an RDoc::Markup::Verbatim # - # source://rdoc//lib/rdoc/tom_doc.rb#159 + # source://rdoc//rdoc/tom_doc.rb#159 def build_verbatim(margin); end # Detects a section change to "Returns" and adds a heading # - # source://rdoc//lib/rdoc/tom_doc.rb#213 + # source://rdoc//rdoc/tom_doc.rb#213 def parse_text(parent, indent); end # Internal: Turns text into an Array of tokens @@ -12440,12 +12246,12 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns self. # - # source://rdoc//lib/rdoc/tom_doc.rb#231 + # source://rdoc//rdoc/tom_doc.rb#231 def tokenize(text); end # Internal: Token accessor # - # source://rdoc//lib/rdoc/tom_doc.rb#46 + # source://rdoc//rdoc/tom_doc.rb#46 def tokens; end class << self @@ -12454,7 +12260,7 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns nothing. # - # source://rdoc//lib/rdoc/tom_doc.rb#53 + # source://rdoc//rdoc/tom_doc.rb#53 def add_post_processor; end # Public: Parses TomDoc from text @@ -12472,7 +12278,7 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns an RDoc::Markup::Document representing the TomDoc format. # - # source://rdoc//lib/rdoc/tom_doc.rb#84 + # source://rdoc//rdoc/tom_doc.rb#84 def parse(text); end # Internal: Extracts the Signature section's method signature @@ -12482,14 +12288,12 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns a String containing the signature and nil if not # - # source://rdoc//lib/rdoc/tom_doc.rb#100 + # source://rdoc//rdoc/tom_doc.rb#100 def signature(comment); end end end # A TopLevel context is a representation of the contents of a single file -# -# source://rdoc//lib/rdoc/top_level.rb#5 class RDoc::TopLevel < ::RDoc::Context # Creates a new TopLevel for the file at +absolute_name+. If documentation # is being generated outside the source dir +relative_name+ is relative to @@ -12497,72 +12301,72 @@ class RDoc::TopLevel < ::RDoc::Context # # @return [TopLevel] a new instance of TopLevel # - # source://rdoc//lib/rdoc/top_level.rb#43 + # source://rdoc//rdoc/top_level.rb#43 def initialize(absolute_name, relative_name = T.unsafe(nil)); end # An RDoc::TopLevel is equal to another with the same relative_name # - # source://rdoc//lib/rdoc/top_level.rb#67 + # source://rdoc//rdoc/top_level.rb#67 def ==(other); end # Absolute name of this file # - # source://rdoc//lib/rdoc/top_level.rb#22 + # source://rdoc//rdoc/top_level.rb#22 def absolute_name; end # Absolute name of this file # - # source://rdoc//lib/rdoc/top_level.rb#22 + # source://rdoc//rdoc/top_level.rb#22 def absolute_name=(_arg0); end # Adds +an_alias+ to +Object+ instead of +self+. # - # source://rdoc//lib/rdoc/top_level.rb#76 + # source://rdoc//rdoc/top_level.rb#76 def add_alias(an_alias); end # Adds +constant+ to +Object+ instead of +self+. # - # source://rdoc//lib/rdoc/top_level.rb#85 + # source://rdoc//rdoc/top_level.rb#85 def add_constant(constant); end # Adds +include+ to +Object+ instead of +self+. # - # source://rdoc//lib/rdoc/top_level.rb#94 + # source://rdoc//rdoc/top_level.rb#94 def add_include(include); end # Adds +method+ to +Object+ instead of +self+. # - # source://rdoc//lib/rdoc/top_level.rb#103 + # source://rdoc//rdoc/top_level.rb#103 def add_method(method); end # Adds class or module +mod+. Used in the building phase # by the Ruby parser. # - # source://rdoc//lib/rdoc/top_level.rb#113 + # source://rdoc//rdoc/top_level.rb#113 def add_to_classes_or_modules(mod); end # Base name of this file # - # source://rdoc//lib/rdoc/top_level.rb#120 + # source://rdoc//rdoc/top_level.rb#120 def base_name; end # All the classes or modules that were declared in # this file. These are assigned to either +#classes_hash+ # or +#modules_hash+ once we know what they really are. # - # source://rdoc//lib/rdoc/top_level.rb#29 + # source://rdoc//rdoc/top_level.rb#29 def classes_or_modules; end # Returns a URL for this source file on some web repository. Use the -W # command line option to set. # - # source://rdoc//lib/rdoc/generator/markup.rb#149 + # source://rdoc//rdoc/generator/markup.rb#149 def cvs_url; end - # source://rdoc//lib/rdoc/top_level.rb#31 + # source://rdoc//rdoc/top_level.rb#31 def diagram; end - # source://rdoc//lib/rdoc/top_level.rb#31 + # source://rdoc//rdoc/top_level.rb#31 def diagram=(_arg0); end # Only a TopLevel that contains text file) will be displayed. See also @@ -12570,22 +12374,22 @@ class RDoc::TopLevel < ::RDoc::Context # # @return [Boolean] # - # source://rdoc//lib/rdoc/top_level.rb#130 + # source://rdoc//rdoc/top_level.rb#130 def display?; end # An RDoc::TopLevel is equal to another with the same relative_name # - # source://rdoc//lib/rdoc/top_level.rb#67 + # source://rdoc//rdoc/top_level.rb#67 def eql?(other); end # This TopLevel's File::Stat struct # - # source://rdoc//lib/rdoc/top_level.rb#12 + # source://rdoc//rdoc/top_level.rb#12 def file_stat; end # This TopLevel's File::Stat struct # - # source://rdoc//lib/rdoc/top_level.rb#12 + # source://rdoc//rdoc/top_level.rb#12 def file_stat=(_arg0); end # See RDoc::TopLevel::find_class_or_module @@ -12593,117 +12397,115 @@ class RDoc::TopLevel < ::RDoc::Context # TODO Why do we search through all classes/modules found, not just the # ones of this instance? # - # source://rdoc//lib/rdoc/top_level.rb#140 + # source://rdoc//rdoc/top_level.rb#140 def find_class_or_module(name); end # Finds a class or module named +symbol+ # - # source://rdoc//lib/rdoc/top_level.rb#147 + # source://rdoc//rdoc/top_level.rb#147 def find_local_symbol(symbol); end # Finds a module or class with +name+ # - # source://rdoc//lib/rdoc/top_level.rb#154 + # source://rdoc//rdoc/top_level.rb#154 def find_module_named(name); end # Returns the relative name of this file # - # source://rdoc//lib/rdoc/top_level.rb#161 + # source://rdoc//rdoc/top_level.rb#161 def full_name; end # An RDoc::TopLevel has the same hash as another with the same # relative_name # - # source://rdoc//lib/rdoc/top_level.rb#169 + # source://rdoc//rdoc/top_level.rb#169 def hash; end # URL for this with a +prefix+ # - # source://rdoc//lib/rdoc/top_level.rb#176 + # source://rdoc//rdoc/top_level.rb#176 def http_url(prefix); end - # source://rdoc//lib/rdoc/top_level.rb#182 + # source://rdoc//rdoc/top_level.rb#182 def inspect; end # Time this file was last modified, if known # - # source://rdoc//lib/rdoc/top_level.rb#194 + # source://rdoc//rdoc/top_level.rb#194 def last_modified; end # Dumps this TopLevel for use by ri. See also #marshal_load # - # source://rdoc//lib/rdoc/top_level.rb#201 + # source://rdoc//rdoc/top_level.rb#201 def marshal_dump; end # Loads this TopLevel from +array+. # - # source://rdoc//lib/rdoc/top_level.rb#213 + # source://rdoc//rdoc/top_level.rb#213 def marshal_load(array); end # Base name of this file # - # source://rdoc//lib/rdoc/top_level.rb#120 + # source://rdoc//rdoc/top_level.rb#120 def name; end # Returns the NormalClass "Object", creating it if not found. # # Records +self+ as a location in "Object". # - # source://rdoc//lib/rdoc/top_level.rb#227 + # source://rdoc//rdoc/top_level.rb#227 def object_class; end # Base name of this file without the extension # - # source://rdoc//lib/rdoc/top_level.rb#238 + # source://rdoc//rdoc/top_level.rb#238 def page_name; end # The parser class that processed this file # - # source://rdoc//lib/rdoc/top_level.rb#36 + # source://rdoc//rdoc/top_level.rb#36 def parser; end # Sets the parser for this toplevel context, also the store. # - # source://rdoc//lib/rdoc/top_level.rb#58 + # source://rdoc//rdoc/top_level.rb#58 def parser=(val); end # Path to this file for use with HTML generator output. # - # source://rdoc//lib/rdoc/top_level.rb#248 + # source://rdoc//rdoc/top_level.rb#248 def path; end - # source://rdoc//lib/rdoc/top_level.rb#252 + # source://rdoc//rdoc/top_level.rb#252 def pretty_print(q); end # Relative name of this file # - # source://rdoc//lib/rdoc/top_level.rb#17 + # source://rdoc//rdoc/top_level.rb#17 def relative_name; end # Relative name of this file # - # source://rdoc//lib/rdoc/top_level.rb#17 + # source://rdoc//rdoc/top_level.rb#17 def relative_name=(_arg0); end # Search record used by RDoc::Generator::JsonIndex # - # source://rdoc//lib/rdoc/top_level.rb#266 + # source://rdoc//rdoc/top_level.rb#266 def search_record; end # Is this TopLevel from a text file instead of a source code file? # # @return [Boolean] # - # source://rdoc//lib/rdoc/top_level.rb#283 + # source://rdoc//rdoc/top_level.rb#283 def text?; end - # source://rdoc//lib/rdoc/top_level.rb#287 + # source://rdoc//rdoc/top_level.rb#287 def to_s; end end # :stopdoc: -# -# source://rdoc//lib/rdoc/task.rb#347 module Rake extend ::FileUtils::StreamUtils_ extend ::FileUtils @@ -12711,5 +12513,5 @@ end # For backwards compatibility # -# source://rdoc//lib/rdoc/task.rb#352 +# source://rdoc//rdoc/task.rb#352 Rake::RDocTask = RDoc::Task diff --git a/sorbet/rbi/gems/redis-client@0.22.1.rbi b/sorbet/rbi/gems/redis-client@0.22.2.rbi similarity index 98% rename from sorbet/rbi/gems/redis-client@0.22.1.rbi rename to sorbet/rbi/gems/redis-client@0.22.2.rbi index 79fd9073..345e2331f 100644 --- a/sorbet/rbi/gems/redis-client@0.22.1.rbi +++ b/sorbet/rbi/gems/redis-client@0.22.2.rbi @@ -4,11 +4,11 @@ # This is an autogenerated file for types exported from the `redis-client` gem. # Please instead update this file by running `bin/tapioca gem redis-client`. + module Process extend ::RedisClient::PIDCache::CoreExt extend ::ConnectionPool::ForkTracker extend ::ActiveSupport::ForkTracker::ModernCoreExt - extend ::Sass::ForkTracker::CoreExt end # source://redis-client//lib/redis_client/version.rb#3 @@ -352,22 +352,22 @@ class RedisClient::Config # @return [Config] a new instance of Config # - # source://redis-client//lib/redis_client/config.rb#179 + # source://redis-client//lib/redis_client/config.rb#185 def initialize(url: T.unsafe(nil), host: T.unsafe(nil), port: T.unsafe(nil), path: T.unsafe(nil), username: T.unsafe(nil), password: T.unsafe(nil), **kwargs); end # Returns the value of attribute host. # - # source://redis-client//lib/redis_client/config.rb#177 + # source://redis-client//lib/redis_client/config.rb#183 def host; end # Returns the value of attribute path. # - # source://redis-client//lib/redis_client/config.rb#177 + # source://redis-client//lib/redis_client/config.rb#183 def path; end # Returns the value of attribute port. # - # source://redis-client//lib/redis_client/config.rb#177 + # source://redis-client//lib/redis_client/config.rb#183 def port; end end @@ -491,7 +491,7 @@ module RedisClient::Config::Common private - # source://redis-client//lib/redis_client/config.rb#146 + # source://redis-client//lib/redis_client/config.rb#152 def build_connection_prelude; end end @@ -527,6 +527,9 @@ module RedisClient::ConnectionMixin # source://redis-client//lib/redis_client/connection_mixin.rb#14 def close; end + # source://redis-client//lib/redis_client/connection_mixin.rb#77 + def connection_timeout(timeout); end + # source://redis-client//lib/redis_client/connection_mixin.rb#9 def reconnect; end diff --git a/sorbet/rbi/gems/redis@5.2.0.rbi b/sorbet/rbi/gems/redis@5.2.0.rbi index 481eeda9..3c7e0a75 100644 --- a/sorbet/rbi/gems/redis@5.2.0.rbi +++ b/sorbet/rbi/gems/redis@5.2.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `redis` gem. # Please instead update this file by running `bin/tapioca gem redis`. + # source://redis//lib/redis/errors.rb#3 class Redis include ::Redis::Commands::Bitmaps diff --git a/sorbet/rbi/gems/regexp_parser@2.9.0.rbi b/sorbet/rbi/gems/regexp_parser@2.9.2.rbi similarity index 99% rename from sorbet/rbi/gems/regexp_parser@2.9.0.rbi rename to sorbet/rbi/gems/regexp_parser@2.9.2.rbi index 34ad4f2a..584c4553 100644 --- a/sorbet/rbi/gems/regexp_parser@2.9.0.rbi +++ b/sorbet/rbi/gems/regexp_parser@2.9.2.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `regexp_parser` gem. # Please instead update this file by running `bin/tapioca gem regexp_parser`. + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#1 module Regexp::Expression; end @@ -1132,7 +1133,7 @@ end # source://regexp_parser//lib/regexp_parser/expression/classes/keep.rb#2 module Regexp::Expression::Keep; end -# TOOD: in regexp_parser v3.0.0 this should possibly be a Subexpression +# TODO: in regexp_parser v3.0.0 this should possibly be a Subexpression # that contains all expressions to its left. # # source://regexp_parser//lib/regexp_parser/expression/classes/keep.rb#5 @@ -2368,7 +2369,7 @@ class Regexp::Parser # source://regexp_parser//lib/regexp_parser/parser.rb#262 def assign_effective_number(exp); end - # Assigns referenced expressions to refering expressions, e.g. if there is + # Assigns referenced expressions to referring expressions, e.g. if there is # an instance of Backreference::Number, its #referenced_expression is set to # the instance of Group::Capture that it refers to via its number. # diff --git a/sorbet/rbi/gems/reline@0.5.2.rbi b/sorbet/rbi/gems/reline@0.5.7.rbi similarity index 99% rename from sorbet/rbi/gems/reline@0.5.2.rbi rename to sorbet/rbi/gems/reline@0.5.7.rbi index b8c01d40..13fa313b 100644 --- a/sorbet/rbi/gems/reline@0.5.2.rbi +++ b/sorbet/rbi/gems/reline@0.5.7.rbi @@ -4,5 +4,6 @@ # This is an autogenerated file for types exported from the `reline` gem. # Please instead update this file by running `bin/tapioca gem reline`. + # THIS IS AN EMPTY RBI FILE. # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/representable@3.2.0.rbi b/sorbet/rbi/gems/representable@3.2.0.rbi new file mode 100644 index 00000000..801d371f --- /dev/null +++ b/sorbet/rbi/gems/representable@3.2.0.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `representable` gem. +# Please instead update this file by running `bin/tapioca gem representable`. + + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/retriable@3.1.2.rbi b/sorbet/rbi/gems/retriable@3.1.2.rbi new file mode 100644 index 00000000..b64864f3 --- /dev/null +++ b/sorbet/rbi/gems/retriable@3.1.2.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `retriable` gem. +# Please instead update this file by running `bin/tapioca gem retriable`. + + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/rexml@3.2.6.rbi b/sorbet/rbi/gems/rexml@3.2.8.rbi similarity index 96% rename from sorbet/rbi/gems/rexml@3.2.6.rbi rename to sorbet/rbi/gems/rexml@3.2.8.rbi index c8d67b58..33f7acd7 100644 --- a/sorbet/rbi/gems/rexml@3.2.6.rbi +++ b/sorbet/rbi/gems/rexml@3.2.8.rbi @@ -1,9 +1,10 @@ -# typed: true +# typed: false # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rexml` gem. # Please instead update this file by running `bin/tapioca gem rexml`. + # This class needs: # * Documentation # * Work! Not all types of attlists are intelligently parsed, so we just @@ -3453,47 +3454,48 @@ end # A Source that wraps an IO. See the Source class for method # documentation # -# source://rexml//lib/rexml/source.rb#159 +# source://rexml//lib/rexml/source.rb#140 class REXML::IOSource < ::REXML::Source # block_size has been deprecated # # @return [IOSource] a new instance of IOSource # - # source://rexml//lib/rexml/source.rb#163 + # source://rexml//lib/rexml/source.rb#144 def initialize(arg, block_size = T.unsafe(nil), encoding = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#215 - def consume(pattern); end - # @return the current line in the source # - # source://rexml//lib/rexml/source.rb#244 + # source://rexml//lib/rexml/source.rb#217 def current_line; end # @return [Boolean] # - # source://rexml//lib/rexml/source.rb#235 + # source://rexml//lib/rexml/source.rb#212 def empty?; end - # source://rexml//lib/rexml/source.rb#219 - def match(pattern, cons = T.unsafe(nil)); end + # source://rexml//lib/rexml/source.rb#189 + def ensure_buffer; end - # source://rexml//lib/rexml/source.rb#239 - def position; end + # Note: When specifying a string for 'pattern', it must not include '>' except in the following formats: + # - ">" + # - "XXX>" (X is any string excluding '>') + # + # source://rexml//lib/rexml/source.rb#196 + def match(pattern, cons = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#207 - def read; end + # source://rexml//lib/rexml/source.rb#165 + def read(term = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#184 - def scan(pattern, cons = T.unsafe(nil)); end + # source://rexml//lib/rexml/source.rb#175 + def read_until(term); end private - # source://rexml//lib/rexml/source.rb#286 + # source://rexml//lib/rexml/source.rb#259 def encoding_updated; end - # source://rexml//lib/rexml/source.rb#266 - def readline; end + # source://rexml//lib/rexml/source.rb#239 + def readline(term = T.unsafe(nil)); end end # Represents an XML Instruction; IE, @@ -3816,7 +3818,7 @@ class REXML::ParseException < ::RuntimeError # source://rexml//lib/rexml/parseexception.rb#6 def initialize(message, source = T.unsafe(nil), parser = T.unsafe(nil), exception = T.unsafe(nil)); end - # source://rexml//lib/rexml/parseexception.rb#48 + # source://rexml//lib/rexml/parseexception.rb#49 def context; end # Returns the value of attribute continued_exception. @@ -3831,7 +3833,7 @@ class REXML::ParseException < ::RuntimeError # source://rexml//lib/rexml/parseexception.rb#4 def continued_exception=(_arg0); end - # source://rexml//lib/rexml/parseexception.rb#43 + # source://rexml//lib/rexml/parseexception.rb#44 def line; end # Returns the value of attribute parser. @@ -3846,7 +3848,7 @@ class REXML::ParseException < ::RuntimeError # source://rexml//lib/rexml/parseexception.rb#4 def parser=(_arg0); end - # source://rexml//lib/rexml/parseexception.rb#38 + # source://rexml//lib/rexml/parseexception.rb#39 def position; end # Returns the value of attribute source. @@ -3887,34 +3889,36 @@ end # # source://rexml//lib/rexml/parsers/baseparser.rb#29 class REXML::Parsers::BaseParser + include ::REXML::Parsers::BaseParser::Private + # @return [BaseParser] a new instance of BaseParser # - # source://rexml//lib/rexml/parsers/baseparser.rb#115 + # source://rexml//lib/rexml/parsers/baseparser.rb#128 def initialize(source); end - # source://rexml//lib/rexml/parsers/baseparser.rb#120 + # source://rexml//lib/rexml/parsers/baseparser.rb#133 def add_listener(listener); end # Returns true if there are no more events # # @return [Boolean] # - # source://rexml//lib/rexml/parsers/baseparser.rb#146 + # source://rexml//lib/rexml/parsers/baseparser.rb#159 def empty?; end - # source://rexml//lib/rexml/parsers/baseparser.rb#438 + # source://rexml//lib/rexml/parsers/baseparser.rb#446 def entity(reference, entities); end # Returns true if there are more events. Synonymous with !empty? # # @return [Boolean] # - # source://rexml//lib/rexml/parsers/baseparser.rb#151 + # source://rexml//lib/rexml/parsers/baseparser.rb#164 def has_next?; end # Escapes all possible entities # - # source://rexml//lib/rexml/parsers/baseparser.rb#449 + # source://rexml//lib/rexml/parsers/baseparser.rb#457 def normalize(input, entities = T.unsafe(nil), entity_filter = T.unsafe(nil)); end # Peek at the +depth+ event in the stack. The first element on the stack @@ -3924,59 +3928,59 @@ class REXML::Parsers::BaseParser # event, so you can effectively pre-parse the entire document (pull the # entire thing into memory) using this method. # - # source://rexml//lib/rexml/parsers/baseparser.rb#167 + # source://rexml//lib/rexml/parsers/baseparser.rb#180 def peek(depth = T.unsafe(nil)); end - # source://rexml//lib/rexml/parsers/baseparser.rb#136 + # source://rexml//lib/rexml/parsers/baseparser.rb#149 def position; end # Returns the next event. This is a +PullEvent+ object. # - # source://rexml//lib/rexml/parsers/baseparser.rb#182 + # source://rexml//lib/rexml/parsers/baseparser.rb#195 def pull; end # Returns the value of attribute source. # - # source://rexml//lib/rexml/parsers/baseparser.rb#124 + # source://rexml//lib/rexml/parsers/baseparser.rb#137 def source; end - # source://rexml//lib/rexml/parsers/baseparser.rb#126 + # source://rexml//lib/rexml/parsers/baseparser.rb#139 def stream=(source); end # Unescapes all possible entities # - # source://rexml//lib/rexml/parsers/baseparser.rb#465 + # source://rexml//lib/rexml/parsers/baseparser.rb#473 def unnormalize(string, entities = T.unsafe(nil), filter = T.unsafe(nil)); end # Push an event back on the head of the stream. This method # has (theoretically) infinite depth. # - # source://rexml//lib/rexml/parsers/baseparser.rb#157 + # source://rexml//lib/rexml/parsers/baseparser.rb#170 def unshift(token); end private # @return [Boolean] # - # source://rexml//lib/rexml/parsers/baseparser.rb#495 + # source://rexml//lib/rexml/parsers/baseparser.rb#502 def need_source_encoding_update?(xml_declaration_encoding); end - # source://rexml//lib/rexml/parsers/baseparser.rb#589 + # source://rexml//lib/rexml/parsers/baseparser.rb#613 def parse_attributes(prefixes, curr_ns); end - # source://rexml//lib/rexml/parsers/baseparser.rb#514 + # source://rexml//lib/rexml/parsers/baseparser.rb#521 def parse_id(base_error_message, accept_external_id:, accept_public_id:); end - # source://rexml//lib/rexml/parsers/baseparser.rb#542 + # source://rexml//lib/rexml/parsers/baseparser.rb#549 def parse_id_invalid_details(accept_external_id:, accept_public_id:); end - # source://rexml//lib/rexml/parsers/baseparser.rb#501 + # source://rexml//lib/rexml/parsers/baseparser.rb#508 def parse_name(base_error_message); end - # source://rexml//lib/rexml/parsers/baseparser.rb#580 - def process_instruction; end + # source://rexml//lib/rexml/parsers/baseparser.rb#587 + def process_instruction(start_position); end - # source://rexml//lib/rexml/parsers/baseparser.rb#190 + # source://rexml//lib/rexml/parsers/baseparser.rb#203 def pull_event; end end @@ -3989,6 +3993,33 @@ REXML::Parsers::BaseParser::EXTERNAL_ID_SYSTEM = T.let(T.unsafe(nil), Regexp) # source://rexml//lib/rexml/parsers/baseparser.rb#104 REXML::Parsers::BaseParser::PUBLIC_ID = T.let(T.unsafe(nil), Regexp) +# source://rexml//lib/rexml/parsers/baseparser.rb#115 +module REXML::Parsers::BaseParser::Private; end + +# source://rexml//lib/rexml/parsers/baseparser.rb#119 +REXML::Parsers::BaseParser::Private::ATTLISTDECL_END = T.let(T.unsafe(nil), Regexp) + +# source://rexml//lib/rexml/parsers/baseparser.rb#118 +REXML::Parsers::BaseParser::Private::CLOSE_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rexml//lib/rexml/parsers/baseparser.rb#123 +REXML::Parsers::BaseParser::Private::ENTITYDECL_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rexml//lib/rexml/parsers/baseparser.rb#121 +REXML::Parsers::BaseParser::Private::GEDECL_PATTERN = T.let(T.unsafe(nil), String) + +# source://rexml//lib/rexml/parsers/baseparser.rb#116 +REXML::Parsers::BaseParser::Private::INSTRUCTION_END = T.let(T.unsafe(nil), Regexp) + +# source://rexml//lib/rexml/parsers/baseparser.rb#120 +REXML::Parsers::BaseParser::Private::NAME_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rexml//lib/rexml/parsers/baseparser.rb#122 +REXML::Parsers::BaseParser::Private::PEDECL_PATTERN = T.let(T.unsafe(nil), String) + +# source://rexml//lib/rexml/parsers/baseparser.rb#117 +REXML::Parsers::BaseParser::Private::TAG_PATTERN = T.let(T.unsafe(nil), Regexp) + # source://rexml//lib/rexml/parsers/baseparser.rb#38 REXML::Parsers::BaseParser::QNAME = T.let(T.unsafe(nil), Regexp) @@ -4198,85 +4229,67 @@ class REXML::Source # @param encoding if non-null, sets the encoding of the source to this # @return [Source] a new instance of Source # - # source://rexml//lib/rexml/source.rb#43 + # source://rexml//lib/rexml/source.rb#41 def initialize(arg, encoding = T.unsafe(nil)); end # The current buffer (what we're going to read next) # - # source://rexml//lib/rexml/source.rb#34 + # source://rexml//lib/rexml/source.rb#53 def buffer; end - # source://rexml//lib/rexml/source.rb#87 - def consume(pattern); end + # source://rexml//lib/rexml/source.rb#57 + def buffer_encoding=(encoding); end # @return the current line in the source # - # source://rexml//lib/rexml/source.rb#117 + # source://rexml//lib/rexml/source.rb#100 def current_line; end # @return [Boolean] true if the Source is exhausted # - # source://rexml//lib/rexml/source.rb#108 + # source://rexml//lib/rexml/source.rb#95 def empty?; end # Returns the value of attribute encoding. # - # source://rexml//lib/rexml/source.rb#37 + # source://rexml//lib/rexml/source.rb#35 def encoding; end # Inherited from Encoding # Overridden to support optimized en/decoding # - # source://rexml//lib/rexml/source.rb#56 + # source://rexml//lib/rexml/source.rb#63 def encoding=(enc); end + # source://rexml//lib/rexml/source.rb#75 + def ensure_buffer; end + # The line number of the last consumed text # - # source://rexml//lib/rexml/source.rb#36 + # source://rexml//lib/rexml/source.rb#34 def line; end - # source://rexml//lib/rexml/source.rb#101 + # source://rexml//lib/rexml/source.rb#78 def match(pattern, cons = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#91 - def match_to(char, pattern); end + # source://rexml//lib/rexml/source.rb#86 + def position; end - # source://rexml//lib/rexml/source.rb#95 - def match_to_consume(char, pattern); end + # source://rexml//lib/rexml/source.rb#90 + def position=(pos); end - # source://rexml//lib/rexml/source.rb#112 - def position; end + # source://rexml//lib/rexml/source.rb#68 + def read(term = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#84 - def read; end - - # Scans the source for a given pattern. Note, that this is not your - # usual scan() method. For one thing, the pattern argument has some - # requirements; for another, the source can be consumed. You can easily - # confuse this method. Originally, the patterns were easier - # to construct and this method more robust, because this method - # generated search regexps on the fly; however, this was - # computationally expensive and slowed down the entire REXML package - # considerably, since this is by far the most commonly called method. - # /^\s*(#{your pattern, with no groups})(.*)/. The first group - # will be returned; the second group is used if the consume flag is - # set. - # everything after it in the Source. - # pattern is not found. - # - # @param pattern must be a Regexp, and must be in the form of - # @param consume if true, the pattern returned will be consumed, leaving - # @return the pattern, if found, or nil if the Source is empty or the - # - # source://rexml//lib/rexml/source.rb#77 - def scan(pattern, cons = T.unsafe(nil)); end + # source://rexml//lib/rexml/source.rb#71 + def read_until(term); end private - # source://rexml//lib/rexml/source.rb#125 + # source://rexml//lib/rexml/source.rb#109 def detect_encoding; end - # source://rexml//lib/rexml/source.rb#146 + # source://rexml//lib/rexml/source.rb#127 def encoding_updated; end end @@ -4607,24 +4620,24 @@ end # @private # -# source://rexml//lib/rexml/xpath_parser.rb#959 +# source://rexml//lib/rexml/xpath_parser.rb#963 class REXML::XPathNode # @return [XPathNode] a new instance of XPathNode # - # source://rexml//lib/rexml/xpath_parser.rb#961 + # source://rexml//lib/rexml/xpath_parser.rb#965 def initialize(node, context = T.unsafe(nil)); end # Returns the value of attribute context. # - # source://rexml//lib/rexml/xpath_parser.rb#960 + # source://rexml//lib/rexml/xpath_parser.rb#964 def context; end - # source://rexml//lib/rexml/xpath_parser.rb#970 + # source://rexml//lib/rexml/xpath_parser.rb#974 def position; end # Returns the value of attribute raw_node. # - # source://rexml//lib/rexml/xpath_parser.rb#960 + # source://rexml//lib/rexml/xpath_parser.rb#964 def raw_node; end end @@ -4673,25 +4686,25 @@ class REXML::XPathParser private - # source://rexml//lib/rexml/xpath_parser.rb#775 + # source://rexml//lib/rexml/xpath_parser.rb#779 def child(nodeset); end - # source://rexml//lib/rexml/xpath_parser.rb#916 + # source://rexml//lib/rexml/xpath_parser.rb#920 def compare(a, operator, b); end - # source://rexml//lib/rexml/xpath_parser.rb#678 + # source://rexml//lib/rexml/xpath_parser.rb#682 def descendant(nodeset, include_self); end - # source://rexml//lib/rexml/xpath_parser.rb#689 + # source://rexml//lib/rexml/xpath_parser.rb#693 def descendant_recursive(raw_node, new_nodeset, new_nodes, include_self); end - # source://rexml//lib/rexml/xpath_parser.rb#938 + # source://rexml//lib/rexml/xpath_parser.rb#942 def each_unnode(nodeset); end - # source://rexml//lib/rexml/xpath_parser.rb#637 + # source://rexml//lib/rexml/xpath_parser.rb#641 def enter(tag, *args); end - # source://rexml//lib/rexml/xpath_parser.rb#815 + # source://rexml//lib/rexml/xpath_parser.rb#819 def equality_relational_compare(set1, op, set2); end # source://rexml//lib/rexml/xpath_parser.rb#591 @@ -4706,10 +4719,10 @@ class REXML::XPathParser # source://rexml//lib/rexml/xpath_parser.rb#582 def filter_nodeset(nodeset); end - # source://rexml//lib/rexml/xpath_parser.rb#745 + # source://rexml//lib/rexml/xpath_parser.rb#749 def following(node); end - # source://rexml//lib/rexml/xpath_parser.rb#756 + # source://rexml//lib/rexml/xpath_parser.rb#760 def following_node_of(node); end # Returns a String namespace for a node, given a prefix @@ -4721,19 +4734,19 @@ class REXML::XPathParser # source://rexml//lib/rexml/xpath_parser.rb#163 def get_namespace(node, prefix); end - # source://rexml//lib/rexml/xpath_parser.rb#642 + # source://rexml//lib/rexml/xpath_parser.rb#646 def leave(tag, *args); end - # source://rexml//lib/rexml/xpath_parser.rb#763 + # source://rexml//lib/rexml/xpath_parser.rb#767 def next_sibling_node(node); end # source://rexml//lib/rexml/xpath_parser.rb#477 def node_test(path_stack, nodesets, any_type: T.unsafe(nil)); end - # source://rexml//lib/rexml/xpath_parser.rb#802 + # source://rexml//lib/rexml/xpath_parser.rb#806 def norm(b); end - # source://rexml//lib/rexml/xpath_parser.rb#890 + # source://rexml//lib/rexml/xpath_parser.rb#894 def normalize_compare_values(a, operator, b); end # Builds a nodeset of all of the preceding nodes of the supplied node, @@ -4741,10 +4754,10 @@ class REXML::XPathParser # preceding:: includes every element in the document that precedes this node, # except for ancestors # - # source://rexml//lib/rexml/xpath_parser.rb#708 + # source://rexml//lib/rexml/xpath_parser.rb#712 def preceding(node); end - # source://rexml//lib/rexml/xpath_parser.rb#730 + # source://rexml//lib/rexml/xpath_parser.rb#734 def preceding_node_of(node); end # Reorders an array of nodes so that they are in document order @@ -4756,7 +4769,7 @@ class REXML::XPathParser # I wouldn't have to do this. Maybe add a document IDX for each node? # Problems with mutable documents. Or, rewrite everything. # - # source://rexml//lib/rexml/xpath_parser.rb#655 + # source://rexml//lib/rexml/xpath_parser.rb#659 def sort(array_of_nodes, order); end # source://rexml//lib/rexml/xpath_parser.rb#441 @@ -4767,13 +4780,13 @@ class REXML::XPathParser # source://rexml//lib/rexml/xpath_parser.rb#154 def strict?; end - # source://rexml//lib/rexml/xpath_parser.rb#630 + # source://rexml//lib/rexml/xpath_parser.rb#634 def trace(*args); end - # source://rexml//lib/rexml/xpath_parser.rb#950 + # source://rexml//lib/rexml/xpath_parser.rb#954 def unnode(nodeset); end - # source://rexml//lib/rexml/xpath_parser.rb#877 + # source://rexml//lib/rexml/xpath_parser.rb#881 def value_type(value); end end diff --git a/sorbet/rbi/gems/rgeo-geojson@2.1.1.rbi b/sorbet/rbi/gems/rgeo-geojson@2.1.1.rbi index dd3261e0..f06fb36f 100644 --- a/sorbet/rbi/gems/rgeo-geojson@2.1.1.rbi +++ b/sorbet/rbi/gems/rgeo-geojson@2.1.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `rgeo-geojson` gem. # Please instead update this file by running `bin/tapioca gem rgeo-geojson`. + # source://rgeo-geojson//lib/rgeo/geo_json/version.rb#3 module RGeo; end diff --git a/sorbet/rbi/gems/rgeo@3.0.1.rbi b/sorbet/rbi/gems/rgeo@3.0.1.rbi index 413b4855..7198cf7a 100644 --- a/sorbet/rbi/gems/rgeo@3.0.1.rbi +++ b/sorbet/rbi/gems/rgeo@3.0.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `rgeo` gem. # Please instead update this file by running `bin/tapioca gem rgeo`. + # ----------------------------------------------------------------------------- # # Well-known text generator for RGeo diff --git a/sorbet/rbi/gems/rouge@4.2.1.rbi b/sorbet/rbi/gems/rouge@4.2.1.rbi index d004e4eb..a0eba236 100644 --- a/sorbet/rbi/gems/rouge@4.2.1.rbi +++ b/sorbet/rbi/gems/rouge@4.2.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `rouge` gem. # Please instead update this file by running `bin/tapioca gem rouge`. + # The containing module for Rouge # # source://rouge//lib/rouge.rb#8 diff --git a/sorbet/rbi/gems/rspec-core@3.13.0.rbi b/sorbet/rbi/gems/rspec-core@3.13.0.rbi index d8552f16..bbed9b28 100644 --- a/sorbet/rbi/gems/rspec-core@3.13.0.rbi +++ b/sorbet/rbi/gems/rspec-core@3.13.0.rbi @@ -4,5 +4,6 @@ # This is an autogenerated file for types exported from the `rspec-core` gem. # Please instead update this file by running `bin/tapioca gem rspec-core`. + # THIS IS AN EMPTY RBI FILE. # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/rspec-expectations@3.13.0.rbi b/sorbet/rbi/gems/rspec-expectations@3.13.0.rbi index cc672f52..f3dd6e51 100644 --- a/sorbet/rbi/gems/rspec-expectations@3.13.0.rbi +++ b/sorbet/rbi/gems/rspec-expectations@3.13.0.rbi @@ -4,5 +4,6 @@ # This is an autogenerated file for types exported from the `rspec-expectations` gem. # Please instead update this file by running `bin/tapioca gem rspec-expectations`. + # THIS IS AN EMPTY RBI FILE. # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/rspec-mocks@3.13.0.rbi b/sorbet/rbi/gems/rspec-mocks@3.13.1.rbi similarity index 99% rename from sorbet/rbi/gems/rspec-mocks@3.13.0.rbi rename to sorbet/rbi/gems/rspec-mocks@3.13.1.rbi index d0f00d87..33aa62e9 100644 --- a/sorbet/rbi/gems/rspec-mocks@3.13.0.rbi +++ b/sorbet/rbi/gems/rspec-mocks@3.13.1.rbi @@ -4,5 +4,6 @@ # This is an autogenerated file for types exported from the `rspec-mocks` gem. # Please instead update this file by running `bin/tapioca gem rspec-mocks`. + # THIS IS AN EMPTY RBI FILE. # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/rspec-rails@6.1.2.rbi b/sorbet/rbi/gems/rspec-rails@6.1.2.rbi index a0fb23a5..5ee7f39d 100644 --- a/sorbet/rbi/gems/rspec-rails@6.1.2.rbi +++ b/sorbet/rbi/gems/rspec-rails@6.1.2.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `rspec-rails` gem. # Please instead update this file by running `bin/tapioca gem rspec-rails`. + # Namespace for all core RSpec projects. # # source://rspec-rails//lib/rspec/rails/feature_check.rb#1 diff --git a/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi b/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi index 714fca3c..fd33963b 100644 --- a/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi +++ b/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `rspec-sorbet` gem. # Please instead update this file by running `bin/tapioca gem rspec-sorbet`. + # source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#6 module RSpec; end @@ -22,7 +23,7 @@ module RSpec::Sorbet::Doubles # @return [void] # - # source://sorbet-runtime/0.5.11351/lib/types/private/methods/_methods.rb#257 + # source://sorbet-runtime/0.5.11386/lib/types/private/methods/_methods.rb#257 def allow_instance_doubles!(*args, **_arg1, &blk); end # source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#36 diff --git a/sorbet/rbi/gems/rspec-support@3.13.1.rbi b/sorbet/rbi/gems/rspec-support@3.13.1.rbi index 37714371..f5f21170 100644 --- a/sorbet/rbi/gems/rspec-support@3.13.1.rbi +++ b/sorbet/rbi/gems/rspec-support@3.13.1.rbi @@ -4,5 +4,6 @@ # This is an autogenerated file for types exported from the `rspec-support` gem. # Please instead update this file by running `bin/tapioca gem rspec-support`. + # THIS IS AN EMPTY RBI FILE. # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/rubocop-ast@1.31.2.rbi b/sorbet/rbi/gems/rubocop-ast@1.31.3.rbi similarity index 99% rename from sorbet/rbi/gems/rubocop-ast@1.31.2.rbi rename to sorbet/rbi/gems/rubocop-ast@1.31.3.rbi index 6f4816d8..3d978e25 100644 --- a/sorbet/rbi/gems/rubocop-ast@1.31.2.rbi +++ b/sorbet/rbi/gems/rubocop-ast@1.31.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `rubocop-ast` gem. # Please instead update this file by running `bin/tapioca gem rubocop-ast`. + class Parser::Source::Range include ::RuboCop::AST::Ext::Range end @@ -1096,9 +1097,6 @@ module RuboCop::AST::CollectionNode # source://forwardable/1.3.3/forwardable.rb#231 def to_cbor(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 - def to_csv(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 def to_default_s(*args, **_arg1, &block); end diff --git a/sorbet/rbi/gems/rubocop@1.63.3.rbi b/sorbet/rbi/gems/rubocop@1.63.5.rbi similarity index 99% rename from sorbet/rbi/gems/rubocop@1.63.3.rbi rename to sorbet/rbi/gems/rubocop@1.63.5.rbi index c5f32636..f129d90e 100644 --- a/sorbet/rbi/gems/rubocop@1.63.3.rbi +++ b/sorbet/rbi/gems/rubocop@1.63.5.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `rubocop` gem. # Please instead update this file by running `bin/tapioca gem rubocop`. + class Parser::Source::Comment include ::RuboCop::Ext::Comment end @@ -97,44 +98,44 @@ class RuboCop::CLI private - # source://rubocop//lib/rubocop/cli.rb#152 + # source://rubocop//lib/rubocop/cli.rb#156 def act_on_options; end - # source://rubocop//lib/rubocop/cli.rb#194 + # source://rubocop//lib/rubocop/cli.rb#198 def apply_default_formatter; end - # source://rubocop//lib/rubocop/cli.rb#121 + # source://rubocop//lib/rubocop/cli.rb#125 def execute_runners; end - # source://rubocop//lib/rubocop/cli.rb#178 + # source://rubocop//lib/rubocop/cli.rb#182 def handle_editor_mode; end # @raise [Finished] # - # source://rubocop//lib/rubocop/cli.rb#183 + # source://rubocop//lib/rubocop/cli.rb#187 def handle_exiting_options; end - # source://rubocop//lib/rubocop/cli.rb#140 + # source://rubocop//lib/rubocop/cli.rb#144 def parallel_by_default!; end - # source://rubocop//lib/rubocop/cli.rb#76 + # source://rubocop//lib/rubocop/cli.rb#80 def profile_if_needed; end - # source://rubocop//lib/rubocop/cli.rb#109 + # source://rubocop//lib/rubocop/cli.rb#113 def require_gem(name); end - # source://rubocop//lib/rubocop/cli.rb#117 + # source://rubocop//lib/rubocop/cli.rb#121 def run_command(name); end - # source://rubocop//lib/rubocop/cli.rb#170 + # source://rubocop//lib/rubocop/cli.rb#174 def set_options_to_config_loader; end - # source://rubocop//lib/rubocop/cli.rb#129 + # source://rubocop//lib/rubocop/cli.rb#133 def suggest_extensions; end # @raise [OptionArgumentError] # - # source://rubocop//lib/rubocop/cli.rb#133 + # source://rubocop//lib/rubocop/cli.rb#137 def validate_options_vs_config; end end @@ -5092,7 +5093,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # Legacy # - # source://parser/3.3.0.5/lib/parser/source/tree_rewriter.rb#252 + # source://parser/3.3.1.0/lib/parser/source/tree_rewriter.rb#252 def rewrite; end # Swaps sources at the given ranges. @@ -10711,43 +10712,43 @@ class RuboCop::Cop::Layout::FirstArrayElementIndentation < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#94 def on_array(node); end - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#98 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#100 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#98 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#100 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#189 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#191 def array_alignment_config; end - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#109 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#111 def autocorrect(corrector, node); end # Returns the description of what the correct indentation is based on. # - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#147 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#149 def base_description(indent_base_type); end - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#113 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#115 def brace_alignment_style; end - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#117 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#119 def check(array_node, left_parenthesis); end - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#131 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#133 def check_right_bracket(right_bracket, first_elem, left_bracket, left_parenthesis); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#183 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#185 def enforce_first_argument_with_fixed_indentation?; end - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#160 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#162 def message(base_description); end - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#168 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#170 def message_for_right_bracket(indent_base_type); end end @@ -43137,16 +43138,16 @@ class RuboCop::Cop::Style::NumericPredicate < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#166 + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#174 def comparison(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#171 + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#179 def inverted_comparison(param0 = T.unsafe(nil)); end # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#90 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#161 + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#169 def predicate(param0 = T.unsafe(nil)); end private @@ -43159,23 +43160,28 @@ class RuboCop::Cop::Style::NumericPredicate < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#111 def check(node); end - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#152 + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#154 def invert; end - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#132 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#162 + def negated?(node); end + + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#134 def parenthesized_source(node); end # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#124 - def replacement(numeric, operation); end + def replacement(node, numeric, operation); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#144 + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#146 def replacement_supported?(operator); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#140 + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#142 def require_parentheses?(node); end end @@ -45891,12 +45897,12 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#180 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#182 def argument_is_method?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#144 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#146 def argument_newline?(node); end # @return [Boolean] @@ -45904,7 +45910,7 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#101 def ends_with_backslash_without_comment?(source_line); end - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#160 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#162 def find_node_for_line(line); end # @return [Boolean] @@ -45924,7 +45930,7 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#187 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#189 def method_call_with_arguments?(node); end # A method call without parentheses such as the following cannot remove `\`: @@ -45949,12 +45955,12 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#166 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#168 def same_line?(node, line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#191 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#193 def start_with_arithmetic_operator?(source_line); end # @return [Boolean] @@ -48916,13 +48922,30 @@ RuboCop::Cop::Style::SoleNestedConditional::MSG = T.let(T.unsafe(nil), String) # will add a require statement to the top of the file if # enabled by RequireEnglish config. # -# Like `use_perl_names` but allows builtin global vars. -# +# @example EnforcedStyle: use_english_names (default) # # good +# require 'English' # or this could be in another file. +# # puts $LOAD_PATH # puts $LOADED_FEATURES # puts $PROGRAM_NAME -# puts ARGV +# puts $ERROR_INFO +# puts $ERROR_POSITION +# puts $FIELD_SEPARATOR # or $FS +# puts $OUTPUT_FIELD_SEPARATOR # or $OFS +# puts $INPUT_RECORD_SEPARATOR # or $RS +# puts $OUTPUT_RECORD_SEPARATOR # or $ORS +# puts $INPUT_LINE_NUMBER # or $NR +# puts $LAST_READ_LINE +# puts $DEFAULT_OUTPUT +# puts $DEFAULT_INPUT +# puts $PROCESS_ID # or $PID +# puts $CHILD_STATUS +# puts $LAST_MATCH_INFO +# puts $IGNORECASE +# puts $ARGV # or ARGV +# @example EnforcedStyle: use_perl_names +# # good # puts $: # puts $" # puts $0 @@ -48941,31 +48964,14 @@ RuboCop::Cop::Style::SoleNestedConditional::MSG = T.let(T.unsafe(nil), String) # puts $~ # puts $= # puts $* +# @example EnforcedStyle: use_builtin_english_names # -# @example EnforcedStyle: use_english_names (default) # # good -# require 'English' # or this could be in another file. -# +# # Like `use_perl_names` but allows builtin global vars. # puts $LOAD_PATH # puts $LOADED_FEATURES # puts $PROGRAM_NAME -# puts $ERROR_INFO -# puts $ERROR_POSITION -# puts $FIELD_SEPARATOR # or $FS -# puts $OUTPUT_FIELD_SEPARATOR # or $OFS -# puts $INPUT_RECORD_SEPARATOR # or $RS -# puts $OUTPUT_RECORD_SEPARATOR # or $ORS -# puts $INPUT_LINE_NUMBER # or $NR -# puts $LAST_READ_LINE -# puts $DEFAULT_OUTPUT -# puts $DEFAULT_INPUT -# puts $PROCESS_ID # or $PID -# puts $CHILD_STATUS -# puts $LAST_MATCH_INFO -# puts $IGNORECASE -# puts $ARGV # or ARGV -# @example EnforcedStyle: use_perl_names -# # good +# puts ARGV # puts $: # puts $" # puts $0 @@ -48984,90 +48990,89 @@ RuboCop::Cop::Style::SoleNestedConditional::MSG = T.let(T.unsafe(nil), String) # puts $~ # puts $= # puts $* -# @example EnforcedStyle: use_builtin_english_names # -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#87 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#86 class RuboCop::Cop::Style::SpecialGlobalVars < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RequireLibrary extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#176 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#175 def autocorrect(corrector, node, global_var); end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#168 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#167 def message(global_var); end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#152 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#151 def on_gvar(node); end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#147 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#146 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#247 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#246 def add_require_english?; end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#241 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#240 def english_name_replacement(preferred_name, node); end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#190 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#189 def format_english_message(global_var); end # For now, we assume that lists are 2 items or less. Easy grammar! # - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#212 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#211 def format_list(items); end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#198 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#197 def format_message(english, regular, global); end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#235 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#234 def matching_styles(global); end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#227 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#226 def preferred_names(global); end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#216 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#215 def replacement(node, global_var); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#251 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#250 def should_require_english?(global_var); end end -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#128 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#127 RuboCop::Cop::Style::SpecialGlobalVars::BUILTIN_VARS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#100 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#99 RuboCop::Cop::Style::SpecialGlobalVars::ENGLISH_VARS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#145 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#144 RuboCop::Cop::Style::SpecialGlobalVars::LIBRARY_NAME = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#93 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#92 RuboCop::Cop::Style::SpecialGlobalVars::MSG_BOTH = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#96 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#95 RuboCop::Cop::Style::SpecialGlobalVars::MSG_ENGLISH = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#98 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#97 RuboCop::Cop::Style::SpecialGlobalVars::MSG_REGULAR = T.let(T.unsafe(nil), String) # Anything *not* in this set is provided by the English library. # -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#122 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#121 RuboCop::Cop::Style::SpecialGlobalVars::NON_ENGLISH_VARS = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#124 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#123 RuboCop::Cop::Style::SpecialGlobalVars::PERL_VARS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#139 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#138 RuboCop::Cop::Style::SpecialGlobalVars::STYLE_VARS_MAP = T.let(T.unsafe(nil), Hash) # Check for parentheses around stabby lambda arguments. @@ -55682,47 +55687,47 @@ class RuboCop::LSP::Routes # @api private # - # source://rubocop//lib/rubocop/lsp/routes.rb#170 + # source://rubocop//lib/rubocop/lsp/routes.rb#169 def handle_method_missing(request); end - # source://rubocop//lib/rubocop/lsp/routes.rb#67 + # source://rubocop//lib/rubocop/lsp/routes.rb#68 def handle_shutdown(request); end # @api private # - # source://rubocop//lib/rubocop/lsp/routes.rb#159 + # source://rubocop//lib/rubocop/lsp/routes.rb#158 def handle_unsupported_method(request, method = T.unsafe(nil)); end private # @api private # - # source://rubocop//lib/rubocop/lsp/routes.rb#208 + # source://rubocop//lib/rubocop/lsp/routes.rb#207 def diagnostic(file_uri, text); end # @api private # - # source://rubocop//lib/rubocop/lsp/routes.rb#178 + # source://rubocop//lib/rubocop/lsp/routes.rb#177 def extract_initialization_options_from(request); end # @api private # - # source://rubocop//lib/rubocop/lsp/routes.rb#188 + # source://rubocop//lib/rubocop/lsp/routes.rb#187 def format_file(file_uri, command: T.unsafe(nil)); end # @api private # - # source://rubocop//lib/rubocop/lsp/routes.rb#222 + # source://rubocop//lib/rubocop/lsp/routes.rb#221 def remove_file_protocol_from(uri); end # @api private # - # source://rubocop//lib/rubocop/lsp/routes.rb#226 + # source://rubocop//lib/rubocop/lsp/routes.rb#225 def to_diagnostic(offense); end # @api private # - # source://rubocop//lib/rubocop/lsp/routes.rb#238 + # source://rubocop//lib/rubocop/lsp/routes.rb#237 def to_range(location); end class << self @@ -55869,13 +55874,13 @@ RuboCop::LSP::Severity::SEVERITIES = T.let(T.unsafe(nil), Hash) # # @api private # -# source://rubocop//lib/rubocop/lockfile.rb#7 +# source://rubocop//lib/rubocop/lockfile.rb#15 class RuboCop::Lockfile # @api private # @param lockfile_path [String, Pathname, nil] # @return [Lockfile] a new instance of Lockfile # - # source://rubocop//lib/rubocop/lockfile.rb#9 + # source://rubocop//lib/rubocop/lockfile.rb#17 def initialize(lockfile_path = T.unsafe(nil)); end # Gems that the bundle directly depends on. @@ -55883,7 +55888,7 @@ class RuboCop::Lockfile # @api private # @return [Array, nil] # - # source://rubocop//lib/rubocop/lockfile.rb#17 + # source://rubocop//lib/rubocop/lockfile.rb#29 def dependencies; end # Returns the locked versions of gems from this lockfile. @@ -55892,7 +55897,7 @@ class RuboCop::Lockfile # @param include_transitive_dependencies: [Boolean] When false, only direct dependencies # are returned, i.e. those listed explicitly in the `Gemfile`. # - # source://rubocop//lib/rubocop/lockfile.rb#37 + # source://rubocop//lib/rubocop/lockfile.rb#49 def gem_versions(include_transitive_dependencies: T.unsafe(nil)); end # All activated gems, including transitive dependencies. @@ -55900,7 +55905,7 @@ class RuboCop::Lockfile # @api private # @return [Array, nil] # - # source://rubocop//lib/rubocop/lockfile.rb#25 + # source://rubocop//lib/rubocop/lockfile.rb#37 def gems; end # Whether this lockfile includes the named gem, directly or indirectly. @@ -55909,7 +55914,7 @@ class RuboCop::Lockfile # @param name [String] # @return [Boolean] # - # source://rubocop//lib/rubocop/lockfile.rb#53 + # source://rubocop//lib/rubocop/lockfile.rb#65 def includes_gem?(name); end private @@ -55917,13 +55922,13 @@ class RuboCop::Lockfile # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/lockfile.rb#73 + # source://rubocop//lib/rubocop/lockfile.rb#85 def bundler_lock_parser_defined?; end # @api private # @return [Bundler::LockfileParser, nil] # - # source://rubocop//lib/rubocop/lockfile.rb#60 + # source://rubocop//lib/rubocop/lockfile.rb#72 def parser; end end @@ -56947,145 +56952,145 @@ RuboCop::ResultCache::NON_CHANGING = T.let(T.unsafe(nil), Array) class RuboCop::Runner # @return [Runner] a new instance of Runner # - # source://rubocop//lib/rubocop/runner.rb#62 + # source://rubocop//lib/rubocop/runner.rb#63 def initialize(options, config_store); end # Sets the attribute aborting # # @param value the value to set the attribute aborting to. # - # source://rubocop//lib/rubocop/runner.rb#60 + # source://rubocop//lib/rubocop/runner.rb#61 def aborting=(_arg0); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#86 + # source://rubocop//lib/rubocop/runner.rb#87 def aborting?; end # Returns the value of attribute errors. # - # source://rubocop//lib/rubocop/runner.rb#59 + # source://rubocop//lib/rubocop/runner.rb#60 def errors; end - # source://rubocop//lib/rubocop/runner.rb#70 + # source://rubocop//lib/rubocop/runner.rb#71 def run(paths); end # Returns the value of attribute warnings. # - # source://rubocop//lib/rubocop/runner.rb#59 + # source://rubocop//lib/rubocop/runner.rb#60 def warnings; end private - # source://rubocop//lib/rubocop/runner.rb#199 + # source://rubocop//lib/rubocop/runner.rb#200 def add_redundant_disables(file, offenses, source); end - # source://rubocop//lib/rubocop/runner.rb#173 + # source://rubocop//lib/rubocop/runner.rb#174 def cached_result(file, team); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#253 + # source://rubocop//lib/rubocop/runner.rb#254 def cached_run?; end # Check whether a run created source identical to a previous run, which # means that we definitely have an infinite loop. # - # source://rubocop//lib/rubocop/runner.rb#331 + # source://rubocop//lib/rubocop/runner.rb#332 def check_for_infinite_loop(processed_source, offenses_by_iteration); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#225 + # source://rubocop//lib/rubocop/runner.rb#226 def check_for_redundant_disables?(source); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#426 + # source://rubocop//lib/rubocop/runner.rb#427 def considered_failure?(offense); end - # source://rubocop//lib/rubocop/runner.rb#459 + # source://rubocop//lib/rubocop/runner.rb#460 def default_config(cop_name); end - # source://rubocop//lib/rubocop/runner.rb#275 + # source://rubocop//lib/rubocop/runner.rb#276 def do_inspection_loop(file); end - # source://rubocop//lib/rubocop/runner.rb#136 + # source://rubocop//lib/rubocop/runner.rb#137 def each_inspected_file(files); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#239 + # source://rubocop//lib/rubocop/runner.rb#240 def except_redundant_cop_disable_directive?; end - # source://rubocop//lib/rubocop/runner.rb#360 + # source://rubocop//lib/rubocop/runner.rb#361 def extract_ruby_sources(processed_source); end - # source://rubocop//lib/rubocop/runner.rb#248 + # source://rubocop//lib/rubocop/runner.rb#249 def file_finished(file, offenses); end - # source://rubocop//lib/rubocop/runner.rb#177 + # source://rubocop//lib/rubocop/runner.rb#178 def file_offense_cache(file); end - # source://rubocop//lib/rubocop/runner.rb#165 + # source://rubocop//lib/rubocop/runner.rb#166 def file_offenses(file); end - # source://rubocop//lib/rubocop/runner.rb#243 + # source://rubocop//lib/rubocop/runner.rb#244 def file_started(file); end - # source://rubocop//lib/rubocop/runner.rb#406 + # source://rubocop//lib/rubocop/runner.rb#407 def filter_cop_classes(cop_classes, config); end - # source://rubocop//lib/rubocop/runner.rb#107 + # source://rubocop//lib/rubocop/runner.rb#108 def find_target_files(paths); end - # source://rubocop//lib/rubocop/runner.rb#417 + # source://rubocop//lib/rubocop/runner.rb#418 def formatter_set; end - # source://rubocop//lib/rubocop/runner.rb#474 + # source://rubocop//lib/rubocop/runner.rb#475 def get_processed_source(file); end - # source://rubocop//lib/rubocop/runner.rb#345 + # source://rubocop//lib/rubocop/runner.rb#346 def inspect_file(processed_source, team = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/runner.rb#118 + # source://rubocop//lib/rubocop/runner.rb#119 def inspect_files(files); end - # source://rubocop//lib/rubocop/runner.rb#306 + # source://rubocop//lib/rubocop/runner.rb#307 def iterate_until_no_changes(source, offenses_by_iteration); end - # source://rubocop//lib/rubocop/runner.rb#151 + # source://rubocop//lib/rubocop/runner.rb#152 def list_files(paths); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#455 + # source://rubocop//lib/rubocop/runner.rb#456 def mark_as_safe_by_config?(config); end - # source://rubocop//lib/rubocop/runner.rb#463 + # source://rubocop//lib/rubocop/runner.rb#464 def minimum_severity_to_fail; end - # source://rubocop//lib/rubocop/runner.rb#367 + # source://rubocop//lib/rubocop/runner.rb#368 def mobilize_team(processed_source); end - # source://rubocop//lib/rubocop/runner.rb#372 + # source://rubocop//lib/rubocop/runner.rb#373 def mobilized_cop_classes(config); end - # source://rubocop//lib/rubocop/runner.rb#435 + # source://rubocop//lib/rubocop/runner.rb#436 def offenses_to_report(offenses); end - # source://rubocop//lib/rubocop/runner.rb#155 + # source://rubocop//lib/rubocop/runner.rb#156 def process_file(file); end - # source://rubocop//lib/rubocop/runner.rb#396 + # source://rubocop//lib/rubocop/runner.rb#397 def qualify_option_cop_names; end # @yield [cop] # - # source://rubocop//lib/rubocop/runner.rb#231 + # source://rubocop//lib/rubocop/runner.rb#232 def redundant_cop_disable_directive(file); end - # source://rubocop//lib/rubocop/runner.rb#265 + # source://rubocop//lib/rubocop/runner.rb#266 def save_in_cache(cache, offenses); end # A Cop::Team instance is stateful and may change when inspecting. @@ -57093,41 +57098,41 @@ class RuboCop::Runner # otherwise dormant team that can be used for config- and option- # level caching in ResultCache. # - # source://rubocop//lib/rubocop/runner.rb#502 + # source://rubocop//lib/rubocop/runner.rb#503 def standby_team(config); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#413 + # source://rubocop//lib/rubocop/runner.rb#414 def style_guide_cops_only?(config); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#447 + # source://rubocop//lib/rubocop/runner.rb#448 def supports_safe_autocorrect?(offense); end # @yield [team] # - # source://rubocop//lib/rubocop/runner.rb#214 + # source://rubocop//lib/rubocop/runner.rb#215 def team_for_redundant_disables(file, offenses, source); end # Warms up the RuboCop cache by forking a suitable number of RuboCop # instances that each inspects its allotted group of files. # - # source://rubocop//lib/rubocop/runner.rb#94 + # source://rubocop//lib/rubocop/runner.rb#95 def warm_cache(target_files); end class << self # @return [Array<#call>] # - # source://rubocop//lib/rubocop/runner.rb#32 + # source://rubocop//lib/rubocop/runner.rb#33 def ruby_extractors; end private # @return [#call] # - # source://rubocop//lib/rubocop/runner.rb#39 + # source://rubocop//lib/rubocop/runner.rb#40 def default_ruby_extractor; end end end @@ -57150,12 +57155,12 @@ end # @api private # -# source://rubocop//lib/rubocop/runner.rb#52 +# source://rubocop//lib/rubocop/runner.rb#53 RuboCop::Runner::MAX_ITERATIONS = T.let(T.unsafe(nil), Integer) # @api private # -# source://rubocop//lib/rubocop/runner.rb#55 +# source://rubocop//lib/rubocop/runner.rb#56 RuboCop::Runner::REDUNDANT_COP_DISABLE_DIRECTIVE_RULES = T.let(T.unsafe(nil), Array) # Take a string with embedded escapes, and convert the escapes as the Ruby diff --git a/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi b/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi index fe14ff97..f832ab1c 100644 --- a/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +++ b/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `ruby-progressbar` gem. # Please instead update this file by running `bin/tapioca gem ruby-progressbar`. + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#4 class ProgressBar class << self diff --git a/sorbet/rbi/gems/rubyzip@2.3.2.rbi b/sorbet/rbi/gems/rubyzip@2.3.2.rbi index 2ecdeec9..47724770 100644 --- a/sorbet/rbi/gems/rubyzip@2.3.2.rbi +++ b/sorbet/rbi/gems/rubyzip@2.3.2.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `rubyzip` gem. # Please instead update this file by running `bin/tapioca gem rubyzip`. + # source://rubyzip//lib/zip/constants.rb#1 module Zip extend ::Zip diff --git a/sorbet/rbi/gems/safety_net_attestation@0.4.0.rbi b/sorbet/rbi/gems/safety_net_attestation@0.4.0.rbi index 68613c90..477f712a 100644 --- a/sorbet/rbi/gems/safety_net_attestation@0.4.0.rbi +++ b/sorbet/rbi/gems/safety_net_attestation@0.4.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `safety_net_attestation` gem. # Please instead update this file by running `bin/tapioca gem safety_net_attestation`. + # source://safety_net_attestation//lib/safety_net_attestation.rb#3 module SafetyNetAttestation; end diff --git a/sorbet/rbi/gems/sass-embedded@1.75.0.rbi b/sorbet/rbi/gems/sass-embedded@1.75.0.rbi deleted file mode 100644 index ccc09214..00000000 --- a/sorbet/rbi/gems/sass-embedded@1.75.0.rbi +++ /dev/null @@ -1,2175 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `sass-embedded` gem. -# Please instead update this file by running `bin/tapioca gem sass-embedded`. - -module Process - extend ::RedisClient::PIDCache::CoreExt - extend ::ConnectionPool::ForkTracker - extend ::ActiveSupport::ForkTracker::ModernCoreExt - extend ::Sass::ForkTracker::CoreExt -end - -# The Sass module. -# -# This communicates with Embedded Dart Sass using the Embedded Sass protocol. -# -# @example -# Sass.compile('style.scss') -# @example -# Sass.compile_string('h1 { font-size: 40px; }') -# -# source://sass-embedded//lib/sass/canonicalize_context.rb#3 -module Sass - class << self - # Compiles the Sass file at +path+ to CSS. - # - # @overload compile - # @param path [String] - # @param load_paths [Array] Paths in which to look for stylesheets loaded by rules like - # {@use}[https://sass-lang.com/documentation/at-rules/use/] and {@import}[https://sass-lang.com/documentation/at-rules/import/]. - # @param charset [Boolean] By default, if the CSS document contains non-ASCII characters, Sass adds a +@charset+ - # declaration (in expanded output mode) or a byte-order mark (in compressed mode) to indicate its encoding to - # browsers or other consumers. If +charset+ is +false+, these annotations are omitted. - # @param source_map [Boolean] Whether or not Sass should generate a source map. - # @param source_map_include_sources [Boolean] Whether Sass should include the sources in the generated source map. - # @param style [Symbol] The OutputStyle of the compiled CSS. - # @param functions [Hash] Additional built-in Sass functions that are available in all stylesheets. - # @param importers [Array] Custom importers that control how Sass resolves loads from rules like - # {@use}[https://sass-lang.com/documentation/at-rules/use/] and {@import}[https://sass-lang.com/documentation/at-rules/import/]. - # @param alert_ascii [Boolean] If this is +true+, the compiler will exclusively use ASCII characters in its error - # and warning messages. Otherwise, it may use non-ASCII Unicode characters as well. - # @param fatal_deprecations [Array] A set of deprecations to treat as fatal. - # @param future_deprecations [Array] A set of future deprecations to opt into early. - # @param logger [Object] An object to use to handle warnings and/or debug messages from Sass. - # @param quiet_deps [Boolean] If this option is set to +true+, Sass won’t print warnings that are caused by - # dependencies. A “dependency” is defined as any file that’s loaded through +load_paths+ or +importer+. - # Stylesheets that are imported relative to the entrypoint are not considered dependencies. - # @param silence_deprecations [Array] A set of active deprecations to ignore. - # @param verbose [Boolean] By default, Dart Sass will print only five instances of the same deprecation warning per - # compilation to avoid deluging users in console noise. If you set verbose to +true+, it will instead print every - # deprecation warning it encounters. - # @param alert_color [Boolean] If this is +true+, the compiler will use ANSI color escape codes in its error and - # warning messages. If it's +false+, it won't use these. If it's +nil+, the compiler will determine whether or - # not to use colors depending on whether the user is using an interactive terminal. - # @raise [ArgumentError, CompileError] - # @return [CompileResult] - # @see Compiler#compile - # - # source://sass-embedded//lib/sass/embedded.rb#26 - def compile(*_arg0, **_arg1, &_arg2); end - - # Compiles a stylesheet whose contents is +source+ to CSS. - # - # @overload compile_string - # @param source [String] - # @param importer [Object] The importer to use to handle loads that are relative to the entrypoint stylesheet. - # @param load_paths [Array] Paths in which to look for stylesheets loaded by rules like - # {@use}[https://sass-lang.com/documentation/at-rules/use/] and {@import}[https://sass-lang.com/documentation/at-rules/import/]. - # @param syntax [Symbol] The Syntax to use to parse the entrypoint stylesheet. - # @param url [String] The canonical URL of the entrypoint stylesheet. If this is passed along with +importer+, it's - # used to resolve relative loads in the entrypoint stylesheet. - # @param charset [Boolean] By default, if the CSS document contains non-ASCII characters, Sass adds a +@charset+ - # declaration (in expanded output mode) or a byte-order mark (in compressed mode) to indicate its encoding to - # browsers or other consumers. If +charset+ is +false+, these annotations are omitted. - # @param source_map [Boolean] Whether or not Sass should generate a source map. - # @param source_map_include_sources [Boolean] Whether Sass should include the sources in the generated source map. - # @param style [Symbol] The OutputStyle of the compiled CSS. - # @param functions [Hash] Additional built-in Sass functions that are available in all stylesheets. - # @param alert_ascii [Boolean] If this is +true+, the compiler will exclusively use ASCII characters in its error - # and warning messages. Otherwise, it may use non-ASCII Unicode characters as well. - # @param alert_color [Boolean] If this is +true+, the compiler will use ANSI color escape codes in its error and - # warning messages. If it's +false+, it won't use these. If it's +nil+, the compiler will determine whether or - # not to use colors depending on whether the user is using an interactive terminal. - # @param fatal_deprecations [Array] A set of deprecations to treat as fatal. - # @param future_deprecations [Array] A set of future deprecations to opt into early. - # @param logger [Object] An object to use to handle warnings and/or debug messages from Sass. - # @param quiet_deps [Boolean] If this option is set to +true+, Sass won’t print warnings that are caused by - # dependencies. A “dependency” is defined as any file that’s loaded through +load_paths+ or +importer+. - # Stylesheets that are imported relative to the entrypoint are not considered dependencies. - # @param silence_deprecations [Array] A set of active deprecations to ignore. - # @param verbose [Boolean] By default, Dart Sass will print only five instances of the same deprecation warning per - # compilation to avoid deluging users in console noise. If you set verbose to +true+, it will instead print every - # deprecation warning it encounters. - # @param importers [Array] Custom importers that control how Sass resolves loads from rules like - # {@use}[https://sass-lang.com/documentation/at-rules/use/] and {@import}[https://sass-lang.com/documentation/at-rules/import/]. - # @raise [ArgumentError, CompileError] - # @return [CompileResult] - # @see Compiler#compile_string - # - # source://sass-embedded//lib/sass/embedded.rb#36 - def compile_string(*_arg0, **_arg1, &_arg2); end - - # @return [String] Information about the Sass implementation. - # @see Compiler#info - # - # source://sass-embedded//lib/sass/embedded.rb#44 - def info; end - - private - - # source://sass-embedded//lib/sass/embedded.rb#50 - def compiler; end - end -end - -# The type of values that can be arguments to a SassCalculation. -# -# @see https://sass-lang.com/documentation/js-api/types/calculationvalue/ -# -# source://sass-embedded//lib/sass/calculation_value.rb#7 -module Sass::CalculationValue - private - - # source://sass-embedded//lib/sass/calculation_value.rb#10 - def assert_calculation_value(value, name = T.unsafe(nil)); end -end - -# A binary operation that can appear in a SassCalculation. -# -# @see https://sass-lang.com/documentation/js-api/classes/calculationoperation/ -# -# source://sass-embedded//lib/sass/calculation_value/calculation_operation.rb#8 -class Sass::CalculationValue::CalculationOperation - include ::Sass::CalculationValue - - # @param operator [::String] - # @param left [CalculationValue] - # @param right [CalculationValue] - # @raise [Sass::ScriptError] - # @return [CalculationOperation] a new instance of CalculationOperation - # - # source://sass-embedded//lib/sass/calculation_value/calculation_operation.rb#18 - def initialize(operator, left, right); end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/calculation_value/calculation_operation.rb#36 - def ==(other); end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/calculation_value/calculation_operation.rb#44 - def hash; end - - # @return [CalculationValue] - # - # source://sass-embedded//lib/sass/calculation_value/calculation_operation.rb#30 - def left; end - - # @return [::String] - # - # source://sass-embedded//lib/sass/calculation_value/calculation_operation.rb#27 - def operator; end - - # @return [CalculationValue] - # - # source://sass-embedded//lib/sass/calculation_value/calculation_operation.rb#33 - def right; end -end - -# source://sass-embedded//lib/sass/calculation_value/calculation_operation.rb#11 -Sass::CalculationValue::CalculationOperation::OPERATORS = T.let(T.unsafe(nil), Array) - -# Contextual information passed to `canonicalize` and `find_file_url`. -# Not all importers will need this information to resolve loads, but some may find it useful. -# -# @see https://sass-lang.com/documentation/js-api/interfaces/canonicalizecontext/ -# -# source://sass-embedded//lib/sass/canonicalize_context.rb#8 -class Sass::CanonicalizeContext - # @return [CanonicalizeContext] a new instance of CanonicalizeContext - # - # source://sass-embedded//lib/sass/canonicalize_context.rb#16 - def initialize(canonicalize_request); end - - # @return [String, nil] - # - # source://sass-embedded//lib/sass/canonicalize_context.rb#10 - def containing_url; end - - # @return [Boolean] - # - # source://sass-embedded//lib/sass/canonicalize_context.rb#13 - def from_import; end -end - -# An exception thrown because a Sass compilation failed. -# -# source://sass-embedded//lib/sass/exception.rb#5 -class Sass::CompileError < ::StandardError - # @return [CompileError] a new instance of CompileError - # - # source://sass-embedded//lib/sass/exception.rb#16 - def initialize(message, full_message, sass_stack, span, loaded_urls); end - - # @return [String] - # - # source://sass-embedded//lib/sass/exception.rb#26 - def full_message(highlight: T.unsafe(nil), order: T.unsafe(nil), **_arg2); end - - # @return [Array] - # - # source://sass-embedded//lib/sass/exception.rb#13 - def loaded_urls; end - - # @return [String, nil] - # - # source://sass-embedded//lib/sass/exception.rb#7 - def sass_stack; end - - # @return [Logger::SourceSpan, nil] - # - # source://sass-embedded//lib/sass/exception.rb#10 - def span; end - - # @return [String] - # - # source://sass-embedded//lib/sass/exception.rb#38 - def to_css; end -end - -# The result of compiling Sass to CSS. Returned by {Sass.compile} and {Sass.compile_string}. -# -# @see https://sass-lang.com/documentation/js-api/interfaces/compileresult/ -# -# source://sass-embedded//lib/sass/compile_result.rb#7 -class Sass::CompileResult - # @return [CompileResult] a new instance of CompileResult - # - # source://sass-embedded//lib/sass/compile_result.rb#18 - def initialize(css, source_map, loaded_urls); end - - # @return [String] - # - # source://sass-embedded//lib/sass/compile_result.rb#9 - def css; end - - # @return [Array] - # - # source://sass-embedded//lib/sass/compile_result.rb#15 - def loaded_urls; end - - # @return [String, nil] - # - # source://sass-embedded//lib/sass/compile_result.rb#12 - def source_map; end -end - -# A synchronous {Compiler}. -# Each compiler instance exposes the {#compile} and {#compile_string} methods within the lifespan of the compiler. -# -# @example -# sass = Sass::Compiler.new -# result = sass.compile_string('h1 { font-size: 40px; }') -# result = sass.compile('style.scss') -# sass.close -# @see https://sass-lang.com/documentation/js-api/classes/compiler/ -# -# source://sass-embedded//lib/sass/compiler/channel.rb#4 -class Sass::Compiler - # @return [Compiler] a new instance of Compiler - # - # source://sass-embedded//lib/sass/compiler.rb#32 - def initialize; end - - # source://sass-embedded//lib/sass/compiler.rb#204 - def close; end - - # @return [Boolean] - # - # source://sass-embedded//lib/sass/compiler.rb#208 - def closed?; end - - # Compiles the Sass file at +path+ to CSS. - # - # @param path [String] - # @param load_paths [Array] Paths in which to look for stylesheets loaded by rules like - # {@use}[https://sass-lang.com/documentation/at-rules/use/] and {@import}[https://sass-lang.com/documentation/at-rules/import/]. - # @param charset [Boolean] By default, if the CSS document contains non-ASCII characters, Sass adds a +@charset+ - # declaration (in expanded output mode) or a byte-order mark (in compressed mode) to indicate its encoding to - # browsers or other consumers. If +charset+ is +false+, these annotations are omitted. - # @param source_map [Boolean] Whether or not Sass should generate a source map. - # @param source_map_include_sources [Boolean] Whether Sass should include the sources in the generated source map. - # @param style [Symbol] The OutputStyle of the compiled CSS. - # @param functions [Hash] Additional built-in Sass functions that are available in all stylesheets. - # @param importers [Array] Custom importers that control how Sass resolves loads from rules like - # {@use}[https://sass-lang.com/documentation/at-rules/use/] and {@import}[https://sass-lang.com/documentation/at-rules/import/]. - # @param alert_ascii [Boolean] If this is +true+, the compiler will exclusively use ASCII characters in its error - # and warning messages. Otherwise, it may use non-ASCII Unicode characters as well. - # @param alert_color [Boolean] If this is +true+, the compiler will use ANSI color escape codes in its error and - # warning messages. If it's +false+, it won't use these. If it's +nil+, the compiler will determine whether or - # not to use colors depending on whether the user is using an interactive terminal. - # @param fatal_deprecations [Array] A set of deprecations to treat as fatal. - # @param future_deprecations [Array] A set of future deprecations to opt into early. - # @param logger [Object] An object to use to handle warnings and/or debug messages from Sass. - # @param quiet_deps [Boolean] If this option is set to +true+, Sass won’t print warnings that are caused by - # dependencies. A “dependency” is defined as any file that’s loaded through +load_paths+ or +importer+. - # Stylesheets that are imported relative to the entrypoint are not considered dependencies. - # @param silence_deprecations [Array] A set of active deprecations to ignore. - # @param verbose [Boolean] By default, Dart Sass will print only five instances of the same deprecation warning per - # compilation to avoid deluging users in console noise. If you set verbose to +true+, it will instead print every - # deprecation warning it encounters. - # @raise [ArgumentError, CompileError] - # @return [CompileResult] - # @see https://sass-lang.com/documentation/js-api/functions/compile/ - # - # source://sass-embedded//lib/sass/compiler.rb#67 - def compile(path, load_paths: T.unsafe(nil), charset: T.unsafe(nil), source_map: T.unsafe(nil), source_map_include_sources: T.unsafe(nil), style: T.unsafe(nil), functions: T.unsafe(nil), importers: T.unsafe(nil), alert_ascii: T.unsafe(nil), alert_color: T.unsafe(nil), fatal_deprecations: T.unsafe(nil), future_deprecations: T.unsafe(nil), logger: T.unsafe(nil), quiet_deps: T.unsafe(nil), silence_deprecations: T.unsafe(nil), verbose: T.unsafe(nil)); end - - # Compiles a stylesheet whose contents is +source+ to CSS. - # - # @param source [String] - # @param importer [Object] The importer to use to handle loads that are relative to the entrypoint stylesheet. - # @param load_paths [Array] Paths in which to look for stylesheets loaded by rules like - # {@use}[https://sass-lang.com/documentation/at-rules/use/] and {@import}[https://sass-lang.com/documentation/at-rules/import/]. - # @param syntax [Symbol] The Syntax to use to parse the entrypoint stylesheet. - # @param url [String] The canonical URL of the entrypoint stylesheet. If this is passed along with +importer+, it's - # used to resolve relative loads in the entrypoint stylesheet. - # @param charset [Boolean] By default, if the CSS document contains non-ASCII characters, Sass adds a +@charset+ - # declaration (in expanded output mode) or a byte-order mark (in compressed mode) to indicate its encoding to - # browsers or other consumers. If +charset+ is +false+, these annotations are omitted. - # @param source_map [Boolean] Whether or not Sass should generate a source map. - # @param source_map_include_sources [Boolean] Whether Sass should include the sources in the generated source map. - # @param style [Symbol] The OutputStyle of the compiled CSS. - # @param functions [Hash] Additional built-in Sass functions that are available in all stylesheets. - # @param importers [Array] Custom importers that control how Sass resolves loads from rules like - # {@use}[https://sass-lang.com/documentation/at-rules/use/] and {@import}[https://sass-lang.com/documentation/at-rules/import/]. - # @param alert_ascii [Boolean] If this is +true+, the compiler will exclusively use ASCII characters in its error - # and warning messages. Otherwise, it may use non-ASCII Unicode characters as well. - # @param alert_color [Boolean] If this is +true+, the compiler will use ANSI color escape codes in its error and - # warning messages. If it's +false+, it won't use these. If it's +nil+, the compiler will determine whether or - # not to use colors depending on whether the user is using an interactive terminal. - # @param fatal_deprecations [Array] A set of deprecations to treat as fatal. - # @param future_deprecations [Array] A set of future deprecations to opt into early. - # @param logger [Object] An object to use to handle warnings and/or debug messages from Sass. - # @param quiet_deps [Boolean] If this option is set to +true+, Sass won’t print warnings that are caused by - # dependencies. A “dependency” is defined as any file that’s loaded through +load_paths+ or +importer+. - # Stylesheets that are imported relative to the entrypoint are not considered dependencies. - # @param silence_deprecations [Array] A set of active deprecations to ignore. - # @param verbose [Boolean] By default, Dart Sass will print only five instances of the same deprecation warning per - # compilation to avoid deluging users in console noise. If you set verbose to +true+, it will instead print every - # deprecation warning it encounters. - # @raise [ArgumentError, CompileError] - # @return [CompileResult] - # @see https://sass-lang.com/documentation/js-api/functions/compilestring/ - # - # source://sass-embedded//lib/sass/compiler.rb#147 - def compile_string(source, importer: T.unsafe(nil), load_paths: T.unsafe(nil), syntax: T.unsafe(nil), url: T.unsafe(nil), charset: T.unsafe(nil), source_map: T.unsafe(nil), source_map_include_sources: T.unsafe(nil), style: T.unsafe(nil), functions: T.unsafe(nil), importers: T.unsafe(nil), alert_ascii: T.unsafe(nil), alert_color: T.unsafe(nil), fatal_deprecations: T.unsafe(nil), future_deprecations: T.unsafe(nil), logger: T.unsafe(nil), quiet_deps: T.unsafe(nil), silence_deprecations: T.unsafe(nil), verbose: T.unsafe(nil)); end - - # @return [String] Information about the Sass implementation. - # @see https://sass-lang.com/documentation/js-api/variables/info/ - # - # source://sass-embedded//lib/sass/compiler.rb#197 - def info; end -end - -# The {Channel} class. -# -# It manages the lifecycle of {Dispatcher}. -# -# source://sass-embedded//lib/sass/compiler/channel.rb#8 -class Sass::Compiler::Channel - # @return [Channel] a new instance of Channel - # - # source://sass-embedded//lib/sass/compiler/channel.rb#9 - def initialize(dispatcher_class); end - - # source://sass-embedded//lib/sass/compiler/channel.rb#15 - def close; end - - # @return [Boolean] - # - # source://sass-embedded//lib/sass/compiler/channel.rb#24 - def closed?; end - - # source://sass-embedded//lib/sass/compiler/channel.rb#30 - def stream(host); end -end - -# The {Stream} between {Dispatcher} and {Host}. -# -# source://sass-embedded//lib/sass/compiler/channel.rb#42 -class Sass::Compiler::Channel::Stream - # @return [Stream] a new instance of Stream - # - # source://sass-embedded//lib/sass/compiler/channel.rb#45 - def initialize(dispatcher, host); end - - # source://sass-embedded//lib/sass/compiler/channel.rb#50 - def close; end - - # source://sass-embedded//lib/sass/compiler/channel.rb#54 - def error(*_arg0, **_arg1, &_arg2); end - - # Returns the value of attribute id. - # - # source://sass-embedded//lib/sass/compiler/channel.rb#43 - def id; end - - # source://sass-embedded//lib/sass/compiler/channel.rb#58 - def send_proto(*_arg0, **_arg1, &_arg2); end -end - -# The stdio based {Connection} between the {Dispatcher} and the compiler. -# -# It runs the `sass --embedded` command. -# -# source://sass-embedded//lib/sass/compiler/connection.rb#12 -class Sass::Compiler::Connection - # @return [Connection] a new instance of Connection - # - # source://sass-embedded//lib/sass/compiler/connection.rb#13 - def initialize(dispatcher); end - - # source://sass-embedded//lib/sass/compiler/connection.rb#65 - def close; end - - # @return [Boolean] - # - # source://sass-embedded//lib/sass/compiler/connection.rb#74 - def closed?; end - - # source://sass-embedded//lib/sass/compiler/connection.rb#80 - def write(id, proto); end -end - -# The {Dispatcher} class. -# -# It dispatches messages between multiple instances of {Host} and a single {Connection} to the compiler. -# -# source://sass-embedded//lib/sass/compiler/dispatcher.rb#8 -class Sass::Compiler::Dispatcher - # @return [Dispatcher] a new instance of Dispatcher - # - # source://sass-embedded//lib/sass/compiler/dispatcher.rb#9 - def initialize; end - - # source://sass-embedded//lib/sass/compiler/dispatcher.rb#44 - def close; end - - # @return [Boolean] - # - # source://sass-embedded//lib/sass/compiler/dispatcher.rb#52 - def closed?; end - - # source://sass-embedded//lib/sass/compiler/dispatcher.rb#56 - def error(error); end - - # source://sass-embedded//lib/sass/compiler/dispatcher.rb#71 - def receive_proto(id, proto); end - - # source://sass-embedded//lib/sass/compiler/dispatcher.rb#90 - def send_proto(*_arg0, **_arg1, &_arg2); end - - # source://sass-embedded//lib/sass/compiler/dispatcher.rb#17 - def subscribe(observer); end - - # source://sass-embedded//lib/sass/compiler/dispatcher.rb#28 - def unsubscribe(id); end - - private - - # source://sass-embedded//lib/sass/compiler/dispatcher.rb#96 - def _close; end - - # @return [Boolean] - # - # source://sass-embedded//lib/sass/compiler/dispatcher.rb#100 - def _closed?; end - - # source://sass-embedded//lib/sass/compiler/dispatcher.rb#104 - def _idle; end - - # @return [Boolean] - # - # source://sass-embedded//lib/sass/compiler/dispatcher.rb#108 - def _idle?; end -end - -# The {Host} class. -# -# It communicates with {Dispatcher} and handles the host logic. -# -# source://sass-embedded//lib/sass/compiler/host/function_registry.rb#5 -class Sass::Compiler::Host - # @return [Host] a new instance of Host - # - # source://sass-embedded//lib/sass/compiler/host.rb#15 - def initialize(channel); end - - # source://sass-embedded//lib/sass/compiler/host.rb#149 - def canonicalize_request(message); end - - # source://sass-embedded//lib/sass/compiler/host.rb#19 - def compile_request(path:, source:, importer:, load_paths:, syntax:, url:, charset:, source_map:, source_map_include_sources:, style:, functions:, importers:, alert_ascii:, alert_color:, fatal_deprecations:, future_deprecations:, logger:, quiet_deps:, silence_deprecations:, verbose:); end - - # source://sass-embedded//lib/sass/compiler/host.rb#125 - def compile_response(message); end - - # source://sass-embedded//lib/sass/compiler/host.rb#135 - def error(message); end - - # source://sass-embedded//lib/sass/compiler/host.rb#157 - def file_import_request(message); end - - # source://sass-embedded//lib/sass/compiler/host.rb#161 - def function_call_request(message); end - - # source://sass-embedded//lib/sass/compiler/host.rb#153 - def import_request(message); end - - # source://sass-embedded//lib/sass/compiler/host.rb#145 - def log_event(message); end - - # source://sass-embedded//lib/sass/compiler/host.rb#165 - def receive_proto(proto); end - - # source://sass-embedded//lib/sass/compiler/host.rb#104 - def version_request; end - - # source://sass-embedded//lib/sass/compiler/host.rb#130 - def version_response(message); end - - private - - # source://sass-embedded//lib/sass/compiler/host.rb#179 - def await; end - - # source://sass-embedded//lib/sass/compiler/host.rb#171 - def await0; end - - # source://sass-embedded//lib/sass/compiler/host.rb#209 - def id; end - - # source://sass-embedded//lib/sass/compiler/host.rb#195 - def listen; end - - # source://sass-embedded//lib/sass/compiler/host.rb#218 - def send_message(*_arg0, **_arg1, &_arg2); end - - # source://sass-embedded//lib/sass/compiler/host.rb#213 - def send_message0(*_arg0, **_arg1, &_arg2); end -end - -# The {FunctionRegistry} class. -# -# It stores sass custom functions and handles function calls. -# -# source://sass-embedded//lib/sass/compiler/host/function_registry.rb#9 -class Sass::Compiler::Host::FunctionRegistry - # @return [FunctionRegistry] a new instance of FunctionRegistry - # - # source://sass-embedded//lib/sass/compiler/host/function_registry.rb#12 - def initialize(functions, alert_color:); end - - # source://sass-embedded//lib/sass/compiler/host/function_registry.rb#42 - def function_call(function_call_request); end - - # Returns the value of attribute global_functions. - # - # source://sass-embedded//lib/sass/compiler/host/function_registry.rb#10 - def global_functions; end - - # source://sass-embedded//lib/sass/compiler/host/function_registry.rb#32 - def register(function); end - - private - - # source://sass-embedded//lib/sass/compiler/host/function_registry.rb#79 - def protofier; end -end - -# The {ImporterRegistry} class. -# -# It stores importers and handles import requests. -# -# source://sass-embedded//lib/sass/compiler/host/importer_registry.rb#9 -class Sass::Compiler::Host::ImporterRegistry - # @return [ImporterRegistry] a new instance of ImporterRegistry - # - # source://sass-embedded//lib/sass/compiler/host/importer_registry.rb#12 - def initialize(importers, load_paths, alert_color:); end - - # source://sass-embedded//lib/sass/compiler/host/importer_registry.rb#69 - def canonicalize(canonicalize_request); end - - # source://sass-embedded//lib/sass/compiler/host/importer_registry.rb#104 - def file_import(file_import_request); end - - # source://sass-embedded//lib/sass/compiler/host/importer_registry.rb#85 - def import(import_request); end - - # Returns the value of attribute importers. - # - # source://sass-embedded//lib/sass/compiler/host/importer_registry.rb#10 - def importers; end - - # source://sass-embedded//lib/sass/compiler/host/importer_registry.rb#28 - def register(importer); end - - # source://sass-embedded//lib/sass/compiler/host/importer_registry.rb#120 - def syntax_to_proto(syntax); end -end - -# The {LoggerRegistry} class. -# -# It stores logger and handles log events. -# -# source://sass-embedded//lib/sass/compiler/host/logger_registry.rb#9 -class Sass::Compiler::Host::LoggerRegistry - # @return [LoggerRegistry] a new instance of LoggerRegistry - # - # source://sass-embedded//lib/sass/compiler/host/logger_registry.rb#10 - def initialize(logger); end - - # source://sass-embedded//lib/sass/compiler/host/logger_registry.rb#30 - def log(event); end - - private - - # source://sass-embedded//lib/sass/compiler/host/logger_registry.rb#43 - def debug(event); end - - # source://sass-embedded//lib/sass/compiler/host/logger_registry.rb#47 - def warn(event); end -end - -# The {Protofier} class. -# -# It converts Pure Ruby types and Protobuf Ruby types. -# -# source://sass-embedded//lib/sass/compiler/host/protofier.rb#9 -class Sass::Compiler::Host::Protofier - # @return [Protofier] a new instance of Protofier - # - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#10 - def initialize(function_registry); end - - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#122 - def from_proto(proto); end - - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#14 - def to_proto(obj); end -end - -# The {Calculation} Protofier. -# -# source://sass-embedded//lib/sass/compiler/host/protofier.rb#236 -module Sass::Compiler::Host::Protofier::Calculation - private - - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#246 - def from_proto(obj); end - - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#239 - def to_proto(obj); end - - class << self - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#246 - def from_proto(obj); end - - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#239 - def to_proto(obj); end - end -end - -# The {CalculationOperator} Protofier. -# -# source://sass-embedded//lib/sass/compiler/host/protofier.rb#313 -module Sass::Compiler::Host::Protofier::CalculationOperator - private - - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#331 - def from_proto(operator); end - - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#316 - def to_proto(operator); end - - class << self - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#331 - def from_proto(operator); end - - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#316 - def to_proto(operator); end - end -end - -# The {CalculationValue} Protofier. -# -# source://sass-embedded//lib/sass/compiler/host/protofier.rb#258 -module Sass::Compiler::Host::Protofier::CalculationValue - private - - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#288 - def from_proto(value); end - - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#261 - def to_proto(value); end - - class << self - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#288 - def from_proto(value); end - - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#261 - def to_proto(value); end - end -end - -# The {ListSeparator} Protofier. -# -# source://sass-embedded//lib/sass/compiler/host/protofier.rb#350 -module Sass::Compiler::Host::Protofier::ListSeparator - private - - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#368 - def from_proto(separator); end - - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#353 - def to_proto(separator); end - - class << self - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#368 - def from_proto(separator); end - - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#353 - def to_proto(separator); end - end -end - -# The {Number} Protofier. -# -# source://sass-embedded//lib/sass/compiler/host/protofier.rb#212 -module Sass::Compiler::Host::Protofier::Number - private - - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#223 - def from_proto(obj); end - - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#215 - def to_proto(obj); end - - class << self - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#223 - def from_proto(obj); end - - # source://sass-embedded//lib/sass/compiler/host/protofier.rb#215 - def to_proto(obj); end - end -end - -# The {Structifier} module. -# -# It converts {::Hash} to {Struct}-like objects. -# -# source://sass-embedded//lib/sass/compiler/host/structifier.rb#9 -module Sass::Compiler::Host::Structifier - private - - # source://sass-embedded//lib/sass/compiler/host/structifier.rb#12 - def to_struct(obj, *symbols); end - - class << self - # source://sass-embedded//lib/sass/compiler/host/structifier.rb#12 - def to_struct(obj, *symbols); end - end -end - -# The {Varint} module. -# -# It reads and writes varints. -# -# source://sass-embedded//lib/sass/compiler/varint.rb#8 -module Sass::Compiler::Varint - private - - # source://sass-embedded//lib/sass/compiler/varint.rb#11 - def length(value); end - - # source://sass-embedded//lib/sass/compiler/varint.rb#17 - def read(readable); end - - # source://sass-embedded//lib/sass/compiler/varint.rb#28 - def write(writeable, value); end - - class << self - # source://sass-embedded//lib/sass/compiler/varint.rb#11 - def length(value); end - - # source://sass-embedded//lib/sass/compiler/varint.rb#17 - def read(readable); end - - # source://sass-embedded//lib/sass/compiler/varint.rb#28 - def write(writeable, value); end - end -end - -# source://sass-embedded//lib/sass/embedded/version.rb#4 -module Sass::Embedded; end - -# source://sass-embedded//lib/sass/embedded/version.rb#5 -Sass::Embedded::VERSION = T.let(T.unsafe(nil), String) - -# @see https://github.com/sass/sass/blob/HEAD/spec/embedded-protocol.md -# -# source://sass-embedded//lib/sass/embedded_protocol.rb#5 -module Sass::EmbeddedProtocol; end - -module Sass::EmbeddedProtocol::CalculationOperator - class << self - def descriptor; end - def lookup(_arg0); end - def resolve(_arg0); end - end -end - -Sass::EmbeddedProtocol::CalculationOperator::DIVIDE = T.let(T.unsafe(nil), Integer) -Sass::EmbeddedProtocol::CalculationOperator::MINUS = T.let(T.unsafe(nil), Integer) -Sass::EmbeddedProtocol::CalculationOperator::PLUS = T.let(T.unsafe(nil), Integer) -Sass::EmbeddedProtocol::CalculationOperator::TIMES = T.let(T.unsafe(nil), Integer) -class Sass::EmbeddedProtocol::InboundMessage < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::InboundMessage::CanonicalizeResponse < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::InboundMessage::CompileRequest < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::InboundMessage::CompileRequest::Importer < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::InboundMessage::CompileRequest::StringInput < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::InboundMessage::FileImportResponse < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::InboundMessage::FunctionCallResponse < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::InboundMessage::ImportResponse < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::InboundMessage::ImportResponse::ImportSuccess < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::InboundMessage::VersionRequest < ::Google::Protobuf::AbstractMessage; end - -module Sass::EmbeddedProtocol::ListSeparator - class << self - def descriptor; end - def lookup(_arg0); end - def resolve(_arg0); end - end -end - -Sass::EmbeddedProtocol::ListSeparator::COMMA = T.let(T.unsafe(nil), Integer) -Sass::EmbeddedProtocol::ListSeparator::SLASH = T.let(T.unsafe(nil), Integer) -Sass::EmbeddedProtocol::ListSeparator::SPACE = T.let(T.unsafe(nil), Integer) -Sass::EmbeddedProtocol::ListSeparator::UNDECIDED = T.let(T.unsafe(nil), Integer) - -module Sass::EmbeddedProtocol::LogEventType - class << self - def descriptor; end - def lookup(_arg0); end - def resolve(_arg0); end - end -end - -Sass::EmbeddedProtocol::LogEventType::DEBUG = T.let(T.unsafe(nil), Integer) -Sass::EmbeddedProtocol::LogEventType::DEPRECATION_WARNING = T.let(T.unsafe(nil), Integer) -Sass::EmbeddedProtocol::LogEventType::WARNING = T.let(T.unsafe(nil), Integer) -class Sass::EmbeddedProtocol::NodePackageImporter < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::OutboundMessage < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::OutboundMessage::CanonicalizeRequest < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::OutboundMessage::CompileResponse < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::OutboundMessage::CompileResponse::CompileFailure < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::OutboundMessage::CompileResponse::CompileSuccess < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::OutboundMessage::FileImportRequest < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::OutboundMessage::FunctionCallRequest < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::OutboundMessage::ImportRequest < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::OutboundMessage::LogEvent < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::OutboundMessage::VersionResponse < ::Google::Protobuf::AbstractMessage; end - -module Sass::EmbeddedProtocol::OutputStyle - class << self - def descriptor; end - def lookup(_arg0); end - def resolve(_arg0); end - end -end - -Sass::EmbeddedProtocol::OutputStyle::COMPRESSED = T.let(T.unsafe(nil), Integer) -Sass::EmbeddedProtocol::OutputStyle::EXPANDED = T.let(T.unsafe(nil), Integer) -class Sass::EmbeddedProtocol::ProtocolError < ::Google::Protobuf::AbstractMessage; end - -module Sass::EmbeddedProtocol::ProtocolErrorType - class << self - def descriptor; end - def lookup(_arg0); end - def resolve(_arg0); end - end -end - -Sass::EmbeddedProtocol::ProtocolErrorType::INTERNAL = T.let(T.unsafe(nil), Integer) -Sass::EmbeddedProtocol::ProtocolErrorType::PARAMS = T.let(T.unsafe(nil), Integer) -Sass::EmbeddedProtocol::ProtocolErrorType::PARSE = T.let(T.unsafe(nil), Integer) - -module Sass::EmbeddedProtocol::SingletonValue - class << self - def descriptor; end - def lookup(_arg0); end - def resolve(_arg0); end - end -end - -Sass::EmbeddedProtocol::SingletonValue::FALSE = T.let(T.unsafe(nil), Integer) -Sass::EmbeddedProtocol::SingletonValue::NULL = T.let(T.unsafe(nil), Integer) -Sass::EmbeddedProtocol::SingletonValue::TRUE = T.let(T.unsafe(nil), Integer) -class Sass::EmbeddedProtocol::SourceSpan < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::SourceSpan::SourceLocation < ::Google::Protobuf::AbstractMessage; end - -module Sass::EmbeddedProtocol::Syntax - class << self - def descriptor; end - def lookup(_arg0); end - def resolve(_arg0); end - end -end - -Sass::EmbeddedProtocol::Syntax::CSS = T.let(T.unsafe(nil), Integer) -Sass::EmbeddedProtocol::Syntax::INDENTED = T.let(T.unsafe(nil), Integer) -Sass::EmbeddedProtocol::Syntax::SCSS = T.let(T.unsafe(nil), Integer) -class Sass::EmbeddedProtocol::Value < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::Value::ArgumentList < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::Value::Calculation < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::Value::Calculation::CalculationOperation < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::Value::Calculation::CalculationValue < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::Value::CompilerFunction < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::Value::CompilerMixin < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::Value::HostFunction < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::Value::HslColor < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::Value::HwbColor < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::Value::List < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::Value::Map < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::Value::Map::Entry < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::Value::Number < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::Value::RgbColor < ::Google::Protobuf::AbstractMessage; end -class Sass::EmbeddedProtocol::Value::String < ::Google::Protobuf::AbstractMessage; end - -# The {ForkTracker} module. -# -# It tracks objects that need to be closed after `Process.fork`. -# -# source://sass-embedded//lib/sass/fork_tracker.rb#7 -module Sass::ForkTracker - private - - # source://sass-embedded//lib/sass/fork_tracker.rb#16 - def add(obj); end - - # source://sass-embedded//lib/sass/fork_tracker.rb#22 - def delete(obj); end - - # source://sass-embedded//lib/sass/fork_tracker.rb#28 - def each(*_arg0, **_arg1, &_arg2); end - - class << self - # source://sass-embedded//lib/sass/fork_tracker.rb#16 - def add(obj); end - - # source://sass-embedded//lib/sass/fork_tracker.rb#22 - def delete(obj); end - - # source://sass-embedded//lib/sass/fork_tracker.rb#28 - def each(*_arg0, **_arg1, &_arg2); end - end -end - -# The {CoreExt} module. -# -# It closes objects after `Process.fork`. -# -# source://sass-embedded//lib/sass/fork_tracker.rb#37 -module Sass::ForkTracker::CoreExt - # source://sass-embedded//lib/sass/fork_tracker.rb#38 - def _fork; end -end - -# source://sass-embedded//lib/sass/fork_tracker.rb#8 -Sass::ForkTracker::HASH = T.let(T.unsafe(nil), Hash) - -# source://sass-embedded//lib/sass/fork_tracker.rb#10 -Sass::ForkTracker::MUTEX = T.let(T.unsafe(nil), Thread::Mutex) - -# A namespace for built-in Loggers. -# -# @see https://sass-lang.com/documentation/js-api/modules/logger/ -# -# source://sass-embedded//lib/sass/logger/silent.rb#7 -module Sass::Logger - private - - # A Logger that silently ignores all warnings and debug messages. - # - # @see https://sass-lang.com/documentation/js-api/variables/logger.silent/ - # - # source://sass-embedded//lib/sass/logger/silent.rb#13 - def silent; end - - class << self - # A Logger that silently ignores all warnings and debug messages. - # - # @see https://sass-lang.com/documentation/js-api/variables/logger.silent/ - # - # source://sass-embedded//lib/sass/logger/silent.rb#13 - def silent; end - end -end - -# A Logger that silently ignores all warnings and debug messages. -# -# source://sass-embedded//lib/sass/logger/silent.rb#18 -module Sass::Logger::Silent - private - - # source://sass-embedded//lib/sass/logger/silent.rb#23 - def debug(message, span: T.unsafe(nil)); end - - # source://sass-embedded//lib/sass/logger/silent.rb#21 - def warn(message, deprecation: T.unsafe(nil), span: T.unsafe(nil), stack: T.unsafe(nil)); end - - class << self - # source://sass-embedded//lib/sass/logger/silent.rb#23 - def debug(message, span: T.unsafe(nil)); end - - # source://sass-embedded//lib/sass/logger/silent.rb#21 - def warn(message, deprecation: T.unsafe(nil), span: T.unsafe(nil), stack: T.unsafe(nil)); end - end -end - -# A specific location within a source file. -# -# This is always associated with a {SourceSpan} which indicates which file it refers to. -# -# @see https://sass-lang.com/documentation/js-api/interfaces/sourcelocation/ -# -# source://sass-embedded//lib/sass/logger/source_location.rb#10 -class Sass::Logger::SourceLocation - # @return [SourceLocation] a new instance of SourceLocation - # - # source://sass-embedded//lib/sass/logger/source_location.rb#15 - def initialize(source_location); end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/logger/source_location.rb#12 - def column; end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/logger/source_location.rb#12 - def line; end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/logger/source_location.rb#12 - def offset; end -end - -# A span of text within a source file. -# -# @see https://sass-lang.com/documentation/js-api/interfaces/sourcespan/ -# -# source://sass-embedded//lib/sass/logger/source_span.rb#8 -class Sass::Logger::SourceSpan - # @return [SourceSpan] a new instance of SourceSpan - # - # source://sass-embedded//lib/sass/logger/source_span.rb#19 - def initialize(source_span); end - - # @return [String, nil] - # - # source://sass-embedded//lib/sass/logger/source_span.rb#16 - def context; end - - # @return [SourceLocation] - # - # source://sass-embedded//lib/sass/logger/source_span.rb#10 - def end; end - - # @return [SourceLocation] - # - # source://sass-embedded//lib/sass/logger/source_span.rb#10 - def start; end - - # @return [String] - # - # source://sass-embedded//lib/sass/logger/source_span.rb#13 - def text; end - - # @return [String, nil] - # - # source://sass-embedded//lib/sass/logger/source_span.rb#16 - def url; end -end - -# The built-in Node.js package importer. This loads pkg: URLs from node_modules -# according to the standard Node.js resolution algorithm. -# -# @see https://sass-lang.com/documentation/js-api/classes/nodepackageimporter/ -# -# source://sass-embedded//lib/sass/node_package_importer.rb#8 -class Sass::NodePackageImporter - # @param entry_point_directory [String] The directory where the {NodePackageImporter} should start when resolving - # `pkg:` URLs in sources other than files on disk. - # @raise [ArgumentError] - # @return [NodePackageImporter] a new instance of NodePackageImporter - # - # source://sass-embedded//lib/sass/node_package_importer.rb#11 - def initialize(entry_point_directory); end -end - -# An exception thrown by Sass Script. -# -# source://sass-embedded//lib/sass/exception.rb#64 -class Sass::ScriptError < ::StandardError - # @return [ScriptError] a new instance of ScriptError - # - # source://sass-embedded//lib/sass/exception.rb#65 - def initialize(message, name = T.unsafe(nil)); end -end - -# The {Serializer} module. -# -# source://sass-embedded//lib/sass/serializer.rb#5 -module Sass::Serializer - private - - # source://sass-embedded//lib/sass/serializer.rb#22 - def serialize_quoted_string(string); end - - # source://sass-embedded//lib/sass/serializer.rb#30 - def serialize_unquoted_string(string); end - - class << self - # source://sass-embedded//lib/sass/serializer.rb#22 - def serialize_quoted_string(string); end - - # source://sass-embedded//lib/sass/serializer.rb#30 - def serialize_unquoted_string(string); end - end -end - -# source://sass-embedded//lib/sass/serializer.rb#8 -Sass::Serializer::CSS_ESCAPE = T.let(T.unsafe(nil), Hash) - -# The abstract base class of Sass's value types. -# -# @see https://sass-lang.com/documentation/js-api/classes/value/ -# -# source://sass-embedded//lib/sass/value.rb#7 -module Sass::Value - # @param index [Numeric] - # @return [Value] - # - # source://sass-embedded//lib/sass/value.rb#25 - def [](index); end - - # @raise [ScriptError] - # @return [Boolean] - # - # source://sass-embedded//lib/sass/value.rb#57 - def assert_boolean(name = T.unsafe(nil)); end - - # @raise [ScriptError] - # @return [Calculation] - # - # source://sass-embedded//lib/sass/value.rb#63 - def assert_calculation(name = T.unsafe(nil)); end - - # @raise [ScriptError] - # @return [Color] - # - # source://sass-embedded//lib/sass/value.rb#69 - def assert_color(name = T.unsafe(nil)); end - - # @raise [ScriptError] - # @return [Function] - # - # source://sass-embedded//lib/sass/value.rb#75 - def assert_function(name = T.unsafe(nil)); end - - # @raise [ScriptError] - # @return [Map] - # - # source://sass-embedded//lib/sass/value.rb#81 - def assert_map(name = T.unsafe(nil)); end - - # @raise [ScriptError] - # @return [Mixin] - # - # source://sass-embedded//lib/sass/value.rb#87 - def assert_mixin(name = T.unsafe(nil)); end - - # @raise [ScriptError] - # @return [Number] - # - # source://sass-embedded//lib/sass/value.rb#93 - def assert_number(name = T.unsafe(nil)); end - - # @raise [ScriptError] - # @return [String] - # - # source://sass-embedded//lib/sass/value.rb#99 - def assert_string(name = T.unsafe(nil)); end - - # @param index [Numeric] - # @return [Value] - # - # source://sass-embedded//lib/sass/value.rb#31 - def at(index); end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value.rb#14 - def bracketed?; end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value.rb#19 - def eql?(other); end - - # @param sass_index [Number] - # @raise [Sass::ScriptError] - # @return [Integer] - # - # source://sass-embedded//lib/sass/value.rb#105 - def sass_index_to_array_index(sass_index, name = T.unsafe(nil)); end - - # @return [::String, nil] - # - # source://sass-embedded//lib/sass/value.rb#9 - def separator; end - - # @return [Array] - # - # source://sass-embedded//lib/sass/value.rb#36 - def to_a; end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value.rb#41 - def to_bool; end - - # @return [Map, nil] - # - # source://sass-embedded//lib/sass/value.rb#46 - def to_map; end - - # @return [Value, nil] - # - # source://sass-embedded//lib/sass/value.rb#51 - def to_nil; end - - private - - # source://sass-embedded//lib/sass/value.rb#118 - def to_a_length; end -end - -# Sass's argument list type. -# -# An argument list comes from a rest argument. It's distinct from a normal {List} in that it may contain a keyword -# map as well as the positional arguments. -# -# @see https://sass-lang.com/documentation/js-api/classes/sassargumentlist/ -# -# source://sass-embedded//lib/sass/value/argument_list.rb#11 -class Sass::Value::ArgumentList < ::Sass::Value::List - # @param contents [Array] - # @param keywords [Hash] - # @param separator [::String] - # @return [ArgumentList] a new instance of ArgumentList - # - # source://sass-embedded//lib/sass/value/argument_list.rb#15 - def initialize(contents = T.unsafe(nil), keywords = T.unsafe(nil), separator = T.unsafe(nil)); end - - # @return [Hash] - # - # source://sass-embedded//lib/sass/value/argument_list.rb#24 - def keywords; end - - private - - # source://sass-embedded//lib/sass/value/argument_list.rb#31 - def initialize_dup(orig); end -end - -# Sass's boolean type. -# -# @see https://sass-lang.com/documentation/js-api/classes/sassboolean/ -# -# source://sass-embedded//lib/sass/value/boolean.rb#8 -class Sass::Value::Boolean - include ::Sass::Value - - # @param value [::Boolean] - # @return [Boolean] a new instance of Boolean - # - # source://sass-embedded//lib/sass/value/boolean.rb#12 - def initialize(value); end - - # @return [Boolean] - # - # source://sass-embedded//lib/sass/value/boolean.rb#20 - def !; end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/boolean.rb#25 - def ==(other); end - - # @return [Boolean] - # - # source://sass-embedded//lib/sass/value/boolean.rb#37 - def assert_boolean(_name = T.unsafe(nil)); end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/value/boolean.rb#30 - def hash; end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/boolean.rb#17 - def to_bool; end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/boolean.rb#17 - def value; end - - class << self - # source://sass-embedded//lib/sass/value/boolean.rb#47 - def new(value); end - end -end - -# Sass's false value. -# -# source://sass-embedded//lib/sass/value/boolean.rb#45 -Sass::Value::Boolean::FALSE = T.let(T.unsafe(nil), Sass::Value::Boolean) - -# Sass's true value. -# -# source://sass-embedded//lib/sass/value/boolean.rb#42 -Sass::Value::Boolean::TRUE = T.let(T.unsafe(nil), Sass::Value::Boolean) - -# Sass's calculation type. -# -# @see https://sass-lang.com/documentation/js-api/classes/sasscalculation/ -# -# source://sass-embedded//lib/sass/value/calculation.rb#8 -class Sass::Value::Calculation - include ::Sass::Value - include ::Sass::CalculationValue - - # @return [Calculation] a new instance of Calculation - # - # source://sass-embedded//lib/sass/value/calculation.rb#55 - def initialize(name, arguments); end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/calculation.rb#78 - def ==(other); end - - # @return [Array] - # - # source://sass-embedded//lib/sass/value/calculation.rb#70 - def arguments; end - - # @return [Calculation] - # - # source://sass-embedded//lib/sass/value/calculation.rb#73 - def assert_calculation(_name = T.unsafe(nil)); end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/value/calculation.rb#85 - def hash; end - - # @return [::String] - # - # source://sass-embedded//lib/sass/value/calculation.rb#67 - def name; end - - class << self - # @param argument [CalculationValue] - # @return [Calculation] - # - # source://sass-embedded//lib/sass/value/calculation.rb#17 - def calc(argument); end - - # @param min [CalculationValue] - # @param value [CalculationValue] - # @param max [CalculationValue] - # @return [Calculation] - # - # source://sass-embedded//lib/sass/value/calculation.rb#37 - def clamp(min, value = T.unsafe(nil), max = T.unsafe(nil)); end - - # @param arguments [Array] - # @return [Calculation] - # - # source://sass-embedded//lib/sass/value/calculation.rb#29 - def max(arguments); end - - # @param arguments [Array] - # @return [Calculation] - # - # source://sass-embedded//lib/sass/value/calculation.rb#23 - def min(arguments); end - - private - - def new(*_arg0); end - - # @return [Boolean] - # - # source://sass-embedded//lib/sass/value/calculation.rb#48 - def valid_clamp_arg?(value); end - end -end - -# Sass's color type. -# -# No matter what representation was originally used to create this color, all of its channels are accessible. -# -# @see https://sass-lang.com/documentation/js-api/classes/sasscolor/ -# -# source://sass-embedded//lib/sass/value/color.rb#10 -class Sass::Value::Color - include ::Sass::Value - - # @param red [Numeric] - # @param green [Numeric] - # @param blue [Numeric] - # @param hue [Numeric] - # @param saturation [Numeric] - # @param lightness [Numeric] - # @param whiteness [Numeric] - # @param blackness [Numeric] - # @param alpha [Numeric] - # @return [Color] a new instance of Color - # - # source://sass-embedded//lib/sass/value/color.rb#22 - def initialize(red: T.unsafe(nil), green: T.unsafe(nil), blue: T.unsafe(nil), hue: T.unsafe(nil), saturation: T.unsafe(nil), lightness: T.unsafe(nil), whiteness: T.unsafe(nil), blackness: T.unsafe(nil), alpha: T.unsafe(nil)); end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/color.rb#149 - def ==(other); end - - # @return [Numeric] - # - # source://sass-embedded//lib/sass/value/color.rb#104 - def alpha; end - - # @return [Color] - # - # source://sass-embedded//lib/sass/value/color.rb#163 - def assert_color(_name = T.unsafe(nil)); end - - # @return [Numeric] - # - # source://sass-embedded//lib/sass/value/color.rb#99 - def blackness; end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/value/color.rb#66 - def blue; end - - # @param red [Numeric] - # @param green [Numeric] - # @param blue [Numeric] - # @param hue [Numeric] - # @param saturation [Numeric] - # @param lightness [Numeric] - # @param whiteness [Numeric] - # @param blackness [Numeric] - # @param alpha [Numeric] - # @return [Color] - # - # source://sass-embedded//lib/sass/value/color.rb#116 - def change(red: T.unsafe(nil), green: T.unsafe(nil), blue: T.unsafe(nil), hue: T.unsafe(nil), saturation: T.unsafe(nil), lightness: T.unsafe(nil), whiteness: T.unsafe(nil), blackness: T.unsafe(nil), alpha: T.unsafe(nil)); end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/value/color.rb#59 - def green; end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/value/color.rb#158 - def hash; end - - # @return [Numeric] - # - # source://sass-embedded//lib/sass/value/color.rb#73 - def hue; end - - # @return [Numeric] - # - # source://sass-embedded//lib/sass/value/color.rb#87 - def lightness; end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/value/color.rb#52 - def red; end - - # @return [Numeric] - # - # source://sass-embedded//lib/sass/value/color.rb#80 - def saturation; end - - # @return [Numeric] - # - # source://sass-embedded//lib/sass/value/color.rb#94 - def whiteness; end - - private - - # source://sass-embedded//lib/sass/value/color.rb#215 - def hsl_hue_to_rgb(tmp1, tmp2, hue); end - - # source://sass-embedded//lib/sass/value/color.rb#199 - def hsl_to_rgb; end - - # source://sass-embedded//lib/sass/value/color.rb#247 - def hwb_hue_to_rgb(factor, scaled_whiteness, scaled_hue); end - - # source://sass-embedded//lib/sass/value/color.rb#230 - def hwb_to_rgb; end - - # source://sass-embedded//lib/sass/value/color.rb#169 - def rgb_to_hsl; end -end - -# Sass's function type. -# -# @see https://sass-lang.com/documentation/js-api/classes/sassfunction/ -# -# source://sass-embedded//lib/sass/value/function.rb#8 -class Sass::Value::Function - include ::Sass::Value - - # @param signature [::String] - # @param callback [Proc] - # @raise [Sass::ScriptError] - # @return [Function] a new instance of Function - # - # source://sass-embedded//lib/sass/value/function.rb#13 - def initialize(signature, &callback); end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/function.rb#32 - def ==(other); end - - # @return [Function] - # - # source://sass-embedded//lib/sass/value/function.rb#46 - def assert_function(_name = T.unsafe(nil)); end - - # @return [Proc, nil] - # - # source://sass-embedded//lib/sass/value/function.rb#29 - def callback; end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/value/function.rb#41 - def hash; end - - # @return [::String, nil] - # - # source://sass-embedded//lib/sass/value/function.rb#26 - def signature; end - - protected - - # @return [Integer, nil] - # - # source://sass-embedded//lib/sass/value/function.rb#21 - def id; end -end - -# Sass's {FuzzyMath} module. -# -# source://sass-embedded//lib/sass/value/fuzzy_math.rb#6 -module Sass::Value::FuzzyMath - private - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#62 - def assert_between(number, min, max, name); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#54 - def between(number, min, max); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#15 - def equals(number1, number2); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#27 - def greater_than(number1, number2); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#31 - def greater_than_or_equals(number1, number2); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#69 - def hash(number); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#35 - def integer?(number); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#19 - def less_than(number1, number2); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#23 - def less_than_or_equals(number1, number2); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#46 - def round(number); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#42 - def to_i(number); end - - class << self - # @raise [Sass::ScriptError] - # - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#62 - def assert_between(number, min, max, name); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#54 - def between(number, min, max); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#15 - def equals(number1, number2); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#27 - def greater_than(number1, number2); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#31 - def greater_than_or_equals(number1, number2); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#69 - def hash(number); end - - # @return [Boolean] - # - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#35 - def integer?(number); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#19 - def less_than(number1, number2); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#23 - def less_than_or_equals(number1, number2); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#46 - def round(number); end - - # source://sass-embedded//lib/sass/value/fuzzy_math.rb#42 - def to_i(number); end - end -end - -# source://sass-embedded//lib/sass/value/fuzzy_math.rb#9 -Sass::Value::FuzzyMath::EPSILON = T.let(T.unsafe(nil), Rational) - -# source://sass-embedded//lib/sass/value/fuzzy_math.rb#11 -Sass::Value::FuzzyMath::INVERSE_EPSILON = T.let(T.unsafe(nil), Rational) - -# source://sass-embedded//lib/sass/value/fuzzy_math.rb#7 -Sass::Value::FuzzyMath::PRECISION = T.let(T.unsafe(nil), Integer) - -# Sass's list type. -# -# @see https://sass-lang.com/documentation/js-api/classes/sasslist/ -# -# source://sass-embedded//lib/sass/value/list.rb#8 -class Sass::Value::List - include ::Sass::Value - - # @param contents [Array] - # @param separator [::String] - # @param bracketed [::Boolean] - # @return [List] a new instance of List - # - # source://sass-embedded//lib/sass/value/list.rb#14 - def initialize(contents = T.unsafe(nil), separator: T.unsafe(nil), bracketed: T.unsafe(nil)); end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/list.rb#33 - def ==(other); end - - # @raise [ScriptError] - # @return [Map] - # - # source://sass-embedded//lib/sass/value/list.rb#68 - def assert_map(name = T.unsafe(nil)); end - - # @param index [Numeric] - # @return [Value] - # - # source://sass-embedded//lib/sass/value/list.rb#43 - def at(index); end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/list.rb#28 - def bracketed?; end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/value/list.rb#52 - def hash; end - - # @return [::String, nil] - # - # source://sass-embedded//lib/sass/value/list.rb#25 - def separator; end - - # @return [Array] - # - # source://sass-embedded//lib/sass/value/list.rb#57 - def to_a; end - - # @return [Map, nil] - # - # source://sass-embedded//lib/sass/value/list.rb#62 - def to_map; end - - private - - # source://sass-embedded//lib/sass/value/list.rb#74 - def to_a_length; end -end - -# Sass's map type. -# -# @see https://sass-lang.com/documentation/js-api/classes/sassmap/ -# -# source://sass-embedded//lib/sass/value/map.rb#8 -class Sass::Value::Map - include ::Sass::Value - - # @param contents [Hash] - # @return [Map] a new instance of Map - # - # source://sass-embedded//lib/sass/value/map.rb#12 - def initialize(contents = T.unsafe(nil)); end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/map.rb#25 - def ==(other); end - - # @return [Map] - # - # source://sass-embedded//lib/sass/value/map.rb#60 - def assert_map(_name = T.unsafe(nil)); end - - # @param index [Numeric, Value] - # @return [List<(Value, Value)>, Value] - # - # source://sass-embedded//lib/sass/value/map.rb#32 - def at(index); end - - # @return [Hash] - # - # source://sass-embedded//lib/sass/value/map.rb#17 - def contents; end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/value/map.rb#45 - def hash; end - - # @return [::String, nil] - # - # source://sass-embedded//lib/sass/value/map.rb#20 - def separator; end - - # @return [Array>] - # - # source://sass-embedded//lib/sass/value/map.rb#50 - def to_a; end - - # @return [Map] - # - # source://sass-embedded//lib/sass/value/map.rb#55 - def to_map; end - - private - - # source://sass-embedded//lib/sass/value/map.rb#66 - def to_a_length; end -end - -# Sass's mixin type. -# -# @see https://sass-lang.com/documentation/js-api/classes/sassmixin/ -# -# source://sass-embedded//lib/sass/value/mixin.rb#8 -class Sass::Value::Mixin - include ::Sass::Value - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/mixin.rb#21 - def ==(other); end - - # @return [Mixin] - # - # source://sass-embedded//lib/sass/value/mixin.rb#31 - def assert_mixin(_name = T.unsafe(nil)); end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/value/mixin.rb#26 - def hash; end - - protected - - # @return [Integer] - # - # source://sass-embedded//lib/sass/value/mixin.rb#16 - def id; end - - class << self - private - - def new(*_arg0); end - end -end - -# Sass's null type. -# -# @see https://sass-lang.com/documentation/js-api/variables/sassnull/ -# -# source://sass-embedded//lib/sass/value/null.rb#8 -class Sass::Value::Null - include ::Sass::Value - - # @return [Null] a new instance of Null - # - # source://sass-embedded//lib/sass/value/null.rb#11 - def initialize; end - - # @return [Boolean] - # - # source://sass-embedded//lib/sass/value/null.rb#19 - def !; end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/null.rb#24 - def ==(other); end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/value/null.rb#29 - def hash; end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/null.rb#34 - def to_bool; end - - # @return [nil] - # - # source://sass-embedded//lib/sass/value/null.rb#16 - def to_nil; end - - # @return [nil] - # - # source://sass-embedded//lib/sass/value/null.rb#16 - def value; end - - class << self - # source://sass-embedded//lib/sass/value/null.rb#43 - def new; end - end -end - -# Sass's null value. -# -# source://sass-embedded//lib/sass/value/null.rb#41 -Sass::Value::Null::NULL = T.let(T.unsafe(nil), Sass::Value::Null) - -# Sass's number type. -# -# @see https://sass-lang.com/documentation/js-api/classes/sassnumber/ -# -# source://sass-embedded//lib/sass/value/number/unit.rb#5 -class Sass::Value::Number - include ::Sass::Value - include ::Sass::CalculationValue - - # @option unit - # @option unit - # @param value [Numeric] - # @param unit [::String, Hash] - # @return [Number] a new instance of Number - # - # source://sass-embedded//lib/sass/value/number.rb#18 - def initialize(value, unit = T.unsafe(nil)); end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/number.rb#77 - def ==(other); end - - # @param min [Numeric] - # @param max [Numeric] - # @raise [ScriptError] - # @return [Numeric] - # - # source://sass-embedded//lib/sass/value/number.rb#160 - def assert_between(min, max, name = T.unsafe(nil)); end - - # @raise [ScriptError] - # @return [Integer] - # - # source://sass-embedded//lib/sass/value/number.rb#145 - def assert_integer(name = T.unsafe(nil)); end - - # @return [Number] - # - # source://sass-embedded//lib/sass/value/number.rb#253 - def assert_number(_name = T.unsafe(nil)); end - - # @param unit [::String] - # @raise [ScriptError] - # @return [Number] - # - # source://sass-embedded//lib/sass/value/number.rb#132 - def assert_unit(unit, name = T.unsafe(nil)); end - - # @raise [ScriptError] - # @return [Number] - # - # source://sass-embedded//lib/sass/value/number.rb#112 - def assert_unitless(name = T.unsafe(nil)); end - - # @param new_numerator_units [Array<::String>] - # @param new_denominator_units [Array<::String>] - # @return [Number] - # - # source://sass-embedded//lib/sass/value/number.rb#211 - def coerce(new_numerator_units, new_denominator_units, name = T.unsafe(nil)); end - - # @param other [Number] - # @return [Number] - # - # source://sass-embedded//lib/sass/value/number.rb#235 - def coerce_to_match(other, name = T.unsafe(nil), other_name = T.unsafe(nil)); end - - # @param new_numerator_units [Array<::String>] - # @param new_denominator_units [Array<::String>] - # @return [Numeric] - # - # source://sass-embedded//lib/sass/value/number.rb#221 - def coerce_value(new_numerator_units, new_denominator_units, name = T.unsafe(nil)); end - - # @param other [Number] - # @return [Numeric] - # - # source://sass-embedded//lib/sass/value/number.rb#244 - def coerce_value_to_match(other, name = T.unsafe(nil), other_name = T.unsafe(nil)); end - - # @param unit [::String] - # @return [Numeric] - # - # source://sass-embedded//lib/sass/value/number.rb#229 - def coerce_value_to_unit(unit, name = T.unsafe(nil)); end - - # @param unit [::String] - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/number.rb#166 - def compatible_with_unit?(unit); end - - # @param new_numerator_units [Array<::String>] - # @param new_denominator_units [Array<::String>] - # @return [Number] - # - # source://sass-embedded//lib/sass/value/number.rb#173 - def convert(new_numerator_units, new_denominator_units, name = T.unsafe(nil)); end - - # @param other [Number] - # @return [Number] - # - # source://sass-embedded//lib/sass/value/number.rb#191 - def convert_to_match(other, name = T.unsafe(nil), other_name = T.unsafe(nil)); end - - # @param new_numerator_units [Array<::String>] - # @param new_denominator_units [Array<::String>] - # @return [Numeric] - # - # source://sass-embedded//lib/sass/value/number.rb#183 - def convert_value(new_numerator_units, new_denominator_units, name = T.unsafe(nil)); end - - # @param other [Number] - # @return [Numeric] - # - # source://sass-embedded//lib/sass/value/number.rb#200 - def convert_value_to_match(other, name = T.unsafe(nil), other_name = T.unsafe(nil)); end - - # @return [Array<::String>] - # - # source://sass-embedded//lib/sass/value/number.rb#74 - def denominator_units; end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/value/number.rb#101 - def hash; end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/number.rb#139 - def integer?; end - - # @return [Array<::String>] - # - # source://sass-embedded//lib/sass/value/number.rb#74 - def numerator_units; end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/value/number.rb#152 - def to_i; end - - # @param unit [::String] - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/number.rb#125 - def unit?(unit); end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/number.rb#106 - def unitless?; end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/number.rb#119 - def units?; end - - # @return [Numeric] - # - # source://sass-embedded//lib/sass/value/number.rb#71 - def value; end - - private - - # source://sass-embedded//lib/sass/value/number.rb#263 - def canonical_units_value; end - - # source://sass-embedded//lib/sass/value/number.rb#273 - def coerce_or_convert_value(new_numerator_units, new_denominator_units, coerce_unitless:, name: T.unsafe(nil), other: T.unsafe(nil), other_name: T.unsafe(nil)); end - - # @return [Boolean] - # - # source://sass-embedded//lib/sass/value/number.rb#259 - def single_unit?; end - - # source://sass-embedded//lib/sass/value/number.rb#353 - def unit_string(numerator_units, denominator_units); end -end - -# The {Unit} module. -# -# source://sass-embedded//lib/sass/value/number/unit.rb#7 -module Sass::Value::Number::Unit - private - - # source://sass-embedded//lib/sass/value/number/unit.rb#171 - def canonical_multiplier(units); end - - # source://sass-embedded//lib/sass/value/number/unit.rb#177 - def canonical_multiplier_for_unit(unit); end - - # source://sass-embedded//lib/sass/value/number/unit.rb#157 - def canonicalize_units(units); end - - # source://sass-embedded//lib/sass/value/number/unit.rb#151 - def conversion_factor(unit1, unit2); end - - class << self - # source://sass-embedded//lib/sass/value/number/unit.rb#171 - def canonical_multiplier(units); end - - # source://sass-embedded//lib/sass/value/number/unit.rb#177 - def canonical_multiplier_for_unit(unit); end - - # source://sass-embedded//lib/sass/value/number/unit.rb#157 - def canonicalize_units(units); end - - # source://sass-embedded//lib/sass/value/number/unit.rb#151 - def conversion_factor(unit1, unit2); end - end -end - -# source://sass-embedded//lib/sass/value/number/unit.rb#8 -Sass::Value::Number::Unit::CONVERSIONS = T.let(T.unsafe(nil), Hash) - -# source://sass-embedded//lib/sass/value/number/unit.rb#144 -Sass::Value::Number::Unit::TYPES_BY_UNIT = T.let(T.unsafe(nil), Hash) - -# source://sass-embedded//lib/sass/value/number/unit.rb#138 -Sass::Value::Number::Unit::UNITS_BY_TYPE = T.let(T.unsafe(nil), Hash) - -# Sass's string type. -# -# @see https://sass-lang.com/documentation/js-api/classes/sassstring/ -# -# source://sass-embedded//lib/sass/value/string.rb#8 -class Sass::Value::String - include ::Sass::Value - include ::Sass::CalculationValue - - # @param text [::String] - # @param quoted [::Boolean] - # @return [String] a new instance of String - # - # source://sass-embedded//lib/sass/value/string.rb#14 - def initialize(text = T.unsafe(nil), quoted: T.unsafe(nil)); end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/string.rb#28 - def ==(other); end - - # @return [String] - # - # source://sass-embedded//lib/sass/value/string.rb#38 - def assert_string(_name = T.unsafe(nil)); end - - # @return [Integer] - # - # source://sass-embedded//lib/sass/value/string.rb#33 - def hash; end - - # @return [::Boolean] - # - # source://sass-embedded//lib/sass/value/string.rb#23 - def quoted?; end - - # @param sass_index [Number] - # @raise [Sass::ScriptError] - # @return [Integer] - # - # source://sass-embedded//lib/sass/value/string.rb#44 - def sass_index_to_string_index(sass_index, name = T.unsafe(nil)); end - - # @return [::String] - # - # source://sass-embedded//lib/sass/value/string.rb#20 - def text; end - - # @return [String] - # - # source://sass-embedded//lib/sass/value/string.rb#56 - def to_s; end -end diff --git a/sorbet/rbi/gems/sassc-rails@2.1.2.rbi b/sorbet/rbi/gems/sassc-rails@2.1.2.rbi index 5b5e8329..3a294532 100644 --- a/sorbet/rbi/gems/sassc-rails@2.1.2.rbi +++ b/sorbet/rbi/gems/sassc-rails@2.1.2.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `sassc-rails` gem. # Please instead update this file by running `bin/tapioca gem sassc-rails`. + # source://sassc-rails//lib/sassc/rails/version.rb#3 module SassC class << self diff --git a/sorbet/rbi/gems/sassc@2.4.0.rbi b/sorbet/rbi/gems/sassc@2.4.0.rbi index 6e28b31e..39646f7f 100644 --- a/sorbet/rbi/gems/sassc@2.4.0.rbi +++ b/sorbet/rbi/gems/sassc@2.4.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `sassc` gem. # Please instead update this file by running `bin/tapioca gem sassc`. + # source://sassc//lib/sassc.rb#3 module SassC class << self diff --git a/sorbet/rbi/gems/scout_apm@5.3.8.rbi b/sorbet/rbi/gems/scout_apm@5.3.8.rbi new file mode 100644 index 00000000..c4b4648e --- /dev/null +++ b/sorbet/rbi/gems/scout_apm@5.3.8.rbi @@ -0,0 +1,8351 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `scout_apm` gem. +# Please instead update this file by running `bin/tapioca gem scout_apm`. + + +# { +# "version": 1, +# "identity": { +# "transaction_id": "req-....", +# "revision": "abcdef", +# "start_instant": "01-01-01T00:00:00.0000Z", +# "stop_instant": "01-01-01T00:00:01.0000Z", +# "type": "Web", +# "naming": { +# "path": "/users", +# "code": "UsersController#index", +# }, +# "score": { +# "total": 10.5, +# "percentile": 4.5, +# "age": 2.0, +# "memory_delta": 3, +# "allocations": 1 +# } +# }, +# +# "tags": { +# "allocations": 1000 +# }, +# +# "spans": [ +# ... +# ] +# +# source://scout_apm//lib/scout_apm/detailed_trace.rb#33 +class DetailedTrace + # @return [DetailedTrace] a new instance of DetailedTrace + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#56 + def initialize(transaction_id, revision, host, start_instant, stop_instant, type, path, code, spans, tags); end + + # Returns the value of attribute age_score. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#50 + def age_score; end + + # source://scout_apm//lib/scout_apm/detailed_trace.rb#78 + def as_json(*_arg0); end + + # Scorable interface + # + # Needed so we can merge ScoredItemSet instances + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#109 + def call; end + + # UsersController#show or similar + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#46 + def code; end + + # Returns the value of attribute duration. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#41 + def duration; end + + # Returns the value of attribute host. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#43 + def host; end + + # Returns the value of attribute memory_allocations_score. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#52 + def memory_allocations_score; end + + # Returns the value of attribute memory_delta_score. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#51 + def memory_delta_score; end + + # source://scout_apm//lib/scout_apm/detailed_trace.rb#113 + def name; end + + # /users/1 + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#45 + def path; end + + # Returns the value of attribute percentile_score. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#49 + def percentile_score; end + + # Returns the value of attribute revision. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#38 + def revision; end + + # source://scout_apm//lib/scout_apm/detailed_trace.rb#117 + def score; end + + # Returns the value of attribute spans. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#34 + def spans; end + + # Returns the value of attribute start_instant. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#39 + def start_instant; end + + # Returns the value of attribute stop_instant. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#40 + def stop_instant; end + + # Returns the value of attribute tags. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#35 + def tags; end + + # Returns the value of attribute total_score. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#48 + def total_score; end + + # Returns the value of attribute transaction_id. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#37 + def transaction_id; end + + # "Web" or "Job" + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#42 + def type; end +end + +# source://scout_apm//lib/scout_apm/detailed_trace.rb#54 +DetailedTrace::VERSION = T.let(T.unsafe(nil), Integer) + +# { +# "type": "Standard", +# "identity": { +# "id": "....", +# "parent_id": "....", +# "start_time": "01-01-01T00:00:00.0000Z", +# "stop_time": "01-01-01T00:00:00.0001Z", +# "operation": "SQL/User/find" +# }, +# "tags": { +# "allocations": 1000, +# "db.statement": "SELECT * FROM users where id = 1", +# "db.rows": 1, +# "backtrace": [ { +# "file": "app/controllers/users_controller.rb", +# "line": 10, +# "function": "index" +# } ] +# } +# +# source://scout_apm//lib/scout_apm/detailed_trace.rb#147 +class DetailedTraceSpan + # @return [DetailedTraceSpan] a new instance of DetailedTraceSpan + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#162 + def initialize(span_id, parent_id, start_instant, stop_instant, operation, tags); end + + # source://scout_apm//lib/scout_apm/detailed_trace.rb#175 + def as_json(*_arg0); end + + # What is the "name" of this span. + # + # Examples: + # SQL/User/find + # Controller/Users/index + # HTTP/GET/example.com + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#160 + def operation; end + + # Returns the value of attribute parent_id. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#151 + def parent_id; end + + # Returns the value of attribute span_id. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#151 + def span_id; end + + # Returns the value of attribute span_type. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#150 + def span_type; end + + # Returns the value of attribute start_instant. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#152 + def start_instant; end + + # Returns the value of attribute stop_instant. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#152 + def stop_instant; end + + # Returns the value of attribute tags. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#148 + def tags; end +end + +# Tags for either a request, or a span +# +# source://scout_apm//lib/scout_apm/detailed_trace.rb#196 +class DetailedTraceTags + # @return [DetailedTraceTags] a new instance of DetailedTraceTags + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#199 + def initialize(hash); end + + # source://scout_apm//lib/scout_apm/detailed_trace.rb#204 + def as_json(*_arg0); end + + # Returns the value of attribute tags. + # + # source://scout_apm//lib/scout_apm/detailed_trace.rb#197 + def tags; end +end + +class Object < ::BasicObject + include ::Kernel + include ::PP::ObjectMixin + + private + + # source://scout_apm//lib/scout_apm/detailed_trace.rb#210 + def DetailedTraceTags(arg); end +end + +# Removes actual values from SQL. Used to both obfuscate the SQL and group +# similar queries in the UI. +# +# source://scout_apm//lib/scout_apm.rb#1 +module ScoutApm; end + +# The entry-point for the ScoutApm Agent. +# +# Only one Agent instance is created per-Ruby process, and it coordinates the lifecycle of the monitoring. +# - initializes various data stores +# - coordinates configuration & logging +# - starts background threads, running periodically +# - installs shutdown hooks +# +# source://scout_apm//lib/scout_apm/agent.rb#9 +class ScoutApm::Agent + # First call of the agent. Does very little so that the object can be created, and exist. + # + # @return [Agent] a new instance of Agent + # + # source://scout_apm//lib/scout_apm/agent.rb#25 + def initialize(options = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/agent.rb#197 + def background_worker_running?; end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/agent.rb#13 + def context; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/agent.rb#217 + def error_service_background_worker_running?; end + + # If true, the agent will start regardless of safety checks. + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/agent.rb#123 + def force?; end + + # Finishes setting up the instrumentation, configuration, and attempts to start the agent. + # + # source://scout_apm//lib/scout_apm/agent.rb#35 + def install(force = T.unsafe(nil)); end + + # This sets up the background worker thread to run at the correct time, + # either immediately, or after a fork into the actual unicorn/puma/etc + # worker + # + # source://scout_apm//lib/scout_apm/agent.rb#117 + def install_app_server_integration; end + + # Attempts to install all background job integrations. This can come up if + # an app has both Resque and Sidekiq - we want both to be installed if + # possible, it's no harm to have the "wrong" one also installed while running. + # + # source://scout_apm//lib/scout_apm/agent.rb#107 + def install_background_job_integrations; end + + # Returns the value of attribute instrument_manager. + # + # source://scout_apm//lib/scout_apm/agent.rb#88 + def instrument_manager; end + + # source://scout_apm//lib/scout_apm/agent.rb#92 + def log_environment; end + + # source://scout_apm//lib/scout_apm/agent.rb#30 + def logger; end + + # options passed to the agent when +#start+ is called. + # + # source://scout_apm//lib/scout_apm/agent.rb#15 + def options; end + + # options passed to the agent when +#start+ is called. + # + # source://scout_apm//lib/scout_apm/agent.rb#15 + def options=(_arg0); end + + # monitor is the key configuration here. If it is true, then we want the + # instruments. If it is false, we mostly don't want them, unless you're + # asking for devtrace (ie. not reporting to apm servers as a real app, but + # only for local browsers). + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/agent.rb#140 + def should_load_instruments?; end + + # Unconditionally starts the agent. This includes verifying instruments are + # installed, and starting the background worker. + # + # The monitor precondition is checked explicitly, and we will *never* start with monitor = false + # + # This does not attempt to start twice + # + # source://scout_apm//lib/scout_apm/agent.rb#64 + def start(opts = T.unsafe(nil)); end + + # Creates the worker thread. The worker thread is a loop that runs continuously. It sleeps for +Agent#period+ and when it wakes, + # processes data, either saving it to disk or reporting to Scout. + # => true if thread & worker got started + # => false if it wasn't started (either due to already running, or other preconditions) + # + # source://scout_apm//lib/scout_apm/agent.rb#153 + def start_background_worker(quiet = T.unsafe(nil)); end + + # The worker thread will automatically start UNLESS: + # * A supported application server isn't detected (example: running via Rails console) + # * A supported application server is detected, but it forks. In this case, + # the agent is started in the forked process. + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/agent.rb#131 + def start_background_worker?; end + + # source://scout_apm//lib/scout_apm/agent.rb#206 + def start_error_service_background_worker; end + + # source://scout_apm//lib/scout_apm/agent.rb#185 + def stop_background_worker; end + + class << self + # All access to the agent is thru this class method to ensure multiple Agent instances are not initialized per-Ruby process. + # + # source://scout_apm//lib/scout_apm/agent.rb#20 + def instance(options = T.unsafe(nil)); end + end +end + +# seconds to batch error reports +# +# source://scout_apm//lib/scout_apm/agent.rb#205 +ScoutApm::Agent::ERROR_SEND_FREQUENCY = T.let(T.unsafe(nil), Integer) + +# source://scout_apm//lib/scout_apm/agent/exit_handler.rb#3 +class ScoutApm::Agent::ExitHandler + # @return [ExitHandler] a new instance of ExitHandler + # + # source://scout_apm//lib/scout_apm/agent/exit_handler.rb#6 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/agent/exit_handler.rb#4 + def context; end + + # source://scout_apm//lib/scout_apm/agent/exit_handler.rb#10 + def install; end + + private + + # source://scout_apm//lib/scout_apm/agent/exit_handler.rb#60 + def environment; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/agent/exit_handler.rb#41 + def exit_handler_supported?; end + + # source://scout_apm//lib/scout_apm/agent/exit_handler.rb#56 + def logger; end + + # Called via the at_exit handler, it: + # (1) Stops the background worker + # (2) Stores metrics locally (forcing current-minute metrics to be written) + # It does not attempt to actually report metrics. + # + # source://scout_apm//lib/scout_apm/agent/exit_handler.rb#34 + def shutdown; end +end + +# source://scout_apm//lib/scout_apm/agent/preconditions.rb#3 +class ScoutApm::Agent::Preconditions + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/agent/preconditions.rb#51 + def check?(context); end + + # XXX: Wire up options here and below in the appserver & bg server detections + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/agent/preconditions.rb#76 + def force?; end +end + +# The preconditions here must be a 2 element hash, with :message and :check. +# message: Proc that takes the environment, and returns a string +# check: Proc that takes an AgentContext and returns true if precondition was met, if false, we shouldn't start. +# severity: Severity of the log message (one of: :debug, :info, :warn, :error or :fatal) +# +# source://scout_apm//lib/scout_apm/agent/preconditions.rb#8 +ScoutApm::Agent::Preconditions::PRECONDITIONS = T.let(T.unsafe(nil), Array) + +# source://scout_apm//lib/scout_apm/agent/preconditions.rb#38 +ScoutApm::Agent::Preconditions::PRECONDITION_ALREADY_STARTED = T.let(T.unsafe(nil), Hash) + +# source://scout_apm//lib/scout_apm/agent/preconditions.rb#15 +ScoutApm::Agent::Preconditions::PRECONDITION_APP_NAME = T.let(T.unsafe(nil), Hash) + +# source://scout_apm//lib/scout_apm/agent/preconditions.rb#27 +ScoutApm::Agent::Preconditions::PRECONDITION_DETECTED_SERVER = T.let(T.unsafe(nil), Hash) + +# source://scout_apm//lib/scout_apm/agent/preconditions.rb#9 +ScoutApm::Agent::Preconditions::PRECONDITION_ENABLED = T.let(T.unsafe(nil), Hash) + +# source://scout_apm//lib/scout_apm/agent/preconditions.rb#21 +ScoutApm::Agent::Preconditions::PRECONDITION_INTERACTIVE = T.let(T.unsafe(nil), Hash) + +# source://scout_apm//lib/scout_apm/agent/preconditions.rb#44 +ScoutApm::Agent::Preconditions::PRECONDITION_OLD_SCOUT_RAILS = T.let(T.unsafe(nil), Hash) + +# source://scout_apm//lib/scout_apm/agent_context.rb#2 +class ScoutApm::AgentContext + # Initially start up without attempting to load a configuration file. We + # need to be able to lookup configuration options like "application_root" + # which would then in turn influence where the yaml configuration file is + # located + # + # Later in initialization, we set config= to include the file. + # + # @return [AgentContext] a new instance of AgentContext + # + # source://scout_apm//lib/scout_apm/agent_context.rb#12 + def initialize; end + + # Maintains a Histogram of insignificant/significant autoinstrument layers. + # significant = 1 + # insignificant = 0 + # + # source://scout_apm//lib/scout_apm/agent_context.rb#109 + def auto_instruments_layer_histograms; end + + # Execute this in the child process of a remote agent. The parent is + # expected to have its accepting webserver up and running + # + # source://scout_apm//lib/scout_apm/agent_context.rb#57 + def become_remote_client!(host, port); end + + # source://scout_apm//lib/scout_apm/agent_context.rb#70 + def config; end + + # When we set the config for any reason, there are some values we must + # reinitialize, since the config could have changed their settings, so nil + # them out here, then let them get lazily reset as needed + # + # Don't use this in initializer, since it'll attempt to log immediately + # + # source://scout_apm//lib/scout_apm/agent_context.rb#166 + def config=(config); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/agent_context.rb#141 + def dev_trace_enabled?; end + + # source://scout_apm//lib/scout_apm/agent_context.rb#74 + def environment; end + + # I believe this is only useful for testing? + # + # source://scout_apm//lib/scout_apm/agent_context.rb#210 + def environment=(env); end + + # Error Service # + # + # source://scout_apm//lib/scout_apm/agent_context.rb#149 + def error_buffer; end + + # Returns the value of attribute extensions. + # + # source://scout_apm//lib/scout_apm/agent_context.rb#4 + def extensions; end + + # Sets the attribute extensions + # + # @param value the value to set the attribute extensions to. + # + # source://scout_apm//lib/scout_apm/agent_context.rb#4 + def extensions=(_arg0); end + + # source://scout_apm//lib/scout_apm/agent_context.rb#153 + def ignored_exceptions; end + + # source://scout_apm//lib/scout_apm/agent_context.rb#94 + def ignored_uris; end + + # source://scout_apm//lib/scout_apm/agent_context.rb#183 + def installed!; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/agent_context.rb#86 + def installed?; end + + # source://scout_apm//lib/scout_apm/agent_context.rb#133 + def layaway; end + + # Called after config is reset and loaded from file + # + # source://scout_apm//lib/scout_apm/agent_context.rb#221 + def log_configuration_settings; end + + # source://scout_apm//lib/scout_apm/agent_context.rb#90 + def logger; end + + # source://scout_apm//lib/scout_apm/agent_context.rb#18 + def marshal_dump; end + + # source://scout_apm//lib/scout_apm/agent_context.rb#22 + def marshal_load(*args); end + + # Accessors # + # + # source://scout_apm//lib/scout_apm/agent_context.rb#68 + def process_start_time; end + + # source://scout_apm//lib/scout_apm/agent_context.rb#137 + def recorder; end + + # source://scout_apm//lib/scout_apm/agent_context.rb#205 + def recorder=(recorder); end + + # Histogram of the cumulative requests since the start of the process + # + # source://scout_apm//lib/scout_apm/agent_context.rb#114 + def request_histograms; end + + # Histogram of the requests, distinct by reporting period (minute) + # { StoreReportingPeriodTimestamp => RequestHistograms } + # + # source://scout_apm//lib/scout_apm/agent_context.rb#120 + def request_histograms_by_time; end + + # source://scout_apm//lib/scout_apm/agent_context.rb#191 + def shutting_down!; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/agent_context.rb#82 + def shutting_down?; end + + # source://scout_apm//lib/scout_apm/agent_context.rb#102 + def slow_job_policy; end + + # source://scout_apm//lib/scout_apm/agent_context.rb#98 + def slow_request_policy; end + + # Lifecycle: Remote Server/Client + # + # This allows short lived forked processes to communicate back to the parent process. + # Used in the Resque instrumentation + # + # Parent Pre-fork: start_remote_server! once + # Child Post-fork: become_remote_client! after each fork + # + # TODO: Figure out where to extract this to + # + # source://scout_apm//lib/scout_apm/agent_context.rb#39 + def start_remote_server!(bind, port); end + + # source://scout_apm//lib/scout_apm/agent_context.rb#187 + def started!; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/agent_context.rb#78 + def started?; end + + # source://scout_apm//lib/scout_apm/agent_context.rb#128 + def store; end + + # source://scout_apm//lib/scout_apm/agent_context.rb#195 + def store=(store); end + + # source://scout_apm//lib/scout_apm/agent_context.rb#124 + def transaction_time_consumed; end +end + +# source://scout_apm//lib/scout_apm/exceptions.rb#2 +module ScoutApm::AllExceptionsExceptOnesWeMustNotRescue + class << self + # source://scout_apm//lib/scout_apm/exceptions.rb#8 + def ===(exception); end + end +end + +# Borrowed from https://github.com/rspec/rspec-support/blob/v3.8.0/lib/rspec/support.rb#L132-L140 +# These exceptions are dangerous to rescue as rescuing them +# would interfere with things we should not interfere with. +# +# source://scout_apm//lib/scout_apm/exceptions.rb#6 +ScoutApm::AllExceptionsExceptOnesWeMustNotRescue::AVOID_RESCUING = T.let(T.unsafe(nil), Array) + +# source://scout_apm//lib/scout_apm/app_server_load.rb#2 +class ScoutApm::AppServerLoad + # @return [AppServerLoad] a new instance of AppServerLoad + # + # source://scout_apm//lib/scout_apm/app_server_load.rb#6 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/app_server_load.rb#4 + def context; end + + # source://scout_apm//lib/scout_apm/app_server_load.rb#31 + def data; end + + # source://scout_apm//lib/scout_apm/app_server_load.rb#67 + def environment; end + + # Returns the value of attribute logger. + # + # source://scout_apm//lib/scout_apm/app_server_load.rb#3 + def logger; end + + # source://scout_apm//lib/scout_apm/app_server_load.rb#11 + def run; end + + # Calls `.to_s` on the object passed in. + # Returns literal string 'to_s error' if the object does not respond to .to_s + # + # source://scout_apm//lib/scout_apm/app_server_load.rb#59 + def to_s_safe(obj); end +end + +# source://scout_apm//lib/scout_apm/attribute_arranger.rb#2 +module ScoutApm::AttributeArranger + class << self + # pass in an array of symbols to return as hash keys + # if the symbol doesn't match the name of the method, pass an array: [:key, :method_name] + # + # source://scout_apm//lib/scout_apm/attribute_arranger.rb#5 + def call(subject, attributes_list); end + end +end + +# source://scout_apm//lib/scout_apm/background_job_integrations/sidekiq.rb#2 +module ScoutApm::BackgroundJobIntegrations; end + +# source://scout_apm//lib/scout_apm/background_job_integrations/delayed_job.rb#3 +class ScoutApm::BackgroundJobIntegrations::DelayedJob + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/background_job_integrations/delayed_job.rb#17 + def forking?; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/delayed_job.rb#21 + def install; end + + # Returns the value of attribute logger. + # + # source://scout_apm//lib/scout_apm/background_job_integrations/delayed_job.rb#7 + def logger; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/delayed_job.rb#9 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/background_job_integrations/delayed_job.rb#13 + def present?; end +end + +# source://scout_apm//lib/scout_apm/background_job_integrations/delayed_job.rb#4 +ScoutApm::BackgroundJobIntegrations::DelayedJob::ACTIVE_JOB_KLASS = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/background_job_integrations/delayed_job.rb#5 +ScoutApm::BackgroundJobIntegrations::DelayedJob::DJ_PERFORMABLE_METHOD = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/background_job_integrations/faktory.rb#3 +class ScoutApm::BackgroundJobIntegrations::Faktory + # source://scout_apm//lib/scout_apm/background_job_integrations/faktory.rb#23 + def add_middleware; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/background_job_integrations/faktory.rb#14 + def forking?; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/faktory.rb#18 + def install; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/faktory.rb#31 + def install_processor; end + + # Returns the value of attribute logger. + # + # source://scout_apm//lib/scout_apm/background_job_integrations/faktory.rb#4 + def logger; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/faktory.rb#6 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/background_job_integrations/faktory.rb#10 + def present?; end +end + +# We insert this middleware into the Sidekiq stack, to capture each job, +# and time them. +# +# source://scout_apm//lib/scout_apm/background_job_integrations/faktory.rb#49 +class ScoutApm::BackgroundJobIntegrations::FaktoryMiddleware + # source://scout_apm//lib/scout_apm/background_job_integrations/faktory.rb#50 + def call(worker_instance, job); end + + # source://scout_apm//lib/scout_apm/background_job_integrations/faktory.rb#75 + def job_class(job); end + + # source://scout_apm//lib/scout_apm/background_job_integrations/faktory.rb#91 + def latency(job, time = T.unsafe(nil)); end +end + +# source://scout_apm//lib/scout_apm/background_job_integrations/faktory.rb#73 +ScoutApm::BackgroundJobIntegrations::FaktoryMiddleware::ACTIVE_JOB_KLASS = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/background_job_integrations/faktory.rb#72 +ScoutApm::BackgroundJobIntegrations::FaktoryMiddleware::UNKNOWN_CLASS_PLACEHOLDER = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/background_job_integrations/legacy_sneakers.rb#13 +module ScoutApm::BackgroundJobIntegrations::LegacySneakers + # source://scout_apm//lib/scout_apm/background_job_integrations/legacy_sneakers.rb#20 + def initialize(*args); end + + # source://scout_apm//lib/scout_apm/background_job_integrations/legacy_sneakers.rb#29 + def work_with_params(msg, delivery_info, metadata); end + + class << self + # source://scout_apm//lib/scout_apm/background_job_integrations/legacy_sneakers.rb#16 + def prepended(base); end + end +end + +# source://scout_apm//lib/scout_apm/background_job_integrations/legacy_sneakers.rb#14 +ScoutApm::BackgroundJobIntegrations::LegacySneakers::UNKNOWN_QUEUE_PLACEHOLDER = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/background_job_integrations/que.rb#3 +class ScoutApm::BackgroundJobIntegrations::Que + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/background_job_integrations/que.rb#23 + def forking?; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/que.rb#27 + def install; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/que.rb#52 + def install_job; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/que.rb#33 + def install_tracer; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/que.rb#39 + def install_worker; end + + # Returns the value of attribute logger. + # + # source://scout_apm//lib/scout_apm/background_job_integrations/que.rb#9 + def logger; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/que.rb#11 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/background_job_integrations/que.rb#15 + def present?; end +end + +# source://scout_apm//lib/scout_apm/background_job_integrations/que.rb#6 +ScoutApm::BackgroundJobIntegrations::Que::ACTIVE_JOB_KLASS = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/background_job_integrations/que.rb#5 +ScoutApm::BackgroundJobIntegrations::Que::UNKNOWN_CLASS_PLACEHOLDER = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/background_job_integrations/que.rb#7 +ScoutApm::BackgroundJobIntegrations::Que::UNKNOWN_QUEUE_PLACEHOLDER = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/background_job_integrations/resque.rb#3 +class ScoutApm::BackgroundJobIntegrations::Resque + # Lies. This forks really aggressively, but we have to do handling + # of it manually here, rather than via any sort of automatic + # background worker starting + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/background_job_integrations/resque.rb#17 + def forking?; end + + # Insert ourselves into the point when resque turns a string "TestJob" + # into the class constant TestJob, and insert our instrumentation plugin + # into that constantized class + # + # This automates away any need for the user to insert our instrumentation into + # each of their jobs + # + # source://scout_apm//lib/scout_apm/background_job_integrations/resque.rb#60 + def inject_job_instrument; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/resque.rb#21 + def install; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/resque.rb#43 + def install_after_fork; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/resque.rb#26 + def install_before_fork; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/resque.rb#4 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/background_job_integrations/resque.rb#8 + def present?; end + + private + + # source://scout_apm//lib/scout_apm/background_job_integrations/resque.rb#74 + def bind; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/resque.rb#82 + def config; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/resque.rb#78 + def port; end +end + +# source://scout_apm//lib/scout_apm/background_job_integrations/shoryuken.rb#3 +class ScoutApm::BackgroundJobIntegrations::Shoryuken + # source://scout_apm//lib/scout_apm/background_job_integrations/shoryuken.rb#31 + def add_middleware; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/background_job_integrations/shoryuken.rb#14 + def forking?; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/shoryuken.rb#18 + def install; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/shoryuken.rb#39 + def install_processor; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/shoryuken.rb#24 + def install_tracer; end + + # Returns the value of attribute logger. + # + # source://scout_apm//lib/scout_apm/background_job_integrations/shoryuken.rb#4 + def logger; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/shoryuken.rb#6 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/background_job_integrations/shoryuken.rb#10 + def present?; end +end + +# We insert this middleware into the Shoryuken stack, to capture each job, +# and time them. +# +# source://scout_apm//lib/scout_apm/background_job_integrations/shoryuken.rb#59 +class ScoutApm::BackgroundJobIntegrations::ShoryukenMiddleware + # source://scout_apm//lib/scout_apm/background_job_integrations/shoryuken.rb#60 + def call(worker_instance, queue, msg, body); end + + # source://scout_apm//lib/scout_apm/background_job_integrations/shoryuken.rb#94 + def latency(msg, time = T.unsafe(nil)); end +end + +# source://scout_apm//lib/scout_apm/background_job_integrations/shoryuken.rb#92 +ScoutApm::BackgroundJobIntegrations::ShoryukenMiddleware::ACTIVE_JOB_KLASS = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/background_job_integrations/shoryuken.rb#91 +ScoutApm::BackgroundJobIntegrations::ShoryukenMiddleware::UNKNOWN_CLASS_PLACEHOLDER = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/background_job_integrations/sidekiq.rb#3 +class ScoutApm::BackgroundJobIntegrations::Sidekiq + # source://scout_apm//lib/scout_apm/background_job_integrations/sidekiq.rb#31 + def add_middleware; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/background_job_integrations/sidekiq.rb#14 + def forking?; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/sidekiq.rb#18 + def install; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/sidekiq.rb#39 + def install_processor; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/sidekiq.rb#24 + def install_tracer; end + + # Returns the value of attribute logger. + # + # source://scout_apm//lib/scout_apm/background_job_integrations/sidekiq.rb#4 + def logger; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/sidekiq.rb#6 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/background_job_integrations/sidekiq.rb#10 + def present?; end +end + +# We insert this middleware into the Sidekiq stack, to capture each job, +# and time them. +# +# source://scout_apm//lib/scout_apm/background_job_integrations/sidekiq.rb#51 +class ScoutApm::BackgroundJobIntegrations::SidekiqMiddleware + # source://scout_apm//lib/scout_apm/background_job_integrations/sidekiq.rb#52 + def call(_worker, msg, queue); end + + # Capturing the class name is a little tricky, since we need to handle several cases: + # 1. ActiveJob, with the class in the key 'wrapped' + # 2. ActiveJob, but the 'wrapped' key is wrong (due to YAJL serializing weirdly), find it in args.job_class + # 3. DelayedJob wrapper, deserializing using YAML into the real object, which can be introspected + # 4. No wrapper, just sidekiq's class + # + # source://scout_apm//lib/scout_apm/background_job_integrations/sidekiq.rb#82 + def job_class(msg); end + + # source://scout_apm//lib/scout_apm/background_job_integrations/sidekiq.rb#119 + def latency(msg, time = T.unsafe(nil)); end +end + +# source://scout_apm//lib/scout_apm/background_job_integrations/sidekiq.rb#73 +ScoutApm::BackgroundJobIntegrations::SidekiqMiddleware::ACTIVE_JOB_KLASS = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/background_job_integrations/sidekiq.rb#74 +ScoutApm::BackgroundJobIntegrations::SidekiqMiddleware::DELAYED_WRAPPER_KLASS = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/background_job_integrations/sidekiq.rb#72 +ScoutApm::BackgroundJobIntegrations::SidekiqMiddleware::UNKNOWN_CLASS_PLACEHOLDER = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/background_job_integrations/sneakers.rb#3 +class ScoutApm::BackgroundJobIntegrations::Sneakers + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/background_job_integrations/sneakers.rb#22 + def forking?; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/sneakers.rb#26 + def install; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/sneakers.rb#30 + def install_worker_override; end + + # source://scout_apm//lib/scout_apm/background_job_integrations/sneakers.rb#4 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/background_job_integrations/sneakers.rb#8 + def present?; end + + # Only support Sneakers 2.7 and up + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/background_job_integrations/sneakers.rb#13 + def supported_version?; end +end + +# source://scout_apm//lib/scout_apm/background_job_integrations/sneakers.rb#82 +ScoutApm::BackgroundJobIntegrations::Sneakers::ACTIVE_JOB_KLASS = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/background_job_integrations/sneakers.rb#83 +ScoutApm::BackgroundJobIntegrations::Sneakers::UNKNOWN_CLASS_PLACEHOLDER = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/background_job_integrations/sneakers.rb#84 +ScoutApm::BackgroundJobIntegrations::Sneakers::UNKNOWN_QUEUE_PLACEHOLDER = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/background_recorder.rb#6 +class ScoutApm::BackgroundRecorder + # @return [BackgroundRecorder] a new instance of BackgroundRecorder + # + # source://scout_apm//lib/scout_apm/background_recorder.rb#12 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/background_recorder.rb#7 + def context; end + + # source://scout_apm//lib/scout_apm/background_recorder.rb#17 + def logger; end + + # Returns the value of attribute queue. + # + # source://scout_apm//lib/scout_apm/background_recorder.rb#9 + def queue; end + + # source://scout_apm//lib/scout_apm/background_recorder.rb#31 + def record!(request); end + + # source://scout_apm//lib/scout_apm/background_recorder.rb#21 + def start; end + + # source://scout_apm//lib/scout_apm/background_recorder.rb#27 + def stop; end + + # Returns the value of attribute thread. + # + # source://scout_apm//lib/scout_apm/background_recorder.rb#10 + def thread; end + + # source://scout_apm//lib/scout_apm/background_recorder.rb#36 + def thread_func; end +end + +# source://scout_apm//lib/scout_apm/background_worker.rb#3 +class ScoutApm::BackgroundWorker + # @return [BackgroundWorker] a new instance of BackgroundWorker + # + # source://scout_apm//lib/scout_apm/background_worker.rb#11 + def initialize(context, period = T.unsafe(nil)); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/background_worker.rb#9 + def context; end + + # source://scout_apm//lib/scout_apm/background_worker.rb#17 + def logger; end + + # Returns the value of attribute period. + # + # source://scout_apm//lib/scout_apm/background_worker.rb#7 + def period; end + + # Runs the task passed to +start+ once. + # + # source://scout_apm//lib/scout_apm/background_worker.rb#31 + def run_once; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/background_worker.rb#21 + def running?; end + + # Starts running the passed block every 60 seconds (starting now). + # + # source://scout_apm//lib/scout_apm/background_worker.rb#36 + def start(&block); end + + # source://scout_apm//lib/scout_apm/background_worker.rb#25 + def stop; end +end + +# in seconds, time between when the worker thread wakes up and runs. +# +# source://scout_apm//lib/scout_apm/background_worker.rb#5 +ScoutApm::BackgroundWorker::DEFAULT_PERIOD = T.let(T.unsafe(nil), Integer) + +# source://scout_apm//lib/scout_apm/bucket_name_splitter.rb#2 +module ScoutApm::BucketNameSplitter + # source://scout_apm//lib/scout_apm/bucket_name_splitter.rb#7 + def bucket_name; end + + # source://scout_apm//lib/scout_apm/bucket_name_splitter.rb#3 + def bucket_type; end + + # source://scout_apm//lib/scout_apm/bucket_name_splitter.rb#11 + def key; end + + private + + # source://scout_apm//lib/scout_apm/bucket_name_splitter.rb#20 + def scope_hash; end + + # source://scout_apm//lib/scout_apm/bucket_name_splitter.rb#16 + def split_metric_name(metric_name); end +end + +# Encapsulates our logic to determine when a backtrace should be collected. +# +# source://scout_apm//lib/scout_apm/call_set.rb#3 +class ScoutApm::CallSet + # @return [CallSet] a new instance of CallSet + # + # source://scout_apm//lib/scout_apm/call_set.rb#10 + def initialize; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/call_set.rb#45 + def at_magic_number?; end + + # Returns the value of attribute call_count. + # + # source://scout_apm//lib/scout_apm/call_set.rb#8 + def call_count; end + + # We're selective on capturing a backtrace for two reasons: + # * Grouping ActiveRecord calls requires us to sanitize the SQL. This isn't cheap. + # * Capturing backtraces isn't cheap. + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/call_set.rb#39 + def capture_backtrace?; end + + # source://scout_apm//lib/scout_apm/call_set.rb#49 + def grouped_items; end + + # Limit our workload if time across this set of calls is small. + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/call_set.rb#31 + def past_time_threshold?; end + + # Determine this items' "hash key" + # + # source://scout_apm//lib/scout_apm/call_set.rb#58 + def unique_name_for(item); end + + # source://scout_apm//lib/scout_apm/call_set.rb#19 + def update!(item = T.unsafe(nil)); end +end + +# Fetch backtraces on this number of calls to a layer. The caller data is only collected on this call to limit overhead. +# +# source://scout_apm//lib/scout_apm/call_set.rb#5 +ScoutApm::CallSet::N_PLUS_ONE_MAGIC_NUMBER = T.let(T.unsafe(nil), Integer) + +# Minimum time in seconds before we start performing any work. This is to prevent doing a lot of work on already fast calls. +# +# source://scout_apm//lib/scout_apm/call_set.rb#6 +ScoutApm::CallSet::N_PLUS_ONE_TIME_THRESHOLD = T.let(T.unsafe(nil), Float) + +# source://scout_apm//lib/scout_apm/config.rb#50 +class ScoutApm::Config + # @return [Config] a new instance of Config + # + # source://scout_apm//lib/scout_apm/config.rb#238 + def initialize(context, overlays); end + + # Returns an array of config keys, values, and source + # {key: "monitor", value: "true", source: "environment"} + # + # source://scout_apm//lib/scout_apm/config.rb#273 + def all_settings; end + + # Did we load anything for configuration? + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/config.rb#266 + def any_keys_found?; end + + # source://scout_apm//lib/scout_apm/config.rb#280 + def log_settings(logger); end + + # source://scout_apm//lib/scout_apm/config.rb#287 + def logger; end + + # For a given key, what is the first overlay says that it can handle it? + # + # source://scout_apm//lib/scout_apm/config.rb#244 + def overlay_for_key(key); end + + # source://scout_apm//lib/scout_apm/config.rb#248 + def value(key); end + + class << self + # Load up a config instance, attempting to load a yaml file. Allows a + # definite location if requested, or will attempt to load the default + # configuration file: APP_ROOT/config/scout_apm.yml + # + # source://scout_apm//lib/scout_apm/config.rb#228 + def with_file(context, file_path = T.unsafe(nil), config = T.unsafe(nil)); end + + # Load up a config instance without attempting to load a file. + # Useful for bootstrapping. + # + # source://scout_apm//lib/scout_apm/config.rb#216 + def without_file(context); end + end +end + +# Any boolean is passed through +# A string is false iff it is 0 length, is "f", or "false" - otherwise true +# An number is false if it is exactly 0 +# Other types are false +# +# source://scout_apm//lib/scout_apm/config.rb#122 +class ScoutApm::Config::BooleanCoercion + # source://scout_apm//lib/scout_apm/config.rb#123 + def coerce(val); end + + # source://scout_apm//lib/scout_apm/config.rb#140 + def coerce_string(val); end +end + +# source://scout_apm//lib/scout_apm/config.rb#291 +class ScoutApm::Config::ConfigDefaults + # Defaults are here, but not counted as user specified. + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/config.rb#339 + def any_keys_found?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/config.rb#334 + def has_key?(key); end + + # source://scout_apm//lib/scout_apm/config.rb#343 + def name; end + + # source://scout_apm//lib/scout_apm/config.rb#330 + def value(key); end +end + +# source://scout_apm//lib/scout_apm/config.rb#292 +ScoutApm::Config::ConfigDefaults::DEFAULTS = T.let(T.unsafe(nil), Hash) + +# source://scout_apm//lib/scout_apm/config.rb#370 +class ScoutApm::Config::ConfigEnvironment + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/config.rb#384 + def any_keys_found?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/config.rb#376 + def has_key?(key); end + + # source://scout_apm//lib/scout_apm/config.rb#380 + def key_to_env_key(key); end + + # source://scout_apm//lib/scout_apm/config.rb#390 + def name; end + + # source://scout_apm//lib/scout_apm/config.rb#371 + def value(key); end +end + +# Attempts to load a configuration file, and parse it as YAML. If the file +# is not found, inaccessbile, or unparsable, log a message to that effect, +# and move on. +# +# source://scout_apm//lib/scout_apm/config.rb#398 +class ScoutApm::Config::ConfigFile + # @return [ConfigFile] a new instance of ConfigFile + # + # source://scout_apm//lib/scout_apm/config.rb#399 + def initialize(context, file_path = T.unsafe(nil), config = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/config.rb#419 + def any_keys_found?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/config.rb#415 + def has_key?(key); end + + # source://scout_apm//lib/scout_apm/config.rb#425 + def name; end + + # source://scout_apm//lib/scout_apm/config.rb#406 + def value(key); end + + private + + # source://scout_apm//lib/scout_apm/config.rb#471 + def app_environment; end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/config.rb#431 + def context; end + + # source://scout_apm//lib/scout_apm/config.rb#467 + def determine_file_path; end + + # source://scout_apm//lib/scout_apm/config.rb#433 + def load_file(file); end + + # source://scout_apm//lib/scout_apm/config.rb#475 + def logger; end +end + +# Good News: It has every config value you could want +# Bad News: The content of that config value is always nil +# Used for the null-object pattern +# +# source://scout_apm//lib/scout_apm/config.rb#352 +class ScoutApm::Config::ConfigNull + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/config.rb#361 + def any_keys_found?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/config.rb#357 + def has_key?(*_arg0); end + + # source://scout_apm//lib/scout_apm/config.rb#365 + def name; end + + # source://scout_apm//lib/scout_apm/config.rb#353 + def value(*_arg0); end +end + +# source://scout_apm//lib/scout_apm/config.rb#167 +class ScoutApm::Config::IntegerCoercion + # source://scout_apm//lib/scout_apm/config.rb#168 + def coerce(val); end +end + +# If the passed value is a string, attempt to decode as json +# This is a no-op unless the `JSON` constant is defined +# +# source://scout_apm//lib/scout_apm/config.rb#152 +class ScoutApm::Config::JsonCoercion + # source://scout_apm//lib/scout_apm/config.rb#153 + def coerce(val); end +end + +# source://scout_apm//lib/scout_apm/config.rb#51 +ScoutApm::Config::KNOWN_CONFIG_OPTIONS = T.let(T.unsafe(nil), Array) + +# Simply returns the passed in value, without change +# +# source://scout_apm//lib/scout_apm/config.rb#174 +class ScoutApm::Config::NullCoercion + # source://scout_apm//lib/scout_apm/config.rb#175 + def coerce(val); end +end + +# source://scout_apm//lib/scout_apm/config.rb#181 +ScoutApm::Config::SETTING_COERCIONS = T.let(T.unsafe(nil), Hash) + +# source://scout_apm//lib/scout_apm/context.rb#7 +class ScoutApm::Context + # @return [Context] a new instance of Context + # + # source://scout_apm//lib/scout_apm/context.rb#10 + def initialize(context); end + + # Add context + # ScoutApm::Context.add(account: current_account.name) + # + # source://scout_apm//lib/scout_apm/context.rb#41 + def add(hash); end + + # source://scout_apm//lib/scout_apm/context.rb#45 + def add_user(hash); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/context.rb#8 + def context; end + + # source://scout_apm//lib/scout_apm/context.rb#16 + def logger; end + + # source://scout_apm//lib/scout_apm/context.rb#26 + def to_flat_hash; end + + # Generates a hash representation of the Context. + # Example: {:monthly_spend => 100, :user => {:ip => '127.0.0.1'}} + # + # source://scout_apm//lib/scout_apm/context.rb#22 + def to_hash; end + + private + + # for consistently with #value_valid?, takes a hash eventhough the value isn't yet used. + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/context.rb#105 + def key_valid?(key_value); end + + # source://scout_apm//lib/scout_apm/context.rb#61 + def update_context(attr, hash); end + + # Returns true if the obj is one of the provided valid classes. + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/context.rb#79 + def valid_type?(classes, obj); end + + # take the entire Hash vs. just the value so the logger output is more helpful on error. + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/context.rb#91 + def value_valid?(key_value); end + + class << self + # Convenience accessor so you can just call @ScoutAPM::Context#add@ + # + # source://scout_apm//lib/scout_apm/context.rb#50 + def add(hash); end + + # Convenience accessor so you can just call @ScoutAPM::Context#add_user@ + # + # source://scout_apm//lib/scout_apm/context.rb#55 + def add_user(hash); end + + # source://scout_apm//lib/scout_apm/context.rb#35 + def current; end + end +end + +# source://scout_apm//lib/scout_apm/db_query_metric_set.rb#3 +class ScoutApm::DbQueryMetricSet + include ::Enumerable + + # @return [DbQueryMetricSet] a new instance of DbQueryMetricSet + # + # source://scout_apm//lib/scout_apm/db_query_metric_set.rb#17 + def initialize(context); end + + # Add a single DbQueryMetricStats object to this set. + # + # Looks up an existing one under this key and merges, or just saves a new + # one under the key + # + # source://scout_apm//lib/scout_apm/db_query_metric_set.rb#54 + def <<(stat); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/db_query_metric_set.rb#91 + def at_limit?; end + + # Take another set, and merge it with this one + # + # source://scout_apm//lib/scout_apm/db_query_metric_set.rb#43 + def combine!(other); end + + # Need to look this up again if we end up as nil. Which I guess can happen + # after a Marshal load? + # + # source://scout_apm//lib/scout_apm/db_query_metric_set.rb#26 + def context; end + + # source://scout_apm//lib/scout_apm/db_query_metric_set.rb#30 + def each; end + + # source://scout_apm//lib/scout_apm/db_query_metric_set.rb#66 + def increment_transaction_count!; end + + # source://scout_apm//lib/scout_apm/db_query_metric_set.rb#85 + def inspect; end + + # Looks up a DbQueryMetricStats instance in the +@metrics+ hash. Sets the value to +other+ if no key + # Returns a DbQueryMetricStats instance + # + # source://scout_apm//lib/scout_apm/db_query_metric_set.rb#38 + def lookup(other); end + + # source://scout_apm//lib/scout_apm/db_query_metric_set.rb#8 + def marshal_dump; end + + # source://scout_apm//lib/scout_apm/db_query_metric_set.rb#12 + def marshal_load(array); end + + # the raw metrics. You probably want #metrics_to_report + # + # source://scout_apm//lib/scout_apm/db_query_metric_set.rb#6 + def metrics; end + + # source://scout_apm//lib/scout_apm/db_query_metric_set.rb#72 + def metrics_to_report; end +end + +# source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#2 +class ScoutApm::DbQueryMetricStats + # @return [DbQueryMetricStats] a new instance of DbQueryMetricStats + # + # source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#24 + def initialize(model_name, operation, scope, call_count, call_time, rows_returned); end + + # source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#72 + def as_json; end + + # Returns the value of attribute call_count. + # + # source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#12 + def call_count; end + + # Returns the value of attribute call_time. + # + # source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#13 + def call_time; end + + # Combine data from another DbQueryMetricStats into +self+. Modifies and returns +self+ + # + # source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#54 + def combine!(other); end + + # Returns the value of attribute histogram. + # + # source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#22 + def histogram; end + + # Called by the Set on each DbQueryMetricStats object that it holds, only + # once during the recording of a transaction. + # + # Don't call elsewhere, and don't set to 1 in the initializer. + # + # source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#98 + def increment_transaction_count!; end + + # Merge data in this scope. Used in DbQueryMetricSet + # + # source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#49 + def key; end + + # Returns the value of attribute max_call_time. + # + # source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#17 + def max_call_time; end + + # Returns the value of attribute max_rows_returned. + # + # source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#20 + def max_rows_returned; end + + # Returns the value of attribute min_call_time. + # + # source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#16 + def min_call_time; end + + # Returns the value of attribute min_rows_returned. + # + # source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#19 + def min_rows_returned; end + + # Returns the value of attribute model_name. + # + # source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#6 + def model_name; end + + # Returns the value of attribute operation. + # + # source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#7 + def operation; end + + # Returns the value of attribute rows_returned. + # + # source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#14 + def rows_returned; end + + # Returns the value of attribute scope. + # + # source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#8 + def scope; end + + # Returns the value of attribute transaction_count. + # + # source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#10 + def transaction_count; end +end + +# source://scout_apm//lib/scout_apm/db_query_metric_stats.rb#4 +ScoutApm::DbQueryMetricStats::DEFAULT_HISTOGRAM_SIZE = T.let(T.unsafe(nil), Integer) + +# source://scout_apm//lib/scout_apm/debug.rb#2 +class ScoutApm::Debug + # @return [Debug] a new instance of Debug + # + # source://scout_apm//lib/scout_apm/debug.rb#29 + def initialize; end + + # source://scout_apm//lib/scout_apm/debug.rb#14 + def call_periodic_hooks; end + + # source://scout_apm//lib/scout_apm/debug.rb#10 + def register_periodic_hook(&hook); end + + private + + # source://scout_apm//lib/scout_apm/debug.rb#33 + def logger; end + + class << self + # source://scout_apm//lib/scout_apm/debug.rb#6 + def instance; end + end +end + +# source://scout_apm//lib/scout_apm/environment.rb#5 +class ScoutApm::Environment + include ::Singleton + extend ::Singleton::SingletonClassMethods + + # App server's name (symbol) + # + # source://scout_apm//lib/scout_apm/environment.rb#138 + def app_server; end + + # Returns the whole integration object + # This needs to be improved. Frequently, multiple app servers gem are present and which + # ever is checked first becomes the designated app server. + # + # Next step: (1) list out all detected app servers (2) install hooks for those that need it (passenger, rainbows, unicorn). + # + # source://scout_apm//lib/scout_apm/environment.rb#132 + def app_server_integration(force = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/environment.rb#65 + def application_name; end + + # source://scout_apm//lib/scout_apm/environment.rb#148 + def background_job_integrations; end + + # source://scout_apm//lib/scout_apm/environment.rb#71 + def database_engine; end + + # source://scout_apm//lib/scout_apm/environment.rb#49 + def env; end + + # If forking, don't start worker thread in the master process. Since it's + # started as a Thread, it won't survive the fork. + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/environment.rb#144 + def forking?; end + + # source://scout_apm//lib/scout_apm/environment.rb#53 + def framework; end + + # source://scout_apm//lib/scout_apm/environment.rb#57 + def framework_integration; end + + # source://scout_apm//lib/scout_apm/environment.rb#104 + def framework_root; end + + # source://scout_apm//lib/scout_apm/environment.rb#123 + def git_revision; end + + # source://scout_apm//lib/scout_apm/environment.rb#119 + def hostname; end + + # If both stdin & stdout are interactive and the Rails::Console constant is defined + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/environment.rb#157 + def interactive?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/environment.rb#167 + def jruby?; end + + # Returns a string representation of the OS (ex: darwin, linux) + # + # source://scout_apm//lib/scout_apm/environment.rb#207 + def os; end + + # source://scout_apm//lib/scout_apm/environment.rb#61 + def platform_integration; end + + # source://scout_apm//lib/scout_apm/environment.rb#79 + def processors; end + + # source://scout_apm//lib/scout_apm/environment.rb#75 + def raw_database_adapter; end + + # source://scout_apm//lib/scout_apm/environment.rb#100 + def root; end + + # ruby checks + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/environment.rb#163 + def rubinius?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/environment.rb#176 + def ruby_187?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/environment.rb#171 + def ruby_19?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/environment.rb#181 + def ruby_2?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/environment.rb#186 + def ruby_3?; end + + # source://scout_apm//lib/scout_apm/environment.rb#191 + def ruby_minor; end + + # source://scout_apm//lib/scout_apm/environment.rb#92 + def scm_subdirectory; end + + # framework checks + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/environment.rb#220 + def sinatra?; end + + # Returns true if this Ruby version makes positional and keyword arguments incompatible + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/environment.rb#202 + def supports_kwarg_delegation?; end + + # Returns true if this Ruby version supports Module#prepend. + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/environment.rb#197 + def supports_module_prepend?; end + + class << self + private + + def allocate; end + def new(*_arg0); end + end +end + +# source://scout_apm//lib/scout_apm/environment.rb#26 +ScoutApm::Environment::BACKGROUND_JOB_INTEGRATIONS = T.let(T.unsafe(nil), Array) + +# source://scout_apm//lib/scout_apm/environment.rb#36 +ScoutApm::Environment::FRAMEWORK_INTEGRATIONS = T.let(T.unsafe(nil), Array) + +# source://scout_apm//lib/scout_apm/environment.rb#43 +ScoutApm::Environment::PLATFORM_INTEGRATIONS = T.let(T.unsafe(nil), Array) + +# I've put Thin and Webrick last as they are often used in development and included in Gemfiles +# but less likely used in production. +# +# source://scout_apm//lib/scout_apm/environment.rb#16 +ScoutApm::Environment::SERVER_INTEGRATIONS = T.let(T.unsafe(nil), Array) + +# source://scout_apm//lib/scout_apm/environment.rb#8 +ScoutApm::Environment::STDOUT_LOGGER = T.let(T.unsafe(nil), Logger) + +# source://scout_apm//lib/scout_apm/error.rb#5 +module ScoutApm::Error + class << self + # Capture an exception, optionally with an environment hash. This may be a + # Rack environment, but is not required. + # + # source://scout_apm//lib/scout_apm/error.rb#8 + def capture(exception, env = T.unsafe(nil)); end + end +end + +# source://scout_apm//lib/scout_apm/error_service.rb#6 +module ScoutApm::ErrorService + class << self + # Public API to force a given exception to be captured. + # Still obeys the ignore list + # Used internally by SidekiqException + # + # source://scout_apm//lib/scout_apm/error_service.rb#17 + def capture(exception, params = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/error_service.rb#30 + def disabled?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/error_service.rb#26 + def enabled?; end + end +end + +# source://scout_apm//lib/scout_apm/error_service.rb#7 +ScoutApm::ErrorService::API_VERSION = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/error_service/error_buffer.rb#4 +class ScoutApm::ErrorService::ErrorBuffer + include ::Enumerable + + # @return [ErrorBuffer] a new instance of ErrorBuffer + # + # source://scout_apm//lib/scout_apm/error_service/error_buffer.rb#9 + def initialize(agent_context); end + + # Returns the value of attribute agent_context. + # + # source://scout_apm//lib/scout_apm/error_service/error_buffer.rb#7 + def agent_context; end + + # source://scout_apm//lib/scout_apm/error_service/error_buffer.rb#15 + def capture(exception, env); end + + # Enables enumerable - for count and each and similar methods + # + # source://scout_apm//lib/scout_apm/error_service/error_buffer.rb#32 + def each; end + + # source://scout_apm//lib/scout_apm/error_service/error_buffer.rb#23 + def get_and_reset_error_records; end +end + +# Converts the raw error data captured into the captured data, and holds it +# until it's ready to be reported. +# +# source://scout_apm//lib/scout_apm/error_service/error_record.rb#5 +class ScoutApm::ErrorService::ErrorRecord + # @return [ErrorRecord] a new instance of ErrorRecord + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#16 + def initialize(agent_context, exception, env, context = T.unsafe(nil)); end + + # TODO: When was backtrace_cleaner introduced? + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#83 + def clean_backtrace(backtrace); end + + # TODO: This name is too vague + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#75 + def clean_params(params); end + + # TODO: This is rails specific + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#36 + def components(env); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#14 + def context; end + + # Returns the value of attribute environment. + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#11 + def environment; end + + # Returns the value of attribute exception_class. + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#6 + def exception_class; end + + # Check, if a key should be filtered + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#173 + def filter_key?(key); end + + # Replaces parameter values with a string / set in config file + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#158 + def filter_params(params); end + + # Accessor for the filtered params config value. Will be removed as we refactor and clean up this code. + # TODO: Flip this over to use a new class like filtered exceptions? + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#185 + def filtered_params_config; end + + # Returns the value of attribute message. + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#7 + def message; end + + # TODO: Rename and make this clearer. I think it maps over the whole tree of a hash, and to_s each leaf node? + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#135 + def normalize_data(hash); end + + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#179 + def params_to_filter; end + + # TODO: Can I use the same thing we use in traces? + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#52 + def rack_request_url(env); end + + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#64 + def rack_scheme(env); end + + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#189 + def rails_filtered_params; end + + # Returns the value of attribute request_components. + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#13 + def request_components; end + + # Returns the value of attribute request_params. + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#9 + def request_params; end + + # Returns the value of attribute request_session. + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#10 + def request_session; end + + # Returns the value of attribute request_uri. + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#8 + def request_uri; end + + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#123 + def session_data(env); end + + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#119 + def strip_env(env); end + + # Returns the value of attribute trace. + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#12 + def trace; end +end + +# Deletes params from env +# +# These are not configurable, and will leak PII info up to Scout if +# allowed through. Things like specific parameters can be exposed with +# the ScoutApm::Context interface. +# +# source://scout_apm//lib/scout_apm/error_service/error_record.rb#96 +ScoutApm::ErrorService::ErrorRecord::KEYS_TO_REMOVE = T.let(T.unsafe(nil), Array) + +# source://scout_apm//lib/scout_apm/error_service/error_record.rb#196 +class ScoutApm::ErrorService::ErrorRecord::LengthLimit + # @return [LengthLimit] a new instance of LengthLimit + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#200 + def initialize(text, char_limit = T.unsafe(nil)); end + + # Returns the value of attribute char_limit. + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#198 + def char_limit; end + + # Returns the value of attribute text. + # + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#197 + def text; end + + # source://scout_apm//lib/scout_apm/error_service/error_record.rb#205 + def to_s; end +end + +# source://scout_apm//lib/scout_apm/error_service.rb#9 +ScoutApm::ErrorService::HEADERS = T.let(T.unsafe(nil), Hash) + +# source://scout_apm//lib/scout_apm/error_service/ignored_exceptions.rb#5 +class ScoutApm::ErrorService::IgnoredExceptions + # @return [IgnoredExceptions] a new instance of IgnoredExceptions + # + # source://scout_apm//lib/scout_apm/error_service/ignored_exceptions.rb#9 + def initialize(context, from_config); end + + # Add a single ignored exception by class name + # + # source://scout_apm//lib/scout_apm/error_service/ignored_exceptions.rb#16 + def add(klass_or_str); end + + # Add a callback block that will be called on every error. If it returns + # Signature of blocks: ->(exception object): truthy or falsy value + # + # source://scout_apm//lib/scout_apm/error_service/ignored_exceptions.rb#22 + def add_callback(&block); end + + # Returns the value of attribute blocks. + # + # source://scout_apm//lib/scout_apm/error_service/ignored_exceptions.rb#7 + def blocks; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/error_service/ignored_exceptions.rb#26 + def ignored?(exception_object); end + + # Returns the value of attribute ignored_exceptions. + # + # source://scout_apm//lib/scout_apm/error_service/ignored_exceptions.rb#6 + def ignored_exceptions; end + + private + + # source://scout_apm//lib/scout_apm/error_service/ignored_exceptions.rb#46 + def normalize_as_klass(klass_or_str); end +end + +# source://scout_apm//lib/scout_apm/error_service/middleware.rb#3 +class ScoutApm::ErrorService::Middleware + # @return [Middleware] a new instance of Middleware + # + # source://scout_apm//lib/scout_apm/error_service/middleware.rb#4 + def initialize(app); end + + # source://scout_apm//lib/scout_apm/error_service/middleware.rb#8 + def call(env); end +end + +# source://scout_apm//lib/scout_apm/error_service/notifier.rb#3 +class ScoutApm::ErrorService::Notifier + # @return [Notifier] a new instance of Notifier + # + # source://scout_apm//lib/scout_apm/error_service/notifier.rb#7 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/error_service/notifier.rb#4 + def context; end + + # Returns the value of attribute reporter. + # + # source://scout_apm//lib/scout_apm/error_service/notifier.rb#5 + def reporter; end + + # source://scout_apm//lib/scout_apm/error_service/notifier.rb#12 + def ship; end + + private + + # source://scout_apm//lib/scout_apm/error_service/notifier.rb#25 + def default_headers; end +end + +# source://scout_apm//lib/scout_apm/error_service/payload.rb#3 +class ScoutApm::ErrorService::Payload + # @return [Payload] a new instance of Payload + # + # source://scout_apm//lib/scout_apm/error_service/payload.rb#7 + def initialize(context, errors); end + + # source://scout_apm//lib/scout_apm/error_service/payload.rb#19 + def as_json; end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/error_service/payload.rb#4 + def context; end + + # Returns the value of attribute errors. + # + # source://scout_apm//lib/scout_apm/error_service/payload.rb#5 + def errors; end + + # TODO: Don't use to_json since it isn't supported in Ruby 1.8.7 + # + # source://scout_apm//lib/scout_apm/error_service/payload.rb#13 + def serialize; end + + # source://scout_apm//lib/scout_apm/error_service/payload.rb#32 + def serialize_error_record(error_record); end +end + +# source://scout_apm//lib/scout_apm/error_service/periodic_work.rb#3 +class ScoutApm::ErrorService::PeriodicWork + # @return [PeriodicWork] a new instance of PeriodicWork + # + # source://scout_apm//lib/scout_apm/error_service/periodic_work.rb#6 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/error_service/periodic_work.rb#4 + def context; end + + # Expected to be called many times over the life of the agent + # + # source://scout_apm//lib/scout_apm/error_service/periodic_work.rb#12 + def run; end +end + +# source://scout_apm//lib/scout_apm/error_service/sidekiq.rb#3 +class ScoutApm::ErrorService::Sidekiq + # @return [Sidekiq] a new instance of Sidekiq + # + # source://scout_apm//lib/scout_apm/error_service/sidekiq.rb#4 + def initialize; end + + # source://scout_apm//lib/scout_apm/error_service/sidekiq.rb#8 + def install; end + + # source://scout_apm//lib/scout_apm/error_service/sidekiq.rb#29 + def install_sidekiq_with_error_handler; end + + # source://scout_apm//lib/scout_apm/error_service/sidekiq.rb#20 + def install_sidekiq_with_middleware; end +end + +# source://scout_apm//lib/scout_apm/error_service/sidekiq.rb#54 +class ScoutApm::ErrorService::Sidekiq::SidekiqExceptionMiddleware + # source://scout_apm//lib/scout_apm/error_service/sidekiq.rb#55 + def call(worker, msg, queue); end +end + +# source://scout_apm//lib/scout_apm/extensions/config.rb#2 +module ScoutApm::Extensions; end + +# !!! Extensions are a 0.x level API and breakage is expected as the API is refined. +# Extensions fan out data collected by the agent to additional services. +# +# source://scout_apm//lib/scout_apm/extensions/config.rb#5 +class ScoutApm::Extensions::Config + # @return [Config] a new instance of Config + # + # source://scout_apm//lib/scout_apm/extensions/config.rb#33 + def initialize(agent_context); end + + # Returns the value of attribute agent_context. + # + # source://scout_apm//lib/scout_apm/extensions/config.rb#6 + def agent_context; end + + # source://scout_apm//lib/scout_apm/extensions/config.rb#81 + def logger; end + + # Returns the value of attribute periodic_callbacks. + # + # source://scout_apm//lib/scout_apm/extensions/config.rb#8 + def periodic_callbacks; end + + # Sets the attribute periodic_callbacks + # + # @param value the value to set the attribute periodic_callbacks to. + # + # source://scout_apm//lib/scout_apm/extensions/config.rb#8 + def periodic_callbacks=(_arg0); end + + # Runs each reporting period callback. + # Each callback runs inside a begin/rescue block so a broken callback doesn't prevent other + # callbacks from executing or reporting data from being sent. + # + # source://scout_apm//lib/scout_apm/extensions/config.rb#42 + def run_periodic_callbacks(reporting_period, metadata); end + + # Runs each transaction callback. + # Each callback runs inside a begin/rescue block so a broken callback doesn't prevent other + # callbacks from executing or the transaction from being recorded. + # + # source://scout_apm//lib/scout_apm/extensions/config.rb#59 + def run_transaction_callbacks(converter_results, context, scope_layer); end + + # Returns the value of attribute transaction_callbacks. + # + # source://scout_apm//lib/scout_apm/extensions/config.rb#7 + def transaction_callbacks; end + + # Sets the attribute transaction_callbacks + # + # @param value the value to set the attribute transaction_callbacks to. + # + # source://scout_apm//lib/scout_apm/extensions/config.rb#7 + def transaction_callbacks=(_arg0); end + + class << self + # Adds a callback that runs when the per-minute report data is sent to Scout. + # These run in a background thread so external HTTP calls are OK. + # +callback+ must be an object that responds to a +call(reporting_period, metadata)+ method. + # + # Example: + # ScoutApm::Extensions::Config.add_periodic_callback(Proc.new { |reporting_period, metadata| ... }) + # + # source://scout_apm//lib/scout_apm/extensions/config.rb#29 + def add_periodic_callback(callback); end + + # Adds a new callback that runs after a transaction completes. + # These run inline during the request and thus should add minimal overhead. + # For example, a transaction callback should NOT make inline HTTP calls to outside services. + # +callback+ must be an object that respond to a +call(payload)+ method. + # + # Example: + # ScoutApm::Extensions::Config.add_transaction_callback(Proc.new { |payload| puts "Duration: #{payload.duration_ms}" }) + # + # +payload+ is a +ScoutApm::Extensions::TransactionCallbackPayload+ object. + # + # source://scout_apm//lib/scout_apm/extensions/config.rb#19 + def add_transaction_callback(callback); end + + # source://scout_apm//lib/scout_apm/extensions/config.rb#77 + def agent_context; end + end +end + +# A +TransactionCallbackPayload+ is passed to each Transaction callback's +call+ method. +# It encapsulates the data about a specific transaction. +# +# source://scout_apm//lib/scout_apm/extensions/transaction_callback_payload.rb#5 +class ScoutApm::Extensions::TransactionCallbackPayload + # @return [TransactionCallbackPayload] a new instance of TransactionCallbackPayload + # + # source://scout_apm//lib/scout_apm/extensions/transaction_callback_payload.rb#9 + def initialize(agent_context, converter_results, context, scope_layer); end + + # source://scout_apm//lib/scout_apm/extensions/transaction_callback_payload.rb#44 + def app_name; end + + # A flat hash of the context associated w/this transaction (ie user ip and another other data added to context). + # + # source://scout_apm//lib/scout_apm/extensions/transaction_callback_payload.rb#17 + def context; end + + # A Hash that stores the output of each layer converter by name. See the naming conventions in +TrackedRequest+. + # + # source://scout_apm//lib/scout_apm/extensions/transaction_callback_payload.rb#7 + def converter_results; end + + # A Hash that stores the output of each layer converter by name. See the naming conventions in +TrackedRequest+. + # + # source://scout_apm//lib/scout_apm/extensions/transaction_callback_payload.rb#7 + def converter_results=(_arg0); end + + # The total duration of the transaction + # + # source://scout_apm//lib/scout_apm/extensions/transaction_callback_payload.rb#22 + def duration_ms; end + + # Returns +true+ if the transaction raised an exception. + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/extensions/transaction_callback_payload.rb#49 + def error?; end + + # source://scout_apm//lib/scout_apm/extensions/transaction_callback_payload.rb#40 + def hostname; end + + # The time in queue of the transaction in ms. If not present, +nil+ is returned as this is unknown. + # + # source://scout_apm//lib/scout_apm/extensions/transaction_callback_payload.rb#27 + def queue_time_ms; end + + # source://scout_apm//lib/scout_apm/extensions/transaction_callback_payload.rb#57 + def transaction_name; end + + # Web/Job are more language-agnostic names for controller/job. For example, Python Django does not have controllers. + # + # source://scout_apm//lib/scout_apm/extensions/transaction_callback_payload.rb#62 + def transaction_type_slug; end + + # source://scout_apm//lib/scout_apm/extensions/transaction_callback_payload.rb#53 + def transation_type; end +end + +# source://scout_apm//lib/scout_apm/external_service_metric_set.rb#3 +class ScoutApm::ExternalServiceMetricSet + include ::Enumerable + + # @return [ExternalServiceMetricSet] a new instance of ExternalServiceMetricSet + # + # source://scout_apm//lib/scout_apm/external_service_metric_set.rb#17 + def initialize(context); end + + # Add a single ExternalServiceMetricStats object to this set. + # + # Looks up an existing one under this key and merges, or just saves a new + # one under the key + # + # source://scout_apm//lib/scout_apm/external_service_metric_set.rb#54 + def <<(stat); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/external_service_metric_set.rb#91 + def at_limit?; end + + # Take another set, and merge it with this one + # + # source://scout_apm//lib/scout_apm/external_service_metric_set.rb#43 + def combine!(other); end + + # Need to look this up again if we end up as nil. Which I guess can happen + # after a Marshal load? + # + # source://scout_apm//lib/scout_apm/external_service_metric_set.rb#26 + def context; end + + # source://scout_apm//lib/scout_apm/external_service_metric_set.rb#30 + def each; end + + # source://scout_apm//lib/scout_apm/external_service_metric_set.rb#66 + def increment_transaction_count!; end + + # source://scout_apm//lib/scout_apm/external_service_metric_set.rb#85 + def inspect; end + + # Looks up a ExternalServiceMetricStats instance in the +@metrics+ hash. Sets the value to +other+ if no key + # Returns a ExternalServiceMetricStats instance + # + # source://scout_apm//lib/scout_apm/external_service_metric_set.rb#38 + def lookup(other); end + + # source://scout_apm//lib/scout_apm/external_service_metric_set.rb#8 + def marshal_dump; end + + # source://scout_apm//lib/scout_apm/external_service_metric_set.rb#12 + def marshal_load(array); end + + # the raw metrics. You probably want #metrics_to_report + # + # source://scout_apm//lib/scout_apm/external_service_metric_set.rb#6 + def metrics; end + + # source://scout_apm//lib/scout_apm/external_service_metric_set.rb#72 + def metrics_to_report; end +end + +# source://scout_apm//lib/scout_apm/external_service_metric_stats.rb#2 +class ScoutApm::ExternalServiceMetricStats + # @return [ExternalServiceMetricStats] a new instance of ExternalServiceMetricStats + # + # source://scout_apm//lib/scout_apm/external_service_metric_stats.rb#20 + def initialize(domain_name, operation, scope, call_count, call_time); end + + # source://scout_apm//lib/scout_apm/external_service_metric_stats.rb#59 + def as_json; end + + # Returns the value of attribute call_count. + # + # source://scout_apm//lib/scout_apm/external_service_metric_stats.rb#12 + def call_count; end + + # Returns the value of attribute call_time. + # + # source://scout_apm//lib/scout_apm/external_service_metric_stats.rb#13 + def call_time; end + + # Combine data from another ExternalServiceMetricStats into +self+. Modifies and returns +self+ + # + # source://scout_apm//lib/scout_apm/external_service_metric_stats.rb#45 + def combine!(other); end + + # Returns the value of attribute domain_name. + # + # source://scout_apm//lib/scout_apm/external_service_metric_stats.rb#6 + def domain_name; end + + # Returns the value of attribute histogram. + # + # source://scout_apm//lib/scout_apm/external_service_metric_stats.rb#18 + def histogram; end + + # Called by the Set on each ExternalServiceMetricStats object that it holds, only + # once during the recording of a transaction. + # + # Don't call elsewhere, and don't set to 1 in the initializer. + # + # source://scout_apm//lib/scout_apm/external_service_metric_stats.rb#81 + def increment_transaction_count!; end + + # Merge data in this scope. Used in ExternalServiceMetricSet + # + # source://scout_apm//lib/scout_apm/external_service_metric_stats.rb#40 + def key; end + + # Returns the value of attribute max_call_time. + # + # source://scout_apm//lib/scout_apm/external_service_metric_stats.rb#16 + def max_call_time; end + + # Returns the value of attribute min_call_time. + # + # source://scout_apm//lib/scout_apm/external_service_metric_stats.rb#15 + def min_call_time; end + + # Returns the value of attribute operation. + # + # source://scout_apm//lib/scout_apm/external_service_metric_stats.rb#7 + def operation; end + + # Returns the value of attribute scope. + # + # source://scout_apm//lib/scout_apm/external_service_metric_stats.rb#8 + def scope; end + + # Returns the value of attribute transaction_count. + # + # source://scout_apm//lib/scout_apm/external_service_metric_stats.rb#10 + def transaction_count; end +end + +# source://scout_apm//lib/scout_apm/external_service_metric_stats.rb#4 +ScoutApm::ExternalServiceMetricStats::DEFAULT_HISTOGRAM_SIZE = T.let(T.unsafe(nil), Integer) + +# source://scout_apm//lib/scout_apm/fake_store.rb#4 +class ScoutApm::FakeStore + # @return [FakeStore] a new instance of FakeStore + # + # source://scout_apm//lib/scout_apm/fake_store.rb#6 + def initialize; end + + # source://scout_apm//lib/scout_apm/fake_store.rb#44 + def add_sampler(sampler); end + + # source://scout_apm//lib/scout_apm/fake_store.rb#9 + def current_timestamp; end + + # source://scout_apm//lib/scout_apm/fake_store.rb#47 + def tick!; end + + # source://scout_apm//lib/scout_apm/fake_store.rb#14 + def track!(metrics, options = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/fake_store.rb#26 + def track_db_query_metrics!(db_query_metric_set, options = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/fake_store.rb#29 + def track_external_service_metrics!(external_service_metric_set, options = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/fake_store.rb#23 + def track_histograms!(histograms, options = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/fake_store.rb#35 + def track_job!(job); end + + # source://scout_apm//lib/scout_apm/fake_store.rb#17 + def track_one!(type, name, value, options = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/fake_store.rb#38 + def track_slow_job!(job); end + + # source://scout_apm//lib/scout_apm/fake_store.rb#32 + def track_slow_transaction!(slow_transaction); end + + # source://scout_apm//lib/scout_apm/fake_store.rb#20 + def track_trace!(trace, type); end + + # source://scout_apm//lib/scout_apm/fake_store.rb#41 + def write_to_layaway(layaway, force = T.unsafe(nil)); end +end + +# source://scout_apm//lib/scout_apm/framework_integrations/rails_2.rb#2 +module ScoutApm::FrameworkIntegrations; end + +# source://scout_apm//lib/scout_apm/framework_integrations/rails_2.rb#3 +class ScoutApm::FrameworkIntegrations::Rails2 + # source://scout_apm//lib/scout_apm/framework_integrations/rails_2.rb#23 + def application_name; end + + # Attempts to determine the database engine being used + # + # source://scout_apm//lib/scout_apm/framework_integrations/rails_2.rb#37 + def database_engine; end + + # source://scout_apm//lib/scout_apm/framework_integrations/rails_2.rb#32 + def env; end + + # source://scout_apm//lib/scout_apm/framework_integrations/rails_2.rb#8 + def human_name; end + + # source://scout_apm//lib/scout_apm/framework_integrations/rails_2.rb#4 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/framework_integrations/rails_2.rb#16 + def present?; end + + # source://scout_apm//lib/scout_apm/framework_integrations/rails_2.rb#57 + def raw_database_adapter; end + + # source://scout_apm//lib/scout_apm/framework_integrations/rails_2.rb#12 + def version; end +end + +# source://scout_apm//lib/scout_apm/framework_integrations/rails_3_or_4.rb#3 +class ScoutApm::FrameworkIntegrations::Rails3Or4 + # source://scout_apm//lib/scout_apm/framework_integrations/rails_3_or_4.rb#23 + def application_name; end + + # source://scout_apm//lib/scout_apm/framework_integrations/rails_3_or_4.rb#36 + def database_engine; end + + # source://scout_apm//lib/scout_apm/framework_integrations/rails_3_or_4.rb#32 + def env; end + + # source://scout_apm//lib/scout_apm/framework_integrations/rails_3_or_4.rb#8 + def human_name; end + + # source://scout_apm//lib/scout_apm/framework_integrations/rails_3_or_4.rb#4 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/framework_integrations/rails_3_or_4.rb#16 + def present?; end + + # Note, this code intentionally avoids `.respond_to?` because of an + # infinite loop created by the Textacular gem (tested against 3.2.2 of + # that gem), which some customers have installed. + # + # The loop was: + # - Ask for database adapter + # - Do .respond_to? on AR::Base to look for connection_config (which isn't present on some versions of rails) + # - Textacular gem has a monkey-patch that queries the columns of the db + # This obtains a connection, and runs a query. + # - Scout tries to run SQLSanitizer against the query, which needs the database adapter. + # - Goes back to first step. + # + # We avoid this issue by not calling .respond_to? here, and instead using the less optimal `rescue nil` approach + # + # source://scout_apm//lib/scout_apm/framework_integrations/rails_3_or_4.rb#73 + def raw_database_adapter; end + + # source://scout_apm//lib/scout_apm/framework_integrations/rails_3_or_4.rb#12 + def version; end +end + +# source://scout_apm//lib/scout_apm/framework_integrations/ruby.rb#3 +class ScoutApm::FrameworkIntegrations::Ruby + # TODO: Fetch the name (Somehow?) + # + # source://scout_apm//lib/scout_apm/framework_integrations/ruby.rb#21 + def application_name; end + + # TODO: Figure out how to accomodate odd environments + # + # source://scout_apm//lib/scout_apm/framework_integrations/ruby.rb#30 + def database_engine; end + + # source://scout_apm//lib/scout_apm/framework_integrations/ruby.rb#25 + def env; end + + # source://scout_apm//lib/scout_apm/framework_integrations/ruby.rb#8 + def human_name; end + + # source://scout_apm//lib/scout_apm/framework_integrations/ruby.rb#4 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/framework_integrations/ruby.rb#16 + def present?; end + + # source://scout_apm//lib/scout_apm/framework_integrations/ruby.rb#34 + def raw_database_adapter; end + + # source://scout_apm//lib/scout_apm/framework_integrations/ruby.rb#12 + def version; end +end + +# source://scout_apm//lib/scout_apm/framework_integrations/sinatra.rb#3 +class ScoutApm::FrameworkIntegrations::Sinatra + # source://scout_apm//lib/scout_apm/framework_integrations/sinatra.rb#20 + def application_name; end + + # TODO: Figure out how to detect this smarter + # + # source://scout_apm//lib/scout_apm/framework_integrations/sinatra.rb#37 + def database_engine; end + + # source://scout_apm//lib/scout_apm/framework_integrations/sinatra.rb#32 + def env; end + + # source://scout_apm//lib/scout_apm/framework_integrations/sinatra.rb#8 + def human_name; end + + # source://scout_apm//lib/scout_apm/framework_integrations/sinatra.rb#4 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/framework_integrations/sinatra.rb#16 + def present?; end + + # source://scout_apm//lib/scout_apm/framework_integrations/sinatra.rb#41 + def raw_database_adapter; end + + # source://scout_apm//lib/scout_apm/framework_integrations/sinatra.rb#12 + def version; end +end + +# source://scout_apm//lib/scout_apm/git_revision.rb#2 +class ScoutApm::GitRevision + # @return [GitRevision] a new instance of GitRevision + # + # source://scout_apm//lib/scout_apm/git_revision.rb#7 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/git_revision.rb#5 + def context; end + + # source://scout_apm//lib/scout_apm/git_revision.rb#13 + def logger; end + + # Returns the value of attribute sha. + # + # source://scout_apm//lib/scout_apm/git_revision.rb#3 + def sha; end + + # Sets the attribute sha + # + # @param value the value to set the attribute sha to. + # + # source://scout_apm//lib/scout_apm/git_revision.rb#3 + def sha=(_arg0); end + + private + + # source://scout_apm//lib/scout_apm/git_revision.rb#64 + def app_root; end + + # source://scout_apm//lib/scout_apm/git_revision.rb#19 + def detect; end + + # source://scout_apm//lib/scout_apm/git_revision.rb#38 + def detect_from_capistrano; end + + # Config will locate the value from: + # ENV variable - SCOUT_REVISION_SHA + # YAML setting - revision_sha + # + # source://scout_apm//lib/scout_apm/git_revision.rb#34 + def detect_from_config; end + + # source://scout_apm//lib/scout_apm/git_revision.rb#55 + def detect_from_git; end + + # source://scout_apm//lib/scout_apm/git_revision.rb#27 + def detect_from_heroku; end + + # https://github.com/mina-deploy/mina + # + # source://scout_apm//lib/scout_apm/git_revision.rb#48 + def detect_from_mina; end +end + +# source://scout_apm//lib/scout_apm/histogram.rb#2 +class ScoutApm::HistogramBin < ::Struct + # Returns the value of attribute count + # + # @return [Object] the current value of count + def count; end + + # Sets the attribute count + # + # @param value [Object] the value to set the attribute count to. + # @return [Object] the newly set value + def count=(_); end + + # Returns the value of attribute value + # + # @return [Object] the current value of value + def value; end + + # Sets the attribute value + # + # @param value [Object] the value to set the attribute value to. + # @return [Object] the newly set value + def value=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://scout_apm//lib/scout_apm/ignored_uris.rb#3 +class ScoutApm::IgnoredUris + # @return [IgnoredUris] a new instance of IgnoredUris + # + # source://scout_apm//lib/scout_apm/ignored_uris.rb#6 + def initialize(prefixes); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/ignored_uris.rb#13 + def ignore?(uri); end + + # Returns the value of attribute regex. + # + # source://scout_apm//lib/scout_apm/ignored_uris.rb#4 + def regex; end +end + +# source://scout_apm//lib/scout_apm/instant/middleware.rb#4 +module ScoutApm::Instant; end + +# source://scout_apm//lib/scout_apm/instant/middleware.rb#66 +class ScoutApm::Instant::DevTraceResponseManipulator + # @return [DevTraceResponseManipulator] a new instance of DevTraceResponseManipulator + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#71 + def initialize(env, rack_response); end + + # source://scout_apm//lib/scout_apm/instant/middleware.rb#133 + def adjust_ajax_header; end + + # source://scout_apm//lib/scout_apm/instant/middleware.rb#137 + def adjust_html_response; end + + # Preserve the ActionDispatch::Response object we're working with + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#169 + def adjust_newer_rails_response; end + + # source://scout_apm//lib/scout_apm/instant/middleware.rb#163 + def adjust_older_rails_response; end + + # source://scout_apm//lib/scout_apm/instant/middleware.rb#174 + def adjust_rack_proxy_response; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#197 + def ajax_request?; end + + # source://scout_apm//lib/scout_apm/instant/middleware.rb#225 + def apm_host; end + + # source://scout_apm//lib/scout_apm/instant/middleware.rb#80 + def call; end + + # source://scout_apm//lib/scout_apm/instant/middleware.rb#209 + def content_type; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#121 + def dev_trace_disabled?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#201 + def development_asset?; end + + # Returns the value of attribute env. + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#69 + def env; end + + # source://scout_apm//lib/scout_apm/instant/middleware.rb#180 + def html_manipulator; end + + # APM Helpers & Shorthands # + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#217 + def logger; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#153 + def newer_rails_response?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#147 + def older_rails_response?; end + + # source://scout_apm//lib/scout_apm/instant/middleware.rb#205 + def path; end + + # source://scout_apm//lib/scout_apm/instant/middleware.rb#238 + def payload; end + + # Precondition checking # + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#97 + def preconditions_met?; end + + # Returns the value of attribute rack_body. + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#68 + def rack_body; end + + # Returns the value of attribute rack_headers. + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#68 + def rack_headers; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#159 + def rack_proxy_response?; end + + # Returns the value of attribute rack_response. + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#67 + def rack_response; end + + # Returns the value of attribute rack_status. + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#68 + def rack_status; end + + # Response Injection # + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#129 + def rebuild_rack_response; end + + # source://scout_apm//lib/scout_apm/instant/middleware.rb#229 + def trace; end + + # source://scout_apm//lib/scout_apm/instant/middleware.rb#221 + def tracked_request; end +end + +# Note that this middleware never even gets inserted unless Rails environment is development (See Railtie) +# +# source://scout_apm//lib/scout_apm/instant/middleware.rb#49 +class ScoutApm::Instant::Middleware + # @return [Middleware] a new instance of Middleware + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#50 + def initialize(app); end + + # source://scout_apm//lib/scout_apm/instant/middleware.rb#54 + def call(env); end +end + +# an abstraction for manipulating the HTML we capture in the middleware +# +# source://scout_apm//lib/scout_apm/instant/middleware.rb#7 +class ScoutApm::Instant::Page + # @return [Page] a new instance of Page + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#8 + def initialize(html); end + + # source://scout_apm//lib/scout_apm/instant/middleware.rb#23 + def add_to_body(content); end + + # source://scout_apm//lib/scout_apm/instant/middleware.rb#19 + def add_to_head(content); end + + # source://scout_apm//lib/scout_apm/instant/middleware.rb#27 + def res; end +end + +# source://scout_apm//lib/scout_apm/instant/middleware.rb#36 +class ScoutApm::Instant::Util + class << self + # reads the literal contents of the file in assets/#{name} + # if any vars are supplied, do a simple string substitution of the vars for their values + # + # source://scout_apm//lib/scout_apm/instant/middleware.rb#39 + def read_asset(name, vars = T.unsafe(nil)); end + end +end + +# source://scout_apm//lib/scout_apm/instant_reporting.rb#5 +class ScoutApm::InstantReporting + # trace is an instance of SlowTransaction + # instant_key is what was passed in from the browser to trigger the instant trace + # + # @return [InstantReporting] a new instance of InstantReporting + # + # source://scout_apm//lib/scout_apm/instant_reporting.rb#8 + def initialize(trace, instant_key); end + + # source://scout_apm//lib/scout_apm/instant_reporting.rb#13 + def call; end +end + +# source://scout_apm//lib/scout_apm/instrument_manager.rb#2 +class ScoutApm::InstrumentManager + # @return [InstrumentManager] a new instance of InstrumentManager + # + # source://scout_apm//lib/scout_apm/instrument_manager.rb#7 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instrument_manager.rb#3 + def context; end + + # Loads the instrumention logic. + # + # source://scout_apm//lib/scout_apm/instrument_manager.rb#13 + def install!; end + + # Returns the value of attribute installed_instruments. + # + # source://scout_apm//lib/scout_apm/instrument_manager.rb#5 + def installed_instruments; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instrument_manager.rb#54 + def prepend_for_instrument?(instrument_klass); end + + # Allows users to skip individual instruments via the config file + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instrument_manager.rb#49 + def skip_instrument?(instrument_klass); end + + private + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instrument_manager.rb#86 + def already_installed?(instrument_klass); end + + # source://scout_apm//lib/scout_apm/instrument_manager.rb#100 + def config; end + + # source://scout_apm//lib/scout_apm/instrument_manager.rb#104 + def framework; end + + # source://scout_apm//lib/scout_apm/instrument_manager.rb#73 + def install_instrument(instrument_klass); end + + # Lookup Helpers # + # + # source://scout_apm//lib/scout_apm/instrument_manager.rb#96 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/net_http.rb#2 +module ScoutApm::Instruments; end + +# source://scout_apm//lib/scout_apm/instruments/action_controller_rails_3_rails4.rb#154 +module ScoutApm::Instruments::ActionControllerAPIInstruments + # source://scout_apm//lib/scout_apm/instruments/action_controller_rails_3_rails4.rb#157 + def scout_action_name(*args); end +end + +# source://scout_apm//lib/scout_apm/instruments/action_controller_rails_3_rails4.rb#146 +module ScoutApm::Instruments::ActionControllerBaseInstruments + # source://scout_apm//lib/scout_apm/instruments/action_controller_rails_3_rails4.rb#149 + def scout_action_name(*args); end +end + +# source://scout_apm//lib/scout_apm/instruments/action_controller_rails_3_rails4.rb#134 +module ScoutApm::Instruments::ActionControllerMetalInstruments + # source://scout_apm//lib/scout_apm/instruments/action_controller_rails_3_rails4.rb#137 + def scout_action_name(*args); end +end + +# source://scout_apm//lib/scout_apm/instruments/action_controller_rails_2.rb#3 +class ScoutApm::Instruments::ActionControllerRails2 + # @return [ActionControllerRails2] a new instance of ActionControllerRails2 + # + # source://scout_apm//lib/scout_apm/instruments/action_controller_rails_2.rb#6 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/action_controller_rails_2.rb#4 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/action_controller_rails_2.rb#19 + def install(prepend:); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/action_controller_rails_2.rb#15 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/action_controller_rails_2.rb#11 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/action_controller_rails_2.rb#38 +module ScoutApm::Instruments::ActionControllerRails2Instruments + # In addition to instrumenting actions, this also sets the scope to the controller action name. The scope is later + # applied to metrics recorded during this transaction. This lets us associate ActiveRecord calls with + # specific controller actions. + # + # source://scout_apm//lib/scout_apm/instruments/action_controller_rails_2.rb#54 + def perform_action_with_scout_instruments(*args, &block); end + + class << self + # @private + # + # source://scout_apm//lib/scout_apm/instruments/action_controller_rails_2.rb#39 + def included(instrumented_class); end + end +end + +# instrumentation for Rails 3 and Rails 4 is the same. +# +# source://scout_apm//lib/scout_apm/instruments/action_controller_rails_3_rails4.rb#4 +class ScoutApm::Instruments::ActionControllerRails3Rails4 + # @return [ActionControllerRails3Rails4] a new instance of ActionControllerRails3Rails4 + # + # source://scout_apm//lib/scout_apm/instruments/action_controller_rails_3_rails4.rb#7 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/action_controller_rails_3_rails4.rb#5 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/action_controller_rails_3_rails4.rb#24 + def install(prepend:); end + + # source://scout_apm//lib/scout_apm/instruments/action_controller_rails_3_rails4.rb#20 + def installed!; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/action_controller_rails_3_rails4.rb#16 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/action_controller_rails_3_rails4.rb#12 + def logger; end + + class << self + # Returns a new anonymous module each time it is called. So + # we can insert this multiple times into the ancestors + # stack. Otherwise it only exists the first time you include it + # (under Metal, instead of under API) and we miss instrumenting + # before_action callbacks + # + # source://scout_apm//lib/scout_apm/instruments/action_controller_rails_3_rails4.rb#75 + def build_instrument_module; end + end +end + +# Empty, noop module to provide compatibility w/ previous manual instrumentation +# +# source://scout_apm//lib/scout_apm/instruments/action_controller_rails_3_rails4.rb#143 +module ScoutApm::Instruments::ActionControllerRails3Rails4Instruments; end + +# source://scout_apm//lib/scout_apm/instruments/action_view.rb#12 +class ScoutApm::Instruments::ActionView + # @return [ActionView] a new instance of ActionView + # + # source://scout_apm//lib/scout_apm/instruments/action_view.rb#15 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/action_view.rb#13 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/action_view.rb#32 + def install(prepend:); end + + # source://scout_apm//lib/scout_apm/instruments/action_view.rb#69 + def install_using_prepend; end + + # source://scout_apm//lib/scout_apm/instruments/action_view.rb#43 + def install_using_tracer; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/action_view.rb#24 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/action_view.rb#20 + def logger; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/action_view.rb#28 + def prependable?; end +end + +# In Rails 6.1 collection was moved to CollectionRenderer. +# +# source://scout_apm//lib/scout_apm/instruments/action_view.rb#83 +module ScoutApm::Instruments::ActionView::ActionViewCollectionRendererInstruments + # source://scout_apm//lib/scout_apm/instruments/action_view.rb#84 + def render_collection(*args, **kwargs); end +end + +# source://scout_apm//lib/scout_apm/instruments/action_view.rb#109 +module ScoutApm::Instruments::ActionView::ActionViewPartialRendererInstruments + # This method was moved in Rails 6.1 to CollectionRender. + # + # source://scout_apm//lib/scout_apm/instruments/action_view.rb#164 + def collection_with_template(*args, **kwargs); end + + # In Rails 6, the signature changed to pass the view & template args directly, as opposed to through the instance var + # New signature is: def render_partial(view, template) + # + # source://scout_apm//lib/scout_apm/instruments/action_view.rb#138 + def render_partial(*args, **kwargs); end + + # In Rails 6.1, render_partial was renamed to render_partial_template + # + # source://scout_apm//lib/scout_apm/instruments/action_view.rb#111 + def render_partial_template(*args, **kwargs); end +end + +# source://scout_apm//lib/scout_apm/instruments/action_view.rb#190 +module ScoutApm::Instruments::ActionView::ActionViewTemplateRendererInstruments + # Don't forward kwargs here, since Rails 3, 4, 5, 6 don't use them, and + # it causes annoyances in the instrumentation + # + # source://scout_apm//lib/scout_apm/instruments/action_view.rb#193 + def render_template(*args); end +end + +# source://scout_apm//lib/scout_apm/instruments/active_record.rb#37 +class ScoutApm::Instruments::ActiveRecord + # @return [ActiveRecord] a new instance of ActiveRecord + # + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#40 + def initialize(context); end + + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#73 + def add_instruments; end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#38 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#53 + def install(prepend:); end + + # If we have the right version of rails, we should use the hooks provided + # to install these instruments + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#65 + def install_via_after_initialize?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#49 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#45 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/active_record.rb#332 +module ScoutApm::Instruments::ActiveRecordFinderMethodsInstruments + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#343 + def find_with_associations_with_scout_instruments(*args, &block); end + + class << self + # @private + # + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#333 + def included(instrumented_class); end + end +end + +# Contains ActiveRecord instrument, aliasing +ActiveRecord::ConnectionAdapters::AbstractAdapter#log+ calls +# to trace calls to the database. +# +# #log instrument. +# +# #log is very close to where AR calls out to the database itself. We have access +# to the real SQL, and an AR generated "name" for the Query +# +# source://scout_apm//lib/scout_apm/instruments/active_record.rb#168 +module ScoutApm::Instruments::ActiveRecordInstruments + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#226 + def log(*args, **_arg1, &block); end + + class << self + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#222 + def prepended(instrumented_class); end + end +end + +# Entry-point of instruments. +# +# Instrumentation starts in ActiveRecord::Relation#exec_queries (Rails >= +# 3.2.0) or ActiveRecord::FinderMethods#find_with_assocations (previous +# Rails versions). +# +# ActiveRecord::Querying#find_by_sql is instrumented in all Rails versions +# even though it is also invoked by #exec_queries/#find_by_associations +# because it can be invoked directly from user code (e.g., +# Post.find_by_sql("SELECT * FROM posts")). The layer started by +# #exec_queries/#find_by_assocations is marked to ignore children, so it +# will not cause duplicate layers in the former case. +# +# These methods are early in the chain of calls invoked when executing an +# ActiveRecord query, before the cache is consulted. If the query is later +# determined to be a cache miss, `#log` will be invoked, which we also +# instrument, and more details will be filled in (name, sql). +# +# Caveats: +# * We don't have a name for the query yet. +# * The query hasn't hit the cache yet. In the case of a cache hit, we +# won't hit #log, so won't get a name, leaving the misleading default. +# * One call here can result in several calls to #log, especially in the +# case where Rails needs to load the schema details for the table being +# queried. +# +# source://scout_apm//lib/scout_apm/instruments/active_record.rb#302 +module ScoutApm::Instruments::ActiveRecordQueryingInstruments + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#313 + def find_by_sql_with_scout_instruments(*args, **kwargs, &block); end + + class << self + # @private + # + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#303 + def included(instrumented_class); end + end +end + +# source://scout_apm//lib/scout_apm/instruments/active_record.rb#436 +module ScoutApm::Instruments::ActiveRecordRelationInstruments + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#465 + def delete_all_with_scout_instruments(*args, &block); end + + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#480 + def destroy_all_with_scout_instruments(*args, &block); end + + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#450 + def update_all_with_scout_instruments(*args, &block); end + + class << self + # @private + # + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#437 + def included(instrumented_class); end + end +end + +# source://scout_apm//lib/scout_apm/instruments/active_record.rb#359 +module ScoutApm::Instruments::ActiveRecordRelationQueryInstruments + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#374 + def exec_queries(*args, &block); end + + class << self + # @private + # + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#364 + def included(instrumented_class); end + + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#360 + def prepended(instrumented_class); end + end +end + +# source://scout_apm//lib/scout_apm/instruments/active_record.rb#401 +module ScoutApm::Instruments::ActiveRecordUpdateInstruments + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#402 + def save(*args, **options, &block); end + + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#419 + def save!(*args, **options, &block); end +end + +class ScoutApm::Instruments::Allocations + class << self + def count; end + end +end + +ScoutApm::Instruments::Allocations::ENABLED = T.let(T.unsafe(nil), TrueClass) + +# source://scout_apm//lib/scout_apm/instruments/elasticsearch.rb#5 +class ScoutApm::Instruments::Elasticsearch + # @return [Elasticsearch] a new instance of Elasticsearch + # + # source://scout_apm//lib/scout_apm/instruments/elasticsearch.rb#8 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/elasticsearch.rb#6 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/elasticsearch.rb#21 + def install(prepend:); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/elasticsearch.rb#17 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/elasticsearch.rb#13 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/elasticsearch.rb#87 +module ScoutApm::Instruments::ElasticsearchTransportClientInstrumentationPrepend + # source://scout_apm//lib/scout_apm/instruments/elasticsearch.rb#96 + def _sanitize_name(name); end + + # source://scout_apm//lib/scout_apm/instruments/elasticsearch.rb#88 + def perform_request(*args, &block); end +end + +# source://scout_apm//lib/scout_apm/instruments/grape.rb#3 +class ScoutApm::Instruments::Grape + # @return [Grape] a new instance of Grape + # + # source://scout_apm//lib/scout_apm/instruments/grape.rb#6 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/grape.rb#4 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/grape.rb#19 + def install(prepend:); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/grape.rb#15 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/grape.rb#11 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/grape.rb#35 +module ScoutApm::Instruments::GrapeEndpointInstruments + # source://scout_apm//lib/scout_apm/instruments/grape.rb#36 + def run_with_scout_instruments(*args); end +end + +# source://scout_apm//lib/scout_apm/instruments/http.rb#3 +class ScoutApm::Instruments::HTTP + # @return [HTTP] a new instance of HTTP + # + # source://scout_apm//lib/scout_apm/instruments/http.rb#6 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/http.rb#4 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/http.rb#19 + def install(prepend:); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/http.rb#15 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/http.rb#11 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/http.rb#53 +module ScoutApm::Instruments::HTTPInstrumentationPrepend + # source://scout_apm//lib/scout_apm/instruments/http.rb#54 + def request(verb, uri, opts = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/instruments/http.rb#60 + def request_scout_description(verb, uri); end +end + +# source://scout_apm//lib/scout_apm/instruments/percentile_sampler.rb#4 +class ScoutApm::Instruments::HistogramReport + # @return [HistogramReport] a new instance of HistogramReport + # + # source://scout_apm//lib/scout_apm/instruments/percentile_sampler.rb#8 + def initialize(name, histogram); end + + # source://scout_apm//lib/scout_apm/instruments/percentile_sampler.rb#13 + def combine!(other); end + + # Returns the value of attribute histogram. + # + # source://scout_apm//lib/scout_apm/instruments/percentile_sampler.rb#6 + def histogram; end + + # Returns the value of attribute name. + # + # source://scout_apm//lib/scout_apm/instruments/percentile_sampler.rb#5 + def name; end +end + +# source://scout_apm//lib/scout_apm/instruments/http_client.rb#3 +class ScoutApm::Instruments::HttpClient + # @return [HttpClient] a new instance of HttpClient + # + # source://scout_apm//lib/scout_apm/instruments/http_client.rb#6 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/http_client.rb#4 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/http_client.rb#19 + def install(prepend:); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/http_client.rb#15 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/http_client.rb#11 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/http_client.rb#53 +module ScoutApm::Instruments::HttpClientInstrumentationPrepend + # source://scout_apm//lib/scout_apm/instruments/http_client.rb#54 + def request(*args, &block); end +end + +# source://scout_apm//lib/scout_apm/instruments/influxdb.rb#3 +class ScoutApm::Instruments::InfluxDB + # @return [InfluxDB] a new instance of InfluxDB + # + # source://scout_apm//lib/scout_apm/instruments/influxdb.rb#6 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/influxdb.rb#4 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/influxdb.rb#19 + def install(prepend:); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/influxdb.rb#15 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/influxdb.rb#11 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/memcached.rb#3 +class ScoutApm::Instruments::Memcached + # @return [Memcached] a new instance of Memcached + # + # source://scout_apm//lib/scout_apm/instruments/memcached.rb#6 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/memcached.rb#4 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/memcached.rb#19 + def install(prepend:); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/memcached.rb#15 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/memcached.rb#11 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/memcached.rb#48 +module ScoutApm::Instruments::MemcachedInstrumentationPrepend + # source://scout_apm//lib/scout_apm/instruments/memcached.rb#49 + def perform(*args, &block); end +end + +# source://scout_apm//lib/scout_apm/instruments/middleware_detailed.rb#11 +class ScoutApm::Instruments::MiddlewareDetailed + # @return [MiddlewareDetailed] a new instance of MiddlewareDetailed + # + # source://scout_apm//lib/scout_apm/instruments/middleware_detailed.rb#14 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/middleware_detailed.rb#12 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/middleware_detailed.rb#27 + def install(prepend:); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/middleware_detailed.rb#23 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/middleware_detailed.rb#19 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/middleware_detailed.rb#41 +class ScoutApm::Instruments::MiddlewareDetailed::MiddlewareWrapper + # @return [MiddlewareWrapper] a new instance of MiddlewareWrapper + # + # source://scout_apm//lib/scout_apm/instruments/middleware_detailed.rb#42 + def initialize(app, name); end + + # source://scout_apm//lib/scout_apm/instruments/middleware_detailed.rb#48 + def call(env); end +end + +# source://scout_apm//lib/scout_apm/instruments/middleware_summary.rb#8 +class ScoutApm::Instruments::MiddlewareSummary + # @return [MiddlewareSummary] a new instance of MiddlewareSummary + # + # source://scout_apm//lib/scout_apm/instruments/middleware_summary.rb#11 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/middleware_summary.rb#9 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/middleware_summary.rb#24 + def install(prepend:); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/middleware_summary.rb#20 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/middleware_summary.rb#16 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/middleware_summary.rb#49 +class ScoutApm::Instruments::MiddlewareSummary::MiddlewareSummaryWrapper + # @return [MiddlewareSummaryWrapper] a new instance of MiddlewareSummaryWrapper + # + # source://scout_apm//lib/scout_apm/instruments/middleware_summary.rb#50 + def initialize(app); end + + # source://scout_apm//lib/scout_apm/instruments/middleware_summary.rb#54 + def call(env); end + + # Some code (found in resque_web initially) attempts to call methods + # directly on `MyApplication.app`, which is the middleware stack. + # If it hits our middleware instead of the object at the root of the + # app that it expected, then a method it expects will not be there, and an + # error thrown. + # + # Specifically, resque_web assumes `ResqueWeb::Engine.app.url_helpers` + # is a method call on rails router for its own Engine, when in fact, + # we've added a middleware before it. + # + # So method_missing just proxies anything to the nested @app object + # + # While method_missing is not very performant, this is only here to + # handle edge-cases in other code, and should not be regularly called + # + # source://scout_apm//lib/scout_apm/instruments/middleware_summary.rb#77 + def method_missing(sym, *arguments, &block); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/middleware_summary.rb#85 + def respond_to?(sym, include_private = T.unsafe(nil)); end +end + +# source://scout_apm//lib/scout_apm/instruments/mongoid.rb#3 +class ScoutApm::Instruments::Mongoid + # @return [Mongoid] a new instance of Mongoid + # + # source://scout_apm//lib/scout_apm/instruments/mongoid.rb#6 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/mongoid.rb#4 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/mongoid.rb#19 + def install(prepend:); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/mongoid.rb#15 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/mongoid.rb#11 + def logger; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/mongoid.rb#97 + def mongoid_v5?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/mongoid.rb#105 + def mongoid_v6?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/mongoid.rb#113 + def mongoid_v7?; end + + class << self + # Example of what a filter looks like: => {"founded"=>{"$gte"=>"1980-1-1"}, "name"=>{"$in"=>["Tool", "Deftones", "Melvins"]}} + # Approach: find every leaf-node, clear it. inspect the whole thing when done. + # + # source://scout_apm//lib/scout_apm/instruments/mongoid.rb#123 + def anonymize_filter(filter); end + end +end + +# source://scout_apm//lib/scout_apm/instruments/moped.rb#3 +class ScoutApm::Instruments::Moped + # @return [Moped] a new instance of Moped + # + # source://scout_apm//lib/scout_apm/instruments/moped.rb#6 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/moped.rb#4 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/moped.rb#19 + def install(prepend:); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/moped.rb#15 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/moped.rb#11 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/moped.rb#58 +module ScoutApm::Instruments::MopedInstrumentationPrepend + # source://scout_apm//lib/scout_apm/instruments/moped.rb#59 + def process(operation, &callback); end + + # replaces values w/ ? + # + # source://scout_apm//lib/scout_apm/instruments/moped.rb#70 + def scout_sanitize_log(log); end +end + +# source://scout_apm//lib/scout_apm/instruments/net_http.rb#3 +class ScoutApm::Instruments::NetHttp + # @return [NetHttp] a new instance of NetHttp + # + # source://scout_apm//lib/scout_apm/instruments/net_http.rb#6 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/net_http.rb#4 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/net_http.rb#19 + def install(prepend:); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/net_http.rb#15 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/net_http.rb#11 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/net_http.rb#61 +module ScoutApm::Instruments::NetHttpInstrumentationPrepend + # source://scout_apm//lib/scout_apm/instruments/net_http.rb#62 + def request(request, *args, &block); end + + # source://scout_apm//lib/scout_apm/instruments/net_http.rb#68 + def request_scout_description(req); end +end + +# source://scout_apm//lib/scout_apm/instruments/percentile_sampler.rb#20 +class ScoutApm::Instruments::PercentileSampler + # @return [PercentileSampler] a new instance of PercentileSampler + # + # source://scout_apm//lib/scout_apm/instruments/percentile_sampler.rb#21 + def initialize(context); end + + # source://scout_apm//lib/scout_apm/instruments/percentile_sampler.rb#25 + def histograms; end + + # source://scout_apm//lib/scout_apm/instruments/percentile_sampler.rb#33 + def human_name; end + + # source://scout_apm//lib/scout_apm/instruments/percentile_sampler.rb#29 + def logger; end + + # source://scout_apm//lib/scout_apm/instruments/percentile_sampler.rb#37 + def metrics(timestamp, store); end + + # source://scout_apm//lib/scout_apm/instruments/percentile_sampler.rb#41 + def percentiles(time); end +end + +# source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#3 +module ScoutApm::Instruments::Process; end + +# source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#4 +class ScoutApm::Instruments::Process::ProcessCpu + # @return [ProcessCpu] a new instance of ProcessCpu + # + # source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#9 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#7 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#28 + def human_name; end + + # Returns the value of attribute last_run. + # + # source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#6 + def last_run; end + + # Sets the attribute last_run + # + # @param value the value to set the attribute last_run to. + # + # source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#6 + def last_run=(_arg0); end + + # Returns the value of attribute last_stime. + # + # source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#6 + def last_stime; end + + # Sets the attribute last_stime + # + # @param value the value to set the attribute last_stime to. + # + # source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#6 + def last_stime=(_arg0); end + + # Returns the value of attribute last_utime. + # + # source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#6 + def last_utime; end + + # Sets the attribute last_utime + # + # @param value the value to set the attribute last_utime to. + # + # source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#6 + def last_utime=(_arg0); end + + # source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#102 + def logger; end + + # source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#24 + def metric_name; end + + # source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#20 + def metric_type; end + + # source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#32 + def metrics(timestamp, store); end + + # Returns the value of attribute num_processors. + # + # source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#5 + def num_processors; end + + # TODO: Figure out a good default instead of nil + # + # source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#46 + def run; end + + # source://scout_apm//lib/scout_apm/instruments/process/process_cpu.rb#96 + def save_times(now, utime, stime); end +end + +# source://scout_apm//lib/scout_apm/instruments/process/process_memory.rb#4 +class ScoutApm::Instruments::Process::ProcessMemory + # @return [ProcessMemory] a new instance of ProcessMemory + # + # source://scout_apm//lib/scout_apm/instruments/process/process_memory.rb#21 + def initialize(context); end + + # source://scout_apm//lib/scout_apm/instruments/process/process_memory.rb#33 + def human_name; end + + # source://scout_apm//lib/scout_apm/instruments/process/process_memory.rb#53 + def logger; end + + # source://scout_apm//lib/scout_apm/instruments/process/process_memory.rb#29 + def metric_name; end + + # source://scout_apm//lib/scout_apm/instruments/process/process_memory.rb#25 + def metric_type; end + + # source://scout_apm//lib/scout_apm/instruments/process/process_memory.rb#37 + def metrics(timestamp, store); end + + # source://scout_apm//lib/scout_apm/instruments/process/process_memory.rb#13 + def rss; end + + # source://scout_apm//lib/scout_apm/instruments/process/process_memory.rb#17 + def rss_in_mb; end + + # Account for Darwin returning maxrss in bytes and Linux in KB. Used by + # the slow converters. Doesn't feel like this should go here + # though...more of a utility. + # + # source://scout_apm//lib/scout_apm/instruments/process/process_memory.rb#8 + def rss_to_mb(rss); end + + # source://scout_apm//lib/scout_apm/instruments/process/process_memory.rb#49 + def run; end +end + +# source://scout_apm//lib/scout_apm/instruments/rails_router.rb#3 +class ScoutApm::Instruments::RailsRouter + # @return [RailsRouter] a new instance of RailsRouter + # + # source://scout_apm//lib/scout_apm/instruments/rails_router.rb#6 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/rails_router.rb#4 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/rails_router.rb#19 + def install(prepend:); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/rails_router.rb#15 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/rails_router.rb#11 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/redis.rb#3 +class ScoutApm::Instruments::Redis + # @return [Redis] a new instance of Redis + # + # source://scout_apm//lib/scout_apm/instruments/redis.rb#6 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/redis.rb#4 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/redis.rb#19 + def install(prepend:); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/redis.rb#15 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/redis.rb#11 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/redis5.rb#3 +class ScoutApm::Instruments::Redis5 + # @return [Redis5] a new instance of Redis5 + # + # source://scout_apm//lib/scout_apm/instruments/redis5.rb#6 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/redis5.rb#4 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/redis5.rb#19 + def install(prepend:); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/redis5.rb#15 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/redis5.rb#11 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/redis5.rb#48 +module ScoutApm::Instruments::Redis5ClientInstrumentationPrepend + # source://scout_apm//lib/scout_apm/instruments/redis5.rb#49 + def call(args, &block); end +end + +# source://scout_apm//lib/scout_apm/instruments/redis.rb#48 +module ScoutApm::Instruments::RedisClientInstrumentationPrepend + # source://scout_apm//lib/scout_apm/instruments/redis.rb#49 + def call(*args, &block); end +end + +# source://scout_apm//lib/scout_apm/instruments/resque.rb#3 +module ScoutApm::Instruments::Resque + # source://scout_apm//lib/scout_apm/instruments/resque.rb#4 + def around_perform_with_scout_instruments(*args); end + + # source://scout_apm//lib/scout_apm/instruments/resque.rb#31 + def find_queue; end +end + +# source://scout_apm//lib/scout_apm/instruments/samplers.rb#3 +class ScoutApm::Instruments::Samplers; end + +# source://scout_apm//lib/scout_apm/instruments/samplers.rb#4 +ScoutApm::Instruments::Samplers::DEFAULT_SAMPLERS = T.let(T.unsafe(nil), Array) + +# source://scout_apm//lib/scout_apm/instruments/sinatra.rb#6 +class ScoutApm::Instruments::Sinatra + # source://scout_apm//lib/scout_apm/instruments/sinatra.rb#9 + def initalize(logger = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/instruments/sinatra.rb#18 + def install(prepend:); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/sinatra.rb#14 + def installed?; end + + # Returns the value of attribute logger. + # + # source://scout_apm//lib/scout_apm/instruments/sinatra.rb#7 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/sinatra.rb#33 +module ScoutApm::Instruments::SinatraInstruments + # source://scout_apm//lib/scout_apm/instruments/sinatra.rb#34 + def dispatch_with_scout_instruments!; end + + # Iterates through the app's routes, returning the matched route that the request should be + # grouped under for the metric name. + # + # If not found, "unknown" is returned. This prevents a metric explosion. + # + # Nice to have: substitute the param pattern (([^/?#]+)) w/the named key (the +key+ param of the block). + # + # source://scout_apm//lib/scout_apm/instruments/sinatra.rb#59 + def scout_sinatra_controller_name(request); end +end + +# source://scout_apm//lib/scout_apm/instruments/typhoeus.rb#3 +class ScoutApm::Instruments::Typhoeus + # @return [Typhoeus] a new instance of Typhoeus + # + # source://scout_apm//lib/scout_apm/instruments/typhoeus.rb#6 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/instruments/typhoeus.rb#4 + def context; end + + # source://scout_apm//lib/scout_apm/instruments/typhoeus.rb#19 + def install(prepend:); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/instruments/typhoeus.rb#15 + def installed?; end + + # source://scout_apm//lib/scout_apm/instruments/typhoeus.rb#11 + def logger; end +end + +# source://scout_apm//lib/scout_apm/instruments/typhoeus.rb#30 +module ScoutApm::Instruments::Typhoeus::TyphoeusHydraInstrumentation + # source://scout_apm//lib/scout_apm/instruments/typhoeus.rb#31 + def run(*args, &block); end + + # source://scout_apm//lib/scout_apm/instruments/typhoeus.rb#45 + def scout_desc; end +end + +# source://scout_apm//lib/scout_apm/instruments/typhoeus.rb#52 +module ScoutApm::Instruments::Typhoeus::TyphoeusInstrumentation + # source://scout_apm//lib/scout_apm/instruments/typhoeus.rb#53 + def run(*args, &block); end + + # source://scout_apm//lib/scout_apm/instruments/typhoeus.rb#67 + def scout_desc(verb, uri); end + + # source://scout_apm//lib/scout_apm/instruments/typhoeus.rb#74 + def scout_request_url; end + + # source://scout_apm//lib/scout_apm/instruments/typhoeus.rb#80 + def scout_request_verb; end +end + +# source://scout_apm//lib/scout_apm/job_record.rb#9 +class ScoutApm::JobRecord + # @return [JobRecord] a new instance of JobRecord + # + # source://scout_apm//lib/scout_apm/job_record.rb#17 + def initialize(queue_name, job_name, total_time, exclusive_time, errors, metrics); end + + # Hash Key interface + # + # source://scout_apm//lib/scout_apm/job_record.rb#61 + def ==(o); end + + # Modifies self and returns self, after merging in `other`. + # + # source://scout_apm//lib/scout_apm/job_record.rb#34 + def combine!(other); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/job_record.rb#71 + def eql?(o); end + + # Returns the value of attribute errors. + # + # source://scout_apm//lib/scout_apm/job_record.rb#14 + def errors; end + + # Returns the value of attribute exclusive_time. + # + # source://scout_apm//lib/scout_apm/job_record.rb#13 + def exclusive_time; end + + # source://scout_apm//lib/scout_apm/job_record.rb#65 + def hash; end + + # Returns the value of attribute job_name. + # + # source://scout_apm//lib/scout_apm/job_record.rb#11 + def job_name; end + + # Returns the value of attribute metric_set. + # + # source://scout_apm//lib/scout_apm/job_record.rb#15 + def metric_set; end + + # source://scout_apm//lib/scout_apm/job_record.rb#52 + def metrics; end + + # Returns the value of attribute queue_name. + # + # source://scout_apm//lib/scout_apm/job_record.rb#10 + def queue_name; end + + # source://scout_apm//lib/scout_apm/job_record.rb#48 + def run_count; end + + # Returns the value of attribute total_time. + # + # source://scout_apm//lib/scout_apm/job_record.rb#12 + def total_time; end +end + +# source://scout_apm//lib/scout_apm/layaway.rb#9 +class ScoutApm::Layaway + # @return [Layaway] a new instance of Layaway + # + # source://scout_apm//lib/scout_apm/layaway.rb#22 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/layaway.rb#21 + def context; end + + # source://scout_apm//lib/scout_apm/layaway.rb#131 + def delete_files_for(timestamp); end + + # source://scout_apm//lib/scout_apm/layaway.rb#138 + def delete_stale_files(older_than); end + + # Returns a Pathname object with the fully qualified directory where the layaway files can be placed. + # That directory must be writable by this process. + # + # Don't set this in initializer, since it relies on agent instance existing to figure out the value. + # + # source://scout_apm//lib/scout_apm/layaway.rb#35 + def directory; end + + # source://scout_apm//lib/scout_apm/layaway.rb#26 + def logger; end + + # Claims a given timestamp by getting an exclusive lock on a timestamped + # coordinator file. The coordinator file never contains data, it's just a + # syncronization mechanism. + # + # Once the 'claim' is obtained: + # * load and yield each ReportingPeriod from the layaway files. + # * if there are reporting periods: + # * yields any ReportingPeriods collected up from all the files. + # * deletes all of the layaway files (including the coordinator) for the timestamp + # * if not + # * delete the coordinator + # * remove any stale layaway files that may be hanging around. + # * Finally unlock and ensure the coordinator file is cleared. + # + # If a claim file can't be obtained, return false without doing any work + # Another process is handling the reporting. + # + # source://scout_apm//lib/scout_apm/layaway.rb#83 + def with_claim(timestamp); end + + # source://scout_apm//lib/scout_apm/layaway.rb#52 + def write_reporting_period(reporting_period, files_limit = T.unsafe(nil)); end + + private + + # source://scout_apm//lib/scout_apm/layaway.rb#159 + def all_files_for(timestamp); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/layaway.rb#199 + def at_layaway_file_limit?(files_limit = T.unsafe(nil)); end + + # Looking up files + # + # source://scout_apm//lib/scout_apm/layaway.rb#155 + def file_for(timestamp); end + + # source://scout_apm//lib/scout_apm/layaway.rb#182 + def format_pid(pid); end + + # source://scout_apm//lib/scout_apm/layaway.rb#172 + def format_timestamp(timestamp); end + + # Timestamp should be either :all or a Time-ish object that responds to strftime (StoreReportingPeriodTimestamp does) + # if timestamp == :all then find all timestamps, otherwise format it. + # if pid == :all, get the files for all + # + # source://scout_apm//lib/scout_apm/layaway.rb#166 + def glob_pattern(timestamp, pid = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/layaway.rb#203 + def log_layaway_file_information; end + + # source://scout_apm//lib/scout_apm/layaway.rb#190 + def timestamp_from_filename(filename); end +end + +# Failsafe to prevent writing layaway files if for some reason they are not being cleaned up +# +# source://scout_apm//lib/scout_apm/layaway.rb#15 +ScoutApm::Layaway::MAX_FILES_LIMIT = T.let(T.unsafe(nil), Integer) + +# How long to let a stale file sit before deleting it. +# Letting it sit a bit may be useful for debugging +# +# source://scout_apm//lib/scout_apm/layaway.rb#12 +ScoutApm::Layaway::STALE_AGE = T.let(T.unsafe(nil), Integer) + +# A strftime format string for how we render timestamps in filenames. +# Must be sortable as an integer +# +# source://scout_apm//lib/scout_apm/layaway.rb#19 +ScoutApm::Layaway::TIME_FORMAT = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/layaway_file.rb#3 +class ScoutApm::LayawayFile + # @return [LayawayFile] a new instance of LayawayFile + # + # source://scout_apm//lib/scout_apm/layaway_file.rb#7 + def initialize(context, path); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/layaway_file.rb#5 + def context; end + + # source://scout_apm//lib/scout_apm/layaway_file.rb#39 + def deserialize(data); end + + # source://scout_apm//lib/scout_apm/layaway_file.rb#16 + def load; end + + # source://scout_apm//lib/scout_apm/layaway_file.rb#12 + def logger; end + + # Returns the value of attribute path. + # + # source://scout_apm//lib/scout_apm/layaway_file.rb#4 + def path; end + + # source://scout_apm//lib/scout_apm/layaway_file.rb#43 + def read_raw(f); end + + # source://scout_apm//lib/scout_apm/layaway_file.rb#31 + def serialize(data); end + + # source://scout_apm//lib/scout_apm/layaway_file.rb#26 + def write(data); end + + # source://scout_apm//lib/scout_apm/layaway_file.rb#55 + def write_raw(f, data); end +end + +# source://scout_apm//lib/scout_apm/layer.rb#2 +class ScoutApm::Layer + # @return [Layer] a new instance of Layer + # + # source://scout_apm//lib/scout_apm/layer.rb#56 + def initialize(type, name, start_time = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/layer.rb#73 + def add_child(child); end + + # Returns the value of attribute allocations_start. + # + # source://scout_apm//lib/scout_apm/layer.rb#52 + def allocations_start; end + + # Returns the value of attribute allocations_stop. + # + # source://scout_apm//lib/scout_apm/layer.rb#52 + def allocations_stop; end + + # This data is internal to ScoutApm, to add custom information, use the Context api. + # + # source://scout_apm//lib/scout_apm/layer.rb#92 + def annotate_layer(hsh); end + + # As we go through a part of a request, instrumentation can store additional data + # Known Keys: + # :record_count - The number of rows returned by an AR query (From notification instantiation.active_record) + # :class_name - The ActiveRecord class name (From notification instantiation.active_record) + # + # If no annotations are ever set, this will return nil + # + # source://scout_apm//lib/scout_apm/layer.rb#50 + def annotations; end + + # If this layer took longer than a fixed amount of time, store the + # backtrace of where it occurred. + # + # source://scout_apm//lib/scout_apm/layer.rb#39 + def backtrace; end + + # If this layer took longer than a fixed amount of time, store the + # backtrace of where it occurred. + # + # source://scout_apm//lib/scout_apm/layer.rb#39 + def backtrace=(_arg0); end + + # In Ruby 2.0+, we can pass the range directly to the caller to reduce the memory footprint. + # + # source://scout_apm//lib/scout_apm/layer.rb#117 + def caller_array; end + + # source://scout_apm//lib/scout_apm/layer.rb#112 + def capture_backtrace!; end + + # An array of children layers + # For instance, if we are in a middleware, there will likely be only a single + # child, which is another middleware. In a Controller, we may have a handful + # of children: [ActiveRecord, ActiveRecord, View, HTTP Call]. + # + # This useful to get actual time spent in this layer vs. children time + # + # TODO: Check callers for compatibility w/ nil to avoid making an empty array + # + # source://scout_apm//lib/scout_apm/layer.rb#24 + def children; end + + # The description of this layer. Will contain additional details specific to the type of layer. + # For an ActiveRecord metric, it will contain the SQL run + # For an outoing HTTP call, it will contain the remote URL accessed + # Leave blank if there is nothing to note + # + # source://scout_apm//lib/scout_apm/layer.rb#35 + def desc; end + + # source://scout_apm//lib/scout_apm/layer.rb#87 + def desc=(desc); end + + # The file name associated with the layer. Only used for autoinstruments overhead logging. + # + # source://scout_apm//lib/scout_apm/layer.rb#42 + def file_name; end + + # The file name associated with the layer. Only used for autoinstruments overhead logging. + # + # source://scout_apm//lib/scout_apm/layer.rb#42 + def file_name=(_arg0); end + + # This is the old style name. This function is used for now, but should be + # removed, and the new type & name split should be enforced through the + # app. + # + # source://scout_apm//lib/scout_apm/layer.rb#108 + def legacy_metric_name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/layer.rb#69 + def limited?; end + + # Name: a more specific name of this single item + # Examples: "Rack::Cache", "User#find", "users/index", "users/index.html.erb" + # + # Accessor, so we can update a layer if multiple pieces of instrumentation work + # together at different layers to fill in the full data. See the ActiveRecord + # instrumentation for an example of how this is useful + # + # source://scout_apm//lib/scout_apm/layer.rb#14 + def name; end + + # Name: a more specific name of this single item + # Examples: "Rack::Cache", "User#find", "users/index", "users/index.html.erb" + # + # Accessor, so we can update a layer if multiple pieces of instrumentation work + # together at different layers to fill in the full data. See the ActiveRecord + # instrumentation for an example of how this is useful + # + # source://scout_apm//lib/scout_apm/layer.rb#14 + def name=(_arg0); end + + # Fetch the current number of allocated objects. This will always increment - we fetch when initializing and when stopping the layer. + # + # source://scout_apm//lib/scout_apm/layer.rb#83 + def record_allocations!; end + + # source://scout_apm//lib/scout_apm/layer.rb#78 + def record_stop_time!(stop_time = T.unsafe(nil)); end + + # Time objects recording the start & stop times of this layer + # + # source://scout_apm//lib/scout_apm/layer.rb#29 + def start_time; end + + # Time objects recording the start & stop times of this layer + # + # source://scout_apm//lib/scout_apm/layer.rb#29 + def stop_time; end + + # source://scout_apm//lib/scout_apm/layer.rb#97 + def subscopable!; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/layer.rb#101 + def subscopable?; end + + # May not be safe to call in every rails app, relies on Time#iso8601 + # + # source://scout_apm//lib/scout_apm/layer.rb#131 + def to_s; end + + # These are almost identical to the timing metrics. + # + # source://scout_apm//lib/scout_apm/layer.rb#174 + def total_allocations; end + + # Time Calculations + # + # source://scout_apm//lib/scout_apm/layer.rb#149 + def total_call_time; end + + # source://scout_apm//lib/scout_apm/layer.rb#183 + def total_exclusive_allocations; end + + # source://scout_apm//lib/scout_apm/layer.rb#157 + def total_exclusive_time; end + + # Type: a general name for the kind of thing being tracked. + # Examples: "Middleware", "ActiveRecord", "Controller", "View" + # + # source://scout_apm//lib/scout_apm/layer.rb#6 + def type; end + + private + + # source://scout_apm//lib/scout_apm/layer.rb#187 + def child_allocations; end + + # source://scout_apm//lib/scout_apm/layer.rb#161 + def child_time; end +end + +# maximum number of lines to send thru for backtrace analysis +# +# source://scout_apm//lib/scout_apm/layer.rb#54 +ScoutApm::Layer::BACKTRACE_CALLER_LIMIT = T.let(T.unsafe(nil), Integer) + +# A set of children records for any given Layer. This implements some +# rate-limiting logic. +# +# We store the first `unique_cutoff` count of each layer type. So if cutoff +# is 1000, we'd store 1000 HTTP layers, and 1000 ActiveRecord calls, and 1000 +# of each other layer type. After that, make a LimitedLayer object and store +# only aggregate counts and times of future layers of that type. (So the +# 1001st an onward of ActiveRecord would get only aggregate times, and +# counts, without any detail about the SQL called) +# +# When the set of children is small, keep them unique +# When the set of children gets large enough, stop keeping details +# +# The next optimization, which is not yet implemented: +# when the set of children gets larger, attempt to merge them without data loss +# +# source://scout_apm//lib/scout_apm/layer_children_set.rb#17 +class ScoutApm::LayerChildrenSet + include ::Enumerable + + # @return [LayerChildrenSet] a new instance of LayerChildrenSet + # + # source://scout_apm//lib/scout_apm/layer_children_set.rb#29 + def initialize(unique_cutoff = T.unsafe(nil)); end + + # Add a new layer into this set + # Only add completed layers - otherwise this will collect up incorrect info + # into the created LimitedLayer, since it will "freeze" any current data for + # total_call_time and similar methods. + # + # source://scout_apm//lib/scout_apm/layer_children_set.rb#44 + def <<(child); end + + # source://scout_apm//lib/scout_apm/layer_children_set.rb#35 + def child_set(metric_type); end + + # source://scout_apm//lib/scout_apm/layer_children_set.rb#64 + def each; end + + # source://scout_apm//lib/scout_apm/layer_children_set.rb#78 + def length; end + + # source://scout_apm//lib/scout_apm/layer_children_set.rb#82 + def size; end + + # Returns the value of attribute unique_cutoff. + # + # source://scout_apm//lib/scout_apm/layer_children_set.rb#23 + def unique_cutoff; end + + private + + # The Set of children objects + # + # source://scout_apm//lib/scout_apm/layer_children_set.rb#26 + def children; end +end + +# By default, how many unique children of a type do we store before +# flipping over to storing only aggregate info. +# +# source://scout_apm//lib/scout_apm/layer_children_set.rb#22 +ScoutApm::LayerChildrenSet::DEFAULT_UNIQUE_CUTOFF = T.let(T.unsafe(nil), Integer) + +# source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#2 +module ScoutApm::LayerConverters; end + +# source://scout_apm//lib/scout_apm/layer_converters/allocation_metric_converter.rb#3 +class ScoutApm::LayerConverters::AllocationMetricConverter < ::ScoutApm::LayerConverters::ConverterBase + # source://scout_apm//lib/scout_apm/layer_converters/allocation_metric_converter.rb#4 + def record!; end +end + +# source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#3 +class ScoutApm::LayerConverters::ConverterBase + # @return [ConverterBase] a new instance of ConverterBase + # + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#10 + def initialize(context, request, layer_finder, store = T.unsafe(nil)); end + + # Call this after you finish walking the layers, and want to take the + # set-aside backtraces and place them into the metas they match + # + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#86 + def attach_backtraces(metric_hash); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#5 + def context; end + + # Returns the value of attribute layer_finder. + # + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#8 + def layer_finder; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#113 + def limited?; end + + # When we make MetricMeta records, we need to determine a few things from layer. + # + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#122 + def make_meta_options(layer); end + + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#148 + def make_meta_options_desc_hash(layer, max_desc_length = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#129 + def make_meta_options_scope(layer); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#105 + def over_metric_limit?(metric_hash); end + + # Subscoping + # + # + # Keep a list of subscopes, but only ever use the front one. The rest + # get pushed/popped in cases when we have many levels of subscopable + # layers. This lets us push/pop without otherwise keeping track very closely. + # + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#32 + def register_hooks(walker); end + + # Returns the value of attribute request. + # + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#6 + def request; end + + # Returns the value of attribute root_layer. + # + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#7 + def root_layer; end + + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#21 + def scope_layer; end + + # Sometimes we start capturing a layer without knowing if we really + # want to make an entry for it. See ActiveRecord instrumentation for + # an example. We start capturing before we know if a query is cached + # or not, and want to skip any cached queries. + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#215 + def skip_layer?(layer); end + + # Merged Metric - no specifics, just sum up by type (ActiveRecord, View, HTTP, etc) + # + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#192 + def store_aggregate_metric(layer, metric_hash, allocation_metric_hash); end + + # Call this as you are processing each layer. It will store off backtraces + # + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#74 + def store_backtrace(layer, meta); end + + # This is the detailed metric - type, name, backtrace, annotations, etc. + # + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#164 + def store_specific_metric(layer, metric_hash, allocation_metric_hash); end + + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#52 + def subscope_name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#48 + def subscoped?(layer); end +end + +# To prevent huge traces from being generated, we should stop collecting +# detailed metrics as we go beyond some reasonably large count. +# +# We should still add up the /all aggregates. +# +# source://scout_apm//lib/scout_apm/layer_converters/converter_base.rb#103 +ScoutApm::LayerConverters::ConverterBase::MAX_METRICS = T.let(T.unsafe(nil), Integer) + +# source://scout_apm//lib/scout_apm/layer_converters/database_converter.rb#3 +class ScoutApm::LayerConverters::DatabaseConverter < ::ScoutApm::LayerConverters::ConverterBase + # @return [DatabaseConverter] a new instance of DatabaseConverter + # + # source://scout_apm//lib/scout_apm/layer_converters/database_converter.rb#4 + def initialize(*_arg0); end + + # source://scout_apm//lib/scout_apm/layer_converters/database_converter.rb#28 + def record!; end + + # source://scout_apm//lib/scout_apm/layer_converters/database_converter.rb#9 + def register_hooks(walker); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/layer_converters/database_converter.rb#38 + def skip_layer?(layer); end + + private + + # source://scout_apm//lib/scout_apm/layer_converters/database_converter.rb#53 + def model_name(layer); end + + # source://scout_apm//lib/scout_apm/layer_converters/database_converter.rb#57 + def operation_name(layer); end + + # source://scout_apm//lib/scout_apm/layer_converters/database_converter.rb#61 + def records_returned(layer); end +end + +# If we can't name the model, default to: +# +# source://scout_apm//lib/scout_apm/layer_converters/database_converter.rb#48 +ScoutApm::LayerConverters::DatabaseConverter::DEFAULT_MODEL = T.let(T.unsafe(nil), String) + +# If we can't name the operation, default to: +# +# source://scout_apm//lib/scout_apm/layer_converters/database_converter.rb#51 +ScoutApm::LayerConverters::DatabaseConverter::DEFAULT_OPERATION = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/layer_converters/depth_first_walker.rb#3 +class ScoutApm::LayerConverters::DepthFirstWalker + # @return [DepthFirstWalker] a new instance of DepthFirstWalker + # + # source://scout_apm//lib/scout_apm/layer_converters/depth_first_walker.rb#6 + def initialize(root_layer); end + + # source://scout_apm//lib/scout_apm/layer_converters/depth_first_walker.rb#18 + def after(&block); end + + # source://scout_apm//lib/scout_apm/layer_converters/depth_first_walker.rb#14 + def before(&block); end + + # source://scout_apm//lib/scout_apm/layer_converters/depth_first_walker.rb#22 + def on(&block); end + + # Returns the value of attribute root_layer. + # + # source://scout_apm//lib/scout_apm/layer_converters/depth_first_walker.rb#4 + def root_layer; end + + # source://scout_apm//lib/scout_apm/layer_converters/depth_first_walker.rb#26 + def walk(layer = T.unsafe(nil)); end +end + +# source://scout_apm//lib/scout_apm/layer_converters/error_converter.rb#3 +class ScoutApm::LayerConverters::ErrorConverter < ::ScoutApm::LayerConverters::ConverterBase + # source://scout_apm//lib/scout_apm/layer_converters/error_converter.rb#4 + def record!; end +end + +# source://scout_apm//lib/scout_apm/layer_converters/external_service_converter.rb#3 +class ScoutApm::LayerConverters::ExternalServiceConverter < ::ScoutApm::LayerConverters::ConverterBase + # @return [ExternalServiceConverter] a new instance of ExternalServiceConverter + # + # source://scout_apm//lib/scout_apm/layer_converters/external_service_converter.rb#4 + def initialize(*_arg0); end + + # source://scout_apm//lib/scout_apm/layer_converters/external_service_converter.rb#27 + def record!; end + + # source://scout_apm//lib/scout_apm/layer_converters/external_service_converter.rb#9 + def register_hooks(walker); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/layer_converters/external_service_converter.rb#37 + def skip_layer?(layer); end + + private + + # source://scout_apm//lib/scout_apm/layer_converters/external_service_converter.rb#48 + def domain_name(layer); end + + # source://scout_apm//lib/scout_apm/layer_converters/external_service_converter.rb#60 + def operation_name(layer); end +end + +# If we can't name the domain name, default to: +# +# source://scout_apm//lib/scout_apm/layer_converters/external_service_converter.rb#46 +ScoutApm::LayerConverters::ExternalServiceConverter::DEFAULT_DOMAIN = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/layer_converters/find_layer_by_type.rb#14 +class ScoutApm::LayerConverters::FindLayerByType + # @return [FindLayerByType] a new instance of FindLayerByType + # + # source://scout_apm//lib/scout_apm/layer_converters/find_layer_by_type.rb#15 + def initialize(request); end + + # source://scout_apm//lib/scout_apm/layer_converters/find_layer_by_type.rb#35 + def call(layer_types); end + + # source://scout_apm//lib/scout_apm/layer_converters/find_layer_by_type.rb#23 + def controller; end + + # source://scout_apm//lib/scout_apm/layer_converters/find_layer_by_type.rb#27 + def job; end + + # source://scout_apm//lib/scout_apm/layer_converters/find_layer_by_type.rb#31 + def queue; end + + # source://scout_apm//lib/scout_apm/layer_converters/find_layer_by_type.rb#19 + def scope; end +end + +# source://scout_apm//lib/scout_apm/layer_converters/histograms.rb#3 +class ScoutApm::LayerConverters::Histograms < ::ScoutApm::LayerConverters::ConverterBase + # Updates immediate and long-term histograms for both job and web requests + # + # source://scout_apm//lib/scout_apm/layer_converters/histograms.rb#5 + def record!; end +end + +# source://scout_apm//lib/scout_apm/layer_converters/job_converter.rb#12 +class ScoutApm::LayerConverters::JobConverter < ::ScoutApm::LayerConverters::ConverterBase + # This isn't stored as a specific layer, so grabbing it doesn't use the + # walker callbacks + # + # source://scout_apm//lib/scout_apm/layer_converters/job_converter.rb#63 + def add_latency_metric!; end + + # Returns the value of attribute meta_options. + # + # source://scout_apm//lib/scout_apm/layer_converters/job_converter.rb#13 + def meta_options; end + + # source://scout_apm//lib/scout_apm/layer_converters/job_converter.rb#42 + def record!; end + + # source://scout_apm//lib/scout_apm/layer_converters/job_converter.rb#15 + def register_hooks(walker); end +end + +# source://scout_apm//lib/scout_apm/layer_converters/metric_converter.rb#10 +class ScoutApm::LayerConverters::MetricConverter < ::ScoutApm::LayerConverters::ConverterBase + # source://scout_apm//lib/scout_apm/layer_converters/metric_converter.rb#39 + def record!; end + + # source://scout_apm//lib/scout_apm/layer_converters/metric_converter.rb#11 + def register_hooks(walker); end +end + +# source://scout_apm//lib/scout_apm/layer_converters/request_queue_time_converter.rb#3 +class ScoutApm::LayerConverters::RequestQueueTimeConverter < ::ScoutApm::LayerConverters::ConverterBase + # source://scout_apm//lib/scout_apm/layer_converters/request_queue_time_converter.rb#7 + def headers; end + + # source://scout_apm//lib/scout_apm/layer_converters/request_queue_time_converter.rb#11 + def record!; end + + private + + # Looks through the possible headers with this data, and extracts the raw + # value of the header + # Returns nil if not found + # + # source://scout_apm//lib/scout_apm/layer_converters/request_queue_time_converter.rb#51 + def locate_timestamp; end + + # Returns a timestamp in fractional seconds since epoch + # + # source://scout_apm//lib/scout_apm/layer_converters/request_queue_time_converter.rb#64 + def parse(time_string); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/layer_converters/request_queue_time_converter.rb#44 + def request_over_websocket?; end +end + +# source://scout_apm//lib/scout_apm/layer_converters/request_queue_time_converter.rb#5 +ScoutApm::LayerConverters::RequestQueueTimeConverter::HEADERS = T.let(T.unsafe(nil), Array) + +# source://scout_apm//lib/scout_apm/layer_converters/slow_job_converter.rb#7 +class ScoutApm::LayerConverters::SlowJobConverter < ::ScoutApm::LayerConverters::ConverterBase + # Called by the set to force this to actually be created. + # + # source://scout_apm//lib/scout_apm/layer_converters/slow_job_converter.rb#29 + def call; end + + # source://scout_apm//lib/scout_apm/layer_converters/slow_job_converter.rb#63 + def create_metrics; end + + # source://scout_apm//lib/scout_apm/layer_converters/slow_job_converter.rb#93 + def job_layer; end + + # ScoreItemSet API # + # + # source://scout_apm//lib/scout_apm/layer_converters/slow_job_converter.rb#25 + def name; end + + # source://scout_apm//lib/scout_apm/layer_converters/slow_job_converter.rb#92 + def queue_layer; end + + # Converter API # + # + # source://scout_apm//lib/scout_apm/layer_converters/slow_job_converter.rb#11 + def record!; end + + # source://scout_apm//lib/scout_apm/layer_converters/slow_job_converter.rb#26 + def score; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/layer_converters/slow_job_converter.rb#91 + def skip_layer?(layer); end + + # source://scout_apm//lib/scout_apm/layer_converters/slow_job_converter.rb#95 + def span_trace; end +end + +# source://scout_apm//lib/scout_apm/layer_converters/slow_request_converter.rb#3 +class ScoutApm::LayerConverters::SlowRequestConverter < ::ScoutApm::LayerConverters::ConverterBase + # Unconditionally attempts to convert this into a SlowTransaction object. + # Can return nil if the request didn't have any scope_layer. + # + # source://scout_apm//lib/scout_apm/layer_converters/slow_request_converter.rb#26 + def call; end + + # Full metrics from this request. These get stored permanently in a SlowTransaction. + # Some merging of metrics will happen here, so if a request calls the same + # ActiveRecord or View repeatedly, it'll get merged. + # + # This returns a 2-element of Metric Hashes (the first element is timing metrics, the second element is allocation metrics) + # + # source://scout_apm//lib/scout_apm/layer_converters/slow_request_converter.rb#64 + def create_metrics; end + + # ScoreItemSet API # + # + # source://scout_apm//lib/scout_apm/layer_converters/slow_request_converter.rb#21 + def name; end + + # Converter API # + # + # source://scout_apm//lib/scout_apm/layer_converters/slow_request_converter.rb#7 + def record!; end + + # source://scout_apm//lib/scout_apm/layer_converters/slow_request_converter.rb#22 + def score; end + + # Also create a new style trace. This is not a good # + # spot for this long term, but fixes an issue for now. # + # + # source://scout_apm//lib/scout_apm/layer_converters/slow_request_converter.rb#92 + def span_trace; end +end + +# source://scout_apm//lib/scout_apm/layer_converters/trace_converter.rb#3 +class ScoutApm::LayerConverters::TraceConverter < ::ScoutApm::LayerConverters::ConverterBase + # Take an array of ruby backtrace lines and split it into an array of hashes like: + # ["/Users/cschneid/.rvm/rubies/ruby-2.2.7/lib/ruby/2.2.0/irb/workspace.rb:86:in `eval'", ...] + # turns into: + # [ { + # "file": "app/controllers/users_controller.rb", + # "line": 10, + # "function": "index" + # }, + # ] + # + # source://scout_apm//lib/scout_apm/layer_converters/trace_converter.rb#142 + def backtrace_parser(lines); end + + # Unconditionally attempts to convert this into a DetailedTrace object. + # Can return nil if the request didn't have any scope_layer or if `timeline_traces` aren't enabled. + # + # source://scout_apm//lib/scout_apm/layer_converters/trace_converter.rb#27 + def call; end + + # Returns an array of span objects. Uses recursion to get all children + # wired up w/ correct parent_ids + # + # source://scout_apm//lib/scout_apm/layer_converters/trace_converter.rb#89 + def create_spans(layer, parent_id = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/layer_converters/trace_converter.rb#179 + def limited?; end + + # source://scout_apm//lib/scout_apm/layer_converters/trace_converter.rb#173 + def log_over_span_limit; end + + # ScoreItemSet API # + # + # source://scout_apm//lib/scout_apm/layer_converters/trace_converter.rb#22 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/layer_converters/trace_converter.rb#164 + def over_span_limit?(spans); end + + # source://scout_apm//lib/scout_apm/layer_converters/trace_converter.rb#9 + def record!; end + + # source://scout_apm//lib/scout_apm/layer_converters/trace_converter.rb#23 + def score; end +end + +# To prevent huge traces from being generated, we stop collecting +# spans as we go beyond some reasonably large count. +# +# source://scout_apm//lib/scout_apm/layer_converters/trace_converter.rb#162 +ScoutApm::LayerConverters::TraceConverter::MAX_SPANS = T.let(T.unsafe(nil), Integer) + +# A LimitedLayer is a lossy-compression approach to fall back on once we max out +# the number of detailed layer objects we store. See LayerChildrenSet for the +# logic on when that change over happens +# +# QUESTION: What do we do if we attempt to merge an item that has children? +# +# source://scout_apm//lib/scout_apm/limited_layer.rb#7 +class ScoutApm::LimitedLayer + # @return [LimitedLayer] a new instance of LimitedLayer + # + # source://scout_apm//lib/scout_apm/limited_layer.rb#10 + def initialize(type); end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#20 + def absorb(layer); end + + # Many methods don't make any sense on a limited layer. Raise errors # + # aggressively for now to detect mistaken calls # + # + # source://scout_apm//lib/scout_apm/limited_layer.rb#94 + def add_child; end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#110 + def annotate_layer(*_arg0); end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#61 + def annotations; end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#84 + def backtrace; end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#122 + def caller_array; end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#118 + def capture_backtrace!; end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#57 + def children; end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#46 + def count; end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#80 + def desc; end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#106 + def desc=(*_arg0); end + + # This is the old style name. This function is used for now, but should be + # removed, and the new type & name split should be enforced through the + # app. + # + # source://scout_apm//lib/scout_apm/limited_layer.rb#53 + def legacy_metric_name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/limited_layer.rb#69 + def limited?; end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#102 + def record_allocations!; end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#98 + def record_stop_time!(*_arg0); end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#114 + def subscopable!; end + + # Stub out some methods with static default values # + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/limited_layer.rb#76 + def subscopable?; end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#65 + def to_s; end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#38 + def total_allocations; end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#30 + def total_call_time; end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#42 + def total_exclusive_allocations; end + + # source://scout_apm//lib/scout_apm/limited_layer.rb#34 + def total_exclusive_time; end + + # Returns the value of attribute type. + # + # source://scout_apm//lib/scout_apm/limited_layer.rb#8 + def type; end +end + +# source://scout_apm//lib/scout_apm/logger.rb#23 +class ScoutApm::Logger + # @return [Logger] a new instance of Logger + # + # source://scout_apm//lib/scout_apm/logger.rb#26 + def initialize(environment_root, opts = T.unsafe(nil)); end + + # Delegate calls to the underlying logger + # + # source://scout_apm//lib/scout_apm/logger.rb#37 + def debug(*args, &block); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/logger.rb#43 + def debug?; end + + # source://scout_apm//lib/scout_apm/logger.rb#40 + def error(*args, &block); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/logger.rb#46 + def error?; end + + # source://scout_apm//lib/scout_apm/logger.rb#41 + def fatal(*args, &block); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/logger.rb#47 + def fatal?; end + + # source://scout_apm//lib/scout_apm/logger.rb#38 + def info(*args, &block); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/logger.rb#44 + def info?; end + + # Returns the value of attribute log_destination. + # + # source://scout_apm//lib/scout_apm/logger.rb#24 + def log_destination; end + + # source://scout_apm//lib/scout_apm/logger.rb#57 + def log_file_path; end + + # source://scout_apm//lib/scout_apm/logger.rb#53 + def log_level; end + + # source://scout_apm//lib/scout_apm/logger.rb#49 + def log_level=(level); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/logger.rb#65 + def stderr?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/logger.rb#61 + def stdout?; end + + # source://scout_apm//lib/scout_apm/logger.rb#39 + def warn(*args, &block); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/logger.rb#45 + def warn?; end + + private + + # source://scout_apm//lib/scout_apm/logger.rb#96 + def build_formatter; end + + # source://scout_apm//lib/scout_apm/logger.rb#71 + def build_logger; end + + # source://scout_apm//lib/scout_apm/logger.rb#118 + def determine_log_destination; end + + # source://scout_apm//lib/scout_apm/logger.rb#104 + def log_level_from_opts(explicit = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/logger.rb#79 + def logger_class; end + + # Check if this path is ok for a log file. + # Does it exist? + # Is it writable? + # + # source://scout_apm//lib/scout_apm/logger.rb#137 + def validate_path(candidate); end +end + +# source://scout_apm//lib/scout_apm/logger.rb#144 +class ScoutApm::Logger::DefaultFormatter < ::Logger::Formatter + # source://scout_apm//lib/scout_apm/logger.rb#145 + def call(severity, time, progname, msg); end +end + +# since STDOUT & STDERR isn't only used for ScoutApm logging, apply a +# prefix to make it easily greppable +# +# source://scout_apm//lib/scout_apm/logger.rb#154 +class ScoutApm::Logger::TaggedFormatter < ::ScoutApm::Logger::DefaultFormatter + # source://scout_apm//lib/scout_apm/logger.rb#157 + def call(severity, time, progname, msg); end +end + +# source://scout_apm//lib/scout_apm/logger.rb#155 +ScoutApm::Logger::TaggedFormatter::TAG = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/agent_context.rb#244 +class ScoutApm::LoggerFactory + class << self + # source://scout_apm//lib/scout_apm/agent_context.rb#245 + def build(config, environment); end + + # source://scout_apm//lib/scout_apm/agent_context.rb#257 + def build_minimal_logger; end + end +end + +# source://scout_apm//lib/scout_apm/metric_meta.rb#3 +class ScoutApm::MetricMeta + include ::ScoutApm::BucketNameSplitter + + # @return [MetricMeta] a new instance of MetricMeta + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#6 + def initialize(metric_name, options = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/metric_meta.rb#36 + def ==(o); end + + # source://scout_apm//lib/scout_apm/metric_meta.rb#64 + def as_json; end + + # source://scout_apm//lib/scout_apm/metric_meta.rb#45 + def backtrace; end + + # This should be abstracted to a true accessor ... earned it. + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#41 + def backtrace=(bt); end + + # Returns the value of attribute client_id. + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#15 + def client_id; end + + # Sets the attribute client_id + # + # @param value the value to set the attribute client_id to. + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#15 + def client_id=(_arg0); end + + # Returns the value of attribute desc. + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#16 + def desc; end + + # Sets the attribute desc + # + # @param value the value to set the attribute desc to. + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#16 + def desc=(_arg0); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#56 + def eql?(o); end + + # Returns the value of attribute extra. + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#16 + def extra; end + + # Sets the attribute extra + # + # @param value the value to set the attribute extra to. + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#16 + def extra=(_arg0); end + + # source://scout_apm//lib/scout_apm/metric_meta.rb#49 + def hash; end + + # A key metric is the "core" of a request - either the Rails controller reached, or the background Job executed + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#28 + def key_metric?; end + + # Returns the value of attribute metric_id. + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#13 + def metric_id; end + + # Sets the attribute metric_id + # + # @param value the value to set the attribute metric_id to. + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#13 + def metric_id=(_arg0); end + + # Returns the value of attribute metric_name. + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#13 + def metric_name; end + + # Sets the attribute metric_name + # + # @param value the value to set the attribute metric_name to. + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#13 + def metric_name=(_arg0); end + + # source://scout_apm//lib/scout_apm/metric_meta.rb#23 + def name; end + + # Returns the value of attribute scope. + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#14 + def scope; end + + # Sets the attribute scope + # + # @param value the value to set the attribute scope to. + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#14 + def scope=(_arg0); end + + # Unsure if type or bucket is a better name. + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#19 + def type; end + + class << self + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/metric_meta.rb#32 + def key_metric?(metric_name); end + end +end + +# source://scout_apm//lib/scout_apm/metric_set.rb#2 +class ScoutApm::MetricSet + # @return [MetricSet] a new instance of MetricSet + # + # source://scout_apm//lib/scout_apm/metric_set.rb#11 + def initialize; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/metric_set.rb#56 + def ==(other); end + + # Absorbs a single new metric into the aggregates + # + # source://scout_apm//lib/scout_apm/metric_set.rb#20 + def absorb(metric); end + + # source://scout_apm//lib/scout_apm/metric_set.rb#15 + def absorb_all(metrics); end + + # Sets a combine_in_progress flag to prevent double-counting Error metrics. + # Without it, the Errors/Request number would be increasingly off as + # metric_sets get merged in. + # + # source://scout_apm//lib/scout_apm/metric_set.rb#48 + def combine!(other); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/metric_set.rb#56 + def eql?(other); end + + # Returns the value of attribute metrics. + # + # source://scout_apm//lib/scout_apm/metric_set.rb#9 + def metrics; end +end + +# We can't aggregate a handful of things like samplers (CPU, Memory), or +# Controller, and Percentiles so pass through these metrics directly +# +# TODO: Figure out a way to not have this duplicate what's in Samplers, and also on server's ingest +# +# source://scout_apm//lib/scout_apm/metric_set.rb#7 +ScoutApm::MetricSet::PASSTHROUGH_METRICS = T.let(T.unsafe(nil), Array) + +# source://scout_apm//lib/scout_apm/metric_stats.rb#3 +class ScoutApm::MetricStats + # @return [MetricStats] a new instance of MetricStats + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#13 + def initialize(scoped = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/metric_stats.rb#53 + def as_json; end + + # Returns the value of attribute call_count. + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#4 + def call_count; end + + # Sets the attribute call_count + # + # @param value the value to set the attribute call_count to. + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#4 + def call_count=(_arg0); end + + # combines data from another MetricStats object + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#43 + def combine!(other); end + + # Returns the value of attribute latency. + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#11 + def latency; end + + # Sets the attribute latency + # + # @param value the value to set the attribute latency to. + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#11 + def latency=(_arg0); end + + # Returns the value of attribute max_call_time. + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#6 + def max_call_time; end + + # Sets the attribute max_call_time + # + # @param value the value to set the attribute max_call_time to. + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#6 + def max_call_time=(_arg0); end + + # Returns the value of attribute min_call_time. + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#5 + def min_call_time; end + + # Sets the attribute min_call_time + # + # @param value the value to set the attribute min_call_time to. + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#5 + def min_call_time=(_arg0); end + + # Returns the value of attribute queue. + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#10 + def queue; end + + # Sets the attribute queue + # + # @param value the value to set the attribute queue to. + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#10 + def queue=(_arg0); end + + # Returns the value of attribute sum_of_squares. + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#9 + def sum_of_squares; end + + # Sets the attribute sum_of_squares + # + # @param value the value to set the attribute sum_of_squares to. + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#9 + def sum_of_squares=(_arg0); end + + # Returns the value of attribute total_call_time. + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#7 + def total_call_time; end + + # Sets the attribute total_call_time + # + # @param value the value to set the attribute total_call_time to. + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#7 + def total_call_time=(_arg0); end + + # Returns the value of attribute total_exclusive_time. + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#8 + def total_exclusive_time; end + + # Sets the attribute total_exclusive_time + # + # @param value the value to set the attribute total_exclusive_time to. + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#8 + def total_exclusive_time=(_arg0); end + + # Note, that you must include exclusive_time if you wish to set + # extra_metrics. A two argument use of this method won't do that. + # + # source://scout_apm//lib/scout_apm/metric_stats.rb#25 + def update!(call_time, exclusive_time = T.unsafe(nil), extra_metrics = T.unsafe(nil)); end +end + +# source://scout_apm//lib/scout_apm/middleware.rb#2 +class ScoutApm::Middleware + # @return [Middleware] a new instance of Middleware + # + # source://scout_apm//lib/scout_apm/middleware.rb#5 + def initialize(app); end + + # source://scout_apm//lib/scout_apm/middleware.rb#24 + def attempt_to_start_agent; end + + # If we get a web request in, then we know we're running in some sort of app server + # + # source://scout_apm//lib/scout_apm/middleware.rb#15 + def call(env); end +end + +# source://scout_apm//lib/scout_apm/middleware.rb#3 +ScoutApm::Middleware::MAX_ATTEMPTS = T.let(T.unsafe(nil), Integer) + +# source://scout_apm//lib/scout_apm/histogram.rb#4 +class ScoutApm::NumericHistogram + # @return [NumericHistogram] a new instance of NumericHistogram + # + # source://scout_apm//lib/scout_apm/histogram.rb#21 + def initialize(max_bins); end + + # source://scout_apm//lib/scout_apm/histogram.rb#28 + def add(new_value); end + + # Given a value, where in this histogram does it fall? + # Returns a float between 0 and 1 + # + # source://scout_apm//lib/scout_apm/histogram.rb#61 + def approximate_quantile_of_value(v); end + + # source://scout_apm//lib/scout_apm/histogram.rb#105 + def as_json; end + + # Returns the value of attribute bins. + # + # source://scout_apm//lib/scout_apm/histogram.rb#9 + def bins; end + + # source://scout_apm//lib/scout_apm/histogram.rb#90 + def combine!(other); end + + # source://scout_apm//lib/scout_apm/histogram.rb#12 + def marshal_dump; end + + # source://scout_apm//lib/scout_apm/histogram.rb#16 + def marshal_load(array); end + + # Returns the value of attribute max_bins. + # + # source://scout_apm//lib/scout_apm/histogram.rb#8 + def max_bins; end + + # source://scout_apm//lib/scout_apm/histogram.rb#79 + def mean; end + + # This class should be threadsafe. + # + # source://scout_apm//lib/scout_apm/histogram.rb#6 + def mutex; end + + # source://scout_apm//lib/scout_apm/histogram.rb#36 + def quantile(q); end + + # Returns the value of attribute total. + # + # source://scout_apm//lib/scout_apm/histogram.rb#10 + def total; end + + # Sets the attribute total + # + # @param value the value to set the attribute total to. + # + # source://scout_apm//lib/scout_apm/histogram.rb#10 + def total=(_arg0); end + + private + + # If we exactly match an existing bin, add to it, otherwise create a new bin holding a count for the new value. + # + # source://scout_apm//lib/scout_apm/histogram.rb#119 + def create_new_bin(new_value); end + + # source://scout_apm//lib/scout_apm/histogram.rb#140 + def trim; end + + # source://scout_apm//lib/scout_apm/histogram.rb#146 + def trim_one; end +end + +# source://scout_apm//lib/scout_apm/periodic_work.rb#2 +class ScoutApm::PeriodicWork + # @return [PeriodicWork] a new instance of PeriodicWork + # + # source://scout_apm//lib/scout_apm/periodic_work.rb#5 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/periodic_work.rb#3 + def context; end + + # Expected to be called many times over the life of the agent + # + # source://scout_apm//lib/scout_apm/periodic_work.rb#11 + def run; end + + private + + # XXX: Move logic into a RequestHistogramsByTime class that can keep the timeout logic in it + # + # source://scout_apm//lib/scout_apm/periodic_work.rb#39 + def clean_old_percentiles; end + + # source://scout_apm//lib/scout_apm/periodic_work.rb#23 + def log_autoinstrument_significant_counts; end +end + +# source://scout_apm//lib/scout_apm/platform_integrations/heroku.rb#2 +module ScoutApm::PlatformIntegrations; end + +# source://scout_apm//lib/scout_apm/platform_integrations/cloud_foundry.rb#3 +class ScoutApm::PlatformIntegrations::CloudFoundry + # TODO: Is there a better way to get a hostname from Cloud Foundry? + # + # source://scout_apm//lib/scout_apm/platform_integrations/cloud_foundry.rb#18 + def hostname; end + + # TODO: Which is easier for users by defualt? STDOUT or our log/scout_apm.log file? + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/platform_integrations/cloud_foundry.rb#13 + def log_to_stdout?; end + + # source://scout_apm//lib/scout_apm/platform_integrations/cloud_foundry.rb#8 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/platform_integrations/cloud_foundry.rb#4 + def present?; end +end + +# source://scout_apm//lib/scout_apm/platform_integrations/heroku.rb#3 +class ScoutApm::PlatformIntegrations::Heroku + # source://scout_apm//lib/scout_apm/platform_integrations/heroku.rb#16 + def hostname; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/platform_integrations/heroku.rb#12 + def log_to_stdout?; end + + # source://scout_apm//lib/scout_apm/platform_integrations/heroku.rb#8 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/platform_integrations/heroku.rb#4 + def present?; end +end + +# source://scout_apm//lib/scout_apm/platform_integrations/server.rb#6 +class ScoutApm::PlatformIntegrations::Server + # source://scout_apm//lib/scout_apm/platform_integrations/server.rb#19 + def hostname; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/platform_integrations/server.rb#15 + def log_to_stdout?; end + + # source://scout_apm//lib/scout_apm/platform_integrations/server.rb#11 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/platform_integrations/server.rb#7 + def present?; end +end + +# source://scout_apm//lib/scout_apm/rack.rb#2 +module ScoutApm::Rack + class << self + # source://scout_apm//lib/scout_apm/rack.rb#3 + def install!; end + + # source://scout_apm//lib/scout_apm/rack.rb#8 + def transaction(endpoint_name, env); end + end +end + +# source://scout_apm//lib/scout_apm.rb#216 +class ScoutApm::Railtie < ::Rails::Railtie; end + +# source://scout_apm//lib/scout_apm/agent_context.rb#232 +class ScoutApm::RecorderFactory + class << self + # source://scout_apm//lib/scout_apm/agent_context.rb#233 + def build(context); end + end +end + +# source://scout_apm//lib/scout_apm/remote/server.rb#4 +module ScoutApm::Remote; end + +# source://scout_apm//lib/scout_apm/remote/message.rb#3 +class ScoutApm::Remote::Message + # @return [Message] a new instance of Message + # + # source://scout_apm//lib/scout_apm/remote/message.rb#8 + def initialize(type, command, *args); end + + # Returns the value of attribute args. + # + # source://scout_apm//lib/scout_apm/remote/message.rb#6 + def args; end + + # Returns the value of attribute command. + # + # source://scout_apm//lib/scout_apm/remote/message.rb#5 + def command; end + + # source://scout_apm//lib/scout_apm/remote/message.rb#18 + def encode; end + + # Returns the value of attribute type. + # + # source://scout_apm//lib/scout_apm/remote/message.rb#4 + def type; end + + class << self + # source://scout_apm//lib/scout_apm/remote/message.rb#14 + def decode(msg); end + end +end + +# source://scout_apm//lib/scout_apm/remote/recorder.rb#3 +class ScoutApm::Remote::Recorder + # @return [Recorder] a new instance of Recorder + # + # source://scout_apm//lib/scout_apm/remote/recorder.rb#8 + def initialize(remote_agent_host, remote_agent_port, logger); end + + # Returns the value of attribute logger. + # + # source://scout_apm//lib/scout_apm/remote/recorder.rb#4 + def logger; end + + # source://scout_apm//lib/scout_apm/remote/recorder.rb#49 + def post(encoded_message); end + + # source://scout_apm//lib/scout_apm/remote/recorder.rb#23 + def record!(request); end + + # Returns the value of attribute remote_agent_host. + # + # source://scout_apm//lib/scout_apm/remote/recorder.rb#5 + def remote_agent_host; end + + # Returns the value of attribute remote_agent_port. + # + # source://scout_apm//lib/scout_apm/remote/recorder.rb#6 + def remote_agent_port; end + + # source://scout_apm//lib/scout_apm/remote/recorder.rb#14 + def start; end + + # source://scout_apm//lib/scout_apm/remote/recorder.rb#19 + def stop; end +end + +# source://scout_apm//lib/scout_apm/remote/router.rb#3 +class ScoutApm::Remote::Router + # If/When we add different types, this signature should change to a hash + # of {type => Object}, rather than building it in the initializer here. + # + # Keys of routes should be strings + # + # @return [Router] a new instance of Router + # + # source://scout_apm//lib/scout_apm/remote/router.rb#11 + def initialize(recorder, logger); end + + # A message is a 2 element array [:type, :command, [args]]. + # For this first creation, this should be ['record', 'record', [TrackedRequest]] (the args arg should always be an array, even w/ only 1 item) + # + # Where + # type: ['recorder'] + # command: any function supported on that type of object + # args: any array of arguments + # + # Raises on unknown message + # + # Returns whatever the recipient object returns + # + # source://scout_apm//lib/scout_apm/remote/router.rb#30 + def handle(msg); end + + # Returns the value of attribute logger. + # + # source://scout_apm//lib/scout_apm/remote/router.rb#4 + def logger; end + + # Returns the value of attribute routes. + # + # source://scout_apm//lib/scout_apm/remote/router.rb#5 + def routes; end + + private + + # source://scout_apm//lib/scout_apm/remote/router.rb#38 + def assert_type(message); end + + # source://scout_apm//lib/scout_apm/remote/router.rb#44 + def call_route(message); end +end + +# source://scout_apm//lib/scout_apm/remote/server.rb#5 +class ScoutApm::Remote::Server + # @return [Server] a new instance of Server + # + # source://scout_apm//lib/scout_apm/remote/server.rb#11 + def initialize(bind, port, router, logger); end + + # Returns the value of attribute bind. + # + # source://scout_apm//lib/scout_apm/remote/server.rb#7 + def bind; end + + # Returns the value of attribute logger. + # + # source://scout_apm//lib/scout_apm/remote/server.rb#9 + def logger; end + + # Returns the value of attribute port. + # + # source://scout_apm//lib/scout_apm/remote/server.rb#8 + def port; end + + # source://scout_apm//lib/scout_apm/remote/server.rb#19 + def require_webrick; end + + # Returns the value of attribute router. + # + # source://scout_apm//lib/scout_apm/remote/server.rb#6 + def router; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/remote/server.rb#61 + def running?; end + + # source://scout_apm//lib/scout_apm/remote/server.rb#31 + def start; end + + # source://scout_apm//lib/scout_apm/remote/server.rb#66 + def stop; end +end + +# source://scout_apm//lib/scout_apm/reporter.rb#4 +class ScoutApm::Reporter + # @return [Reporter] a new instance of Reporter + # + # source://scout_apm//lib/scout_apm/reporter.rb#11 + def initialize(context, type, instant_key = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/reporter.rb#61 + def can_report?; end + + # source://scout_apm//lib/scout_apm/reporter.rb#17 + def config; end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/reporter.rb#8 + def context; end + + # Returns the value of attribute instant_key. + # + # source://scout_apm//lib/scout_apm/reporter.rb#9 + def instant_key; end + + # source://scout_apm//lib/scout_apm/reporter.rb#21 + def logger; end + + # The fully serialized string payload to be sent + # + # source://scout_apm//lib/scout_apm/reporter.rb#26 + def report(payload, headers = T.unsafe(nil)); end + + # Returns the value of attribute type. + # + # source://scout_apm//lib/scout_apm/reporter.rb#7 + def type; end + + # source://scout_apm//lib/scout_apm/reporter.rb#43 + def uri(host); end + + private + + # source://scout_apm//lib/scout_apm/reporter.rb#135 + def compress_payload(payload); end + + # Headers passed up with all API requests. + # + # source://scout_apm//lib/scout_apm/reporter.rb#111 + def default_http_headers; end + + # Some posts (typically ones under development) bypass the ingestion + # pipeline and go directly to the webserver. They use direct_host instead + # of host + # + # source://scout_apm//lib/scout_apm/reporter.rb#145 + def determine_hosts; end + + # Take care of the http proxy, if specified in config. + # Given a blank string, the proxy_uri URI instance's host/port/user/pass will be nil. + # Net::HTTP::Proxy returns a regular Net::HTTP class if the first argument (host) is nil. + # + # source://scout_apm//lib/scout_apm/reporter.rb#121 + def http(url); end + + # source://scout_apm//lib/scout_apm/reporter.rb#78 + def post(uri, body, headers = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/reporter.rb#155 + def post_payload(hosts, payload, headers); end + + # source://scout_apm//lib/scout_apm/reporter.rb#90 + def request(uri, &connector); end +end + +# source://scout_apm//lib/scout_apm/reporter.rb#5 +ScoutApm::Reporter::VERIFY_MODE = T.let(T.unsafe(nil), Integer) + +# source://scout_apm//lib/scout_apm/reporting.rb#3 +class ScoutApm::Reporting + # @return [Reporting] a new instance of Reporting + # + # source://scout_apm//lib/scout_apm/reporting.rb#6 + def initialize(context); end + + # Before reporting, lookup metric_id for each MetricMeta. This speeds up + # reporting on the server-side. + # + # source://scout_apm//lib/scout_apm/reporting.rb#136 + def add_metric_ids(metrics); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/reporting.rb#4 + def context; end + + # source://scout_apm//lib/scout_apm/reporting.rb#79 + def deliver_period(reporting_period, metadata); end + + # TODO: Move this into PayloadSerializer? + # XXX: Remove non-json report format entirely + # + # source://scout_apm//lib/scout_apm/reporting.rb#126 + def headers; end + + # source://scout_apm//lib/scout_apm/reporting.rb#101 + def log_deliver(metrics, slow_transactions, metadata, jobs_traces, histograms); end + + # source://scout_apm//lib/scout_apm/reporting.rb#10 + def logger; end + + # source://scout_apm//lib/scout_apm/reporting.rb#68 + def metadata(reporting_period); end + + # The data moves through a treadmill of reporting, coordinating several Rails processes by using an external file. + # * During the minute it is being recorded by the instruments, it gets + # recorded into the ram of each process (in the Store class). + # * The minute after, each process writes its own metrics to a shared LayawayFile + # * The minute after that, the first process to wake up pushes the combined + # data to the server, and wipes it. Next processes don't have anything to do. + # + # At any given point, there is data in each of those steps, moving its way through the process + # + # source://scout_apm//lib/scout_apm/reporting.rb#26 + def process_metrics; end + + # In a running app, one process will get the period ready for delivery, the others will see 0. + # + # source://scout_apm//lib/scout_apm/reporting.rb#40 + def report_to_server; end + + # source://scout_apm//lib/scout_apm/reporting.rb#14 + def reporter; end +end + +# source://scout_apm//lib/scout_apm/request_histograms.rb#2 +class ScoutApm::RequestHistograms + # @return [RequestHistograms] a new instance of RequestHistograms + # + # source://scout_apm//lib/scout_apm/request_histograms.rb#16 + def initialize(histogram_size = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/request_histograms.rb#33 + def add(item, value); end + + # source://scout_apm//lib/scout_apm/request_histograms.rb#37 + def approximate_quantile_of_value(item, value); end + + # source://scout_apm//lib/scout_apm/request_histograms.rb#25 + def as_json; end + + # source://scout_apm//lib/scout_apm/request_histograms.rb#21 + def each_name; end + + # Returns the value of attribute histogram_size. + # + # source://scout_apm//lib/scout_apm/request_histograms.rb#14 + def histogram_size; end + + # source://scout_apm//lib/scout_apm/request_histograms.rb#54 + def initialize_histograms_hash; end + + # source://scout_apm//lib/scout_apm/request_histograms.rb#41 + def quantile(item, q); end + + # source://scout_apm//lib/scout_apm/request_histograms.rb#50 + def raw(item); end + + # Wipes all histograms, setting them back to empty + # + # source://scout_apm//lib/scout_apm/request_histograms.rb#46 + def reset_all!; end + + private + + # Private Accessor: + # A hash of Endpoint Name to an approximate histogram + # + # Each time a new request is requested to see if it's slow or not, we + # should insert it into the histogram, and get the approximate percentile + # of that time + # + # source://scout_apm//lib/scout_apm/request_histograms.rb#11 + def histograms; end +end + +# source://scout_apm//lib/scout_apm/request_histograms.rb#3 +ScoutApm::RequestHistograms::DEFAULT_HISTOGRAM_SIZE = T.let(T.unsafe(nil), Integer) + +# source://scout_apm//lib/scout_apm/request_manager.rb#5 +class ScoutApm::RequestManager + class << self + # Create a new TrackedRequest object for this thread + # XXX: Figure out who is in charge of creating a `FakeStore` - previously was here + # + # source://scout_apm//lib/scout_apm/request_manager.rb#23 + def create; end + + # Get the current Thread local, and detecting, and not returning a stale request + # + # source://scout_apm//lib/scout_apm/request_manager.rb#11 + def find; end + + # source://scout_apm//lib/scout_apm/request_manager.rb#6 + def lookup; end + end +end + +# source://scout_apm//lib/scout_apm/scored_item_set.rb#8 +class ScoutApm::ScoredItemSet + include ::Enumerable + + # @return [ScoredItemSet] a new instance of ScoredItemSet + # + # source://scout_apm//lib/scout_apm/scored_item_set.rb#20 + def initialize(max_size = T.unsafe(nil)); end + + # This function is a large if statement, with a few branches. See inline comments for each branch. + # + # source://scout_apm//lib/scout_apm/scored_item_set.rb#32 + def <<(new_item); end + + # Equal to another set only if exactly the same set of items is inside + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/scored_item_set.rb#67 + def ==(other); end + + # source://scout_apm//lib/scout_apm/scored_item_set.rb#25 + def each; end + + # Equal to another set only if exactly the same set of items is inside + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/scored_item_set.rb#67 + def eql?(other); end + + # Returns the value of attribute items. + # + # source://scout_apm//lib/scout_apm/scored_item_set.rb#18 + def items; end + + # Returns the value of attribute max_size. + # + # source://scout_apm//lib/scout_apm/scored_item_set.rb#17 + def max_size; end + + private + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/scored_item_set.rb#75 + def full?; end + + # source://scout_apm//lib/scout_apm/scored_item_set.rb#79 + def store!(new_item); end +end + +# A number larger than any score we will actually get. +# +# source://scout_apm//lib/scout_apm/scored_item_set.rb#12 +ScoutApm::ScoredItemSet::ARBITRARILY_LARGE = T.let(T.unsafe(nil), Integer) + +# Without otherwise saying, default the size to this +# +# source://scout_apm//lib/scout_apm/scored_item_set.rb#15 +ScoutApm::ScoredItemSet::DEFAULT_MAX_SIZE = T.let(T.unsafe(nil), Integer) + +# source://scout_apm//lib/scout_apm/serializers/payload_serializer.rb#3 +module ScoutApm::Serializers; end + +# source://scout_apm//lib/scout_apm/serializers/app_server_load_serializer.rb#5 +class ScoutApm::Serializers::AppServerLoadSerializer + class << self + # source://scout_apm//lib/scout_apm/serializers/app_server_load_serializer.rb#14 + def deserialize(data); end + + # source://scout_apm//lib/scout_apm/serializers/app_server_load_serializer.rb#6 + def serialize(data); end + end +end + +# source://scout_apm//lib/scout_apm/serializers/db_query_serializer_to_json.rb#3 +class ScoutApm::Serializers::DbQuerySerializerToJson + # @return [DbQuerySerializerToJson] a new instance of DbQuerySerializerToJson + # + # source://scout_apm//lib/scout_apm/serializers/db_query_serializer_to_json.rb#6 + def initialize(db_query_metrics); end + + # source://scout_apm//lib/scout_apm/serializers/db_query_serializer_to_json.rb#10 + def as_json; end + + # Returns the value of attribute db_query_metrics. + # + # source://scout_apm//lib/scout_apm/serializers/db_query_serializer_to_json.rb#4 + def db_query_metrics; end +end + +# source://scout_apm//lib/scout_apm/serializers/directive_serializer.rb#5 +class ScoutApm::Serializers::DirectiveSerializer + class << self + # source://scout_apm//lib/scout_apm/serializers/directive_serializer.rb#14 + def deserialize(data); end + + # source://scout_apm//lib/scout_apm/serializers/directive_serializer.rb#6 + def serialize(data); end + end +end + +# source://scout_apm//lib/scout_apm/serializers/external_service_serializer_to_json.rb#3 +class ScoutApm::Serializers::ExternalServiceSerializerToJson + # @return [ExternalServiceSerializerToJson] a new instance of ExternalServiceSerializerToJson + # + # source://scout_apm//lib/scout_apm/serializers/external_service_serializer_to_json.rb#6 + def initialize(external_service_metrics); end + + # source://scout_apm//lib/scout_apm/serializers/external_service_serializer_to_json.rb#10 + def as_json; end + + # Returns the value of attribute external_service_metrics. + # + # source://scout_apm//lib/scout_apm/serializers/external_service_serializer_to_json.rb#4 + def external_service_metrics; end +end + +# source://scout_apm//lib/scout_apm/serializers/histograms_serializer_to_json.rb#4 +class ScoutApm::Serializers::HistogramsSerializerToJson + # @return [HistogramsSerializerToJson] a new instance of HistogramsSerializerToJson + # + # source://scout_apm//lib/scout_apm/serializers/histograms_serializer_to_json.rb#7 + def initialize(histograms); end + + # source://scout_apm//lib/scout_apm/serializers/histograms_serializer_to_json.rb#11 + def as_json; end + + # Returns the value of attribute histograms. + # + # source://scout_apm//lib/scout_apm/serializers/histograms_serializer_to_json.rb#5 + def histograms; end +end + +# source://scout_apm//lib/scout_apm/serializers/jobs_serializer_to_json.rb#3 +class ScoutApm::Serializers::JobsSerializerToJson + # Jobs is a pre-deduped/combined set of job records. + # + # @return [JobsSerializerToJson] a new instance of JobsSerializerToJson + # + # source://scout_apm//lib/scout_apm/serializers/jobs_serializer_to_json.rb#7 + def initialize(jobs); end + + # An array of job records + # + # source://scout_apm//lib/scout_apm/serializers/jobs_serializer_to_json.rb#12 + def as_json; end + + # Returns the value of attribute jobs. + # + # source://scout_apm//lib/scout_apm/serializers/jobs_serializer_to_json.rb#4 + def jobs; end +end + +# source://scout_apm//lib/scout_apm/serializers/metrics_to_json_serializer.rb#3 +class ScoutApm::Serializers::MetricsToJsonSerializer + # A hash of meta => stat pairs + # + # @return [MetricsToJsonSerializer] a new instance of MetricsToJsonSerializer + # + # source://scout_apm//lib/scout_apm/serializers/metrics_to_json_serializer.rb#7 + def initialize(metrics); end + + # source://scout_apm//lib/scout_apm/serializers/metrics_to_json_serializer.rb#11 + def as_json; end + + # Children metrics is a hash of meta=>stat pairs. Leave empty for no children. + # Supports only a single-level nesting, until we have redone metric + # classes, instead of Meta and Stats + # + # source://scout_apm//lib/scout_apm/serializers/metrics_to_json_serializer.rb#22 + def metric_as_json(meta, stat, child_metrics = T.unsafe(nil)); end + + # Returns the value of attribute metrics. + # + # source://scout_apm//lib/scout_apm/serializers/metrics_to_json_serializer.rb#4 + def metrics; end + + # source://scout_apm//lib/scout_apm/serializers/metrics_to_json_serializer.rb#48 + def transform_child_metrics(metrics); end +end + +# source://scout_apm//lib/scout_apm/serializers/payload_serializer.rb#4 +class ScoutApm::Serializers::PayloadSerializer + class << self + # source://scout_apm//lib/scout_apm/serializers/payload_serializer.rb#30 + def deserialize(data); end + + # source://scout_apm//lib/scout_apm/serializers/payload_serializer.rb#5 + def serialize(metadata, metrics, slow_transactions, jobs, slow_jobs, histograms, db_query_metrics, external_service_metrics, traces); end + end +end + +# source://scout_apm//lib/scout_apm/serializers/payload_serializer_to_json.rb#3 +module ScoutApm::Serializers::PayloadSerializerToJson + class << self + # source://scout_apm//lib/scout_apm/serializers/payload_serializer_to_json.rb#63 + def escape(string); end + + # source://scout_apm//lib/scout_apm/serializers/payload_serializer_to_json.rb#69 + def format_by_type(formatee); end + + # source://scout_apm//lib/scout_apm/serializers/payload_serializer_to_json.rb#41 + def jsonify_hash(hash); end + + # takes just one slow transaction + # + # source://scout_apm//lib/scout_apm/serializers/payload_serializer_to_json.rb#37 + def rearrange_slow_transaction(slow_t); end + + # For the old style of metric serializing. + # + # source://scout_apm//lib/scout_apm/serializers/payload_serializer_to_json.rb#25 + def rearrange_the_metrics(metrics); end + + # takes an array of slow transactions + # + # source://scout_apm//lib/scout_apm/serializers/payload_serializer_to_json.rb#32 + def rearrange_the_slow_transactions(slow_transactions); end + + # source://scout_apm//lib/scout_apm/serializers/payload_serializer_to_json.rb#5 + def serialize(metadata, metrics, slow_transactions, jobs, slow_jobs, histograms, db_query_metrics, external_service_metrics, traces); end + end +end + +# source://scout_apm//lib/scout_apm/serializers/slow_jobs_serializer_to_json.rb#3 +class ScoutApm::Serializers::SlowJobsSerializerToJson + # Jobs is a series of slow job records + # + # @return [SlowJobsSerializerToJson] a new instance of SlowJobsSerializerToJson + # + # source://scout_apm//lib/scout_apm/serializers/slow_jobs_serializer_to_json.rb#7 + def initialize(jobs); end + + # An array of job records + # + # source://scout_apm//lib/scout_apm/serializers/slow_jobs_serializer_to_json.rb#12 + def as_json; end + + # Returns the value of attribute jobs. + # + # source://scout_apm//lib/scout_apm/serializers/slow_jobs_serializer_to_json.rb#4 + def jobs; end +end + +# source://scout_apm//lib/scout_apm/server_integrations/passenger.rb#2 +module ScoutApm::ServerIntegrations; end + +# source://scout_apm//lib/scout_apm/server_integrations/null.rb#6 +class ScoutApm::ServerIntegrations::Null + # @return [Null] a new instance of Null + # + # source://scout_apm//lib/scout_apm/server_integrations/null.rb#9 + def initialize(logger); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/null.rb#25 + def forking?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/null.rb#29 + def found?; end + + # source://scout_apm//lib/scout_apm/server_integrations/null.rb#21 + def install; end + + # Returns the value of attribute logger. + # + # source://scout_apm//lib/scout_apm/server_integrations/null.rb#7 + def logger; end + + # source://scout_apm//lib/scout_apm/server_integrations/null.rb#13 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/null.rb#17 + def present?; end +end + +# source://scout_apm//lib/scout_apm/server_integrations/passenger.rb#3 +class ScoutApm::ServerIntegrations::Passenger + # @return [Passenger] a new instance of Passenger + # + # source://scout_apm//lib/scout_apm/server_integrations/passenger.rb#6 + def initialize(logger); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/passenger.rb#14 + def forking?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/passenger.rb#36 + def found?; end + + # source://scout_apm//lib/scout_apm/server_integrations/passenger.rb#20 + def install; end + + # Returns the value of attribute logger. + # + # source://scout_apm//lib/scout_apm/server_integrations/passenger.rb#4 + def logger; end + + # source://scout_apm//lib/scout_apm/server_integrations/passenger.rb#10 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/passenger.rb#16 + def present?; end +end + +# source://scout_apm//lib/scout_apm/server_integrations/puma.rb#3 +class ScoutApm::ServerIntegrations::Puma + # @return [Puma] a new instance of Puma + # + # source://scout_apm//lib/scout_apm/server_integrations/puma.rb#6 + def initialize(logger); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/puma.rb#14 + def forking?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/puma.rb#66 + def found?; end + + # Puma::UserFileDefaultOptions exposes `options` based on three underlying + # hashes: user_options, file_options, and default_options. While getting an `options` + # key consults all three underlying hashes, setting an `options` key only sets the + # user_options hash: + # + # def [](key) + # fetch(key) + # end + # + # def []=(key, value) + # user_options[key] = value + # end + # + # def fetch(key, default_value = nil) + # return user_options[key] if user_options.key?(key) + # return file_options[key] if file_options.key?(key) + # return default_options[key] if default_options.key?(key) + # + # default_value + # end + # + # Because of this, we can't read options[:before_worker_boot], modify, and then re-set + # options[:before_worker_boot], since doing so could cause duplication if `before_worker_boot` + # exists on the other two underlying hashes (file_options, default_options). + # + # To get around this, we explicitly read from `user_options` only, and still set using `options[]=`, + # which Puma allows for setting `user_options`. + # + # source://scout_apm//lib/scout_apm/server_integrations/puma.rb#54 + def install; end + + # Returns the value of attribute logger. + # + # source://scout_apm//lib/scout_apm/server_integrations/puma.rb#4 + def logger; end + + # source://scout_apm//lib/scout_apm/server_integrations/puma.rb#10 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/puma.rb#22 + def present?; end +end + +# source://scout_apm//lib/scout_apm/server_integrations/rainbows.rb#3 +class ScoutApm::ServerIntegrations::Rainbows + # @return [Rainbows] a new instance of Rainbows + # + # source://scout_apm//lib/scout_apm/server_integrations/rainbows.rb#6 + def initialize(logger); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/rainbows.rb#14 + def forking?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/rainbows.rb#35 + def found?; end + + # source://scout_apm//lib/scout_apm/server_integrations/rainbows.rb#23 + def install; end + + # Returns the value of attribute logger. + # + # source://scout_apm//lib/scout_apm/server_integrations/rainbows.rb#4 + def logger; end + + # source://scout_apm//lib/scout_apm/server_integrations/rainbows.rb#10 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/rainbows.rb#16 + def present?; end +end + +# source://scout_apm//lib/scout_apm/server_integrations/thin.rb#3 +class ScoutApm::ServerIntegrations::Thin + # @return [Thin] a new instance of Thin + # + # source://scout_apm//lib/scout_apm/server_integrations/thin.rb#6 + def initialize(logger); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/thin.rb#14 + def forking?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/thin.rb#39 + def found?; end + + # TODO: What does it mean to install on a non-forking env? + # + # source://scout_apm//lib/scout_apm/server_integrations/thin.rb#36 + def install; end + + # Returns the value of attribute logger. + # + # source://scout_apm//lib/scout_apm/server_integrations/thin.rb#4 + def logger; end + + # source://scout_apm//lib/scout_apm/server_integrations/thin.rb#10 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/thin.rb#16 + def present?; end +end + +# source://scout_apm//lib/scout_apm/server_integrations/unicorn.rb#3 +class ScoutApm::ServerIntegrations::Unicorn + # @return [Unicorn] a new instance of Unicorn + # + # source://scout_apm//lib/scout_apm/server_integrations/unicorn.rb#6 + def initialize(logger); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/unicorn.rb#14 + def forking?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/unicorn.rb#57 + def found?; end + + # source://scout_apm//lib/scout_apm/server_integrations/unicorn.rb#46 + def install; end + + # Returns the value of attribute logger. + # + # source://scout_apm//lib/scout_apm/server_integrations/unicorn.rb#4 + def logger; end + + # source://scout_apm//lib/scout_apm/server_integrations/unicorn.rb#10 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/unicorn.rb#21 + def present?; end +end + +# source://scout_apm//lib/scout_apm/server_integrations/webrick.rb#3 +class ScoutApm::ServerIntegrations::Webrick + # @return [Webrick] a new instance of Webrick + # + # source://scout_apm//lib/scout_apm/server_integrations/webrick.rb#6 + def initialize(logger); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/webrick.rb#14 + def forking?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/webrick.rb#24 + def found?; end + + # TODO: What does it mean to install on a non-forking env? + # + # source://scout_apm//lib/scout_apm/server_integrations/webrick.rb#21 + def install; end + + # Returns the value of attribute logger. + # + # source://scout_apm//lib/scout_apm/server_integrations/webrick.rb#4 + def logger; end + + # source://scout_apm//lib/scout_apm/server_integrations/webrick.rb#10 + def name; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/server_integrations/webrick.rb#16 + def present?; end +end + +# source://scout_apm//lib/scout_apm/slow_job_record.rb#2 +class ScoutApm::SlowJobRecord + # @return [SlowJobRecord] a new instance of SlowJobRecord + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#28 + def initialize(agent_context, queue_name, job_name, time, total_time, exclusive_time, context, metrics, allocation_metrics, mem_delta, allocations, score, truncated_metrics, span_trace); end + + # Returns the value of attribute allocation_metrics. + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#17 + def allocation_metrics; end + + # Returns the value of attribute allocations. + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#19 + def allocations; end + + # Scorable interface + # + # Needed so we can merge ScoredItemSet instances + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#58 + def call; end + + # What else interesting did we learn? + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#10 + def context; end + + # Returns the value of attribute exclusive_time. + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#13 + def exclusive_time; end + + # Returns the value of attribute git_sha. + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#23 + def git_sha; end + + # Returns the value of attribute hostname. + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#20 + def hostname; end + + # Returns the value of attribute job_name. + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#4 + def job_name; end + + # Returns the value of attribute mem_delta. + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#18 + def mem_delta; end + + # source://scout_apm//lib/scout_apm/slow_job_record.rb#50 + def metric_name; end + + # Returns the value of attribute metrics. + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#16 + def metrics; end + + # source://scout_apm//lib/scout_apm/slow_job_record.rb#62 + def name; end + + # Returns the value of attribute queue_name. + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#3 + def queue_name; end + + # Returns the value of attribute score. + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#66 + def score; end + + # Returns the value of attribute seconds_since_startup. + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#21 + def seconds_since_startup; end + + # Returns the value of attribute span_trace. + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#26 + def span_trace; end + + # When did this job occur + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#7 + def time; end + + # Returns the value of attribute total_time. + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#12 + def total_call_time; end + + # Returns the value of attribute total_time. + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#12 + def total_time; end + + # Returns the value of attribute truncated_metrics. + # + # source://scout_apm//lib/scout_apm/slow_job_record.rb#24 + def truncated_metrics; end +end + +# Note that this is semi-internal API. You should not need this, and if you do +# we're here to help at support@scoutapm.com. TrackedRequest doesn't change +# often, but we can't promise a perfectly stable API for it either. +# +# source://scout_apm//lib/scout_apm/slow_policy/policy.rb#4 +module ScoutApm::SlowPolicy; end + +# source://scout_apm//lib/scout_apm/slow_policy/age_policy.rb#4 +class ScoutApm::SlowPolicy::AgePolicy < ::ScoutApm::SlowPolicy::Policy + # @return [AgePolicy] a new instance of AgePolicy + # + # source://scout_apm//lib/scout_apm/slow_policy/age_policy.rb#15 + def initialize(context); end + + # source://scout_apm//lib/scout_apm/slow_policy/age_policy.rb#22 + def call(request); end + + # A hash of Endpoint Name to the last time we stored a slow transaction for it. + # + # Defaults to a start time that is pretty close to application boot time. + # So the "age" of an endpoint we've never seen is the time the application + # has been running. + # + # source://scout_apm//lib/scout_apm/slow_policy/age_policy.rb#13 + def last_seen; end + + # source://scout_apm//lib/scout_apm/slow_policy/age_policy.rb#29 + def stored!(request); end +end + +# For each minute we haven't seen an endpoint +# +# source://scout_apm//lib/scout_apm/slow_policy/age_policy.rb#6 +ScoutApm::SlowPolicy::AgePolicy::POINT_MULTIPLIER_AGE = T.let(T.unsafe(nil), Float) + +# source://scout_apm//lib/scout_apm/slow_policy/percent_policy.rb#4 +class ScoutApm::SlowPolicy::PercentPolicy < ::ScoutApm::SlowPolicy::Policy + # Of the total time spent handling endpoints in this app, if this endpoint + # is a higher percent, it should get more points. + # + # A: 20 calls @ 100ms each => 2 seconds of total time + # B: 10 calls @ 100ms each => 1 second of total time + # + # Then A is 66% of the total call time + # + # source://scout_apm//lib/scout_apm/slow_policy/percent_policy.rb#16 + def call(request); end +end + +# Points for an endpoint's who's throughput * response time is a large % of +# overall time spent processing requests +# +# source://scout_apm//lib/scout_apm/slow_policy/percent_policy.rb#7 +ScoutApm::SlowPolicy::PercentPolicy::POINT_MULTIPLIER_PERCENT_TIME = T.let(T.unsafe(nil), Float) + +# source://scout_apm//lib/scout_apm/slow_policy/percentile_policy.rb#4 +class ScoutApm::SlowPolicy::PercentilePolicy < ::ScoutApm::SlowPolicy::Policy + # source://scout_apm//lib/scout_apm/slow_policy/percentile_policy.rb#5 + def call(request); end +end + +# source://scout_apm//lib/scout_apm/slow_policy/policy.rb#5 +class ScoutApm::SlowPolicy::Policy + # @return [Policy] a new instance of Policy + # + # source://scout_apm//lib/scout_apm/slow_policy/policy.rb#8 + def initialize(context); end + + # @raise [NotImplementedError] + # + # source://scout_apm//lib/scout_apm/slow_policy/policy.rb#12 + def call(request); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/slow_policy/policy.rb#6 + def context; end + + # Override in subclasses to execute some behavior if the request gets a + # slot in the ScoredItemSet. Defaults to no-op + # + # source://scout_apm//lib/scout_apm/slow_policy/policy.rb#18 + def stored!(request); end +end + +# source://scout_apm//lib/scout_apm/slow_policy/speed_policy.rb#4 +class ScoutApm::SlowPolicy::SpeedPolicy < ::ScoutApm::SlowPolicy::Policy + # Time in seconds + # Logarithm keeps huge times from swamping the other metrics. + # 1+ is necessary to keep the log function in positive territory. + # + # source://scout_apm//lib/scout_apm/slow_policy/speed_policy.rb#11 + def call(request); end +end + +# Adjust speed points. See the function +# +# source://scout_apm//lib/scout_apm/slow_policy/speed_policy.rb#6 +ScoutApm::SlowPolicy::SpeedPolicy::POINT_MULTIPLIER_SPEED = T.let(T.unsafe(nil), Float) + +# source://scout_apm//lib/scout_apm/slow_request_policy.rb#5 +class ScoutApm::SlowRequestPolicy + # @return [SlowRequestPolicy] a new instance of SlowRequestPolicy + # + # source://scout_apm//lib/scout_apm/slow_request_policy.rb#10 + def initialize(context); end + + # policy is an object that behaves like a policy (responds to .call(req) for the score, and .store!(req)) + # + # source://scout_apm//lib/scout_apm/slow_request_policy.rb#23 + def add(policy); end + + # source://scout_apm//lib/scout_apm/slow_request_policy.rb#15 + def add_default_policies; end + + # The AgentContext we're running in + # + # source://scout_apm//lib/scout_apm/slow_request_policy.rb#7 + def context; end + + # Returns the value of attribute policies. + # + # source://scout_apm//lib/scout_apm/slow_request_policy.rb#8 + def policies; end + + # Determine if this request trace should be fully analyzed by scoring it + # across several metrics, and then determining if that's good enough to + # make it into this minute's payload. + # + # Due to the combining nature of the agent & layaway file, there's no + # guarantee that a high scoring local champion will still be a winner when + # they go up to "regionals" and are compared against the other processes + # running on a node. + # + # source://scout_apm//lib/scout_apm/slow_request_policy.rb#39 + def score(request); end + + # source://scout_apm//lib/scout_apm/slow_request_policy.rb#48 + def stored!(request); end +end + +# source://scout_apm//lib/scout_apm/slow_transaction.rb#2 +class ScoutApm::SlowTransaction + include ::ScoutApm::BucketNameSplitter + + # @return [SlowTransaction] a new instance of SlowTransaction + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#23 + def initialize(agent_context, uri, metric_name, total_call_time, metrics, allocation_metrics, context, time, raw_stackprof, mem_delta, allocations, score, truncated_metrics, span_trace); end + + # Returns the value of attribute allocation_metrics. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#8 + def allocation_metrics; end + + # Returns the value of attribute allocations. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#15 + def allocations; end + + # source://scout_apm//lib/scout_apm/slow_transaction.rb#54 + def as_json; end + + # Scorable interface + # + # Needed so we can merge ScoredItemSet instances + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#79 + def call; end + + # Used to remove metrics when the payload will be too large. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#45 + def clear_metrics!; end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#11 + def context; end + + # source://scout_apm//lib/scout_apm/slow_transaction.rb#71 + def context_hash; end + + # hack - we need to reset these server side. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#19 + def git_sha; end + + # hack - we need to reset these server side. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#19 + def git_sha=(_arg0); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#50 + def has_metrics?; end + + # hack - we need to reset these server side. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#17 + def hostname; end + + # hack - we need to reset these server side. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#17 + def hostname=(_arg0); end + + # Returns the value of attribute mem_delta. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#14 + def mem_delta; end + + # Returns the value of attribute meta. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#9 + def meta; end + + # Returns the value of attribute metric_name. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#5 + def metric_name; end + + # Returns the value of attribute metrics. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#7 + def metrics; end + + # source://scout_apm//lib/scout_apm/slow_transaction.rb#83 + def name; end + + # Returns the value of attribute prof. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#13 + def prof; end + + # source://scout_apm//lib/scout_apm/slow_transaction.rb#87 + def score; end + + # hack - we need to reset these server side. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#18 + def seconds_since_startup; end + + # hack - we need to reset these server side. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#18 + def seconds_since_startup=(_arg0); end + + # Returns the value of attribute span_trace. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#16 + def span_trace; end + + # Returns the value of attribute time. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#12 + def time; end + + # Returns the value of attribute total_call_time. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#6 + def total_call_time; end + + # True/False that says if we had to truncate the metrics of this trace + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#21 + def truncated_metrics; end + + # Returns the value of attribute uri. + # + # source://scout_apm//lib/scout_apm/slow_transaction.rb#10 + def uri; end +end + +# source://scout_apm//lib/scout_apm/instruments/active_record.rb#4 +class ScoutApm::SqlList + # @return [SqlList] a new instance of SqlList + # + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#7 + def initialize(sql = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#15 + def <<(sql); end + + # All of this one, then all of the other. + # + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#27 + def merge(other); end + + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#19 + def push(sql); end + + # Returns the value of attribute sqls. + # + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#5 + def sqls; end + + # source://scout_apm//lib/scout_apm/instruments/active_record.rb#31 + def to_s; end +end + +# source://scout_apm//lib/scout_apm/stack_item.rb#2 +class ScoutApm::StackItem + # @return [StackItem] a new instance of StackItem + # + # source://scout_apm//lib/scout_apm/stack_item.rb#6 + def initialize(metric_name); end + + # source://scout_apm//lib/scout_apm/stack_item.rb#12 + def ==(o); end + + # Returns the value of attribute children_time. + # + # source://scout_apm//lib/scout_apm/stack_item.rb#3 + def children_time; end + + # Sets the attribute children_time + # + # @param value the value to set the attribute children_time to. + # + # source://scout_apm//lib/scout_apm/stack_item.rb#3 + def children_time=(_arg0); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/stack_item.rb#16 + def eql?(o); end + + # Returns the value of attribute metric_name. + # + # source://scout_apm//lib/scout_apm/stack_item.rb#4 + def metric_name; end + + # Returns the value of attribute start_time. + # + # source://scout_apm//lib/scout_apm/stack_item.rb#4 + def start_time; end +end + +# source://scout_apm//lib/scout_apm/store.rb#5 +class ScoutApm::Store + # @return [Store] a new instance of Store + # + # source://scout_apm//lib/scout_apm/store.rb#6 + def initialize(context); end + + # Sampler support + # + # source://scout_apm//lib/scout_apm/store.rb#127 + def add_sampler(sampler_klass); end + + # source://scout_apm//lib/scout_apm/store.rb#15 + def current_timestamp; end + + # For each tick (minute), be sure we have a reporting period, and that samplers are run for it. + # + # source://scout_apm//lib/scout_apm/store.rb#109 + def tick!; end + + # Save newly collected metrics + # + # source://scout_apm//lib/scout_apm/store.rb#34 + def track!(metrics, options = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/store.rb#48 + def track_db_query_metrics!(db_query_metric_set, options = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/store.rb#55 + def track_external_service_metrics!(external_service_metric_set, options = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/store.rb#41 + def track_histograms!(histograms, options = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/store.rb#77 + def track_job!(job); end + + # source://scout_apm//lib/scout_apm/store.rb#62 + def track_one!(type, name, value, options = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/store.rb#84 + def track_slow_job!(job); end + + # Save a new slow transaction + # + # source://scout_apm//lib/scout_apm/store.rb#70 + def track_slow_transaction!(slow_transaction); end + + # Take each completed reporting_period, and write it to the layaway passed + # + # force - a boolean argument that forces this function to write + # current-minute metrics. Useful when we are shutting down the agent + # during a restart. + # + # source://scout_apm//lib/scout_apm/store.rb#96 + def write_to_layaway(layaway, force = T.unsafe(nil)); end + + private + + # source://scout_apm//lib/scout_apm/store.rb#131 + def collect_samplers(rp); end + + # source://scout_apm//lib/scout_apm/store.rb#19 + def current_period; end + + # source://scout_apm//lib/scout_apm/store.rb#24 + def find_period(timestamp = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/store.rb#143 + def logger; end + + # source://scout_apm//lib/scout_apm/store.rb#114 + def write_reporting_period(layaway, time, rp); end +end + +# One period of Storage. Typically 1 minute +# +# source://scout_apm//lib/scout_apm/store.rb#198 +class ScoutApm::StoreReportingPeriod + # @return [StoreReportingPeriod] a new instance of StoreReportingPeriod + # + # source://scout_apm//lib/scout_apm/store.rb#218 + def initialize(timestamp, context); end + + # For absorbing an array of metric {Meta => Stat} records + # + # source://scout_apm//lib/scout_apm/store.rb#257 + def absorb_metrics!(metrics); end + + # Returns the value of attribute db_query_metric_set. + # + # source://scout_apm//lib/scout_apm/store.rb#214 + def db_query_metric_set; end + + # source://scout_apm//lib/scout_apm/store.rb#341 + def db_query_metrics_payload; end + + # Returns the value of attribute external_service_metric_set. + # + # source://scout_apm//lib/scout_apm/store.rb#216 + def external_service_metric_set; end + + # source://scout_apm//lib/scout_apm/store.rb#345 + def external_service_metrics_payload; end + + # An Array of HistogramsReport + # + # source://scout_apm//lib/scout_apm/store.rb#206 + def histograms; end + + # A ScoredItemSet holding the "best" traces for the period + # + # source://scout_apm//lib/scout_apm/store.rb#203 + def job_traces; end + + # source://scout_apm//lib/scout_apm/store.rb#333 + def jobs; end + + # Merges another StoreReportingPeriod into this one + # + # source://scout_apm//lib/scout_apm/store.rb#240 + def merge(other); end + + # source://scout_apm//lib/scout_apm/store.rb#269 + def merge_db_query_metrics!(other_metric_set); end + + # source://scout_apm//lib/scout_apm/store.rb#274 + def merge_external_service_metrics!(other_metric_set); end + + # source://scout_apm//lib/scout_apm/store.rb#311 + def merge_histograms!(new_histograms); end + + # source://scout_apm//lib/scout_apm/store.rb#291 + def merge_jobs!(jobs); end + + # For merging when you have another metric_set object + # Makes sure that you don't duplicate error count records + # + # source://scout_apm//lib/scout_apm/store.rb#264 + def merge_metrics!(other_metric_set); end + + # source://scout_apm//lib/scout_apm/store.rb#303 + def merge_slow_jobs!(new_jobs); end + + # source://scout_apm//lib/scout_apm/store.rb#283 + def merge_slow_transactions!(new_transactions); end + + # Returns the value of attribute metric_set. + # + # source://scout_apm//lib/scout_apm/store.rb#212 + def metric_set; end + + # Retrieve Metrics for reporting + # + # source://scout_apm//lib/scout_apm/store.rb#325 + def metrics_payload; end + + # Debug Helpers + # + # source://scout_apm//lib/scout_apm/store.rb#353 + def request_count; end + + # A ScoredItemSet holding the "best" traces for the period + # + # source://scout_apm//lib/scout_apm/store.rb#200 + def request_traces; end + + # source://scout_apm//lib/scout_apm/store.rb#337 + def slow_jobs_payload; end + + # source://scout_apm//lib/scout_apm/store.rb#329 + def slow_transactions_payload; end + + # A StoreReportingPeriodTimestamp representing the time that this + # collection of metrics is for + # + # source://scout_apm//lib/scout_apm/store.rb#210 + def timestamp; end + + private + + # source://scout_apm//lib/scout_apm/store.rb#234 + def logger; end +end + +# A timestamp, normalized to the beginning of a minute. Used as a hash key to +# bucket metrics into per-minute groups +# +# source://scout_apm//lib/scout_apm/store.rb#151 +class ScoutApm::StoreReportingPeriodTimestamp + # @return [StoreReportingPeriodTimestamp] a new instance of StoreReportingPeriodTimestamp + # + # source://scout_apm//lib/scout_apm/store.rb#154 + def initialize(time = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/store.rb#184 + def ==(o); end + + # source://scout_apm//lib/scout_apm/store.rb#192 + def age_in_seconds; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/store.rb#180 + def eql?(o); end + + # source://scout_apm//lib/scout_apm/store.rb#188 + def hash; end + + # source://scout_apm//lib/scout_apm/store.rb#168 + def strftime(pattern = T.unsafe(nil)); end + + # Returns the value of attribute timestamp. + # + # source://scout_apm//lib/scout_apm/store.rb#152 + def timestamp; end + + # source://scout_apm//lib/scout_apm/store.rb#164 + def to_s; end + + # source://scout_apm//lib/scout_apm/store.rb#176 + def to_time; end + + class << self + # source://scout_apm//lib/scout_apm/store.rb#159 + def minutes_ago(min, base_time = T.unsafe(nil)); end + end +end + +# source://scout_apm//lib/scout_apm/synchronous_recorder.rb#6 +class ScoutApm::SynchronousRecorder + # @return [SynchronousRecorder] a new instance of SynchronousRecorder + # + # source://scout_apm//lib/scout_apm/synchronous_recorder.rb#9 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/synchronous_recorder.rb#7 + def context; end + + # source://scout_apm//lib/scout_apm/synchronous_recorder.rb#13 + def logger; end + + # source://scout_apm//lib/scout_apm/synchronous_recorder.rb#26 + def record!(request); end + + # source://scout_apm//lib/scout_apm/synchronous_recorder.rb#17 + def start; end + + # source://scout_apm//lib/scout_apm/synchronous_recorder.rb#22 + def stop; end +end + +# source://scout_apm//lib/scout_apm/tasks/doctor.rb#2 +module ScoutApm::Tasks; end + +# source://scout_apm//lib/scout_apm/tasks/doctor.rb#3 +class ScoutApm::Tasks::Doctor + # @return [Doctor] a new instance of Doctor + # + # source://scout_apm//lib/scout_apm/tasks/doctor.rb#8 + def initialize; end + + # source://scout_apm//lib/scout_apm/tasks/doctor.rb#37 + def agent_context; end + + # source://scout_apm//lib/scout_apm/tasks/doctor.rb#50 + def configuration_settings; end + + # source://scout_apm//lib/scout_apm/tasks/doctor.rb#41 + def installed_instruments; end + + # source://scout_apm//lib/scout_apm/tasks/doctor.rb#64 + def log_details; end + + # source://scout_apm//lib/scout_apm/tasks/doctor.rb#11 + def run!; end + + class << self + # source://scout_apm//lib/scout_apm/tasks/doctor.rb#4 + def run!; end + end +end + +# source://scout_apm//lib/scout_apm/tasks/support.rb#3 +class ScoutApm::Tasks::Support + # @return [Support] a new instance of Support + # + # source://scout_apm//lib/scout_apm/tasks/support.rb#9 + def initialize; end + + # source://scout_apm//lib/scout_apm/tasks/support.rb#13 + def run!; end + + class << self + # source://scout_apm//lib/scout_apm/tasks/support.rb#4 + def run!; end + end +end + +# source://scout_apm//lib/scout_apm/tracer.rb#10 +module ScoutApm::Tracer + mixes_in_class_methods ::ScoutApm::Tracer::ClassMethods + + class << self + # @private + # + # source://scout_apm//lib/scout_apm/tracer.rb#11 + def included(klass); end + + # Type: the Layer type - "View" or similar + # Name: specific name - "users/_gravatar". The object must respond to "#to_s". This allows us to be more efficient - in most cases, the metric name isn't needed unless we are processing a slow transaction. + # A Block: The code to be instrumented + # + # Options: + # * :ignore_children - will not instrument any method calls beneath this call. Example use case: InfluxDB uses Net::HTTP, which is instrumented. However, we can provide more specific data if we know we're doing an influx call, so we'd rather just instrument the Influx call and ignore Net::HTTP. + # when rendering the transaction tree in the UI. + # * :desc - Additional capture, SQL, or HTTP url or similar + # * :scope - set to true if you want to make this layer a subscope + # + # source://scout_apm//lib/scout_apm/tracer.rb#24 + def instrument(type, name, options = T.unsafe(nil)); end + end +end + +# source://scout_apm//lib/scout_apm/tracer.rb#41 +module ScoutApm::Tracer::ClassMethods + # See ScoutApm::Tracer.instrument + # + # source://scout_apm//lib/scout_apm/tracer.rb#43 + def instrument(type, name, options = T.unsafe(nil), &block); end + + # Wraps a method in a call to #instrument via aggressive monkey patching. + # + # Options: + # type - "View" or "ActiveRecord" and similar + # name - "users/show", "App#find" + # + # source://scout_apm//lib/scout_apm/tracer.rb#52 + def instrument_method(method_name, options = T.unsafe(nil)); end + + private + + # source://scout_apm//lib/scout_apm/tracer.rb#74 + def _determine_instrumented_name(method_name, type); end + + # source://scout_apm//lib/scout_apm/tracer.rb#81 + def _find_unused_method_name; end + + # The method must exist to be instrumented. + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/tracer.rb#115 + def _instrumentable?(method_name); end + + # +True+ if the method is already instrumented. + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/tracer.rb#122 + def _instrumented?(instrumented_name, method_name); end + + # given a method and a metric, this method returns the traced + # alias of the method name + # + # source://scout_apm//lib/scout_apm/tracer.rb#136 + def _instrumented_method_name(method_name, type); end + + # source://scout_apm//lib/scout_apm/tracer.rb#92 + def _instrumented_method_string(instrumented_name, uninstrumented_name, type, name, options = T.unsafe(nil)); end + + # Method names like +any?+ or +replace!+ contain a trailing character that would break when + # eval'd as ? and ! aren't allowed inside method names. + # + # source://scout_apm//lib/scout_apm/tracer.rb#142 + def _sanitize_name(name); end + + # given a method and a metric, this method returns the + # untraced alias of the method name + # + # source://scout_apm//lib/scout_apm/tracer.rb#130 + def _uninstrumented_method_name(method_name, type); end +end + +# source://scout_apm//lib/scout_apm/tracked_request.rb#8 +class ScoutApm::TrackedRequest + # units = seconds + # + # @return [TrackedRequest] a new instance of TrackedRequest + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#59 + def initialize(agent_context, store); end + + # source://scout_apm//lib/scout_apm/tracked_request.rb#442 + def acknowledge_children!; end + + # As we learn things about this request, we can add data here. + # For instance, when we know where Rails routed this request to, we can store that scope info. + # Or as soon as we know which URI it was directed at, we can store that. + # + # This data is internal to ScoutApm, to add custom information, use the Context api. + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#263 + def annotate_request(hsh); end + + # As we go through a request, instrumentation can mark more general data into the Request + # Known Keys: + # :uri - the full URI requested by the user + # :queue_latency - how long a background Job spent in the queue before starting processing + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#23 + def annotations; end + + # Grab backtraces more aggressively when running in dev trace mode + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#208 + def backtrace_threshold; end + + # This maintains a lookup hash of Layer names and call counts. It's used to trigger fetching a backtrace on n+1 calls. + # Note that layer names might not be Strings - can alse be Utils::ActiveRecordMetricName. Also, this would fail for layers + # with same names across multiple types. + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#32 + def call_counts; end + + # This maintains a lookup hash of Layer names and call counts. It's used to trigger fetching a backtrace on n+1 calls. + # Note that layer names might not be Strings - can alse be Utils::ActiveRecordMetricName. Also, this would fail for layers + # with same names across multiple types. + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#32 + def call_counts=(_arg0); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#162 + def capture_backtrace?(layer); end + + # source://scout_apm//lib/scout_apm/tracked_request.rb#218 + def capture_mem_delta!; end + + # Context is application defined extra information. (ie, which user, what + # is their email/ip, what plan are they on, what locale are they using, + # etc) See documentation for examples on how to set this from a + # before_filter + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#13 + def context; end + + # Grab the currently running layer. Useful for adding additional data as we + # learn it. This is useful in ActiveRecord instruments, where we start the + # instrumentation early, and gradually learn more about the request that + # actually happened as we go (for instance, the # of records found, or the + # actual SQL generated). + # + # Returns nil in the case there is no current layer. That would be normal + # for a completed TrackedRequest + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#157 + def current_layer; end + + # Ensure the background worker thread is up & running - a fallback if other + # detection doesn't achieve this at boot. + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#380 + def ensure_background_worker; end + + # This request had an exception. Mark it down as an error + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#268 + def error!; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#272 + def error?; end + + # Are we finished with this request? + # We're done if we have no layers left after popping one off + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#228 + def finalized?; end + + # Headers as recorded by rails + # Can be nil if we never reach a Rails Controller + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#27 + def headers; end + + # Enable this when you would otherwise double track something interesting. + # This came up when we implemented InfluxDB instrumentation, which is more + # specific, and useful than the fact that InfluxDB happens to use Net::HTTP + # internally + # + # When enabled, new layers won't be added to the current Request, and calls + # to stop_layer will be ignored. + # + # Do not forget to turn if off when leaving a layer, it is the + # instrumentation's task to do that. + # + # When you use this in code, be sure to use it in this order: + # + # start_layer + # ignore_children + # -> call + # acknowledge_children + # stop_layer + # + # If you don't call it in this order, it's possible to get out of sync, and + # have an ignored start and an actually-executed stop, causing layers to + # get out of sync + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#438 + def ignore_children!; end + + # At any point in the request, calling code or instrumentation can call + # `ignore_request!` to immediately stop recording any information about new + # layers, and delete any existing layer info. This class will still exist, + # and respond to methods as normal, but `record!` won't be called, and no + # data will be recorded. + # + # We still need to keep track of the current layer depth (via + # "reported", and ready to be recreated for the next request. + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#466 + def ignore_request!; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#448 + def ignoring_children?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#495 + def ignoring_recorded?; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#483 + def ignoring_request?; end + + # source://scout_apm//lib/scout_apm/tracked_request.rb#487 + def ignoring_start_layer; end + + # source://scout_apm//lib/scout_apm/tracked_request.rb#491 + def ignoring_stop_layer; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#280 + def instant?; end + + # if there's an instant_key, pass the transaction trace on for immediate reporting (in addition to the usual background aggregation) + # this is set in the controller instumentation (ActionControllerRails3Rails4 according) + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#36 + def instant_key; end + + # if there's an instant_key, pass the transaction trace on for immediate reporting (in addition to the usual background aggregation) + # this is set in the controller instumentation (ActionControllerRails3Rails4 according) + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#36 + def instant_key=(_arg0); end + + # This request is a job transaction iff it has a 'Job' layer + # Use this only during recording + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#363 + def job?; end + + # source://scout_apm//lib/scout_apm/tracked_request.rb#374 + def layer_finder; end + + # Returns +true+ if the total call time of AutoInstrument layers exceeds +AUTO_INSTRUMENT_TIMING_THRESHOLD+ and + # records a Histogram of insignificant / significant layers by file name. + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#190 + def layer_insignificant?(layer); end + + # source://scout_apm//lib/scout_apm/tracked_request.rb#499 + def logger; end + + # This may be in bytes or KB based on the OSX. We store this as-is here and only do conversion to MB in Layer Converters. + # XXX: Move this to environment? + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#214 + def mem_usage; end + + # If specified, an override for the name of the request. If unspecified, + # the name is determined from the name of the Controller or Job layer. + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#43 + def name_override; end + + # If specified, an override for the name of the request. If unspecified, + # the name is determined from the name of the Controller or Job layer. + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#43 + def name_override=(_arg0); end + + # Actually go fetch & make-real any lazily created data. + # Clean up any cleverness in objects. + # Makes this object ready to be Marshal Dumped (or otherwise serialized) + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#510 + def prepare_to_dump!; end + + # source://scout_apm//lib/scout_apm/tracked_request.rb#140 + def real_request!; end + + # Have we seen a "controller" or "job" layer so far? + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#145 + def real_request?; end + + # Convert this request to the appropriate structure, then report it into + # the peristent Store object + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#296 + def record!; end + + # Persist the Request + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#290 + def recorded!; end + + # Have we already persisted this request? + # Used to know when we should just create a new one (don't attempt to add + # data to an already-recorded request). See RequestManager + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#405 + def recorded?; end + + # An object that responds to `record!(TrackedRequest)` to store this tracked request + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#39 + def recorder; end + + # Go re-fetch the store based on what the Agent's official one is. Used + # after hydrating a dumped TrackedRequest + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#519 + def restore_from_dump!; end + + # The first layer registered with this request. All other layers will be + # children of this layer. + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#17 + def root_layer; end + + # source://scout_apm//lib/scout_apm/tracked_request.rb#276 + def set_headers(headers); end + + # source://scout_apm//lib/scout_apm/tracked_request.rb#78 + def start_layer(layer); end + + # Run at the beginning of the whole request + # + # * Capture the first layer as the root_layer + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#235 + def start_request(layer); end + + # source://scout_apm//lib/scout_apm/tracked_request.rb#94 + def stop_layer; end + + # Run at the end of the whole request + # + # * Send the request off to be stored + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#242 + def stop_request; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#250 + def stopping?; end + + # A unique, but otherwise meaningless String to identify this request. UUID + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#46 + def transaction_id; end + + # Only call this after the request is complete + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#389 + def unique_name; end + + # Maintains a lookup Hash of call counts by layer name. Used to determine if we should capture a backtrace. + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#203 + def update_call_counts!(layer); end + + # This request is a web transaction iff it has a 'Controller' layer + # Use this only during recording + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/tracked_request.rb#369 + def web?; end + + private + + # source://scout_apm//lib/scout_apm/tracked_request.rb#527 + def apply_name_override; end +end + +# Layers of type 'AutoInstrument' are not recorded if their total_call_time doesn't exceed this threshold. +# AutoInstrument layers are frequently of short duration. This throws out this deadweight that is unlikely to be optimized. +# +# source://scout_apm//lib/scout_apm/tracked_request.rb#57 +ScoutApm::TrackedRequest::AUTO_INSTRUMENT_TIMING_THRESHOLD = T.let(T.unsafe(nil), Float) + +# source://scout_apm//lib/scout_apm/tracked_request.rb#161 +ScoutApm::TrackedRequest::BACKTRACE_BLACKLIST = T.let(T.unsafe(nil), Array) + +# When we see these layers, it means a real request is going through the +# system. We toggle a flag to turn on some slightly more expensive +# instrumentation (backtrace collection and the like) that would be too +# expensive in situations where the framework is constantly churning. We +# see that on Sidekiq. +# +# source://scout_apm//lib/scout_apm/tracked_request.rb#53 +ScoutApm::TrackedRequest::REQUEST_TYPES = T.let(T.unsafe(nil), Array) + +# source://scout_apm//lib/scout_apm/transaction.rb#2 +module ScoutApm::Transaction + class << self + # Ignores the current request + # + # source://scout_apm//lib/scout_apm/transaction.rb#4 + def ignore!; end + + # Renames the last Controller or Job layer + # + # source://scout_apm//lib/scout_apm/transaction.rb#9 + def rename(name); end + end +end + +# source://scout_apm//lib/scout_apm/transaction_time_consumed.rb#2 +class ScoutApm::TransactionTimeConsumed + # @return [TransactionTimeConsumed] a new instance of TransactionTimeConsumed + # + # source://scout_apm//lib/scout_apm/transaction_time_consumed.rb#13 + def initialize; end + + # source://scout_apm//lib/scout_apm/transaction_time_consumed.rb#18 + def add(item, duration); end + + # source://scout_apm//lib/scout_apm/transaction_time_consumed.rb#35 + def call_count_for(item); end + + # source://scout_apm//lib/scout_apm/transaction_time_consumed.rb#23 + def percent_of_total(item); end + + # source://scout_apm//lib/scout_apm/transaction_time_consumed.rb#31 + def total_time_for(item); end + + private + + # Private Accessor: + # A hash of Endpoint Name to an time consumed record + # + # source://scout_apm//lib/scout_apm/transaction_time_consumed.rb#5 + def endpoints; end + + # Private Accessor: + # The total time spent across all endpoints + # + # source://scout_apm//lib/scout_apm/transaction_time_consumed.rb#10 + def total_duration; end +end + +# Time is in seconds +# +# source://scout_apm//lib/scout_apm/transaction_time_consumed.rb#40 +class ScoutApm::TransactionTimeConsumed::TotalTimeRecord < ::Struct + # @return [TotalTimeRecord] a new instance of TotalTimeRecord + # + # source://scout_apm//lib/scout_apm/transaction_time_consumed.rb#41 + def initialize; end + + # source://scout_apm//lib/scout_apm/transaction_time_consumed.rb#45 + def add(duration); end + + # Returns the value of attribute count + # + # @return [Object] the current value of count + def count; end + + # Sets the attribute count + # + # @param value [Object] the value to set the attribute count to. + # @return [Object] the newly set value + def count=(_); end + + # Returns the value of attribute total_duration + # + # @return [Object] the current value of total_duration + def total_duration; end + + # Sets the attribute total_duration + # + # @param value [Object] the value to set the attribute total_duration to. + # @return [Object] the newly set value + def total_duration=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#8 +module ScoutApm::Utils; end + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#3 +class ScoutApm::Utils::ActiveRecordMetricName + # @return [ActiveRecordMetricName] a new instance of ActiveRecordMetricName + # + # source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#7 + def initialize(sql, name); end + + # For the layer lookup. + # Reminder: #eql? is for Hash equality: returns true if obj and other refer to the same hash key. + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#48 + def ==(o); end + + # For the layer lookup. + # Reminder: #eql? is for Hash equality: returns true if obj and other refer to the same hash key. + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#48 + def eql?(o); end + + # For the layer lookup. + # + # source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#41 + def hash; end + + # This only returns a value if a name is provided via +initialize+. + # + # source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#31 + def model; end + + # Returns the value of attribute name. + # + # source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#4 + def name; end + + # This only returns a value if a name is provided via +initialize+. + # + # source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#36 + def normalized_operation; end + + # Returns the value of attribute sql. + # + # source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#4 + def sql; end + + # Converts an SQL string and the name (typically assigned automatically + # by rails) into a Scout metric_name. + # + # This prefers to use the ActiveRecord-provided name over parsing SQL as parsing is slower. + # + # sql: SELECT "places".* FROM "places" ORDER BY "places"."position" ASC + # name: Place Load + # metric_name: Place/find + # + # source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#20 + def to_s; end + + private + + # This only returns a value if a name is provided via +initialize+. + # + # source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#58 + def operation; end + + # Returns nil if no match + # Returns nil if the operation wasn't under developer control (and hence isn't interesting to report) + # + # source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#71 + def parse_operation; end + + # This only returns a value if a name is provided via +initialize+. + # + # source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#65 + def parts; end + + # Attempt to do some basic parsing of SQL via regexes to extract the SQL + # verb (select, update, etc) and the table being operated on. + # + # This is a fallback from what ActiveRecord gives us, we prefer its + # names. But sometimes it is giving us a no-name query, and we have to + # attempt to figure it out ourselves. + # + # This relies on ActiveSupport's classify method. If it's not present, + # just skip the attempt to rename here. This could happen in a Grape or + # Sinatra application that doesn't import ActiveSupport. At this point, + # you're already using ActiveRecord, so it's likely loaded anyway. + # + # source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#122 + def regex_name(sql); end +end + +# BEGIN is a reserved keyword +# +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#96 +ScoutApm::Utils::ActiveRecordMetricName::BEGIN_STATEMENT = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#97 +ScoutApm::Utils::ActiveRecordMetricName::COMMIT = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#95 +ScoutApm::Utils::ActiveRecordMetricName::COUNT = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#104 +ScoutApm::Utils::ActiveRecordMetricName::COUNT_LABEL = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#5 +ScoutApm::Utils::ActiveRecordMetricName::DEFAULT_METRIC = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#108 +ScoutApm::Utils::ActiveRecordMetricName::DELETE_LABEL = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#102 +ScoutApm::Utils::ActiveRecordMetricName::DELETE_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#91 +ScoutApm::Utils::ActiveRecordMetricName::FROM = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#107 +ScoutApm::Utils::ActiveRecordMetricName::INSERT_LABEL = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#101 +ScoutApm::Utils::ActiveRecordMetricName::INSERT_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#92 +ScoutApm::Utils::ActiveRecordMetricName::INTO = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#93 +ScoutApm::Utils::ActiveRecordMetricName::NON_GREEDY_CONSUME = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#90 +ScoutApm::Utils::ActiveRecordMetricName::REGEX_OPERATION = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#105 +ScoutApm::Utils::ActiveRecordMetricName::SELECT_LABEL = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#99 +ScoutApm::Utils::ActiveRecordMetricName::SELECT_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#94 +ScoutApm::Utils::ActiveRecordMetricName::TABLE = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#109 +ScoutApm::Utils::ActiveRecordMetricName::UNKNOWN_LABEL = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#106 +ScoutApm::Utils::ActiveRecordMetricName::UPDATE_LABEL = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#100 +ScoutApm::Utils::ActiveRecordMetricName::UPDATE_REGEX = T.let(T.unsafe(nil), Regexp) + +# Regex based naming # +# +# source://scout_apm//lib/scout_apm/utils/active_record_metric_name.rb#89 +ScoutApm::Utils::ActiveRecordMetricName::WHITE_SPACE = T.let(T.unsafe(nil), String) + +# source://scout_apm//lib/scout_apm/utils/backtrace_parser.rb#8 +class ScoutApm::Utils::BacktraceParser + # call_stack - an +Array+ of calls, typically generated via the +caller+ method. + # Example single line: + # "/Users/dlite/.rvm/rubies/ruby-2.4.5/lib/ruby/2.4.0/irb/workspace.rb:87:in `eval'" + # + # @return [BacktraceParser] a new instance of BacktraceParser + # + # source://scout_apm//lib/scout_apm/utils/backtrace_parser.rb#17 + def initialize(call_stack, root = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/utils/backtrace_parser.rb#26 + def call; end + + # Returns the value of attribute call_stack. + # + # source://scout_apm//lib/scout_apm/utils/backtrace_parser.rb#12 + def call_stack; end +end + +# will return this many backtrace frames from the app stack. +# +# source://scout_apm//lib/scout_apm/utils/backtrace_parser.rb#10 +ScoutApm::Utils::BacktraceParser::APP_FRAMES = T.let(T.unsafe(nil), Integer) + +# source://scout_apm//lib/scout_apm/utils/marshal_logging.rb#3 +class ScoutApm::Utils::Error < ::StandardError; end + +# A simple wrapper around Ruby's built-in gzip support. +# +# source://scout_apm//lib/scout_apm/utils/gzip_helper.rb#4 +class ScoutApm::Utils::GzipHelper + # @return [GzipHelper] a new instance of GzipHelper + # + # source://scout_apm//lib/scout_apm/utils/gzip_helper.rb#9 + def initialize(level = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/utils/gzip_helper.rb#13 + def deflate(str); end + + # Returns the value of attribute level. + # + # source://scout_apm//lib/scout_apm/utils/gzip_helper.rb#7 + def level; end +end + +# source://scout_apm//lib/scout_apm/utils/gzip_helper.rb#5 +ScoutApm::Utils::GzipHelper::DEFAULT_GZIP_LEVEL = T.let(T.unsafe(nil), Integer) + +# source://scout_apm//lib/scout_apm/utils/installed_gems.rb#3 +class ScoutApm::Utils::InstalledGems + # @return [InstalledGems] a new instance of InstalledGems + # + # source://scout_apm//lib/scout_apm/utils/installed_gems.rb#6 + def initialize(context); end + + # Returns the value of attribute context. + # + # source://scout_apm//lib/scout_apm/utils/installed_gems.rb#4 + def context; end + + # source://scout_apm//lib/scout_apm/utils/installed_gems.rb#10 + def logger; end + + # source://scout_apm//lib/scout_apm/utils/installed_gems.rb#14 + def run; end +end + +# source://scout_apm//lib/scout_apm/utils/marshal_logging.rb#5 +class ScoutApm::Utils::InstanceVar + # @return [InstanceVar] a new instance of InstanceVar + # + # source://scout_apm//lib/scout_apm/utils/marshal_logging.rb#9 + def initialize(name, obj, parent); end + + # source://scout_apm//lib/scout_apm/utils/marshal_logging.rb#19 + def history; end + + # Returns the value of attribute name. + # + # source://scout_apm//lib/scout_apm/utils/marshal_logging.rb#6 + def name; end + + # Returns the value of attribute obj. + # + # source://scout_apm//lib/scout_apm/utils/marshal_logging.rb#7 + def obj; end + + # source://scout_apm//lib/scout_apm/utils/marshal_logging.rb#15 + def to_s; end +end + +# source://scout_apm//lib/scout_apm/utils/klass_helper.rb#3 +module ScoutApm::Utils::KlassHelper + class << self + # KlassHelper.defined?("ActiveRecord", "Base") #=> true / false + # KlassHelper.defined?("ActiveRecord::Base") #=> true / false + # + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/utils/klass_helper.rb#7 + def defined?(*names); end + + # KlassHelper.lookup("ActiveRecord::Base") => ActiveRecord::Base + # KlassHelper.lookup("ActiveRecord::SomethingThatDoesNotExist") => :missing_class + # + # source://scout_apm//lib/scout_apm/utils/klass_helper.rb#13 + def lookup(*names); end + end +end + +# source://scout_apm//lib/scout_apm/utils/marshal_logging.rb#24 +class ScoutApm::Utils::MarshalLogging + # @return [MarshalLogging] a new instance of MarshalLogging + # + # source://scout_apm//lib/scout_apm/utils/marshal_logging.rb#25 + def initialize(base_obj); end + + # source://scout_apm//lib/scout_apm/utils/marshal_logging.rb#29 + def dive; end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/utils/marshal_logging.rb#78 + def dumps?(obj); end + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/utils/marshal_logging.rb#85 + def offending_hash?(obj); end +end + +# source://scout_apm//lib/scout_apm/utils/numbers.rb#3 +class ScoutApm::Utils::Numbers + class << self + # Round a float to a certain number of decimal places + # + # source://scout_apm//lib/scout_apm/utils/numbers.rb#6 + def round(number, decimals); end + end +end + +# source://scout_apm//lib/scout_apm/utils/scm.rb#4 +class ScoutApm::Utils::Scm + class << self + # Takes an *already relative* path +path+ + # Returns a relative path, prepending the configured +scm_subdirectory+ environment string + # + # source://scout_apm//lib/scout_apm/utils/scm.rb#7 + def relative_scm_path(path, scm_subdirectory = T.unsafe(nil)); end + end +end + +# Represents a random ID that we can use to track a certain span. The +# `span` prefix is only for ease of reading logs - it should not be +# interpreted to convey any sort of meaning. +# +# source://scout_apm//lib/scout_apm/utils/unique_id.rb#31 +class ScoutApm::Utils::SpanId + # @return [SpanId] a new instance of SpanId + # + # source://scout_apm//lib/scout_apm/utils/unique_id.rb#32 + def initialize; end + + # source://scout_apm//lib/scout_apm/utils/unique_id.rb#36 + def to_s; end +end + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#9 +class ScoutApm::Utils::SqlSanitizer + # @return [SqlSanitizer] a new instance of SqlSanitizer + # + # source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#44 + def initialize(sql); end + + # Returns the value of attribute database_engine. + # + # source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#42 + def database_engine; end + + # Sets the attribute database_engine + # + # @param value the value to set the attribute database_engine to. + # + # source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#42 + def database_engine=(_arg0); end + + # source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#50 + def sql; end + + # source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#54 + def to_s; end + + private + + # @return [Boolean] + # + # source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#113 + def has_encodings?(encodings = T.unsafe(nil)); end + + # source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#119 + def scrubbed(str); end + + # source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#93 + def to_s_mysql; end + + # source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#78 + def to_s_postgres; end + + # source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#104 + def to_s_sqlite; end + + # source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#70 + def to_s_sqlserver; end +end + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#117 +ScoutApm::Utils::SqlSanitizer::MAX_SQL_LENGTH = T.let(T.unsafe(nil), Integer) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#11 +ScoutApm::Utils::SqlSanitizer::MULTIPLE_QUESTIONS = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#10 +ScoutApm::Utils::SqlSanitizer::MULTIPLE_SPACES = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#30 +ScoutApm::Utils::SqlSanitizer::MYSQL_IN_CLAUSE = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#29 +ScoutApm::Utils::SqlSanitizer::MYSQL_REMOVE_DOUBLE_QUOTE_STRINGS = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#27 +ScoutApm::Utils::SqlSanitizer::MYSQL_REMOVE_INTEGERS = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#28 +ScoutApm::Utils::SqlSanitizer::MYSQL_REMOVE_SINGLE_QUOTE_STRINGS = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#26 +ScoutApm::Utils::SqlSanitizer::MYSQL_VAR_INTERPOLATION = T.let(T.unsafe(nil), Regexp) + +# Should be everything between a FROM and a WHERE +# +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#20 +ScoutApm::Utils::SqlSanitizer::PSQL_AFTER_FROM = T.let(T.unsafe(nil), Regexp) + +# Should be everything between a FROM and AS without WHERE +# +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#21 +ScoutApm::Utils::SqlSanitizer::PSQL_AFTER_FROM_AS = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#22 +ScoutApm::Utils::SqlSanitizer::PSQL_AFTER_JOIN = T.let(T.unsafe(nil), Regexp) + +# Should be everything between a FROM and a WHERE +# +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#17 +ScoutApm::Utils::SqlSanitizer::PSQL_AFTER_SELECT = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#24 +ScoutApm::Utils::SqlSanitizer::PSQL_AFTER_SET = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#23 +ScoutApm::Utils::SqlSanitizer::PSQL_AFTER_WHERE = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#19 +ScoutApm::Utils::SqlSanitizer::PSQL_IN_CLAUSE = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#18 +ScoutApm::Utils::SqlSanitizer::PSQL_PLACEHOLDER = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#16 +ScoutApm::Utils::SqlSanitizer::PSQL_REMOVE_INTEGERS = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#15 +ScoutApm::Utils::SqlSanitizer::PSQL_REMOVE_JSON_STRINGS = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#14 +ScoutApm::Utils::SqlSanitizer::PSQL_REMOVE_STRINGS = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#13 +ScoutApm::Utils::SqlSanitizer::PSQL_VAR_INTERPOLATION = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#34 +ScoutApm::Utils::SqlSanitizer::SQLITE_REMOVE_INTEGERS = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#33 +ScoutApm::Utils::SqlSanitizer::SQLITE_REMOVE_STRINGS = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#32 +ScoutApm::Utils::SqlSanitizer::SQLITE_VAR_INTERPOLATION = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#40 +ScoutApm::Utils::SqlSanitizer::SQLSERVER_IN_CLAUSE = T.let(T.unsafe(nil), Regexp) + +# => "EXEC sp_executesql N'SELECT [users].* FROM [users] WHERE (age > 50) ORDER BY [users].[id] ASC OFFSET 0 ROWS FETCH NEXT @0 ROWS ONLY', N'@0 int', @0 = 10" +# +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#37 +ScoutApm::Utils::SqlSanitizer::SQLSERVER_REMOVE_EXECUTESQL = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#39 +ScoutApm::Utils::SqlSanitizer::SQLSERVER_REMOVE_INTEGERS = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/sql_sanitizer.rb#38 +ScoutApm::Utils::SqlSanitizer::SQLSERVER_REMOVE_STRINGS = T.let(T.unsafe(nil), Regexp) + +# source://scout_apm//lib/scout_apm/utils/time.rb#3 +class ScoutApm::Utils::Time + class << self + # Handles both integer (unix) time and Time objects + # example output: "09/10/15 04:34:28 -0600" + # + # source://scout_apm//lib/scout_apm/utils/time.rb#6 + def to_s(time); end + end +end + +# Represents a random ID that we can use to track a certain transaction. +# The `trans` prefix is only for ease of reading logs - it should not be +# interpreted to convey any sort of meaning. +# +# source://scout_apm//lib/scout_apm/utils/unique_id.rb#18 +class ScoutApm::Utils::TransactionId + # @return [TransactionId] a new instance of TransactionId + # + # source://scout_apm//lib/scout_apm/utils/unique_id.rb#19 + def initialize; end + + # source://scout_apm//lib/scout_apm/utils/unique_id.rb#23 + def to_s; end +end + +# source://scout_apm//lib/scout_apm/utils/unique_id.rb#3 +class ScoutApm::Utils::UniqueId + class << self + # source://scout_apm//lib/scout_apm/utils/unique_id.rb#6 + def simple(length = T.unsafe(nil)); end + end +end + +# source://scout_apm//lib/scout_apm/utils/unique_id.rb#4 +ScoutApm::Utils::UniqueId::ALPHABET = T.let(T.unsafe(nil), Array) + +# source://scout_apm//lib/scout_apm/version.rb#2 +ScoutApm::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/selenium-webdriver@4.19.0.rbi b/sorbet/rbi/gems/selenium-webdriver@4.21.1.rbi similarity index 97% rename from sorbet/rbi/gems/selenium-webdriver@4.19.0.rbi rename to sorbet/rbi/gems/selenium-webdriver@4.21.1.rbi index 3f84f9c2..fe919f1c 100644 --- a/sorbet/rbi/gems/selenium-webdriver@4.19.0.rbi +++ b/sorbet/rbi/gems/selenium-webdriver@4.21.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `selenium-webdriver` gem. # Please instead update this file by running `bin/tapioca gem selenium-webdriver`. + # source://selenium-webdriver//lib/selenium/webdriver/atoms.rb#20 module Selenium; end @@ -1803,7 +1804,7 @@ class Selenium::WebDriver::Driver # driver.all(class: 'bar') #=> [# 'SomeJob', 'args' => [1,2,3]) - # - # All client instances default to the globally-defined - # Sidekiq.client_middleware but you can change as necessary. - # - # source://sidekiq//lib/sidekiq/client.rb#23 - def middleware(&block); end - - # The main method used to push a job to Redis. Accepts a number of options: - # - # queue - the named queue to use, default 'default' - # class - the job class to call, required - # args - an array of simple arguments to the perform method, must be JSON-serializable - # at - timestamp to schedule the job (optional), must be Numeric (e.g. Time.now.to_f) - # retry - whether to retry this job if it fails, default true or an integer number of retries - # retry_for - relative amount of time to retry this job if it fails, default nil - # backtrace - whether to save any error backtrace, default false - # - # If class is set to the class name, the jobs' options will be based on Sidekiq's default - # job options. Otherwise, they will be based on the job class's options. - # - # Any options valid for a job class's sidekiq_options are also available here. - # - # All keys must be strings, not symbols. NB: because we are serializing to JSON, all - # symbols in 'args' will be converted to strings. Note that +backtrace: true+ can take quite a bit of - # space in Redis; a large volume of failing jobs can start Redis swapping if you aren't careful. - # - # Returns a unique Job ID. If middleware stops the job, nil will be returned instead. - # - # Example: - # push('queue' => 'my_queue', 'class' => MyJob, 'args' => ['foo', 1, :bat => 'bar']) - # - # source://sidekiq//lib/sidekiq/client.rb#86 - def push(item); end - - # Push a large number of jobs to Redis. This method cuts out the redis - # network round trip latency. It pushes jobs in batches if more than - # `:batch_size` (1000 by default) of jobs are passed. I wouldn't recommend making `:batch_size` - # larger than 1000 but YMMV based on network quality, size of job args, etc. - # A large number of jobs can cause a bit of Redis command processing latency. - # - # Takes the same arguments as #push except that args is expected to be - # an Array of Arrays. All other keys are duplicated for each job. Each job - # is run through the client middleware pipeline and each job gets its own Job ID - # as normal. - # - # Returns an array of the of pushed jobs' jids, may contain nils if any client middleware - # prevented a job push. - # - # Example (pushing jobs in batches): - # push_bulk('class' => MyJob, 'args' => (1..100_000).to_a, batch_size: 1_000) - # - # @raise [ArgumentError] - # - # source://sidekiq//lib/sidekiq/client.rb#116 - def push_bulk(items); end - - # Returns the value of attribute redis_pool. - # - # source://sidekiq//lib/sidekiq/client.rb#31 - def redis_pool; end - - # Sets the attribute redis_pool - # - # @param value the value to set the attribute redis_pool to. - # - # source://sidekiq//lib/sidekiq/client.rb#31 - def redis_pool=(_arg0); end - - private - - # source://sidekiq//lib/sidekiq/client.rb#248 - def atomic_push(conn, payloads); end - - # source://sidekiq//lib/sidekiq/client.rb#224 - def raw_push(payloads); end - - class << self - # Resque compatibility helpers. Note all helpers - # should go through Sidekiq::Job#client_push. - # - # Example usage: - # Sidekiq::Client.enqueue(MyJob, 'foo', 1, :bat => 'bar') - # - # Messages are enqueued to the 'default' queue. - # - # source://sidekiq//lib/sidekiq/client.rb#189 - def enqueue(klass, *args); end - - # Example usage: - # Sidekiq::Client.enqueue_in(3.minutes, MyJob, 'foo', 1, :bat => 'bar') - # - # source://sidekiq//lib/sidekiq/client.rb#217 - def enqueue_in(interval, klass, *args); end - - # Example usage: - # Sidekiq::Client.enqueue_to(:queue_name, MyJob, 'foo', 1, :bat => 'bar') - # - # source://sidekiq//lib/sidekiq/client.rb#196 - def enqueue_to(queue, klass, *args); end - - # Example usage: - # Sidekiq::Client.enqueue_to_in(:queue_name, 3.minutes, MyJob, 'foo', 1, :bat => 'bar') - # - # source://sidekiq//lib/sidekiq/client.rb#203 - def enqueue_to_in(queue, interval, klass, *args); end - - # source://sidekiq//lib/sidekiq/client.rb#173 - def push(item); end - - # source://sidekiq//lib/sidekiq/client.rb#177 - def push_bulk(*_arg0, **_arg1, &_arg2); end - - # Allows sharding of jobs across any number of Redis instances. All jobs - # defined within the block will use the given Redis connection pool. - # - # pool = ConnectionPool.new { Redis.new } - # Sidekiq::Client.via(pool) do - # SomeJob.perform_async(1,2,3) - # SomeOtherJob.perform_async(1,2,3) - # end - # - # Generally this is only needed for very large Sidekiq installs processing - # thousands of jobs per second. I do not recommend sharding unless - # you cannot scale any other way (e.g. splitting your app into smaller apps). - # - # source://sidekiq//lib/sidekiq/client.rb#163 - def via(pool); end - end -end - -# no difference for now -# -# source://sidekiq//lib/sidekiq/middleware/modules.rb#20 -Sidekiq::ClientMiddleware = Sidekiq::ServerMiddleware - -# Sidekiq::Config represents the global configuration for an instance of Sidekiq. -# -# source://sidekiq//lib/sidekiq/config.rb#8 -class Sidekiq::Config - extend ::Forwardable - - # @return [Config] a new instance of Config - # - # source://sidekiq//lib/sidekiq/config.rb#47 - def initialize(options = T.unsafe(nil)); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def [](*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def []=(*args, **_arg1, &block); end - - # How frequently Redis should be checked by a random Sidekiq process for - # scheduled and retriable jobs. Each individual process will take turns by - # waiting some multiple of this value. - # - # See sidekiq/scheduled.rb for an in-depth explanation of this value - # - # source://sidekiq//lib/sidekiq/config.rb#212 - def average_scheduled_poll_interval=(interval); end - - # register a new queue processing subsystem - # - # @yield [cap] - # - # source://sidekiq//lib/sidekiq/config.rb#111 - def capsule(name); end - - # Returns the value of attribute capsules. - # - # source://sidekiq//lib/sidekiq/config.rb#56 - def capsules; end - - # @yield [@client_chain] - # - # source://sidekiq//lib/sidekiq/config.rb#94 - def client_middleware; end - - # source://sidekiq//lib/sidekiq/config.rb#68 - def concurrency; end - - # LEGACY: edits the default capsule - # config.concurrency = 5 - # - # source://sidekiq//lib/sidekiq/config.rb#64 - def concurrency=(val); end - - # Death handlers are called when all retries for a job have been exhausted and - # the job dies. It's the notification to your application - # that this job will not succeed without manual intervention. - # - # Sidekiq.configure_server do |config| - # config.death_handlers << ->(job, ex) do - # end - # end - # - # source://sidekiq//lib/sidekiq/config.rb#203 - def death_handlers; end - - # source://sidekiq//lib/sidekiq/config.rb#106 - def default_capsule(&block); end - - # Register a proc to handle any error which occurs within the Sidekiq process. - # - # Sidekiq.configure_server do |config| - # config.error_handlers << proc {|ex,ctx_hash| MyErrorService.notify(ex, ctx_hash) } - # end - # - # The default error handler logs errors to @logger. - # - # source://sidekiq//lib/sidekiq/config.rb#223 - def error_handlers; end - - # source://forwardable/1.3.3/forwardable.rb#231 - def fetch(*args, **_arg1, &block); end - - # INTERNAL USE ONLY - # - # source://sidekiq//lib/sidekiq/config.rb#267 - def handle_exception(ex, ctx = T.unsafe(nil)); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def has_key?(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def key?(*args, **_arg1, &block); end - - # source://sidekiq//lib/sidekiq/config.rb#241 - def logger; end - - # source://sidekiq//lib/sidekiq/config.rb#252 - def logger=(logger); end - - # find a singleton - # - # source://sidekiq//lib/sidekiq/config.rb#186 - def lookup(name, default_class = T.unsafe(nil)); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def merge!(*args, **_arg1, &block); end - - # source://sidekiq//lib/sidekiq/config.rb#136 - def new_redis_pool(size, name = T.unsafe(nil)); end - - # Register a block to run at a point in the Sidekiq lifecycle. - # :startup, :quiet or :shutdown are valid events. - # - # Sidekiq.configure_server do |config| - # config.on(:shutdown) do - # puts "Goodbye cruel world!" - # end - # end - # - # @raise [ArgumentError] - # - # source://sidekiq//lib/sidekiq/config.rb#235 - def on(event, &block); end - - # source://sidekiq//lib/sidekiq/config.rb#90 - def queues; end - - # Edit the default capsule. - # config.queues = %w( high default low ) # strict - # config.queues = %w( high,3 default,2 low,1 ) # weighted - # config.queues = %w( feature1,1 feature2,1 feature3,1 ) # random - # - # With weighted priority, queue will be checked first (weight / total) of the time. - # high will be checked first (3/6) or 50% of the time. - # I'd recommend setting weights between 1-10. Weights in the hundreds or thousands - # are ridiculous and unnecessarily expensive. You can get random queue ordering - # by explicitly setting all weights to 1. - # - # source://sidekiq//lib/sidekiq/config.rb#86 - def queues=(val); end - - # @raise [ArgumentError] - # - # source://sidekiq//lib/sidekiq/config.rb#158 - def redis; end - - # All capsules must use the same Redis configuration - # - # source://sidekiq//lib/sidekiq/config.rb#122 - def redis=(hash); end - - # source://sidekiq//lib/sidekiq/config.rb#142 - def redis_info; end - - # source://sidekiq//lib/sidekiq/config.rb#126 - def redis_pool; end - - # register global singletons which can be accessed elsewhere - # - # source://sidekiq//lib/sidekiq/config.rb#181 - def register(name, instance); end - - # @yield [@server_chain] - # - # source://sidekiq//lib/sidekiq/config.rb#100 - def server_middleware; end - - # source://sidekiq//lib/sidekiq/config.rb#58 - def to_json(*_arg0); end - - # source://sidekiq//lib/sidekiq/config.rb#72 - def total_concurrency; end - - private - - # source://sidekiq//lib/sidekiq/config.rb#130 - def local_redis_pool; end - - # source://sidekiq//lib/sidekiq/config.rb#261 - def parameter_size(handler); end -end - -# source://sidekiq//lib/sidekiq/config.rb#11 -Sidekiq::Config::DEFAULTS = T.let(T.unsafe(nil), Hash) - -# source://sidekiq//lib/sidekiq/config.rb#37 -Sidekiq::Config::ERROR_HANDLER = T.let(T.unsafe(nil), Proc) - -# source://sidekiq//lib/sidekiq/logger.rb#7 -module Sidekiq::Context - class << self - # source://sidekiq//lib/sidekiq/logger.rb#20 - def add(k, v); end - - # source://sidekiq//lib/sidekiq/logger.rb#16 - def current; end - - # source://sidekiq//lib/sidekiq/logger.rb#8 - def with(hash); end - end -end - -# Include this module in your job class and you can easily create -# asynchronous jobs: -# -# class HardJob -# include Sidekiq::Job -# sidekiq_options queue: 'critical', retry: 5 -# -# def perform(*args) -# # do some work -# end -# end -# -# Then in your Rails app, you can do this: -# -# HardJob.perform_async(1, 2, 3) -# -# Note that perform_async is a class method, perform is an instance method. -# -# Sidekiq::Job also includes several APIs to provide compatibility with -# ActiveJob. -# -# class SomeJob -# include Sidekiq::Job -# queue_as :critical -# -# def perform(...) -# end -# end -# -# SomeJob.set(wait_until: 1.hour).perform_async(123) -# -# Note that arguments passed to the job must still obey Sidekiq's -# best practice for simple, JSON-native data types. Sidekiq will not -# implement ActiveJob's more complex argument serialization. For -# this reason, we don't implement `perform_later` as our call semantics -# are very different. -# -# source://sidekiq//lib/sidekiq/job.rb#44 -module Sidekiq::Job - include ::Sidekiq::Job::Options - - mixes_in_class_methods ::Sidekiq::Job::Options::ClassMethods - mixes_in_class_methods ::Sidekiq::Job::ClassMethods - - # Returns the value of attribute jid. - # - # source://sidekiq//lib/sidekiq/job.rb#156 - def jid; end - - # Sets the attribute jid - # - # @param value the value to set the attribute jid to. - # - # source://sidekiq//lib/sidekiq/job.rb#156 - def jid=(_arg0); end - - # source://sidekiq//lib/sidekiq/job.rb#165 - def logger; end - - class << self - # @private - # @raise [ArgumentError] - # - # source://sidekiq//lib/sidekiq/job.rb#158 - def included(base); end - end -end - -# The Sidekiq testing infrastructure overrides perform_async -# so that it does not actually touch the network. Instead it -# stores the asynchronous jobs in a per-class array so that -# their presence/absence can be asserted by your tests. -# -# This is similar to ActionMailer's :test delivery_method and its -# ActionMailer::Base.deliveries array. -# -# Example: -# -# require 'sidekiq/testing' -# -# assert_equal 0, HardJob.jobs.size -# HardJob.perform_async(:something) -# assert_equal 1, HardJob.jobs.size -# assert_equal :something, HardJob.jobs[0]['args'][0] -# -# You can also clear and drain all job types: -# -# Sidekiq::Job.clear_all # or .drain_all -# -# This can be useful to make sure jobs don't linger between tests: -# -# RSpec.configure do |config| -# config.before(:each) do -# Sidekiq::Job.clear_all -# end -# end -# -# or for acceptance testing, i.e. with cucumber: -# -# AfterStep do -# Sidekiq::Job.drain_all -# end -# -# When I sign up as "foo@example.com" -# Then I should receive a welcome email to "foo@example.com" -# -# source://sidekiq//lib/sidekiq/job.rb#264 -module Sidekiq::Job::ClassMethods - # source://sidekiq//lib/sidekiq/job.rb#367 - def build_client; end - - # @raise [ArgumentError] - # - # source://sidekiq//lib/sidekiq/job.rb#352 - def client_push(item); end - - # @raise [ArgumentError] - # - # source://sidekiq//lib/sidekiq/job.rb#265 - def delay(*args); end - - # @raise [ArgumentError] - # - # source://sidekiq//lib/sidekiq/job.rb#269 - def delay_for(*args); end - - # @raise [ArgumentError] - # - # source://sidekiq//lib/sidekiq/job.rb#273 - def delay_until(*args); end - - # source://sidekiq//lib/sidekiq/job.rb#285 - def perform_async(*args); end - - # +interval+ must be a timestamp, numeric or something that acts - # numeric (like an activesupport time interval). - # - # source://sidekiq//lib/sidekiq/job.rb#321 - def perform_at(interval, *args); end - - # Push a large number of jobs to Redis, while limiting the batch of - # each job payload to 1,000. This method helps cut down on the number - # of round trips to Redis, which can increase the performance of enqueueing - # large numbers of jobs. - # - # +items+ must be an Array of Arrays. - # - # For finer-grained control, use `Sidekiq::Client.push_bulk` directly. - # - # Example (3 Redis round trips): - # - # SomeJob.perform_async(1) - # SomeJob.perform_async(2) - # SomeJob.perform_async(3) - # - # Would instead become (1 Redis round trip): - # - # SomeJob.perform_bulk([[1], [2], [3]]) - # - # source://sidekiq//lib/sidekiq/job.rb#315 - def perform_bulk(*args, **kwargs); end - - # +interval+ must be a timestamp, numeric or something that acts - # numeric (like an activesupport time interval). - # - # source://sidekiq//lib/sidekiq/job.rb#321 - def perform_in(interval, *args); end - - # Inline execution of job's perform method after passing through Sidekiq.client_middleware and Sidekiq.server_middleware - # - # source://sidekiq//lib/sidekiq/job.rb#290 - def perform_inline(*args); end - - # Inline execution of job's perform method after passing through Sidekiq.client_middleware and Sidekiq.server_middleware - # - # source://sidekiq//lib/sidekiq/job.rb#290 - def perform_sync(*args); end - - # source://sidekiq//lib/sidekiq/job.rb#277 - def queue_as(q); end - - # source://sidekiq//lib/sidekiq/job.rb#281 - def set(options); end - - # Allows customization for this type of Job. - # Legal options: - # - # queue - use a named queue for this Job, default 'default' - # retry - enable the RetryJobs middleware for this Job, *true* to use the default - # or *Integer* count - # backtrace - whether to save any error backtrace in the retry payload to display in web UI, - # can be true, false or an integer number of lines to save, default *false* - # pool - use the given Redis connection pool to push this type of job to a given shard. - # - # In practice, any option is allowed. This is the main mechanism to configure the - # options for a specific job. - # - # source://sidekiq//lib/sidekiq/job.rb#348 - def sidekiq_options(opts = T.unsafe(nil)); end -end - -# The Options module is extracted so we can include it in ActiveJob::Base -# and allow native AJs to configure Sidekiq features/internals. -# -# source://sidekiq//lib/sidekiq/job.rb#48 -module Sidekiq::Job::Options - mixes_in_class_methods ::Sidekiq::Job::Options::ClassMethods - - class << self - # @private - # - # source://sidekiq//lib/sidekiq/job.rb#49 - def included(base); end - end -end - -# source://sidekiq//lib/sidekiq/job.rb#56 -module Sidekiq::Job::Options::ClassMethods - # source://sidekiq//lib/sidekiq/job.rb#84 - def get_sidekiq_options; end - - # source://sidekiq//lib/sidekiq/job.rb#88 - def sidekiq_class_attribute(*attrs); end - - # Allows customization for this type of Job. - # Legal options: - # - # queue - name of queue to use for this job type, default *default* - # retry - enable retries for this Job in case of error during execution, - # *true* to use the default or *Integer* count - # backtrace - whether to save any error backtrace in the retry payload to display in web UI, - # can be true, false or an integer number of lines to save, default *false* - # - # In practice, any option is allowed. This is the main mechanism to configure the - # options for a specific job. - # - # source://sidekiq//lib/sidekiq/job.rb#71 - def sidekiq_options(opts = T.unsafe(nil)); end - - # source://sidekiq//lib/sidekiq/job.rb#80 - def sidekiq_retries_exhausted(&block); end - - # source://sidekiq//lib/sidekiq/job.rb#76 - def sidekiq_retry_in(&block); end -end - -# source://sidekiq//lib/sidekiq/job.rb#57 -Sidekiq::Job::Options::ClassMethods::ACCESSOR_MUTEX = T.let(T.unsafe(nil), Thread::Mutex) - -# This helper class encapsulates the set options for `set`, e.g. -# -# SomeJob.set(queue: 'foo').perform_async(....) -# -# source://sidekiq//lib/sidekiq/job.rb#173 -class Sidekiq::Job::Setter - include ::Sidekiq::JobUtil - - # @return [Setter] a new instance of Setter - # - # source://sidekiq//lib/sidekiq/job.rb#176 - def initialize(klass, opts); end - - # source://sidekiq//lib/sidekiq/job.rb#194 - def perform_async(*args); end - - # +interval+ must be a timestamp, numeric or something that acts - # numeric (like an activesupport time interval). - # - # source://sidekiq//lib/sidekiq/job.rb#247 - def perform_at(interval, *args); end - - # source://sidekiq//lib/sidekiq/job.rb#240 - def perform_bulk(args, batch_size: T.unsafe(nil)); end - - # +interval+ must be a timestamp, numeric or something that acts - # numeric (like an activesupport time interval). - # - # source://sidekiq//lib/sidekiq/job.rb#247 - def perform_in(interval, *args); end - - # Explicit inline execution of a job. Returns nil if the job did not - # execute, true otherwise. - # - # source://sidekiq//lib/sidekiq/job.rb#204 - def perform_inline(*args); end - - # Explicit inline execution of a job. Returns nil if the job did not - # execute, true otherwise. - # - # source://sidekiq//lib/sidekiq/job.rb#204 - def perform_sync(*args); end - - # source://sidekiq//lib/sidekiq/job.rb#186 - def set(options); end - - private - - # source://sidekiq//lib/sidekiq/job.rb#254 - def at(interval); end -end - -# source://sidekiq//lib/sidekiq/job_util.rb#5 -module Sidekiq::JobUtil - # @raise [ArgumentError] - # - # source://sidekiq//lib/sidekiq/job_util.rb#41 - def normalize_item(item); end - - # source://sidekiq//lib/sidekiq/job_util.rb#63 - def normalized_hash(item_class); end - - # @raise [ArgumentError] - # - # source://sidekiq//lib/sidekiq/job_util.rb#10 - def validate(item); end - - # source://sidekiq//lib/sidekiq/job_util.rb#19 - def verify_json(item); end - - private - - # @return [Boolean] - # - # source://sidekiq//lib/sidekiq/job_util.rb#103 - def json_unsafe?(item); end -end - -# source://sidekiq//lib/sidekiq/job_util.rb#74 -Sidekiq::JobUtil::RECURSIVE_JSON_UNSAFE = T.let(T.unsafe(nil), Hash) - -# These functions encapsulate various job utilities. -# -# source://sidekiq//lib/sidekiq/job_util.rb#8 -Sidekiq::JobUtil::TRANSIENT_ATTRIBUTES = T.let(T.unsafe(nil), Array) - -# source://sidekiq//lib/sidekiq.rb#42 -Sidekiq::LICENSE = T.let(T.unsafe(nil), String) - -# source://sidekiq//lib/sidekiq/logger.rb#75 -class Sidekiq::Logger < ::Logger - include ::Sidekiq::LoggingUtils -end - -# source://sidekiq//lib/sidekiq/logger.rb#78 -module Sidekiq::Logger::Formatters; end - -# source://sidekiq//lib/sidekiq/logger.rb#79 -class Sidekiq::Logger::Formatters::Base < ::Logger::Formatter - # source://sidekiq//lib/sidekiq/logger.rb#84 - def ctx; end - - # source://sidekiq//lib/sidekiq/logger.rb#88 - def format_context; end - - # source://sidekiq//lib/sidekiq/logger.rb#80 - def tid; end -end - -# source://sidekiq//lib/sidekiq/logger.rb#114 -class Sidekiq::Logger::Formatters::JSON < ::Sidekiq::Logger::Formatters::Base - # source://sidekiq//lib/sidekiq/logger.rb#115 - def call(severity, time, program_name, message); end -end - -# source://sidekiq//lib/sidekiq/logger.rb#102 -class Sidekiq::Logger::Formatters::Pretty < ::Sidekiq::Logger::Formatters::Base - # source://sidekiq//lib/sidekiq/logger.rb#103 - def call(severity, time, program_name, message); end -end - -# source://sidekiq//lib/sidekiq/logger.rb#108 -class Sidekiq::Logger::Formatters::WithoutTimestamp < ::Sidekiq::Logger::Formatters::Pretty - # source://sidekiq//lib/sidekiq/logger.rb#109 - def call(severity, time, program_name, message); end -end - -# source://sidekiq//lib/sidekiq/logger.rb#25 -module Sidekiq::LoggingUtils - # source://sidekiq//lib/sidekiq/logger.rb#39 - def debug?; end - - # source://sidekiq//lib/sidekiq/logger.rb#39 - def error?; end - - # source://sidekiq//lib/sidekiq/logger.rb#39 - def fatal?; end - - # source://sidekiq//lib/sidekiq/logger.rb#39 - def info?; end - - # source://sidekiq//lib/sidekiq/logger.rb#61 - def level; end - - # source://sidekiq//lib/sidekiq/logger.rb#44 - def local_level; end - - # source://sidekiq//lib/sidekiq/logger.rb#48 - def local_level=(level); end - - # Change the thread-local level for the duration of the given block. - # - # source://sidekiq//lib/sidekiq/logger.rb#66 - def log_at(level); end - - # source://sidekiq//lib/sidekiq/logger.rb#39 - def warn?; end -end - -# source://sidekiq//lib/sidekiq/logger.rb#26 -Sidekiq::LoggingUtils::LEVELS = T.let(T.unsafe(nil), Hash) - -# source://sidekiq//lib/sidekiq/version.rb#5 -Sidekiq::MAJOR = T.let(T.unsafe(nil), Integer) - -# Middleware is code configured to run before/after -# a job is processed. It is patterned after Rack -# middleware. Middleware exists for the client side -# (pushing jobs onto the queue) as well as the server -# side (when jobs are actually processed). -# -# Callers will register middleware Classes and Sidekiq will -# create new instances of the middleware for every job. This -# is important so that instance state is not shared accidentally -# between job executions. -# -# To add middleware for the client: -# -# Sidekiq.configure_client do |config| -# config.client_middleware do |chain| -# chain.add MyClientHook -# end -# end -# -# To modify middleware for the server, just call -# with another block: -# -# Sidekiq.configure_server do |config| -# config.server_middleware do |chain| -# chain.add MyServerHook -# chain.remove ActiveRecord -# end -# end -# -# To insert immediately preceding another entry: -# -# Sidekiq.configure_client do |config| -# config.client_middleware do |chain| -# chain.insert_before ActiveRecord, MyClientHook -# end -# end -# -# To insert immediately after another entry: -# -# Sidekiq.configure_client do |config| -# config.client_middleware do |chain| -# chain.insert_after ActiveRecord, MyClientHook -# end -# end -# -# This is an example of a minimal server middleware: -# -# class MyServerHook -# include Sidekiq::ServerMiddleware -# -# def call(job_instance, msg, queue) -# logger.info "Before job" -# redis {|conn| conn.get("foo") } # do something in Redis -# yield -# logger.info "After job" -# end -# end -# -# This is an example of a minimal client middleware, note -# the method must return the result or the job will not push -# to Redis: -# -# class MyClientHook -# include Sidekiq::ClientMiddleware -# -# def call(job_class, msg, queue, redis_pool) -# logger.info "Before push" -# result = yield -# logger.info "After push" -# result -# end -# end -# -# source://sidekiq//lib/sidekiq/middleware/chain.rb#79 -module Sidekiq::Middleware; end - -# source://sidekiq//lib/sidekiq/middleware/chain.rb#80 -class Sidekiq::Middleware::Chain - include ::Enumerable - - # @api private - # @return [Chain] a new instance of Chain - # @yield [_self] - # @yieldparam _self [Sidekiq::Middleware::Chain] the object that the method was called on - # - # source://sidekiq//lib/sidekiq/middleware/chain.rb#89 - def initialize(config = T.unsafe(nil)); end - - # Add the given middleware to the end of the chain. - # Sidekiq will call `klass.new(*args)` to create a clean - # copy of your middleware for every job executed. - # - # chain.add(Statsd::Metrics, { collector: "localhost:8125" }) - # - # @param klass [Class] Your middleware class - # @param *args [Array] Set of arguments to pass to every instance of your middleware - # - # source://sidekiq//lib/sidekiq/middleware/chain.rb#119 - def add(klass, *args); end - - # source://sidekiq//lib/sidekiq/middleware/chain.rb#163 - def clear; end - - # source://sidekiq//lib/sidekiq/middleware/chain.rb#99 - def copy_for(capsule); end - - # Iterate through each middleware in the chain - # - # source://sidekiq//lib/sidekiq/middleware/chain.rb#84 - def each(&block); end - - # @return [Boolean] if the chain contains no middleware - # - # source://sidekiq//lib/sidekiq/middleware/chain.rb#155 - def empty?; end - - # source://sidekiq//lib/sidekiq/middleware/chain.rb#95 - def entries; end - - # @return [Boolean] if the given class is already in the chain - # - # source://sidekiq//lib/sidekiq/middleware/chain.rb#149 - def exists?(klass); end - - # @return [Boolean] if the given class is already in the chain - # - # source://sidekiq//lib/sidekiq/middleware/chain.rb#149 - def include?(klass); end - - # Inserts +newklass+ after +oldklass+ in the chain. - # Useful if one middleware must run after another middleware. - # - # source://sidekiq//lib/sidekiq/middleware/chain.rb#141 - def insert_after(oldklass, newklass, *args); end - - # Inserts +newklass+ before +oldklass+ in the chain. - # Useful if one middleware must run before another middleware. - # - # source://sidekiq//lib/sidekiq/middleware/chain.rb#132 - def insert_before(oldklass, newklass, *args); end - - # Used by Sidekiq to execute the middleware at runtime - # - # @api private - # - # source://sidekiq//lib/sidekiq/middleware/chain.rb#169 - def invoke(*args, &block); end - - # Identical to {#add} except the middleware is added to the front of the chain. - # - # source://sidekiq//lib/sidekiq/middleware/chain.rb#125 - def prepend(klass, *args); end - - # Remove all middleware matching the given Class - # - # @param klass [Class] - # - # source://sidekiq//lib/sidekiq/middleware/chain.rb#107 - def remove(klass); end - - # source://sidekiq//lib/sidekiq/middleware/chain.rb#159 - def retrieve; end - - private - - # source://sidekiq//lib/sidekiq/middleware/chain.rb#178 - def traverse(chain, index, args, &block); end -end - -# Represents each link in the middleware chain -# -# @api private -# -# source://sidekiq//lib/sidekiq/middleware/chain.rb#191 -class Sidekiq::Middleware::Entry - # @api private - # @return [Entry] a new instance of Entry - # - # source://sidekiq//lib/sidekiq/middleware/chain.rb#194 - def initialize(config, klass, *args); end - - # @api private - # - # source://sidekiq//lib/sidekiq/middleware/chain.rb#192 - def klass; end - - # @api private - # - # source://sidekiq//lib/sidekiq/middleware/chain.rb#200 - def make_new; end -end - -# source://sidekiq//lib/sidekiq.rb#41 -Sidekiq::NAME = T.let(T.unsafe(nil), String) - -# source://sidekiq//lib/sidekiq/rails.rb#7 -class Sidekiq::Rails < ::Rails::Engine - class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 - def __callbacks; end - end -end - -# source://sidekiq//lib/sidekiq/rails.rb#8 -class Sidekiq::Rails::Reloader - # @return [Reloader] a new instance of Reloader - # - # source://sidekiq//lib/sidekiq/rails.rb#9 - def initialize(app = T.unsafe(nil)); end - - # source://sidekiq//lib/sidekiq/rails.rb#13 - def call; end - - # source://sidekiq//lib/sidekiq/rails.rb#20 - def inspect; end - - # source://sidekiq//lib/sidekiq/rails.rb#24 - def to_hash; end -end - -# source://sidekiq//lib/sidekiq/redis_client_adapter.rb#8 -class Sidekiq::RedisClientAdapter - # @return [RedisClientAdapter] a new instance of RedisClientAdapter - # - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#63 - def initialize(options); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#72 - def new_client; end - - private - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#78 - def client_opts(options); end -end - -# source://sidekiq//lib/sidekiq/redis_client_adapter.rb#9 -Sidekiq::RedisClientAdapter::BaseError = RedisClient::Error - -# source://sidekiq//lib/sidekiq/redis_client_adapter.rb#10 -Sidekiq::RedisClientAdapter::CommandError = RedisClient::CommandError - -# source://sidekiq//lib/sidekiq/redis_client_adapter.rb#0 -class Sidekiq::RedisClientAdapter::CompatClient < ::RedisClient::Decorator::Client - include ::Sidekiq::RedisClientAdapter::CompatMethods - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#58 - def config; end -end - -# source://sidekiq//lib/sidekiq/redis_client_adapter.rb#0 -class Sidekiq::RedisClientAdapter::CompatClient::Pipeline < ::RedisClient::Decorator::Pipeline - include ::Sidekiq::RedisClientAdapter::CompatMethods -end - -# source://sidekiq//lib/sidekiq/redis_client_adapter.rb#15 -module Sidekiq::RedisClientAdapter::CompatMethods - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def bitfield(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def bitfield_ro(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def del(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#20 - def evalsha(sha, keys, argv); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def exists(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def expire(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def flushdb(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def get(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def hdel(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def hget(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def hgetall(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def hincrby(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def hlen(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def hmget(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def hset(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def hsetnx(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def incr(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def incrby(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#16 - def info; end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def lindex(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def llen(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def lmove(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def lpop(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def lpush(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def lrange(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def lrem(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def mget(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def mset(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def ping(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def pttl(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def publish(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def rpop(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def rpush(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def sadd(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def scard(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def script(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def set(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def sismember(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def smembers(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def srem(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def ttl(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def type(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def unlink(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def zadd(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def zcard(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def zincrby(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def zrange(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def zrem(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def zremrangebyrank(*args, **kwargs); end - - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def zremrangebyscore(*args, **kwargs); end - - private - - # this allows us to use methods like `conn.hmset(...)` instead of having to use - # redis-client's native `conn.call("hmset", ...)` - # - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#44 - def method_missing(*args, **_arg1, &block); end - - # @return [Boolean] - # - # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#50 - def respond_to_missing?(name, include_private = T.unsafe(nil)); end -end - -# this is the set of Redis commands used by Sidekiq. Not guaranteed -# to be comprehensive, we use this as a performance enhancement to -# avoid calling method_missing on most commands -# -# source://sidekiq//lib/sidekiq/redis_client_adapter.rb#27 -Sidekiq::RedisClientAdapter::CompatMethods::USED_COMMANDS = T.let(T.unsafe(nil), Array) - -# You can add/remove items or clear the whole thing if you don't want deprecation warnings. -# -# source://sidekiq//lib/sidekiq/redis_client_adapter.rb#13 -Sidekiq::RedisClientAdapter::DEPRECATED_COMMANDS = T.let(T.unsafe(nil), Set) - -# source://sidekiq//lib/sidekiq/redis_connection.rb#8 -module Sidekiq::RedisConnection - class << self - # source://sidekiq//lib/sidekiq/redis_connection.rb#10 - def create(options = T.unsafe(nil)); end - - private - - # source://sidekiq//lib/sidekiq/redis_connection.rb#50 - def determine_redis_provider; end - - # source://sidekiq//lib/sidekiq/redis_connection.rb#30 - def scrub(options); end - end -end - -# Server-side middleware must import this Module in order -# to get access to server resources during `call`. -# -# source://sidekiq//lib/sidekiq/middleware/modules.rb#4 -module Sidekiq::ServerMiddleware - # Returns the value of attribute config. - # - # source://sidekiq//lib/sidekiq/middleware/modules.rb#5 - def config; end - - # Sets the attribute config - # - # @param value the value to set the attribute config to. - # - # source://sidekiq//lib/sidekiq/middleware/modules.rb#5 - def config=(_arg0); end - - # source://sidekiq//lib/sidekiq/middleware/modules.rb#10 - def logger; end - - # source://sidekiq//lib/sidekiq/middleware/modules.rb#14 - def redis(&block); end - - # source://sidekiq//lib/sidekiq/middleware/modules.rb#6 - def redis_pool; end -end - -# We are shutting down Sidekiq but what about threads that -# are working on some long job? This error is -# raised in jobs that have not finished within the hard -# timeout limit. This is needed to rollback db transactions, -# otherwise Ruby's Thread#kill will commit. See #377. -# DO NOT RESCUE THIS ERROR IN YOUR JOBS -# -# source://sidekiq//lib/sidekiq.rb#144 -class Sidekiq::Shutdown < ::Interrupt; end - -# source://sidekiq//lib/sidekiq/transaction_aware_client.rb#7 -class Sidekiq::TransactionAwareClient - # @return [TransactionAwareClient] a new instance of TransactionAwareClient - # - # source://sidekiq//lib/sidekiq/transaction_aware_client.rb#8 - def initialize(pool: T.unsafe(nil), config: T.unsafe(nil)); end - - # @return [Boolean] - # - # source://sidekiq//lib/sidekiq/transaction_aware_client.rb#12 - def batching?; end - - # source://sidekiq//lib/sidekiq/transaction_aware_client.rb#16 - def push(item); end - - # We don't provide transactionality for push_bulk because we don't want - # to hold potentially hundreds of thousands of job records in memory due to - # a long running enqueue process. - # - # source://sidekiq//lib/sidekiq/transaction_aware_client.rb#31 - def push_bulk(items); end -end - -# source://sidekiq//lib/sidekiq/version.rb#4 -Sidekiq::VERSION = T.let(T.unsafe(nil), String) - -# Sidekiq::Job is a new alias for Sidekiq::Worker as of Sidekiq 6.3.0. -# Use `include Sidekiq::Job` rather than `include Sidekiq::Worker`. -# -# The term "worker" is too generic and overly confusing, used in several -# different contexts meaning different things. Many people call a Sidekiq -# process a "worker". Some people call the thread that executes jobs a -# "worker". This change brings Sidekiq closer to ActiveJob where your job -# classes extend ApplicationJob. -# -# source://sidekiq//lib/sidekiq/worker_compatibility_alias.rb#12 -Sidekiq::Worker = Sidekiq::Job diff --git a/sorbet/rbi/gems/signet@0.19.0.rbi b/sorbet/rbi/gems/signet@0.19.0.rbi new file mode 100644 index 00000000..509ca820 --- /dev/null +++ b/sorbet/rbi/gems/signet@0.19.0.rbi @@ -0,0 +1,938 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `signet` gem. +# Please instead update this file by running `bin/tapioca gem signet`. + + +# source://signet//lib/signet/version.rb#15 +module Signet + class << self + # source://signet//lib/signet.rb#18 + def parse_auth_param_list(auth_param_string); end + end +end + +# An error indicating the remote server refused to authorize the client. +# +# source://signet//lib/signet/errors.rb#49 +class Signet::AuthorizationError < ::StandardError + # Creates a new authentication error. + # + # @param message [String] A message describing the error. + # @param options [Hash] The configuration parameters for the request. + # - :request - + # A Faraday::Request object. Optional. + # - :response - + # A Faraday::Response object. Optional. + # - :code - + # An error code. + # - :description - + # Human-readable text intended to be used to assist in resolving the + # error condition. + # - :uri - + # A URI identifying a human-readable web page with additional + # information about the error, indended for the resource owner. + # @return [AuthorizationError] a new instance of AuthorizationError + # + # source://signet//lib/signet/errors.rb#69 + def initialize(message, options = T.unsafe(nil)); end + + # The HTTP request that triggered this authentication error. + # + # @return [Array] A tuple of method, uri, headers, and body. + # + # source://signet//lib/signet/errors.rb#83 + def request; end + + # The HTTP response that triggered this authentication error. + # + # @return [Array] A tuple of status, headers, and body. + # + # source://signet//lib/signet/errors.rb#89 + def response; end +end + +# An error indicating that the server considers the Authorization header to +# be malformed(missing/unsupported/invalid parameters), and the request +# should be considered invalid. +# +# source://signet//lib/signet/errors.rb#33 +class Signet::MalformedAuthorizationError < ::StandardError; end + +# An implementation of http://tools.ietf.org/html/draft-ietf-oauth-v2-10 +# +# This module will be updated periodically to support newer drafts of the +# specification, as they become widely deployed. +# +# source://signet//lib/signet/oauth_2.rb#25 +module Signet::OAuth2 + class << self + # Appends the necessary OAuth parameters to + # the base authorization endpoint URI. + # + # @param authorization_uri [Addressable::URI, String, #to_str] The base authorization endpoint URI. + # @return [String] The authorization URI to redirect the user to. + # + # source://signet//lib/signet/oauth_2.rb#137 + def generate_authorization_uri(authorization_uri, parameters = T.unsafe(nil)); end + + # Generates a Basic Authorization header from a client identifier and a + # client password. + # + # @param client_id [String] The client identifier. + # @param client_password [String] The client password. + # @return [String] The value for the HTTP Basic Authorization header. + # + # source://signet//lib/signet/oauth_2.rb#98 + def generate_basic_authorization_header(client_id, client_password); end + + # Generates an authorization header for an access token + # + # @param access_token [String] The access token. + # @param auth_params [Hash] Additional parameters to be encoded in the header + # @return [String] The value for the HTTP Basic Authorization header. + # + # source://signet//lib/signet/oauth_2.rb#117 + def generate_bearer_authorization_header(access_token, auth_params = T.unsafe(nil)); end + + # source://signet//lib/signet/oauth_2.rb#26 + def parse_authorization_header(field_value); end + + # source://signet//lib/signet/oauth_2.rb#53 + def parse_basic_credentials(credential_string); end + + # source://signet//lib/signet/oauth_2.rb#59 + def parse_bearer_credentials(credential_string); end + + # @raise [TypeError] + # + # source://signet//lib/signet/oauth_2.rb#75 + def parse_credentials(body, content_type); end + + # source://signet//lib/signet/oauth_2.rb#71 + def parse_oauth_challenge(challenge_string); end + + # source://signet//lib/signet/oauth_2.rb#41 + def parse_www_authenticate_header(field_value); end + end +end + +# source://signet//lib/signet/oauth_2/client.rb#27 +class Signet::OAuth2::Client + # Creates an OAuth 2.0 client. + # + # @example + # client = Signet::OAuth2::Client.new( + # :authorization_uri => + # 'https://example.server.com/authorization', + # :token_credential_uri => + # 'https://example.server.com/token', + # :client_id => 'anonymous', + # :client_secret => 'anonymous', + # :scope => 'example', + # :redirect_uri => 'https://example.client.com/oauth' + # ) + # @param options [Hash] The configuration parameters for the client. + # - `:authorization_uri` - + # The authorization server's HTTP endpoint capable of + # authenticating the end-user and obtaining authorization. + # - `:token_credential_uri` - + # The authorization server's HTTP endpoint capable of issuing + # tokens and refreshing expired tokens. + # - `:client_id` - + # A unique identifier issued to the client to identify itself to the + # authorization server. + # - `:client_secret` - + # A shared symmetric secret issued by the authorization server, + # which is used to authenticate the client. + # - `:scope` - + # The scope of the access request, expressed either as an Array + # or as a space-delimited String. + # - `:target_audience` - + # The final target audience for ID tokens fetched by this client, + # as a String. + # - `:state` - + # An arbitrary string designed to allow the client to maintain state. + # - `:code` - + # The authorization code received from the authorization server. + # - `:redirect_uri` - + # The redirection URI used in the initial request. + # - `:username` - + # The resource owner's username. + # - `:password` - + # The resource owner's password. + # - `:issuer` - + # Issuer ID when using assertion profile + # - `:person` - + # Target user for assertions + # - `:expiry` - + # Number of seconds assertions are valid for + # - `:signing_key` - + # Signing key when using assertion profile + # - `:refresh_token` - + # The refresh token associated with the access token + # to be refreshed. + # - `:access_token` - + # The current access token for this client. + # - `:id_token` - + # The current ID token for this client. + # - `:extension_parameters` - + # When using an extension grant type, this the set of parameters used + # by that extension. + # - `:granted_scopes` - + # All scopes granted by authorization server. + # @return [Client] a new instance of Client + # @see Signet::OAuth2::Client#update! + # + # source://signet//lib/signet/oauth_2/client.rb#97 + def initialize(options = T.unsafe(nil)); end + + # Returns the access token associated with this client. + # + # @return [String] The access token. + # + # source://signet//lib/signet/oauth_2/client.rb#715 + def access_token; end + + # Sets the access token associated with this client. + # + # @param new_access_token [String] The access token. + # + # source://signet//lib/signet/oauth_2/client.rb#724 + def access_token=(new_access_token); end + + # Returns the current access type parameter for #authorization_uri. + # + # @return [String, Symbol] The current access type. + # + # source://signet//lib/signet/oauth_2/client.rb#342 + def access_type; end + + # Sets the current access type parameter for #authorization_uri. + # + # @param new_access_type [String, Symbol] The current access type. + # + # source://signet//lib/signet/oauth_2/client.rb#351 + def access_type=(new_access_type); end + + # Returns the set of additional (non standard) parameters to be used by the client. + # + # @return [Hash] The pass through parameters. + # + # source://signet//lib/signet/oauth_2/client.rb#676 + def additional_parameters; end + + # Sets additional (non standard) parameters to be used by the client. + # + # @param new_additional_parameters [Hash] The parameters. + # + # source://signet//lib/signet/oauth_2/client.rb#685 + def additional_parameters=(new_additional_parameters); end + + # Returns the target audience ID when issuing assertions. + # Used only by the assertion grant type. + # + # @return [String] Target audience ID. + # + # source://signet//lib/signet/oauth_2/client.rb#561 + def audience; end + + # Sets the target audience ID when issuing assertions. + # Used only by the assertion grant type. + # + # @param new_audience [String] Target audience ID + # + # source://signet//lib/signet/oauth_2/client.rb#571 + def audience=(new_audience); end + + # Returns the authorization URI that the user should be redirected to. + # + # @raise [ArgumentError] + # @return [Addressable::URI] The authorization URI. + # @see Signet::OAuth2.generate_authorization_uri + # + # source://signet//lib/signet/oauth_2/client.rb#271 + def authorization_uri(options = T.unsafe(nil)); end + + # Sets the authorization URI for this client. + # + # @param new_authorization_uri [Addressable::URI, Hash, String, #to_str] The authorization URI. + # + # source://signet//lib/signet/oauth_2/client.rb#307 + def authorization_uri=(new_authorization_uri); end + + # source://googleauth/1.11.0/lib/googleauth/signet.rb#64 + def build_default_connection; end + + # Removes all credentials from the client. + # + # source://signet//lib/signet/oauth_2/client.rb#883 + def clear_credentials!; end + + # Returns the client identifier for this client. + # + # @return [String] The client identifier. + # + # source://signet//lib/signet/oauth_2/client.rb#359 + def client_id; end + + # Sets the client identifier for this client. + # + # @param new_client_id [String] The client identifier. + # + # source://signet//lib/signet/oauth_2/client.rb#368 + def client_id=(new_client_id); end + + # Returns the client secret for this client. + # + # @return [String] The client secret. + # + # source://signet//lib/signet/oauth_2/client.rb#376 + def client_secret; end + + # Sets the client secret for this client. + # + # @param new_client_secret [String] The client secret. + # + # source://signet//lib/signet/oauth_2/client.rb#385 + def client_secret=(new_client_secret); end + + # Returns the authorization code issued to this client. + # Used only by the authorization code access grant type. + # + # @return [String] The authorization code. + # + # source://signet//lib/signet/oauth_2/client.rb#462 + def code; end + + # Sets the authorization code issued to this client. + # Used only by the authorization code access grant type. + # + # @param new_code [String] The authorization code. + # + # source://signet//lib/signet/oauth_2/client.rb#472 + def code=(new_code); end + + # Addressable expects URIs formatted as hashes to come in with symbols as keys. + # Returns nil implicitly for the nil case. + # + # source://signet//lib/signet/oauth_2/client.rb#330 + def coerce_uri(incoming_uri); end + + # source://googleauth/1.11.0/lib/googleauth/signet.rb#37 + def configure_connection(options); end + + # Returns the decoded ID token associated with this client. + # + # @param public_key [OpenSSL::PKey::RSA, Object] The public key to use to verify the ID token. Skips verification if + # omitted. + # @raise [Signet::UnsafeOperationError] + # @return [String] The decoded ID token. + # + # source://signet//lib/signet/oauth_2/client.rb#753 + def decoded_id_token(public_key = T.unsafe(nil), options = T.unsafe(nil), &keyfinder); end + + # Returns true if the access token has expired. + # Returns false if the token has not expired or has an nil @expires_at. + # + # @return [TrueClass, FalseClass] The expiration state of the access token. + # + # source://signet//lib/signet/oauth_2/client.rb#864 + def expired?; end + + # Returns the timestamp the access token will expire at. + # Returns nil if the token does not expire. + # + # @return [Time, nil] The access token lifetime. + # + # source://signet//lib/signet/oauth_2/client.rb#817 + def expires_at; end + + # Limits the lifetime of the access token as number of seconds since + # the Epoch. Nil values will be treated as though the token does + # not expire. + # + # @param new_expires_at [String, Integer, Time, nil] The access token expiration time. + # + # source://signet//lib/signet/oauth_2/client.rb#827 + def expires_at=(new_expires_at); end + + # Returns the lifetime of the access token in seconds. + # Returns nil if the token does not expire. + # + # @return [Integer, nil] The access token lifetime. + # + # source://signet//lib/signet/oauth_2/client.rb#770 + def expires_in; end + + # Sets the lifetime of the access token in seconds. Resets the issued_at + # timestamp. Nil values will be treated as though the token does + # not expire. + # + # @param new_expires_in [String, Integer, nil] The access token lifetime. + # + # source://signet//lib/signet/oauth_2/client.rb#785 + def expires_in=(new_expires_in); end + + # Returns true if the access token has expired or expires within + # the next n seconds. Returns false for tokens with a nil @expires_at. + # + # @param sec [Integer] Max number of seconds from now where a token is still considered + # expired. + # @return [TrueClass, FalseClass] The expiration state of the access token. + # + # source://signet//lib/signet/oauth_2/client.rb#877 + def expires_within?(sec); end + + # Returns the number of seconds assertions are valid for + # Used only by the assertion grant type. + # + # @return [Integer] Assertion expiry, in seconds + # + # source://signet//lib/signet/oauth_2/client.rb#608 + def expiry; end + + # Sets the number of seconds assertions are valid for + # Used only by the assertion grant type. + # + # @param new_expiry [Integer, String] Assertion expiry, in seconds + # + # source://signet//lib/signet/oauth_2/client.rb#618 + def expiry=(new_expiry); end + + # Returns the set of extension parameters used by the client. + # Used only by extension access grant types. + # + # @return [Hash] The extension parameters. + # + # source://signet//lib/signet/oauth_2/client.rb#653 + def extension_parameters; end + + # Sets extension parameters used by the client. + # Used only by extension access grant types. + # + # @param new_extension_parameters [Hash] The parameters. + # + # source://signet//lib/signet/oauth_2/client.rb#663 + def extension_parameters=(new_extension_parameters); end + + # @raise [ArgumentError] + # + # source://signet//lib/signet/oauth_2/client.rb#1022 + def fetch_access_token(options = T.unsafe(nil)); end + + # source://googleauth/1.11.0/lib/googleauth/signet.rb#52 + def fetch_access_token!(options = T.unsafe(nil)); end + + # Transmits a request for a protected resource. + # + # @example + # # Using Net::HTTP + # response = client.fetch_protected_resource( + # :uri => 'http://www.example.com/protected/resource' + # ) + # @param options [Hash] The configuration parameters for the request. + # - :request - + # A pre-constructed request. An OAuth 2 Authorization header + # will be added to it, as well as an explicit Cache-Control + # `no-store` directive. + # - :method - + # The HTTP method for the request. Defaults to 'GET'. + # - :uri - + # The URI for the request. + # - :headers - + # The HTTP headers for the request. + # - :body - + # The HTTP body for the request. + # - :realm - + # The Authorization realm. See RFC 2617. + # - :connection - + # The HTTP connection to use. + # Must be of type Faraday::Connection. + # @raise [::Signet::AuthorizationError] + # @return [Array] The response object. + # + # source://signet//lib/signet/oauth_2/client.rb#1190 + def fetch_protected_resource(options = T.unsafe(nil)); end + + # Generates a request for token credentials. + # + # @param options [Hash] The configuration parameters for the request. + # - :code - + # The authorization code. + # @private + # @return [Array] The request object. + # + # source://signet//lib/signet/oauth_2/client.rb#987 + def generate_access_token_request(options = T.unsafe(nil)); end + + # Generates an authenticated request for protected resources. + # + # @param options [Hash] The configuration parameters for the request. + # - :request - + # A pre-constructed request. An OAuth 2 Authorization header + # will be added to it, as well as an explicit Cache-Control + # `no-store` directive. + # - :method - + # The HTTP method for the request. Defaults to 'GET'. + # - :uri - + # The URI for the request. + # - :headers - + # The HTTP headers for the request. + # - :body - + # The HTTP body for the request. + # - :realm - + # The Authorization realm. See RFC 2617. + # @raise [ArgumentError] + # @return [Faraday::Request] The request object. + # + # source://signet//lib/signet/oauth_2/client.rb#1114 + def generate_authenticated_request(options = T.unsafe(nil)); end + + # Returns the inferred grant type, based on the current state of the + # client object. Returns `"none"` if the client has insufficient + # information to make an in-band authorization request. + # + # @return [String] The inferred grant type. + # + # source://signet//lib/signet/oauth_2/client.rb#902 + def grant_type; end + + # source://signet//lib/signet/oauth_2/client.rb#916 + def grant_type=(new_grant_type); end + + # Returns the scopes granted by the authorization server. + # + # @return [Array, nil] The scope of access returned by the authorization server. + # + # source://signet//lib/signet/oauth_2/client.rb#835 + def granted_scopes; end + + # Sets the scopes returned by authorization server for this client. + # + # @param new_granted_scopes [String, Array, nil] The scope of access returned by authorization server. This will + # ideally be expressed as space-delimited String. + # + # source://signet//lib/signet/oauth_2/client.rb#845 + def granted_scopes=(new_granted_scopes); end + + # Returns the ID token associated with this client. + # + # @return [String] The ID token. + # + # source://signet//lib/signet/oauth_2/client.rb#732 + def id_token; end + + # Sets the ID token associated with this client. + # + # @param new_id_token [String] The ID token. + # + # source://signet//lib/signet/oauth_2/client.rb#741 + def id_token=(new_id_token); end + + # Returns the timestamp the access token was issued at. + # + # @return [Time, nil] The access token issuance time. + # + # source://signet//lib/signet/oauth_2/client.rb#799 + def issued_at; end + + # Sets the timestamp the access token was issued at. + # + # @param new_issued_at [String, Integer, Time] The access token issuance time. + # + # source://signet//lib/signet/oauth_2/client.rb#808 + def issued_at=(new_issued_at); end + + # Returns the issuer ID associated with this client. + # Used only by the assertion grant type. + # + # @return [String] Issuer id. + # + # source://signet//lib/signet/oauth_2/client.rb#542 + def issuer; end + + # Sets the issuer ID associated with this client. + # Used only by the assertion grant type. + # + # @param new_issuer [String] Issuer ID (typical in email adddress form). + # + # source://signet//lib/signet/oauth_2/client.rb#552 + def issuer=(new_issuer); end + + # source://signet//lib/signet/oauth_2/client.rb#1075 + def orig_fetch_access_token!(options = T.unsafe(nil)); end + + # Returns the password associated with this client. + # Used only by the resource owner password credential access grant type. + # + # @return [String] The password. + # + # source://signet//lib/signet/oauth_2/client.rb#523 + def password; end + + # Sets the password associated with this client. + # Used only by the resource owner password credential access grant type. + # + # @param new_password [String] The password. + # + # source://signet//lib/signet/oauth_2/client.rb#533 + def password=(new_password); end + + # Returns the target resource owner for impersonation. + # Used only by the assertion grant type. + # + # @return [String] Target user for impersonation. + # + # source://signet//lib/signet/oauth_2/client.rb#580 + def person; end + + # Sets the target resource owner for impersonation. + # Used only by the assertion grant type. + # + # @param new_person [String] Target user for impersonation + # + # source://signet//lib/signet/oauth_2/client.rb#590 + def person=(new_person); end + + # Returns the target resource owner for impersonation. + # Used only by the assertion grant type. + # + # @return [String] Target user for impersonation. + # + # source://signet//lib/signet/oauth_2/client.rb#580 + def principal; end + + # Sets the target resource owner for impersonation. + # Used only by the assertion grant type. + # + # @param new_person [String] Target user for impersonation + # + # source://signet//lib/signet/oauth_2/client.rb#590 + def principal=(new_person); end + + # Returns the redirect URI for this client. + # + # @return [String] The redirect URI. + # + # source://signet//lib/signet/oauth_2/client.rb#480 + def redirect_uri; end + + # Sets the redirect URI for this client. + # + # @param new_redirect_uri [String] The redirect URI. + # + # source://signet//lib/signet/oauth_2/client.rb#489 + def redirect_uri=(new_redirect_uri); end + + # Refresh the access token, if possible + # + # source://signet//lib/signet/oauth_2/client.rb#1090 + def refresh!(options = T.unsafe(nil)); end + + # Returns the refresh token associated with this client. + # + # @return [String] The refresh token. + # + # source://signet//lib/signet/oauth_2/client.rb#698 + def refresh_token; end + + # Sets the refresh token associated with this client. + # + # @param new_refresh_token [String] The refresh token. + # + # source://signet//lib/signet/oauth_2/client.rb#707 + def refresh_token=(new_refresh_token); end + + # source://googleauth/1.11.0/lib/googleauth/signet.rb#74 + def retry_with_error(max_retry_count = T.unsafe(nil)); end + + # Returns the scope for this client. Scope is a list of access ranges + # defined by the authorization server. + # + # @return [Array] The scope of access the client is requesting. + # + # source://signet//lib/signet/oauth_2/client.rb#394 + def scope; end + + # Sets the scope for this client. + # + # @param new_scope [Array, String] The scope of access the client is requesting. This may be + # expressed as either an Array of String objects or as a + # space-delimited String. + # + # source://signet//lib/signet/oauth_2/client.rb#405 + def scope=(new_scope); end + + # Algorithm used for signing JWTs + # + # @return [String] Signing algorithm + # + # source://signet//lib/signet/oauth_2/client.rb#644 + def signing_algorithm; end + + # Returns the signing key associated with this client. + # Used only by the assertion grant type. + # + # @return [String, OpenSSL::PKey] Signing key + # + # source://signet//lib/signet/oauth_2/client.rb#627 + def signing_key; end + + # Sets the signing key when issuing assertions. + # Used only by the assertion grant type. + # + # @param new_key [String, OpenSSL::Pkey] Signing key. Either private key for RSA or string for HMAC algorithm + # + # source://signet//lib/signet/oauth_2/client.rb#637 + def signing_key=(new_key); end + + # Returns the client's current state value. + # + # @return [String] The state value. + # + # source://signet//lib/signet/oauth_2/client.rb#444 + def state; end + + # Sets the client's current state value. + # + # @param new_state [String] The state value. + # + # source://signet//lib/signet/oauth_2/client.rb#453 + def state=(new_state); end + + # The target "sub" when issuing assertions. + # Used in some Admin SDK APIs. + # + # source://signet//lib/signet/oauth_2/client.rb#601 + def sub; end + + # The target "sub" when issuing assertions. + # Used in some Admin SDK APIs. + # + # source://signet//lib/signet/oauth_2/client.rb#601 + def sub=(_arg0); end + + # Returns the final target audience for ID tokens fetched by this client. + # + # @return [String] The target audience. + # + # source://signet//lib/signet/oauth_2/client.rb#428 + def target_audience; end + + # Sets the final target audience for ID tokens fetched by this client. + # + # @param new_target_audience [String] The new target audience. + # + # source://signet//lib/signet/oauth_2/client.rb#436 + def target_audience=(new_target_audience); end + + # Serialize the client object to JSON. + # + # @note A serialized client contains sensitive information. Persist or transmit with care. + # @return [String] A serialized JSON representation of the client. + # + # source://signet//lib/signet/oauth_2/client.rb#950 + def to_json(*_args); end + + # source://signet//lib/signet/oauth_2/client.rb#926 + def to_jwt(options = T.unsafe(nil)); end + + # Returns the token credential URI for this client. + # + # @return [Addressable::URI] The token credential URI. + # + # source://signet//lib/signet/oauth_2/client.rb#315 + def token_credential_uri; end + + # Sets the token credential URI for this client. + # + # @param new_token_credential_uri [Addressable::URI, Hash, String, #to_str] The token credential URI. + # + # source://signet//lib/signet/oauth_2/client.rb#324 + def token_credential_uri=(new_token_credential_uri); end + + # source://googleauth/1.11.0/lib/googleauth/signet.rb#44 + def token_type; end + + # source://googleauth/1.11.0/lib/googleauth/signet.rb#49 + def universe_domain; end + + # source://googleauth/1.11.0/lib/googleauth/signet.rb#49 + def universe_domain=(_arg0); end + + # Updates an OAuth 2.0 client. + # + # @example + # client.update!( + # :code => 'i1WsRn1uB1', + # :access_token => 'FJQbwq9', + # :expires_in => 3600 + # ) + # @param options [Hash] The configuration parameters for the client. + # - `:authorization_uri` - + # The authorization server's HTTP endpoint capable of + # authenticating the end-user and obtaining authorization. + # - `:token_credential_uri` - + # The authorization server's HTTP endpoint capable of issuing + # tokens and refreshing expired tokens. + # - `:client_id` - + # A unique identifier issued to the client to identify itself to the + # authorization server. + # - `:client_secret` - + # A shared symmetric secret issued by the authorization server, + # which is used to authenticate the client. + # - `:scope` - + # The scope of the access request, expressed either as an Array + # or as a space-delimited String. + # - `:target_audience` - + # The final target audience for ID tokens fetched by this client, + # as a String. + # - `:state` - + # An arbitrary string designed to allow the client to maintain state. + # - `:code` - + # The authorization code received from the authorization server. + # - `:redirect_uri` - + # The redirection URI used in the initial request. + # - `:username` - + # The resource owner's username. + # - `:password` - + # The resource owner's password. + # - `:issuer` - + # Issuer ID when using assertion profile + # - `:audience` - + # Target audience for assertions + # - `:person` - + # Target user for assertions + # - `:expiry` - + # Number of seconds assertions are valid for + # - `:signing_key` - + # Signing key when using assertion profile + # - `:refresh_token` - + # The refresh token associated with the access token + # to be refreshed. + # - `:access_token` - + # The current access token for this client. + # - `:access_type` - + # The current access type parameter for #authorization_uri. + # - `:id_token` - + # The current ID token for this client. + # - `:extension_parameters` - + # When using an extension grant type, this is the set of parameters used + # by that extension. + # - `:granted_scopes` - + # All scopes granted by authorization server. + # @see Signet::OAuth2::Client#initialize + # @see Signet::OAuth2::Client#update_token! + # + # source://signet//lib/signet/oauth_2/client.rb#185 + def update!(options = T.unsafe(nil)); end + + # Updates an OAuth 2.0 client. + # + # @example + # client.update!( + # :refresh_token => 'n4E9O119d', + # :access_token => 'FJQbwq9', + # :expires_in => 3600 + # ) + # @param options [Hash] The configuration parameters related to the token. + # - :refresh_token - + # The refresh token associated with the access token + # to be refreshed. + # - :access_token - + # The current access token for this client. + # - :id_token - + # The current ID token for this client. + # - :expires_in - + # The time in seconds until access token expiration. + # - :expires_at - + # The time as an integer number of seconds since the Epoch + # - :issued_at - + # The timestamp that the token was issued at. + # @see Signet::OAuth2::Client#initialize + # @see Signet::OAuth2::Client#update! + # + # source://googleauth/1.11.0/lib/googleauth/signet.rb#30 + def update_token!(options = T.unsafe(nil)); end + + # source://signet//lib/signet/oauth_2/client.rb#241 + def update_token_signet_base(options = T.unsafe(nil)); end + + # Returns the username associated with this client. + # Used only by the resource owner password credential access grant type. + # + # @return [String] The username. + # + # source://signet//lib/signet/oauth_2/client.rb#504 + def username; end + + # Sets the username associated with this client. + # Used only by the resource owner password credential access grant type. + # + # @param new_username [String] The username. + # + # source://signet//lib/signet/oauth_2/client.rb#514 + def username=(new_username); end + + private + + # source://signet//lib/signet/oauth_2/client.rb#1233 + def deep_hash_normalize(old_hash); end + + # source://signet//lib/signet/oauth_2/client.rb#1239 + def normalize_timestamp(time); end + + # Convert all keys in this hash (nested) to symbols for uniform retrieval + # + # source://signet//lib/signet/oauth_2/client.rb#1225 + def recursive_hash_normalize_keys(val); end + + # source://signet//lib/signet/oauth_2/client.rb#1256 + def set_relative_expires_at(issued_at, expires_in); end + + # Check if the URI is a out-of-band + # + # @private + # @return [Boolean] + # + # source://signet//lib/signet/oauth_2/client.rb#1220 + def uri_is_oob?(uri); end + + # Check if URI is Google's postmessage flow (not a valid redirect_uri by spec, but allowed) + # + # @private + # @return [Boolean] + # + # source://signet//lib/signet/oauth_2/client.rb#1213 + def uri_is_postmessage?(uri); end +end + +# source://signet//lib/signet/oauth_2/client.rb#28 +Signet::OAuth2::Client::OOB_MODES = T.let(T.unsafe(nil), Array) + +# An error indicating the client failed to parse a value. +# +# source://signet//lib/signet/errors.rb#26 +class Signet::ParseError < ::StandardError; end + +# An error indicating that the server failed at processing the request +# due to a internal error +# +# source://signet//lib/signet/errors.rb#39 +class Signet::RemoteServerError < ::StandardError; end + +# An error indicating that the server sent an unexpected http status +# +# source://signet//lib/signet/errors.rb#44 +class Signet::UnexpectedStatusError < ::StandardError; end + +# An error indicating that the client has aborted an operation that +# would have been unsafe to perform. +# +# source://signet//lib/signet/errors.rb#21 +class Signet::UnsafeOperationError < ::StandardError; end + +# source://signet//lib/signet/version.rb#16 +Signet::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/spoom@1.3.0.rbi b/sorbet/rbi/gems/spoom@1.3.2.rbi similarity index 99% rename from sorbet/rbi/gems/spoom@1.3.0.rbi rename to sorbet/rbi/gems/spoom@1.3.2.rbi index 2e31a1c4..282a86f2 100644 --- a/sorbet/rbi/gems/spoom@1.3.0.rbi +++ b/sorbet/rbi/gems/spoom@1.3.2.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `spoom` gem. # Please instead update this file by running `bin/tapioca gem spoom`. + # source://spoom//lib/spoom.rb#7 module Spoom; end @@ -997,7 +998,7 @@ class Spoom::Coverage::D3::ColorPalette < ::T::Struct prop :strong, ::String class << self - # source://sorbet-runtime/0.5.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -1337,7 +1338,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.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -1511,7 +1512,7 @@ class Spoom::Deadcode::Definition < ::T::Struct def to_json(*args); end class << self - # source://sorbet-runtime/0.5.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -2405,7 +2406,7 @@ class Spoom::Deadcode::Reference < ::T::Struct def method?; end class << self - # source://sorbet-runtime/0.5.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -2523,8 +2524,8 @@ end # source://spoom//lib/spoom/deadcode/remover.rb#549 class Spoom::Deadcode::Remover::NodeFinder < ::Spoom::Deadcode::Visitor # source://spoom//lib/spoom/deadcode/remover.rb#621 - sig { params(location: ::Spoom::Deadcode::Location).void } - def initialize(location); end + sig { params(location: ::Spoom::Deadcode::Location, kind: T.nilable(::Spoom::Deadcode::Definition::Kind)).void } + def initialize(location, kind); end # source://spoom//lib/spoom/deadcode/remover.rb#615 sig { returns(T.nilable(::Prism::Node)) } @@ -2534,7 +2535,7 @@ class Spoom::Deadcode::Remover::NodeFinder < ::Spoom::Deadcode::Visitor sig { returns(T::Array[::Prism::Node]) } def nodes_nesting; end - # source://spoom//lib/spoom/deadcode/remover.rb#629 + # source://spoom//lib/spoom/deadcode/remover.rb#630 sig { override.params(node: T.nilable(::Prism::Node)).void } def visit(node); end @@ -2647,7 +2648,7 @@ class Spoom::Deadcode::Send < ::T::Struct def each_arg_assoc(&block); end class << self - # source://sorbet-runtime/0.5.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -3266,7 +3267,7 @@ class Spoom::ExecResult < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -3464,7 +3465,7 @@ class Spoom::FileTree::Node < ::T::Struct def path; end class << self - # source://sorbet-runtime/0.5.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -3530,7 +3531,7 @@ class Spoom::Git::Commit < ::T::Struct def timestamp; end class << self - # source://sorbet-runtime/0.5.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end # Parse a line formatted as `%h %at` into a `Commit` @@ -3642,7 +3643,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.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -3675,7 +3676,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.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -3733,7 +3734,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.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -3758,7 +3759,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.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -3821,7 +3822,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.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -3859,7 +3860,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.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -3925,7 +3926,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.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end diff --git a/sorbet/rbi/gems/sprockets-rails@3.4.2.rbi b/sorbet/rbi/gems/sprockets-rails@3.4.2.rbi index 7a1dd02f..97aa2521 100644 --- a/sorbet/rbi/gems/sprockets-rails@3.4.2.rbi +++ b/sorbet/rbi/gems/sprockets-rails@3.4.2.rbi @@ -4,80 +4,81 @@ # This is an autogenerated file for types exported from the `sprockets-rails` gem. # Please instead update this file by running `bin/tapioca gem sprockets-rails`. + # source://sprockets-rails//lib/sprockets/railtie.rb#17 module Rails class << self - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def app_class; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def app_class=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#43 + # source://railties/7.1.3.3/lib/rails.rb#43 def application; end - # source://railties/7.1.3.2/lib/rails.rb#41 + # source://railties/7.1.3.3/lib/rails.rb#41 def application=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#123 + # source://railties/7.1.3.3/lib/rails.rb#123 def autoloaders; end - # source://railties/7.1.3.2/lib/rails.rb#54 + # source://railties/7.1.3.3/lib/rails.rb#54 def backtrace_cleaner; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def cache; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def cache=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#50 + # source://railties/7.1.3.3/lib/rails.rb#50 def configuration; end - # source://railties/7.1.3.2/lib/rails/deprecator.rb#4 + # source://railties/7.1.3.3/lib/rails/deprecator.rb#4 def deprecator; end - # source://railties/7.1.3.2/lib/rails.rb#72 + # source://railties/7.1.3.3/lib/rails.rb#72 def env; end - # source://railties/7.1.3.2/lib/rails.rb#79 + # source://railties/7.1.3.3/lib/rails.rb#79 def env=(environment); end - # source://railties/7.1.3.2/lib/rails.rb#90 + # source://railties/7.1.3.3/lib/rails.rb#90 def error; end - # source://railties/7.1.3.2/lib/rails/gem_version.rb#5 + # source://railties/7.1.3.3/lib/rails/gem_version.rb#5 def gem_version; end - # source://railties/7.1.3.2/lib/rails.rb#103 + # source://railties/7.1.3.3/lib/rails.rb#103 def groups(*groups); end - # source://railties/7.1.3.2/lib/rails.rb#47 + # source://railties/7.1.3.3/lib/rails.rb#47 def initialize!(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2/lib/rails.rb#47 + # source://railties/7.1.3.3/lib/rails.rb#47 def initialized?(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def logger; end - # source://railties/7.1.3.2/lib/rails.rb#42 + # source://railties/7.1.3.3/lib/rails.rb#42 def logger=(_arg0); end - # source://railties/7.1.3.2/lib/rails.rb#119 + # source://railties/7.1.3.3/lib/rails.rb#119 def public_path; end - # source://railties/7.1.3.2/lib/rails.rb#63 + # source://railties/7.1.3.3/lib/rails.rb#63 def root; end - # source://railties/7.1.3.2/lib/rails/version.rb#7 + # source://railties/7.1.3.3/lib/rails/version.rb#7 def version; end end end # source://sprockets-rails//lib/sprockets/railtie.rb#18 class Rails::Application < ::Rails::Engine - # source://railties/7.1.3.2/lib/rails/application.rb#109 + # source://railties/7.1.3.3/lib/rails/application.rb#109 def initialize(initial_variable_values = T.unsafe(nil), &block); end # Called from asset helpers to alert you if you reference an asset URL that @@ -108,91 +109,85 @@ class Rails::Application < ::Rails::Engine # source://sprockets-rails//lib/sprockets/railtie.rb#33 def assets_manifest=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application.rb#102 + # source://railties/7.1.3.3/lib/rails/application.rb#102 def autoloaders; end - # source://railties/7.1.3.2/lib/rails/engine.rb#517 + # source://railties/7.1.3.3/lib/rails/engine.rb#517 def build_middleware_stack; end - # source://railties/7.1.3.2/lib/rails/application.rb#437 + # source://railties/7.1.3.3/lib/rails/application.rb#437 def config; end - # source://railties/7.1.3.2/lib/rails/application.rb#441 + # source://railties/7.1.3.3/lib/rails/application.rb#441 def config=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application.rb#274 + # source://railties/7.1.3.3/lib/rails/application.rb#274 def config_for(name, env: T.unsafe(nil)); end - # source://railties/7.1.3.2/lib/rails/application.rb#357 + # source://railties/7.1.3.3/lib/rails/application.rb#357 def console(&blk); end - # source://railties/7.1.3.2/lib/rails/application.rb#516 + # source://railties/7.1.3.3/lib/rails/application.rb#516 def credentials; end - # source://railties/7.1.3.2/lib/rails/application.rb#460 + # source://railties/7.1.3.3/lib/rails/application.rb#460 def credentials=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application.rb#104 + # source://railties/7.1.3.3/lib/rails/application.rb#104 def default_url_options(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2/lib/rails/application.rb#104 + # source://railties/7.1.3.3/lib/rails/application.rb#104 def default_url_options=(arg); end - # source://railties/7.1.3.2/lib/rails/application.rb#230 + # source://railties/7.1.3.3/lib/rails/application.rb#230 def deprecators; end - # source://railties/7.1.3.2/lib/rails/application.rb#574 + # source://railties/7.1.3.3/lib/rails/application.rb#574 def eager_load!; end - # source://railties/7.1.3.2/lib/rails/application.rb#535 + # source://railties/7.1.3.3/lib/rails/application.rb#535 def encrypted(path, key_path: T.unsafe(nil), env_key: T.unsafe(nil)); end - # source://railties/7.1.3.2/lib/rails/application.rb#303 + # source://railties/7.1.3.3/lib/rails/application.rb#303 def env_config; end - # source://railties/7.1.3.2/lib/rails/application.rb#102 + # source://railties/7.1.3.3/lib/rails/application.rb#102 def executor; end - # source://railties/7.1.3.2/lib/rails/application.rb#363 + # source://railties/7.1.3.3/lib/rails/application.rb#363 def generators(&blk); end - # source://railties/7.1.3.2/lib/rails/application.rb#548 + # source://railties/7.1.3.3/lib/rails/application.rb#548 def helpers_paths; end - # source://importmap-rails/2.0.1/lib/importmap/engine.rb#4 - def importmap; end - - # source://importmap-rails/2.0.1/lib/importmap/engine.rb#4 - def importmap=(_arg0); end - - # source://railties/7.1.3.2/lib/rails/application.rb#424 + # source://railties/7.1.3.3/lib/rails/application.rb#424 def initialize!(group = T.unsafe(nil)); end - # source://railties/7.1.3.2/lib/rails/application.rb#134 + # source://railties/7.1.3.3/lib/rails/application.rb#134 def initialized?; end - # source://railties/7.1.3.2/lib/rails/application.rb#345 + # source://railties/7.1.3.3/lib/rails/application.rb#345 def initializer(name, opts = T.unsafe(nil), &block); end - # source://railties/7.1.3.2/lib/rails/application.rb#431 + # source://railties/7.1.3.3/lib/rails/application.rb#431 def initializers; end - # source://railties/7.1.3.2/lib/rails/application.rb#374 + # source://railties/7.1.3.3/lib/rails/application.rb#374 def isolate_namespace(mod); end - # source://railties/7.1.3.2/lib/rails/application.rb#161 + # source://railties/7.1.3.3/lib/rails/application.rb#161 def key_generator(secret_key_base = T.unsafe(nil)); end - # source://railties/7.1.3.2/lib/rails/application.rb#568 + # source://railties/7.1.3.3/lib/rails/application.rb#568 def load_generators(app = T.unsafe(nil)); end - # source://railties/7.1.3.2/lib/rails/application.rb#222 + # source://railties/7.1.3.3/lib/rails/application.rb#222 def message_verifier(verifier_name); end - # source://railties/7.1.3.2/lib/rails/application.rb#197 + # source://railties/7.1.3.3/lib/rails/application.rb#197 def message_verifiers; end - # source://railties/7.1.3.2/lib/rails/application.rb#564 + # source://railties/7.1.3.3/lib/rails/application.rb#564 def migration_railties; end # Lazy-load the precompile list so we don't cause asset compilation at app @@ -202,123 +197,123 @@ class Rails::Application < ::Rails::Engine # source://sprockets-rails//lib/sprockets/railtie.rb#51 def precompiled_assets(clear_cache = T.unsafe(nil)); end - # source://railties/7.1.3.2/lib/rails/application.rb#338 + # source://railties/7.1.3.3/lib/rails/application.rb#338 def rake_tasks(&block); end - # source://railties/7.1.3.2/lib/rails/application.rb#153 + # source://railties/7.1.3.3/lib/rails/application.rb#153 def reload_routes!; end - # source://railties/7.1.3.2/lib/rails/application.rb#102 + # source://railties/7.1.3.3/lib/rails/application.rb#102 def reloader; end - # source://railties/7.1.3.2/lib/rails/application.rb#102 + # source://railties/7.1.3.3/lib/rails/application.rb#102 def reloaders; end - # source://railties/7.1.3.2/lib/rails/application.rb#400 + # source://railties/7.1.3.3/lib/rails/application.rb#400 def require_environment!; end - # source://railties/7.1.3.2/lib/rails/application.rb#405 + # source://railties/7.1.3.3/lib/rails/application.rb#405 def routes_reloader; end - # source://railties/7.1.3.2/lib/rails/application.rb#138 + # source://railties/7.1.3.3/lib/rails/application.rb#138 def run_load_hooks!; end - # source://railties/7.1.3.2/lib/rails/application.rb#351 + # source://railties/7.1.3.3/lib/rails/application.rb#351 def runner(&blk); end - # source://railties/7.1.3.2/lib/rails/application.rb#100 + # source://railties/7.1.3.3/lib/rails/application.rb#100 def sandbox; end - # source://railties/7.1.3.2/lib/rails/application.rb#100 + # source://railties/7.1.3.3/lib/rails/application.rb#100 def sandbox=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application.rb#100 + # source://railties/7.1.3.3/lib/rails/application.rb#100 def sandbox?; end - # source://railties/7.1.3.2/lib/rails/application.rb#478 + # source://railties/7.1.3.3/lib/rails/application.rb#478 def secret_key_base; end - # source://railties/7.1.3.2/lib/rails/application.rb#443 + # source://railties/7.1.3.3/lib/rails/application.rb#443 def secrets; end - # source://railties/7.1.3.2/lib/rails/application.rb#460 + # source://railties/7.1.3.3/lib/rails/application.rb#460 def secrets=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application.rb#369 + # source://railties/7.1.3.3/lib/rails/application.rb#369 def server(&blk); end - # source://railties/7.1.3.2/lib/rails/application.rb#544 + # source://railties/7.1.3.3/lib/rails/application.rb#544 def to_app; end - # source://railties/7.1.3.2/lib/rails/application.rb#412 + # source://railties/7.1.3.3/lib/rails/application.rb#412 def watchable_args; end protected - # source://railties/7.1.3.2/lib/rails/application.rb#647 + # source://railties/7.1.3.3/lib/rails/application.rb#647 def default_middleware_stack; end - # source://railties/7.1.3.2/lib/rails/application.rb#662 + # source://railties/7.1.3.3/lib/rails/application.rb#662 def ensure_generator_templates_added; end - # source://railties/7.1.3.2/lib/rails/application.rb#613 + # source://railties/7.1.3.3/lib/rails/application.rb#613 def ordered_railties; end - # source://railties/7.1.3.2/lib/rails/application.rb#635 + # source://railties/7.1.3.3/lib/rails/application.rb#635 def railties_initializers(current); end - # source://railties/7.1.3.2/lib/rails/application.rb#602 + # source://railties/7.1.3.3/lib/rails/application.rb#602 def run_console_blocks(app); end - # source://railties/7.1.3.2/lib/rails/application.rb#592 + # source://railties/7.1.3.3/lib/rails/application.rb#592 def run_generators_blocks(app); end - # source://railties/7.1.3.2/lib/rails/application.rb#597 + # source://railties/7.1.3.3/lib/rails/application.rb#597 def run_runner_blocks(app); end - # source://railties/7.1.3.2/lib/rails/application.rb#607 + # source://railties/7.1.3.3/lib/rails/application.rb#607 def run_server_blocks(app); end - # source://railties/7.1.3.2/lib/rails/application.rb#581 + # source://railties/7.1.3.3/lib/rails/application.rb#581 def run_tasks_blocks(app); end - # source://railties/7.1.3.2/lib/rails/application.rb#652 + # source://railties/7.1.3.3/lib/rails/application.rb#652 def validate_secret_key_base(secret_key_base); end private - # source://railties/7.1.3.2/lib/rails/application.rb#700 + # source://railties/7.1.3.3/lib/rails/application.rb#700 def build_middleware; end - # source://railties/7.1.3.2/lib/rails/application.rb#693 + # source://railties/7.1.3.3/lib/rails/application.rb#693 def build_request(env); end - # source://railties/7.1.3.2/lib/rails/application.rb#704 + # source://railties/7.1.3.3/lib/rails/application.rb#704 def coerce_same_site_protection(protection); end - # source://railties/7.1.3.2/lib/rails/application.rb#708 + # source://railties/7.1.3.3/lib/rails/application.rb#708 def filter_parameters; end - # source://railties/7.1.3.2/lib/rails/application.rb#668 + # source://railties/7.1.3.3/lib/rails/application.rb#668 def generate_local_secret; end - # source://railties/7.1.3.2/lib/rails/application.rb#687 + # source://railties/7.1.3.3/lib/rails/application.rb#687 def secrets_secret_key_base; end class << self - # source://railties/7.1.3.2/lib/rails/application.rb#393 + # source://railties/7.1.3.3/lib/rails/application.rb#393 def add_lib_to_load_path!(root); end - # source://railties/7.1.3.2/lib/rails/application.rb#84 + # source://railties/7.1.3.3/lib/rails/application.rb#84 def create(initial_variable_values = T.unsafe(nil), &block); end - # source://railties/7.1.3.2/lib/rails/application.rb#88 + # source://railties/7.1.3.3/lib/rails/application.rb#88 def find_root(from); end - # source://railties/7.1.3.2/lib/rails/application.rb#71 + # source://railties/7.1.3.3/lib/rails/application.rb#71 def inherited(base); end - # source://railties/7.1.3.2/lib/rails/application.rb#80 + # source://railties/7.1.3.3/lib/rails/application.rb#80 def instance; end def new(*_arg0); end @@ -330,539 +325,539 @@ end # # source://sprockets-rails//lib/sprockets/railtie.rb#21 class Rails::Application::Configuration < ::Rails::Engine::Configuration - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#30 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#30 def initialize(*_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def add_autoload_paths_to_load_path; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def add_autoload_paths_to_load_path=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def allow_concurrency; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def allow_concurrency=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#541 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#541 def annotations; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#28 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#28 def api_only; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#375 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#375 def api_only=(value); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def asset_host; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def asset_host=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def assume_ssl; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def assume_ssl=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def autoflush_log; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def autoflush_log=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#473 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#473 def autoload_lib(ignore:); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#485 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#485 def autoload_lib_once(ignore:); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def beginning_of_week; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def beginning_of_week=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#387 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#387 def broadcast_log_level; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def cache_classes; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def cache_classes=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def cache_store; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def cache_store=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#497 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#497 def colorize_logging; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#501 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#501 def colorize_logging=(val); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def consider_all_requests_local; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def consider_all_requests_local=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def console; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def console=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#546 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#546 def content_security_policy(&block); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def content_security_policy_nonce_directives; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def content_security_policy_nonce_directives=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def content_security_policy_nonce_generator; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def content_security_policy_nonce_generator=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def content_security_policy_report_only; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def content_security_policy_report_only=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def credentials; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def credentials=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#436 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#436 def database_configuration; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#391 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#391 def debug_exception_response_format; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#395 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#395 def debug_exception_response_format=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#563 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#563 def default_log_file; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def disable_sandbox; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def disable_sandbox=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def dom_testing_default_html_version; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def dom_testing_default_html_version=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def eager_load; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def eager_load=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#357 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#357 def enable_dependency_loading; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#362 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#362 def enable_dependency_loading=(value); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#343 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#343 def enable_reloading; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#347 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#347 def enable_reloading=(value); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#28 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#28 def encoding; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#367 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#367 def encoding=(value); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def exceptions_app; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def exceptions_app=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def file_watcher; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def file_watcher=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def filter_parameters; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def filter_parameters=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def filter_redirect; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def filter_redirect=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def force_ssl; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def force_ssl=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def helpers_paths; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def helpers_paths=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def host_authorization; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def host_authorization=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def hosts; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def hosts=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#575 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#575 def inspect; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#418 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#418 def load_database_yaml; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#92 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#92 def load_defaults(target_version); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#28 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#28 def loaded_config_version; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def log_file_size; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def log_file_size=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def log_formatter; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def log_formatter=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#28 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#28 def log_level; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#382 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#382 def log_level=(level); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def log_tags; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def log_tags=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def logger; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def logger=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#397 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#397 def paths; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#555 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#555 def permissions_policy(&block); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def precompile_filter_parameters; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def precompile_filter_parameters=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def public_file_server; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def public_file_server=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def railties_order; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def railties_order=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def rake_eager_load; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def rake_eager_load=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def read_encrypted_secrets; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def read_encrypted_secrets=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def relative_url_root; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def relative_url_root=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def reload_classes_only_on_change; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def reload_classes_only_on_change=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#339 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#339 def reloading_enabled?; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def require_master_key; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def require_master_key=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def sandbox_by_default; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def sandbox_by_default=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def secret_key_base; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def secret_key_base=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def server_timing; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def server_timing=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def session_options; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def session_options=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#521 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#521 def session_store(new_session_store = T.unsafe(nil), **options); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#537 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#537 def session_store?; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def ssl_options; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def ssl_options=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def time_zone; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def time_zone=(_arg0); end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def x; end - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#14 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 def x=(_arg0); end private - # source://railties/7.1.3.2/lib/rails/application/configuration.rb#600 + # source://railties/7.1.3.3/lib/rails/application/configuration.rb#600 def credentials_defaults; end end # source://sprockets-rails//lib/sprockets/railtie.rb#57 class Rails::Engine < ::Rails::Railtie - # source://railties/7.1.3.2/lib/rails/engine.rb#439 + # source://railties/7.1.3.3/lib/rails/engine.rb#439 def initialize; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 def _load_seed_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 def _run_load_seed_callbacks(&block); end - # source://railties/7.1.3.2/lib/rails/engine.rb#517 + # source://railties/7.1.3.3/lib/rails/engine.rb#517 def app; end - # source://railties/7.1.3.2/lib/rails/engine.rb#534 + # source://railties/7.1.3.3/lib/rails/engine.rb#534 def call(env); end - # source://railties/7.1.3.2/lib/rails/engine.rb#553 + # source://railties/7.1.3.3/lib/rails/engine.rb#553 def config; end - # source://railties/7.1.3.2/lib/rails/engine.rb#491 + # source://railties/7.1.3.3/lib/rails/engine.rb#491 def eager_load!; end - # source://railties/7.1.3.2/lib/rails/engine.rb#529 + # source://railties/7.1.3.3/lib/rails/engine.rb#529 def endpoint; end - # source://railties/7.1.3.2/lib/rails/engine.rb#437 + # source://railties/7.1.3.3/lib/rails/engine.rb#437 def engine_name(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2/lib/rails/engine.rb#540 + # source://railties/7.1.3.3/lib/rails/engine.rb#540 def env_config; end - # source://railties/7.1.3.2/lib/rails/engine.rb#501 + # source://railties/7.1.3.3/lib/rails/engine.rb#501 def helpers; end - # source://railties/7.1.3.2/lib/rails/engine.rb#512 + # source://railties/7.1.3.3/lib/rails/engine.rb#512 def helpers_paths; end - # source://railties/7.1.3.2/lib/rails/engine.rb#437 + # source://railties/7.1.3.3/lib/rails/engine.rb#437 def isolated?(&block); end - # source://railties/7.1.3.2/lib/rails/engine.rb#453 + # source://railties/7.1.3.3/lib/rails/engine.rb#453 def load_console(app = T.unsafe(nil)); end - # source://railties/7.1.3.2/lib/rails/engine.rb#477 + # source://railties/7.1.3.3/lib/rails/engine.rb#477 def load_generators(app = T.unsafe(nil)); end - # source://railties/7.1.3.2/lib/rails/engine.rb#462 + # source://railties/7.1.3.3/lib/rails/engine.rb#462 def load_runner(app = T.unsafe(nil)); end - # source://railties/7.1.3.2/lib/rails/engine.rb#561 + # source://railties/7.1.3.3/lib/rails/engine.rb#561 def load_seed; end - # source://railties/7.1.3.2/lib/rails/engine.rb#486 + # source://railties/7.1.3.3/lib/rails/engine.rb#486 def load_server(app = T.unsafe(nil)); end - # source://railties/7.1.3.2/lib/rails/engine.rb#469 + # source://railties/7.1.3.3/lib/rails/engine.rb#469 def load_tasks(app = T.unsafe(nil)); end - # source://railties/7.1.3.2/lib/rails/engine.rb#436 + # source://railties/7.1.3.3/lib/rails/engine.rb#436 def middleware(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2/lib/rails/engine.rb#436 + # source://railties/7.1.3.3/lib/rails/engine.rb#436 def paths(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2/lib/rails/engine.rb#496 + # source://railties/7.1.3.3/lib/rails/engine.rb#496 def railties; end - # source://railties/7.1.3.2/lib/rails/engine.rb#436 + # source://railties/7.1.3.3/lib/rails/engine.rb#436 def root(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2/lib/rails/engine.rb#546 + # source://railties/7.1.3.3/lib/rails/engine.rb#546 def routes(&block); end - # source://railties/7.1.3.2/lib/rails/engine.rb#677 + # source://railties/7.1.3.3/lib/rails/engine.rb#677 def routes?; end protected - # source://railties/7.1.3.2/lib/rails/engine.rb#682 + # source://railties/7.1.3.3/lib/rails/engine.rb#682 def run_tasks_blocks(*_arg0); end private - # source://railties/7.1.3.2/lib/rails/engine.rb#714 + # source://railties/7.1.3.3/lib/rails/engine.rb#714 def _all_autoload_once_paths; end - # source://railties/7.1.3.2/lib/rails/engine.rb#718 + # source://railties/7.1.3.3/lib/rails/engine.rb#718 def _all_autoload_paths; end - # source://railties/7.1.3.2/lib/rails/engine.rb#727 + # source://railties/7.1.3.3/lib/rails/engine.rb#727 def _all_load_paths(add_autoload_paths_to_load_path); end - # source://railties/7.1.3.2/lib/rails/engine.rb#751 + # source://railties/7.1.3.3/lib/rails/engine.rb#751 def build_middleware; end - # source://railties/7.1.3.2/lib/rails/engine.rb#743 + # source://railties/7.1.3.3/lib/rails/engine.rb#743 def build_request(env); end - # source://railties/7.1.3.2/lib/rails/engine.rb#710 + # source://railties/7.1.3.3/lib/rails/engine.rb#710 def default_middleware_stack; end - # source://railties/7.1.3.2/lib/rails/engine.rb#738 + # source://railties/7.1.3.3/lib/rails/engine.rb#738 def fixtures_in_root_and_not_in_vendor?(fixtures); end - # source://railties/7.1.3.2/lib/rails/engine.rb#694 + # source://railties/7.1.3.3/lib/rails/engine.rb#694 def has_migrations?; end - # source://railties/7.1.3.2/lib/rails/engine.rb#688 + # source://railties/7.1.3.3/lib/rails/engine.rb#688 def load_config_initializer(initializer); end class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 def _load_seed_callbacks; end - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 def _load_seed_callbacks=(value); end - # source://railties/7.1.3.2/lib/rails/engine.rb#354 + # source://railties/7.1.3.3/lib/rails/engine.rb#354 def called_from; end - # source://railties/7.1.3.2/lib/rails/engine.rb#354 + # source://railties/7.1.3.3/lib/rails/engine.rb#354 def called_from=(_arg0); end - # source://railties/7.1.3.2/lib/rails/engine.rb#359 + # source://railties/7.1.3.3/lib/rails/engine.rb#359 def eager_load!(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2/lib/rails/engine.rb#379 + # source://railties/7.1.3.3/lib/rails/engine.rb#379 def endpoint(endpoint = T.unsafe(nil)); end - # source://railties/7.1.3.2/lib/rails/railtie.rb#176 + # source://railties/7.1.3.3/lib/rails/railtie.rb#176 def engine_name(name = T.unsafe(nil)); end - # source://railties/7.1.3.2/lib/rails/engine.rb#423 + # source://railties/7.1.3.3/lib/rails/engine.rb#423 def find(path); end - # source://railties/7.1.3.2/lib/rails/engine.rb#375 + # source://railties/7.1.3.3/lib/rails/engine.rb#375 def find_root(from); end - # source://railties/7.1.3.2/lib/rails/engine.rb#698 + # source://railties/7.1.3.3/lib/rails/engine.rb#698 def find_root_with_flag(flag, root_path, default = T.unsafe(nil)); end - # source://railties/7.1.3.2/lib/rails/engine.rb#361 + # source://railties/7.1.3.3/lib/rails/engine.rb#361 def inherited(base); end - # source://railties/7.1.3.2/lib/rails/engine.rb#385 + # source://railties/7.1.3.3/lib/rails/engine.rb#385 def isolate_namespace(mod); end - # source://railties/7.1.3.2/lib/rails/engine.rb#354 + # source://railties/7.1.3.3/lib/rails/engine.rb#354 def isolated; end - # source://railties/7.1.3.2/lib/rails/engine.rb#354 + # source://railties/7.1.3.3/lib/rails/engine.rb#354 def isolated=(_arg0); end - # source://railties/7.1.3.2/lib/rails/engine.rb#354 + # source://railties/7.1.3.3/lib/rails/engine.rb#354 def isolated?; end end end diff --git a/sorbet/rbi/gems/sprockets@4.2.1.rbi b/sorbet/rbi/gems/sprockets@4.2.1.rbi index 854f19e8..6f5f380f 100644 --- a/sorbet/rbi/gems/sprockets@4.2.1.rbi +++ b/sorbet/rbi/gems/sprockets@4.2.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `sprockets` gem. # Please instead update this file by running `bin/tapioca gem sprockets`. + # Define some basic Sprockets error classes # # source://sprockets//lib/sprockets/version.rb#2 diff --git a/sorbet/rbi/gems/sqlite3@1.7.3.rbi b/sorbet/rbi/gems/sqlite3@1.7.3.rbi index d7ff4383..c0f3aa09 100644 --- a/sorbet/rbi/gems/sqlite3@1.7.3.rbi +++ b/sorbet/rbi/gems/sqlite3@1.7.3.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `sqlite3` gem. # Please instead update this file by running `bin/tapioca gem sqlite3`. + # source://sqlite3//lib/sqlite3/constants.rb#1 module SQLite3 class << self diff --git a/sorbet/rbi/gems/stringio@3.1.0.rbi b/sorbet/rbi/gems/stringio@3.1.0.rbi index 01a26ea5..0b17e914 100644 --- a/sorbet/rbi/gems/stringio@3.1.0.rbi +++ b/sorbet/rbi/gems/stringio@3.1.0.rbi @@ -4,5 +4,6 @@ # This is an autogenerated file for types exported from the `stringio` gem. # Please instead update this file by running `bin/tapioca gem stringio`. + # THIS IS AN EMPTY RBI FILE. # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/strscan@3.1.0.rbi b/sorbet/rbi/gems/strscan@3.1.0.rbi new file mode 100644 index 00000000..1f754d97 --- /dev/null +++ b/sorbet/rbi/gems/strscan@3.1.0.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `strscan` gem. +# Please instead update this file by running `bin/tapioca gem strscan`. + + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/tapioca@0.13.3.rbi b/sorbet/rbi/gems/tapioca@0.14.2.rbi similarity index 95% rename from sorbet/rbi/gems/tapioca@0.13.3.rbi rename to sorbet/rbi/gems/tapioca@0.14.2.rbi index 5d3e562a..bb08c334 100644 --- a/sorbet/rbi/gems/tapioca@0.13.3.rbi +++ b/sorbet/rbi/gems/tapioca@0.14.2.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `tapioca` gem. # Please instead update this file by running `bin/tapioca gem tapioca`. + class Bundler::Dependency < ::Gem::Dependency include ::Tapioca::BundlerExt::AutoRequireHook end @@ -54,7 +55,7 @@ module RBI; end # source://tapioca//lib/tapioca/rbi_ext/model.rb#5 class RBI::Tree < ::RBI::NodeWithComments - # source://rbi/0.1.11/lib/rbi/model.rb#119 + # source://rbi/0.1.13/lib/rbi/model.rb#119 sig do params( loc: T.nilable(::RBI::Loc), @@ -64,19 +65,19 @@ class RBI::Tree < ::RBI::NodeWithComments end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi/0.1.11/lib/rbi/model.rb#126 + # source://rbi/0.1.13/lib/rbi/model.rb#126 sig { params(node: ::RBI::Node).void } def <<(node); end - # source://rbi/0.1.11/lib/rbi/printer.rb#226 + # source://rbi/0.1.13/lib/rbi/printer.rb#226 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi/0.1.11/lib/rbi/rewriters/add_sig_templates.rb#66 + # source://rbi/0.1.13/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.11/lib/rbi/rewriters/annotate.rb#49 + # source://rbi/0.1.13/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,9 +141,15 @@ class RBI::Tree < ::RBI::NodeWithComments 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//lib/tapioca/rbi_ext/model.rb#134 - sig { params(parameters: T::Hash[T.any(::String, ::Symbol), ::String], return_type: ::String).returns(::RBI::Sig) } - def create_sig(parameters:, return_type: T.unsafe(nil)); end + # source://tapioca//lib/tapioca/rbi_ext/model.rb#135 + sig do + params( + parameters: T::Hash[T.any(::String, ::Symbol), ::String], + type_parameters: T::Array[::String], + return_type: ::String + ).returns(::RBI::Sig) + end + def create_sig(parameters:, type_parameters: T.unsafe(nil), return_type: T.unsafe(nil)); end # source://tapioca//lib/tapioca/rbi_ext/model.rb#74 sig do @@ -157,27 +164,27 @@ 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.11/lib/rbi/rewriters/deannotate.rb#41 + # source://rbi/0.1.13/lib/rbi/rewriters/deannotate.rb#41 sig { params(annotation: ::String).void } def deannotate!(annotation); end - # source://rbi/0.1.11/lib/rbi/model.rb#132 + # source://rbi/0.1.13/lib/rbi/model.rb#132 sig { returns(T::Boolean) } def empty?; end - # source://rbi/0.1.11/lib/rbi/rewriters/filter_versions.rb#118 + # source://rbi/0.1.13/lib/rbi/rewriters/filter_versions.rb#118 sig { params(version: ::Gem::Version).void } def filter_versions!(version); end - # source://rbi/0.1.11/lib/rbi/rewriters/group_nodes.rb#38 + # source://rbi/0.1.13/lib/rbi/rewriters/group_nodes.rb#38 sig { void } def group_nodes!; end - # source://rbi/0.1.11/lib/rbi/index.rb#68 + # source://rbi/0.1.13/lib/rbi/index.rb#68 sig { returns(::RBI::Index) } def index; end - # source://rbi/0.1.11/lib/rbi/rewriters/merge_trees.rb#324 + # source://rbi/0.1.13/lib/rbi/rewriters/merge_trees.rb#324 sig do params( other: ::RBI::Tree, @@ -188,44 +195,44 @@ 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.11/lib/rbi/rewriters/nest_non_public_methods.rb#46 + # source://rbi/0.1.13/lib/rbi/rewriters/nest_non_public_methods.rb#46 sig { void } def nest_non_public_methods!; end - # source://rbi/0.1.11/lib/rbi/rewriters/nest_singleton_methods.rb#36 + # source://rbi/0.1.13/lib/rbi/rewriters/nest_singleton_methods.rb#36 sig { void } def nest_singleton_methods!; end - # source://rbi/0.1.11/lib/rbi/model.rb#110 + # source://rbi/0.1.13/lib/rbi/model.rb#110 sig { returns(T::Array[::RBI::Node]) } def nodes; end - # source://rbi/0.1.11/lib/rbi/printer.rb#233 + # source://rbi/0.1.13/lib/rbi/printer.rb#233 sig { override.returns(T::Boolean) } def oneline?; end - # source://rbi/0.1.11/lib/rbi/rewriters/sort_nodes.rb#119 + # source://rbi/0.1.13/lib/rbi/rewriters/sort_nodes.rb#119 sig { void } def sort_nodes!; end private - # source://tapioca//lib/tapioca/rbi_ext/model.rb#149 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#150 sig { params(node: ::RBI::Node).returns(::RBI::Node) } def create_node(node); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#144 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#145 sig { returns(T::Hash[::String, ::RBI::Node]) } def nodes_cache; end end -# source://tapioca//lib/tapioca/rbi_ext/model.rb#159 +# source://tapioca//lib/tapioca/rbi_ext/model.rb#160 class RBI::TypedParam < ::T::Struct const :param, ::RBI::Param const :type, ::String class << self - # source://sorbet-runtime/0.5.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -460,24 +467,24 @@ class Tapioca::Cli < ::Thor include ::Tapioca::ConfigHelper include ::Tapioca::EnvHelper - # source://tapioca//lib/tapioca/cli.rb#355 + # source://tapioca//lib/tapioca/cli.rb#361 def __print_version; end - # source://tapioca//lib/tapioca/cli.rb#337 + # source://tapioca//lib/tapioca/cli.rb#343 def annotations; end - # source://tapioca//lib/tapioca/cli.rb#309 + # source://tapioca//lib/tapioca/cli.rb#315 def check_shims; end # source://tapioca//lib/tapioca/cli.rb#46 def configure; end - # source://tapioca//lib/tapioca/cli.rb#138 + # source://tapioca//lib/tapioca/cli.rb#143 def dsl(*constant_or_paths); end # @raise [MalformattedArgumentError] # - # source://tapioca//lib/tapioca/cli.rb#253 + # source://tapioca//lib/tapioca/cli.rb#259 def gem(*gems); end # source://tapioca//lib/tapioca/cli.rb#27 @@ -491,11 +498,11 @@ class Tapioca::Cli < ::Thor private - # source://tapioca//lib/tapioca/cli.rb#369 + # source://tapioca//lib/tapioca/cli.rb#375 def print_init_next_steps; end class << self - # source://tapioca//lib/tapioca/cli.rb#361 + # source://tapioca//lib/tapioca/cli.rb#367 def exit_on_failure?; end end end @@ -532,7 +539,7 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke abstract! - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#31 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#32 sig do params( requested_constants: T::Array[::String], @@ -542,6 +549,7 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke exclude: T::Array[::String], file_header: T::Boolean, tapioca_path: ::String, + skip_constant: T::Array[::String], quiet: T::Boolean, verbose: T::Boolean, number_of_workers: T.nilable(::Integer), @@ -552,19 +560,19 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke halt_upon_load_error: T::Boolean ).void end - def initialize(requested_constants:, requested_paths:, outpath:, only:, exclude:, file_header:, tapioca_path:, quiet: T.unsafe(nil), verbose: T.unsafe(nil), number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), gem_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end + def initialize(requested_constants:, requested_paths:, outpath:, only:, exclude:, file_header:, tapioca_path:, skip_constant: T.unsafe(nil), quiet: T.unsafe(nil), verbose: T.unsafe(nil), number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), gem_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end private - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#94 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#97 sig { returns(T::Array[::String]) } def all_requested_constants; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#285 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#289 sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) } def build_error_for_files(cause, files); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#209 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#213 sig do params( constant_name: ::String, @@ -575,75 +583,75 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke end def compile_dsl_rbi(constant_name, rbi, outpath: T.unsafe(nil), quiet: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#146 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#150 sig { params(constant_names: T::Array[::String], ignore_missing: T::Boolean).returns(T::Array[::Module]) } def constantize(constant_names, ignore_missing: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#169 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#173 sig { params(compiler_names: T::Array[::String]).returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) } def constantize_compilers(compiler_names); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#345 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#349 sig { returns(T::Array[::String]) } def constants_from_requested_paths; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#117 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#120 sig { returns(::Tapioca::Dsl::Pipeline) } def create_pipeline; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#248 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#252 sig { params(constant_name: ::String).returns(::Pathname) } def dsl_rbi_filename(constant_name); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#132 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#136 sig { params(requested_constants: T::Array[::String], path: ::Pathname).returns(T::Set[::Pathname]) } def existing_rbi_filenames(requested_constants, path: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#340 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#344 sig { params(constant: ::String).returns(::String) } def generate_command_for(constant); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#70 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#73 sig { params(outpath: ::Pathname, quiet: T::Boolean).returns(T::Set[::Pathname]) } def generate_dsl_rbi_files(outpath, quiet:); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#107 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#110 sig { void } def load_application; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#227 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#231 sig { params(dir: ::Pathname).void } def perform_dsl_verification(dir); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#102 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#105 sig { returns(::Tapioca::Dsl::Pipeline) } def pipeline; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#236 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#240 sig { params(files: T::Set[::Pathname]).void } def purge_stale_dsl_rbi_files(files); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#335 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#339 sig { params(constant: ::String).returns(::String) } def rbi_filename_for(constant); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#316 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#320 sig { params(path: ::Pathname).returns(T::Array[::Pathname]) } def rbi_files_in(path); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#294 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#298 sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void } def report_diff_and_exit_if_out_of_date(diff, command); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#189 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#193 sig { params(name: ::String).returns(T.nilable(T.class_of(Tapioca::Dsl::Compiler))) } def resolve(name); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#323 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#327 sig { params(class_name: ::String).returns(::String) } def underscore(class_name); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#253 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#257 sig { params(tmp_dir: ::Pathname).returns(T::Hash[::String, ::Symbol]) } def verify_dsl_rbi(tmp_dir:); end end @@ -1142,7 +1150,7 @@ class Tapioca::ConfigHelper::ConfigError < ::T::Struct const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart] class << self - # source://sorbet-runtime/0.5.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -1153,7 +1161,7 @@ class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct const :colors, T::Array[::Symbol] class << self - # source://sorbet-runtime/0.5.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end @@ -1179,7 +1187,7 @@ Tapioca::DEFAULT_POSTREQUIRE_FILE = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca.rb#39 Tapioca::DEFAULT_RBI_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca/rbi_formatter.rb#29 +# source://tapioca//lib/tapioca/rbi_formatter.rb#31 Tapioca::DEFAULT_RBI_FORMATTER = T.let(T.unsafe(nil), Tapioca::RBIFormatter) # source://tapioca//lib/tapioca.rb#55 @@ -1300,7 +1308,7 @@ Tapioca::Dsl::Compilers::NAMESPACES = T.let(T.unsafe(nil), Array) # source://tapioca//lib/tapioca/dsl/pipeline.rb#6 class Tapioca::Dsl::Pipeline - # source://tapioca//lib/tapioca/dsl/pipeline.rb#34 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#38 sig do params( requested_constants: T::Array[::Module], @@ -1308,32 +1316,33 @@ class Tapioca::Dsl::Pipeline requested_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)], excluded_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)], error_handler: T.proc.params(error: ::String).void, + skipped_constants: T::Array[::Module], number_of_workers: T.nilable(::Integer) ).void end - def initialize(requested_constants:, requested_paths: T.unsafe(nil), requested_compilers: T.unsafe(nil), excluded_compilers: T.unsafe(nil), error_handler: T.unsafe(nil), number_of_workers: T.unsafe(nil)); end + def initialize(requested_constants:, requested_paths: T.unsafe(nil), requested_compilers: T.unsafe(nil), excluded_compilers: T.unsafe(nil), error_handler: T.unsafe(nil), skipped_constants: T.unsafe(nil), number_of_workers: T.unsafe(nil)); end # source://tapioca//lib/tapioca/dsl/pipeline.rb#10 sig { returns(T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)]) } def active_compilers; end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#93 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#99 sig { params(error: ::String).void } def add_error(error); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#98 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#104 sig { params(compiler_name: ::String).returns(T::Boolean) } def compiler_enabled?(compiler_name); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#107 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#113 sig { returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) } def compilers; end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#19 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#22 sig { returns(T.proc.params(error: ::String).void) } def error_handler; end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#22 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#25 sig { returns(T::Array[::String]) } def errors; end @@ -1345,7 +1354,7 @@ class Tapioca::Dsl::Pipeline sig { returns(T::Array[::Pathname]) } def requested_paths; end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#58 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#64 sig do type_parameters(:T) .params( @@ -1354,17 +1363,21 @@ class Tapioca::Dsl::Pipeline end def run(&blk); end + # source://tapioca//lib/tapioca/dsl/pipeline.rb#19 + sig { returns(T::Array[::Module]) } + def skipped_constants; end + private - # source://tapioca//lib/tapioca/dsl/pipeline.rb#199 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#220 sig { void } def abort_if_pending_migrations!; end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#144 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#165 sig { params(constants: T::Set[::Module]).returns(T::Set[::Module]) } def filter_anonymous_and_reloaded_constants(constants); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#124 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#130 sig do params( requested_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)], @@ -1373,20 +1386,21 @@ class Tapioca::Dsl::Pipeline end def gather_active_compilers(requested_compilers, excluded_compilers); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#132 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#144 sig do params( requested_constants: T::Array[::Module], - requested_paths: T::Array[::Pathname] + requested_paths: T::Array[::Pathname], + skipped_constants: T::Array[::Module] ).returns(T::Set[::Module]) end - def gather_constants(requested_constants, requested_paths); end + def gather_constants(requested_constants, requested_paths, skipped_constants); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#173 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#194 sig { params(constant: ::Module).returns(T.nilable(::RBI::File)) } def rbi_for_constant(constant); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#192 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#213 sig { params(error: ::String).returns(T.noreturn) } def report_error(error); end end @@ -2450,17 +2464,17 @@ class Tapioca::Loaders::Loader # engine paths. The following commit is the change: # https://github.com/rails/rails/commit/ebfca905db14020589c22e6937382e6f8f687664 # - # source://tapioca//lib/tapioca/loaders/loader.rb#233 + # source://tapioca//lib/tapioca/loaders/loader.rb#223 sig { params(engine: T.class_of(Rails::Engine)).returns(T::Array[::String]) } def eager_load_paths(engine); end - # source://tapioca//lib/tapioca/loaders/loader.rb#198 + # source://tapioca//lib/tapioca/loaders/loader.rb#188 sig { void } def eager_load_rails_app; end # @return [Array] # - # source://tapioca//lib/tapioca/loaders/loader.rb#169 + # source://tapioca//lib/tapioca/loaders/loader.rb#167 def engines; end # source://tapioca//lib/tapioca/loaders/loader.rb#29 @@ -2474,11 +2488,11 @@ class Tapioca::Loaders::Loader end def load_bundle(gemfile, initialize_file, require_file, halt_upon_load_error); end - # source://tapioca//lib/tapioca/loaders/loader.rb#127 + # source://tapioca//lib/tapioca/loaders/loader.rb#125 sig { void } def load_engines_in_classic_mode; end - # source://tapioca//lib/tapioca/loaders/loader.rb#105 + # source://tapioca//lib/tapioca/loaders/loader.rb#103 sig { void } def load_engines_in_zeitwerk_mode; end @@ -2493,30 +2507,26 @@ class Tapioca::Loaders::Loader end def load_rails_application(environment_load: T.unsafe(nil), eager_load: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/loaders/loader.rb#80 + # source://tapioca//lib/tapioca/loaders/loader.rb#78 sig { void } def load_rails_engines; end - # source://tapioca//lib/tapioca/loaders/loader.rb#219 + # source://tapioca//lib/tapioca/loaders/loader.rb#209 sig { params(file: T.nilable(::String)).void } def require_helper(file); end - # source://tapioca//lib/tapioca/loaders/loader.rb#94 + # source://tapioca//lib/tapioca/loaders/loader.rb#92 def run_initializers; end - # source://tapioca//lib/tapioca/loaders/loader.rb#183 + # source://tapioca//lib/tapioca/loaders/loader.rb#181 sig { params(path: ::String).void } def safe_require(path); end - # source://tapioca//lib/tapioca/loaders/loader.rb#190 - sig { void } - def silence_deprecations; end - - # source://tapioca//lib/tapioca/loaders/loader.rb#152 + # source://tapioca//lib/tapioca/loaders/loader.rb#150 sig { params(blk: T.proc.void).void } def with_rails_application(&blk); end - # source://tapioca//lib/tapioca/loaders/loader.rb#145 + # source://tapioca//lib/tapioca/loaders/loader.rb#143 sig { returns(T::Boolean) } def zeitwerk_mode?; end end @@ -2612,7 +2622,7 @@ end # source://tapioca//lib/tapioca/rbi_formatter.rb#5 class Tapioca::RBIFormatter < ::RBI::Formatter - # source://tapioca//lib/tapioca/rbi_formatter.rb#22 + # source://tapioca//lib/tapioca/rbi_formatter.rb#24 sig { params(file: ::RBI::File).void } def write_empty_body_comment!(file); end @@ -2631,6 +2641,10 @@ module Tapioca::RBIHelper sig { params(type: ::String).returns(::String) } def as_nilable_type(type); end + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#100 + sig { params(type: ::String).returns(::String) } + def as_non_nilable_type(type); end + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#72 sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } def create_block_param(name, type:); end @@ -2667,11 +2681,11 @@ module Tapioca::RBIHelper sig { params(sig_string: ::String).returns(::String) } def sanitize_signature_types(sig_string); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#100 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#109 sig { params(name: ::String).returns(T::Boolean) } def valid_method_name?(name); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#114 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#123 sig { params(name: ::String).returns(T::Boolean) } def valid_parameter_name?(name); end diff --git a/sorbet/rbi/gems/thor@1.3.1.rbi b/sorbet/rbi/gems/thor@1.3.1.rbi index a806aa38..18cf0356 100644 --- a/sorbet/rbi/gems/thor@1.3.1.rbi +++ b/sorbet/rbi/gems/thor@1.3.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `thor` gem. # Please instead update this file by running `bin/tapioca gem thor`. + # source://thor//lib/thor/shell/lcs_diff.rb#1 module LCSDiff protected diff --git a/sorbet/rbi/gems/tilt@2.3.0.rbi b/sorbet/rbi/gems/tilt@2.3.0.rbi index 9df55a4b..15483dbe 100644 --- a/sorbet/rbi/gems/tilt@2.3.0.rbi +++ b/sorbet/rbi/gems/tilt@2.3.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `tilt` gem. # Please instead update this file by running `bin/tapioca gem tilt`. + # Namespace for Tilt. This module is not intended to be included anywhere. # # source://tilt//lib/tilt/template.rb#2 @@ -636,13 +637,16 @@ end class Tilt::SassTemplate < ::Tilt::StaticTemplate private - # source://tilt//lib/tilt/sass.rb#18 + # source://tilt//lib/tilt/sass.rb#44 def _prepare_output; end - # source://tilt//lib/tilt/sass.rb#22 + # source://tilt//lib/tilt/sass.rb#48 def sass_options; end end +# source://tilt//lib/tilt/sass.rb#32 +Tilt::SassTemplate::Engine = SassC::Engine + # source://tilt//lib/tilt/sass.rb#58 class Tilt::ScssTemplate < ::Tilt::SassTemplate private diff --git a/sorbet/rbi/gems/timeout@0.4.1.rbi b/sorbet/rbi/gems/timeout@0.4.1.rbi index 2c468fda..4e762900 100644 --- a/sorbet/rbi/gems/timeout@0.4.1.rbi +++ b/sorbet/rbi/gems/timeout@0.4.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `timeout` gem. # Please instead update this file by running `bin/tapioca gem timeout`. + module Timeout private diff --git a/sorbet/rbi/gems/tpm-key_attestation@0.12.0.rbi b/sorbet/rbi/gems/tpm-key_attestation@0.12.0.rbi index cc80f4de..3578226f 100644 --- a/sorbet/rbi/gems/tpm-key_attestation@0.12.0.rbi +++ b/sorbet/rbi/gems/tpm-key_attestation@0.12.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `tpm-key_attestation` gem. # Please instead update this file by running `bin/tapioca gem tpm-key_attestation`. + # source://tpm-key_attestation//lib/tpm/key_attestation/version.rb#3 module TPM; end diff --git a/sorbet/rbi/gems/trailblazer-option@0.1.2.rbi b/sorbet/rbi/gems/trailblazer-option@0.1.2.rbi new file mode 100644 index 00000000..f6769259 --- /dev/null +++ b/sorbet/rbi/gems/trailblazer-option@0.1.2.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `trailblazer-option` gem. +# Please instead update this file by running `bin/tapioca gem trailblazer-option`. + + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/twilio-ruby@7.0.2.rbi b/sorbet/rbi/gems/twilio-ruby@7.0.2.rbi index e96f4c1a..029ec8e0 100644 --- a/sorbet/rbi/gems/twilio-ruby@7.0.2.rbi +++ b/sorbet/rbi/gems/twilio-ruby@7.0.2.rbi @@ -4,13 +4,14 @@ # This is an autogenerated file for types exported from the `twilio-ruby` gem. # Please instead update this file by running `bin/tapioca gem twilio-ruby`. + # source://twilio-ruby//lib/rack/twilio_webhook_authentication.rb#5 module Rack class << self - # source://rack/3.0.10/lib/rack/version.rb#31 + # source://rack/3.0.11/lib/rack/version.rb#31 def release; end - # source://rack/3.0.10/lib/rack/version.rb#23 + # source://rack/3.0.11/lib/rack/version.rb#23 def version; end end end diff --git a/sorbet/rbi/gems/tzinfo@2.0.6.rbi b/sorbet/rbi/gems/tzinfo@2.0.6.rbi index 04fe2db4..f8f9c81f 100644 --- a/sorbet/rbi/gems/tzinfo@2.0.6.rbi +++ b/sorbet/rbi/gems/tzinfo@2.0.6.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `tzinfo` gem. # Please instead update this file by running `bin/tapioca gem tzinfo`. + # The top level module for TZInfo. # # source://tzinfo//lib/tzinfo.rb#5 diff --git a/sorbet/rbi/gems/uber@0.1.0.rbi b/sorbet/rbi/gems/uber@0.1.0.rbi new file mode 100644 index 00000000..138270f1 --- /dev/null +++ b/sorbet/rbi/gems/uber@0.1.0.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `uber` gem. +# Please instead update this file by running `bin/tapioca gem uber`. + + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi b/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi index ccdfd066..2aaad232 100644 --- a/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +++ b/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `unicode-display_width` gem. # Please instead update this file by running `bin/tapioca gem unicode-display_width`. + # source://unicode-display_width//lib/unicode/display_width/constants.rb#3 module Unicode; end diff --git a/sorbet/rbi/gems/uri@0.13.0.rbi b/sorbet/rbi/gems/uri@0.13.0.rbi index 754dad93..7c0e46bd 100644 --- a/sorbet/rbi/gems/uri@0.13.0.rbi +++ b/sorbet/rbi/gems/uri@0.13.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `uri` gem. # Please instead update this file by running `bin/tapioca gem uri`. + # module URI module Kernel private @@ -2293,30 +2294,30 @@ URI::Schemes::WS = URI::WS URI::Schemes::WSS = URI::WSS class URI::Source < ::URI::File - # source://tapioca/0.13.3/lib/tapioca/helpers/source_uri.rb#58 + # source://tapioca/0.14.2/lib/tapioca/helpers/source_uri.rb#58 sig { params(v: T.nilable(::String)).returns(T::Boolean) } def check_host(v); end # source://uri//uri/generic.rb#243 def gem_name; end - # source://tapioca/0.13.3/lib/tapioca/helpers/source_uri.rb#25 + # source://tapioca/0.14.2/lib/tapioca/helpers/source_uri.rb#25 sig { returns(T.nilable(::String)) } def gem_version; end # source://uri//uri/generic.rb#283 def line_number; end - # source://tapioca/0.13.3/lib/tapioca/helpers/source_uri.rb#51 + # source://tapioca/0.14.2/lib/tapioca/helpers/source_uri.rb#51 sig { params(v: T.nilable(::String)).void } def set_path(v); end - # source://tapioca/0.13.3/lib/tapioca/helpers/source_uri.rb#70 + # source://tapioca/0.14.2/lib/tapioca/helpers/source_uri.rb#70 sig { returns(::String) } def to_s; end class << self - # source://tapioca/0.13.3/lib/tapioca/helpers/source_uri.rb#38 + # source://tapioca/0.14.2/lib/tapioca/helpers/source_uri.rb#38 sig do params( gem_name: ::String, diff --git a/sorbet/rbi/gems/vite_rails@3.0.17.rbi b/sorbet/rbi/gems/vite_rails@3.0.17.rbi index e45c044f..b3cfe1a2 100644 --- a/sorbet/rbi/gems/vite_rails@3.0.17.rbi +++ b/sorbet/rbi/gems/vite_rails@3.0.17.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `vite_rails` gem. # Please instead update this file by running `bin/tapioca gem vite_rails`. + # source://vite_rails//lib/vite_rails/version.rb#3 module ViteRails; end @@ -58,7 +59,7 @@ end # source://vite_rails//lib/vite_rails/engine.rb#5 class ViteRails::Engine < ::Rails::Engine class << self - # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 def __callbacks; end end end diff --git a/sorbet/rbi/gems/vite_ruby@3.5.0.rbi b/sorbet/rbi/gems/vite_ruby@3.5.0.rbi index 9c07fae9..9acb196f 100644 --- a/sorbet/rbi/gems/vite_ruby@3.5.0.rbi +++ b/sorbet/rbi/gems/vite_ruby@3.5.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `vite_ruby` gem. # Please instead update this file by running `bin/tapioca gem vite_ruby`. + # source://vite_ruby//lib/vite_ruby.rb#18 class ViteRuby # @return [ViteRuby] a new instance of ViteRuby diff --git a/sorbet/rbi/gems/voight_kampff@2.0.0.rbi b/sorbet/rbi/gems/voight_kampff@2.0.0.rbi new file mode 100644 index 00000000..d94d200e --- /dev/null +++ b/sorbet/rbi/gems/voight_kampff@2.0.0.rbi @@ -0,0 +1,122 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `voight_kampff` gem. +# Please instead update this file by running `bin/tapioca gem voight_kampff`. + + +class Rack::Request + include ::VoightKampff::Methods +end + +# source://voight_kampff//lib/voight_kampff/test.rb#1 +module VoightKampff + class << self + # @return [Boolean] + # + # source://voight_kampff//lib/voight_kampff.rb#17 + def bot?(user_agent_string); end + + # @return [Boolean] + # + # source://voight_kampff//lib/voight_kampff.rb#13 + def human?(user_agent_string); end + + # @return [Boolean] + # + # source://voight_kampff//lib/voight_kampff.rb#17 + def replicant?(user_agent_string); end + + # source://voight_kampff//lib/voight_kampff.rb#8 + def root; end + + private + + # source://voight_kampff//lib/voight_kampff.rb#24 + def test(user_agent_string); end + end +end + +# source://voight_kampff//lib/voight_kampff/engine.rb#2 +class VoightKampff::Engine < ::Rails::Engine + class << self + # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + def __callbacks; end + end +end + +# source://voight_kampff//lib/voight_kampff/methods.rb#1 +module VoightKampff::Methods + # @return [Boolean] + # + # source://voight_kampff//lib/voight_kampff/methods.rb#6 + def bot?; end + + # @return [Boolean] + # + # source://voight_kampff//lib/voight_kampff/methods.rb#2 + def human?; end + + # @return [Boolean] + # + # source://voight_kampff//lib/voight_kampff/methods.rb#6 + def replicant?; end +end + +# source://voight_kampff//lib/voight_kampff/test.rb#2 +class VoightKampff::Test + # @return [Test] a new instance of Test + # + # source://voight_kampff//lib/voight_kampff/test.rb#7 + def initialize(user_agent_string); end + + # source://voight_kampff//lib/voight_kampff/test.rb#11 + def agent; end + + # @return [Boolean] + # + # source://voight_kampff//lib/voight_kampff/test.rb#19 + def bot?; end + + # @return [Boolean] + # + # source://voight_kampff//lib/voight_kampff/test.rb#15 + def human?; end + + # @return [Boolean] + # + # source://voight_kampff//lib/voight_kampff/test.rb#19 + def replicant?; end + + # Returns the value of attribute user_agent_string. + # + # source://voight_kampff//lib/voight_kampff/test.rb#5 + def user_agent_string; end + + # Sets the attribute user_agent_string + # + # @param value the value to set the attribute user_agent_string to. + # + # source://voight_kampff//lib/voight_kampff/test.rb#5 + def user_agent_string=(_arg0); end + + private + + # source://voight_kampff//lib/voight_kampff/test.rb#46 + def crawler_regexp; end + + # source://voight_kampff//lib/voight_kampff/test.rb#56 + def crawlers; end + + # source://voight_kampff//lib/voight_kampff/test.rb#26 + def lookup_paths; end + + # source://voight_kampff//lib/voight_kampff/test.rb#39 + def matching_crawler; end + + # source://voight_kampff//lib/voight_kampff/test.rb#35 + def preferred_path; end +end + +# source://voight_kampff//lib/voight_kampff/test.rb#3 +VoightKampff::Test::CRAWLERS_FILENAME = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/web-console@4.2.1.rbi b/sorbet/rbi/gems/web-console@4.2.1.rbi index 88c88d1d..006c2b29 100644 --- a/sorbet/rbi/gems/web-console@4.2.1.rbi +++ b/sorbet/rbi/gems/web-console@4.2.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `web-console` gem. # Please instead update this file by running `bin/tapioca gem web-console`. + # source://web-console//lib/web_console.rb#6 module WebConsole extend ::ActiveSupport::Autoload diff --git a/sorbet/rbi/gems/webauthn@3.1.0.rbi b/sorbet/rbi/gems/webauthn@3.1.0.rbi index a7c70609..08973651 100644 --- a/sorbet/rbi/gems/webauthn@3.1.0.rbi +++ b/sorbet/rbi/gems/webauthn@3.1.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `webauthn` gem. # Please instead update this file by running `bin/tapioca gem webauthn`. + # source://webauthn//lib/cose/rsapkcs1_algorithm.rb#9 class RSAPKCS1Algorithm < ::COSE::Algorithm::SignatureAlgorithm # @return [RSAPKCS1Algorithm] a new instance of RSAPKCS1Algorithm diff --git a/sorbet/rbi/gems/webrick@1.8.1.rbi b/sorbet/rbi/gems/webrick@1.8.1.rbi index a636fb4e..65fc1e51 100644 --- a/sorbet/rbi/gems/webrick@1.8.1.rbi +++ b/sorbet/rbi/gems/webrick@1.8.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `webrick` gem. # Please instead update this file by running `bin/tapioca gem webrick`. + # AccessLog provides logging to various files in various formats. # # Multiple logs may be written to at the same time: diff --git a/sorbet/rbi/gems/websocket-driver@0.7.6.rbi b/sorbet/rbi/gems/websocket-driver@0.7.6.rbi index 2fd3b66b..426049da 100644 --- a/sorbet/rbi/gems/websocket-driver@0.7.6.rbi +++ b/sorbet/rbi/gems/websocket-driver@0.7.6.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `websocket-driver` gem. # Please instead update this file by running `bin/tapioca gem websocket-driver`. + # source://websocket-driver//lib/websocket/driver.rb#16 module WebSocket class << self diff --git a/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi b/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi index 80f62d8f..f307257d 100644 --- a/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +++ b/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `websocket-extensions` gem. # Please instead update this file by running `bin/tapioca gem websocket-extensions`. + # source://websocket-extensions//lib/websocket/extensions.rb#1 module WebSocket class << self diff --git a/sorbet/rbi/gems/websocket@1.2.10.rbi b/sorbet/rbi/gems/websocket@1.2.10.rbi index 6e2300b9..fb13b581 100644 --- a/sorbet/rbi/gems/websocket@1.2.10.rbi +++ b/sorbet/rbi/gems/websocket@1.2.10.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `websocket` gem. # Please instead update this file by running `bin/tapioca gem websocket`. + # WebSocket protocol implementation in Ruby # This module does not provide a WebSocket server or client, but is made for using # in http servers or clients to provide WebSocket support. diff --git a/sorbet/rbi/gems/xpath@3.2.0.rbi b/sorbet/rbi/gems/xpath@3.2.0.rbi index d2c8c83e..9dbb5114 100644 --- a/sorbet/rbi/gems/xpath@3.2.0.rbi +++ b/sorbet/rbi/gems/xpath@3.2.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `xpath` gem. # Please instead update this file by running `bin/tapioca gem xpath`. + # source://xpath//lib/xpath/dsl.rb#3 module XPath include ::XPath::DSL diff --git a/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi b/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi index d37c7a51..92b94205 100644 --- a/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +++ b/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `yard-sorbet` gem. # Please instead update this file by running `bin/tapioca gem yard-sorbet`. + class YARD::Handlers::Ruby::ClassHandler < ::YARD::Handlers::Ruby::Base include ::YARDSorbet::Handlers::StructClassHandler end @@ -381,7 +382,7 @@ class YARDSorbet::TStructProp < ::T::Struct const :types, T::Array[::String] class << self - # source://sorbet-runtime/0.5.11351/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 def inherited(s); end end end diff --git a/sorbet/rbi/gems/yard@0.9.36.rbi b/sorbet/rbi/gems/yard@0.9.36.rbi index f24a52b5..f32493d1 100644 --- a/sorbet/rbi/gems/yard@0.9.36.rbi +++ b/sorbet/rbi/gems/yard@0.9.36.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `yard` gem. # Please instead update this file by running `bin/tapioca gem yard`. + # source://yard//lib/yard.rb#61 ::RUBY18 = T.let(T.unsafe(nil), FalseClass) @@ -490,19 +491,19 @@ RUBY19 = T.let(T.unsafe(nil), TrueClass) # # source://yard//lib/yard/server/rack_adapter.rb#93 class Rack::Request - # source://rack/3.0.10/lib/rack/request.rb#62 + # source://rack/3.0.11/lib/rack/request.rb#62 def initialize(env); end - # source://rack/3.0.10/lib/rack/request.rb#76 + # source://rack/3.0.11/lib/rack/request.rb#76 def delete_param(k); end - # source://rack/3.0.10/lib/rack/request.rb#67 + # source://rack/3.0.11/lib/rack/request.rb#67 def params; end - # source://rack/3.0.10/lib/rack/request.rb#67 + # source://rack/3.0.11/lib/rack/request.rb#67 def query; end - # source://rack/3.0.10/lib/rack/request.rb#71 + # source://rack/3.0.11/lib/rack/request.rb#71 def update_param(k, v); end # Returns the value of attribute version_supplied. @@ -523,22 +524,22 @@ class Rack::Request def xhr?; end class << self - # source://rack/3.0.10/lib/rack/request.rb#31 + # source://rack/3.0.11/lib/rack/request.rb#31 def forwarded_priority; end - # source://rack/3.0.10/lib/rack/request.rb#31 + # source://rack/3.0.11/lib/rack/request.rb#31 def forwarded_priority=(_arg0); end - # source://rack/3.0.10/lib/rack/request.rb#18 + # source://rack/3.0.11/lib/rack/request.rb#18 def ip_filter; end - # source://rack/3.0.10/lib/rack/request.rb#18 + # source://rack/3.0.11/lib/rack/request.rb#18 def ip_filter=(_arg0); end - # source://rack/3.0.10/lib/rack/request.rb#40 + # source://rack/3.0.11/lib/rack/request.rb#40 def x_forwarded_proto_priority; end - # source://rack/3.0.10/lib/rack/request.rb#40 + # source://rack/3.0.11/lib/rack/request.rb#40 def x_forwarded_proto_priority=(_arg0); end end end diff --git a/sorbet/rbi/gems/zeitwerk@2.6.13.rbi b/sorbet/rbi/gems/zeitwerk@2.6.14.rbi similarity index 93% rename from sorbet/rbi/gems/zeitwerk@2.6.13.rbi rename to sorbet/rbi/gems/zeitwerk@2.6.14.rbi index e5fc153b..22952151 100644 --- a/sorbet/rbi/gems/zeitwerk@2.6.13.rbi +++ b/sorbet/rbi/gems/zeitwerk@2.6.14.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `zeitwerk` gem. # Please instead update this file by running `bin/tapioca gem zeitwerk`. + # source://zeitwerk//lib/zeitwerk/kernel.rb#3 module Kernel private @@ -197,7 +198,7 @@ class Zeitwerk::Loader # source://zeitwerk//lib/zeitwerk/loader.rb#77 def __namespace_dirs; end - # source://zeitwerk//lib/zeitwerk/loader.rb#310 + # source://zeitwerk//lib/zeitwerk/loader.rb#344 def __shadowed_file?(file); end # source://zeitwerk//lib/zeitwerk/loader.rb#88 @@ -206,9 +207,15 @@ class Zeitwerk::Loader # source://zeitwerk//lib/zeitwerk/loader.rb#59 def __to_unload; end + # Returns a hash that maps the absolute paths of the managed files and + # directories to their respective expected constant paths. + # + # source://zeitwerk//lib/zeitwerk/loader.rb#237 + def all_expected_cpaths; end + # @raise [Zeitwerk::Error] # - # source://zeitwerk//lib/zeitwerk/loader.rb#234 + # source://zeitwerk//lib/zeitwerk/loader.rb#268 def cpath_expected_at(path); end # Unloads all loaded code, and calls setup again so that the loader is able @@ -246,31 +253,31 @@ class Zeitwerk::Loader # # @return [Boolean] # - # source://zeitwerk//lib/zeitwerk/loader.rb#285 + # source://zeitwerk//lib/zeitwerk/loader.rb#319 def unloadable_cpath?(cpath); end # Returns an array with the constant paths that would be unloaded on reload. # This predicate returns an empty array if reloading is disabled. # - # source://zeitwerk//lib/zeitwerk/loader.rb#293 + # source://zeitwerk//lib/zeitwerk/loader.rb#327 def unloadable_cpaths; end # This is a dangerous method. # - # source://zeitwerk//lib/zeitwerk/loader.rb#301 + # source://zeitwerk//lib/zeitwerk/loader.rb#335 def unregister; end private - # source://zeitwerk//lib/zeitwerk/loader.rb#456 + # source://zeitwerk//lib/zeitwerk/loader.rb#490 def autoload_file(parent, cname, file); end # @return [Boolean] # - # source://zeitwerk//lib/zeitwerk/loader.rb#514 + # source://zeitwerk//lib/zeitwerk/loader.rb#548 def autoload_path_set_by_me_for?(parent, cname); end - # source://zeitwerk//lib/zeitwerk/loader.rb#426 + # source://zeitwerk//lib/zeitwerk/loader.rb#460 def autoload_subdir(parent, cname, subdir); end # We keep track of autoloaded directories to remove them from the registry @@ -293,10 +300,10 @@ class Zeitwerk::Loader # source://zeitwerk//lib/zeitwerk/loader.rb#33 def autoloads; end - # source://zeitwerk//lib/zeitwerk/loader.rb#493 + # source://zeitwerk//lib/zeitwerk/loader.rb#527 def define_autoload(parent, cname, abspath); end - # source://zeitwerk//lib/zeitwerk/loader.rb#410 + # source://zeitwerk//lib/zeitwerk/loader.rb#444 def define_autoloads_for_dir(dir, parent); end # Returns the value of attribute dirs_autoload_monitor. @@ -329,19 +336,19 @@ class Zeitwerk::Loader # `dir` is the directory that would have autovivified a namespace. `file` is # the file where we've found the namespace is explicitly defined. # - # source://zeitwerk//lib/zeitwerk/loader.rb#482 + # source://zeitwerk//lib/zeitwerk/loader.rb#516 def promote_namespace_from_implicit_to_explicit(dir:, file:, parent:, cname:); end - # source://zeitwerk//lib/zeitwerk/loader.rb#528 + # source://zeitwerk//lib/zeitwerk/loader.rb#562 def raise_if_conflicting_directory(dir); end - # source://zeitwerk//lib/zeitwerk/loader.rb#523 + # source://zeitwerk//lib/zeitwerk/loader.rb#557 def register_explicit_namespace(cpath); end - # source://zeitwerk//lib/zeitwerk/loader.rb#552 + # source://zeitwerk//lib/zeitwerk/loader.rb#586 def run_on_unload_callbacks(cpath, value, abspath); end - # source://zeitwerk//lib/zeitwerk/loader.rb#310 + # source://zeitwerk//lib/zeitwerk/loader.rb#344 def shadowed_file?(file); end # A shadowed file is a file managed by this loader that is ignored when @@ -369,41 +376,41 @@ class Zeitwerk::Loader # source://zeitwerk//lib/zeitwerk/loader.rb#59 def to_unload; end - # source://zeitwerk//lib/zeitwerk/loader.rb#559 + # source://zeitwerk//lib/zeitwerk/loader.rb#593 def unload_autoload(parent, cname); end - # source://zeitwerk//lib/zeitwerk/loader.rb#565 + # source://zeitwerk//lib/zeitwerk/loader.rb#599 def unload_cref(parent, cname); end class << self # Returns an array with the absolute paths of the root directories of all # registered loaders. This is a read-only collection. # - # source://zeitwerk//lib/zeitwerk/loader.rb#404 + # source://zeitwerk//lib/zeitwerk/loader.rb#438 def all_dirs; end # Returns the value of attribute default_logger. # - # source://zeitwerk//lib/zeitwerk/loader.rb#320 + # source://zeitwerk//lib/zeitwerk/loader.rb#354 def default_logger; end # Sets the attribute default_logger # # @param value the value to set the attribute default_logger to. # - # source://zeitwerk//lib/zeitwerk/loader.rb#320 + # source://zeitwerk//lib/zeitwerk/loader.rb#354 def default_logger=(_arg0); end # Broadcasts `eager_load` to all loaders. Those that have not been setup # are skipped. # - # source://zeitwerk//lib/zeitwerk/loader.rb#376 + # source://zeitwerk//lib/zeitwerk/loader.rb#410 def eager_load_all; end # Broadcasts `eager_load_namespace` to all loaders. Those that have not # been setup are skipped. # - # source://zeitwerk//lib/zeitwerk/loader.rb#390 + # source://zeitwerk//lib/zeitwerk/loader.rb#424 def eager_load_namespace(mod); end # This is a shortcut for @@ -421,7 +428,7 @@ class Zeitwerk::Loader # This method returns a subclass of Zeitwerk::Loader, but the exact type # is private, client code can only rely on the interface. # - # source://zeitwerk//lib/zeitwerk/loader.rb#338 + # source://zeitwerk//lib/zeitwerk/loader.rb#372 def for_gem(warn_on_extra_files: T.unsafe(nil)); end # This is a shortcut for @@ -439,7 +446,7 @@ class Zeitwerk::Loader # This method returns a subclass of Zeitwerk::Loader, but the exact type # is private, client code can only rely on the interface. # - # source://zeitwerk//lib/zeitwerk/loader.rb#359 + # source://zeitwerk//lib/zeitwerk/loader.rb#393 def for_gem_extension(namespace); end end end @@ -781,43 +788,43 @@ module Zeitwerk::Loader::Helpers # @return [Boolean] # - # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#128 + # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#132 def cdef?(parent, cname); end # @raise [NameError] # - # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#134 + # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#138 def cget(parent, cname); end # @raise [Zeitwerk::NameError] # - # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#149 + # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#153 def cname_for(basename, abspath); end # Symbol#name was introduced in Ruby 3.0. It returns always the same # frozen object, so we may save a few string allocations. # - # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#118 + # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#122 def cpath(parent, cname); end # @raise [NameError] # - # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#140 + # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#144 def crem(parent, cname); end # @return [Boolean] # - # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#67 + # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#71 def dir?(path); end # @return [Boolean] # - # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#45 + # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#47 def has_at_least_one_ruby_file?(dir); end # @return [Boolean] # - # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#72 + # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#76 def hidden?(basename); end # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#7 @@ -828,17 +835,17 @@ module Zeitwerk::Loader::Helpers # @return [Boolean] # - # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#62 + # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#66 def ruby?(path); end - # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#109 + # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#113 def strict_autoload_path(parent, cname); end - # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#77 + # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#81 def walk_up(abspath); end end -# source://zeitwerk//lib/zeitwerk/loader/helpers.rb#144 +# source://zeitwerk//lib/zeitwerk/loader/helpers.rb#148 module Zeitwerk::Loader::Helpers::CNAME_VALIDATOR; end # source://zeitwerk//lib/zeitwerk/loader.rb#21 diff --git a/tf/modules/cloud_run/main.tf b/tf/modules/cloud_run/main.tf index 98a7af9b..e9037218 100644 --- a/tf/modules/cloud_run/main.tf +++ b/tf/modules/cloud_run/main.tf @@ -256,7 +256,7 @@ resource "google_cloud_run_domain_mapping" "app" { # Testing with docker locally: # docker run \ # -it --rm \ -# -v /Users/dave/plebtech/sway-rails/storage:/data \ +# -v /Users/dave/plebtech/sway/storage:/data \ # -e LITESTREAM_ACCESS_KEY_ID=DO00JDVDG829HKL28PXX \ # -e LITESTREAM_SECRET_ACCESS_KEY=5wVxG6HVQkid5KLKDJTq4OGE9nGMoyTwYeEXDFhMYDo \ # litestream/litestream replicate /data/development.sqlite3 s3://prod-sway-sqlite-backup.nyc3.digitaloceanspaces.com/local diff --git a/tf/modules/iam/main.tf b/tf/modules/iam/main.tf index 4f8791e9..35160a2a 100644 --- a/tf/modules/iam/main.tf +++ b/tf/modules/iam/main.tf @@ -34,7 +34,7 @@ resource "google_project_iam_member" "job_executor_secrets" { # docker run \ # -it --rm \ # --platform linux/amd64 \ -# -v /Users/dave/plebtech/sway-rails/storage:/data \ +# -v /Users/dave/plebtech/sway/storage:/data \ # -e LITESTREAM_ACCESS_KEY_ID=DO00JDVDG829HKL28PXX \ # -e LITESTREAM_SECRET_ACCESS_KEY=5wVxG6HVQkid5KLKDJTq4OGE9nGMoyTwYeEXDFhMYDo \ # --entrypoint /bin/bash \